You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new precompile contract that will expose following state to EVM in the following methods. All methods should accept netuid as a parameter. Also, all methods except get get_netuid_count accept uid parameter.
Method
State returned
get_uid_count
SubnetworkN
get_stake
Total stake of the neuron in Tao
get_rank
Rank score of the neuron
get_trust
Trust score assigned to the neuron by other neurons
get_consensus
Consensus score of the neuron
get_incentive
Incentive score representing the neuron's incentive alignment
get_dividends
Dividends earned by the neuron
get_emission
Emission received by the neuron (with 18 decimals)
get_vtrust
Validator trust score indicating the network's trust in the neuron as a validator
get_validator_status
Validator status of the neuron
get_last_updated
Number of blocks since the neuron's last update
get_is_active
Activity status of the neuron
get_axon
Network endpoint information of the neuron
get_hotkey
Hotkey (public key as bytes32) of the neuron
get_coldkey
Coldkey (public key as bytes32) of the neuron
Acceptance Criteria:
Precompile implemented
ABI and sol files added
e2e JS tests implemented for each method
The text was updated successfully, but these errors were encountered:
Add a new precompile contract that will expose following state to EVM in the following methods. All methods should accept
netuid
as a parameter. Also, all methods except getget_netuid_count
acceptuid
parameter.Acceptance Criteria:
The text was updated successfully, but these errors were encountered: