Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Jan 31, 2025
1 parent 6f607e1 commit bb2a759
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions runtime/src/precompiles/solidity/neuron.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,38 @@ interface INeuron {
*/
function burnedRegister(uint16 netuid, bytes32 hotkey) external payable;

/**
* @dev Sets the weights for a neuron.
*
* @param netuid The subnet to set the weights for (uint16).
* @param dests The destinations of the weights (uint16[]).
* @param weights The weights to set (uint16[]).
* @param versionKey The version key for the weights (uint64).
*/
function setWeights(
uint16 netuid,
uint16[] memory dests,
uint16[] memory weights,
uint64 versionKey
) external payable;

/**
* @dev Commits the weights for a neuron.
*
* @param netuid The subnet to commit the weights for (uint16).
* @param commitHash The commit hash for the weights (uint256).
*/
function commitWeights(uint16 netuid, uint256 commitHash) external payable;

/**
* @dev Reveals the weights for a neuron.
*
* @param netuid The subnet to reveal the weights for (uint16).
* @param uids The unique identifiers for the weights (uint16[]).
* @param values The values of the weights (uint16[]).
* @param salt The salt values for the weights (uint16[]).
* @param versionKey The version key for the weights (uint64).
*/
function revealWeights(
uint16 netuid,
uint16[] memory uids,
Expand Down

0 comments on commit bb2a759

Please sign in to comment.