0x0000000000000000000000000000000000000801
Original staking interface: adds or removes stake on a hotkey from the caller's mapped coldkey (SubtensorModule::add_stake / remove_stake), adds or removes a proxy (Proxy::add_proxy / remove_proxy), and reads stake totals.
Written from precompiles/src/staking.rs (github.com, opens in a new tab, external site) at c004cebf3 (runtime 471) · INDEX 2049
Retired functions stay listed so older calls still decode.
addProxy(bytes32)nonpayable0xc10d08ebDelegates staking to a proxy account.
Parameters
delegate (bytes32) The public key (32 bytes) of the delegate.addStake(bytes32,uint256)payable0xc84654a8Adds a subtensor stake corresponding to the value sent with the transaction, associated with the `hotkey`. This function allows external accounts and contracts to stake TAO into the subtensor pallet, which effectively calls `add_stake` on the subtensor pallet with specified hotkey as a parameter and coldkey being the hashed address mapping of H160 sender address to Substrate ss58 address as implemented in Frontier HashedAddressMapping: https://github.com/polkadot-evm/frontier/blob/2e219e17a526125da003e64ef22ec037917083fa/frame/evm/src/lib.rs#L739 Requirements: - `hotkey` must be a valid hotkey registered on the network, ensuring that the stake is correctly attributed.
Parameters
hotkey (bytes32) The hotkey public key (32 bytes).netuid (uint256) The subnet to stake to (uint256).getStake(bytes32,bytes32,uint256)view0xe3b598faReturns the stake amount associated with the specified `hotkey` and `coldkey`. This function retrieves the current stake amount linked to a specific hotkey and coldkey pair. It is a view function, meaning it does not modify the state of the contract and is free to call.
Parameters
hotkey (bytes32) The hotkey public key (32 bytes).coldkey (bytes32) The coldkey public key (32 bytes).netuid (uint256) The subnet the stake is on (uint256).Returns
return (uint256) The current stake amount in uint256 format.getTotalColdkeyStake(bytes32)view0x998538c4Returns the amount of RAO staked by the coldkey. This function allows external accounts and contracts to query the amount of RAO staked by the coldkey which effectively calls `get_total_coldkey_stake` on the subtensor pallet with specified coldkey as a parameter.
Parameters
coldkey (bytes32) The coldkey public key (32 bytes).Returns
return (uint256) The amount of RAO staked by the coldkey.getTotalHotkeyStake(bytes32)view0x9f246f6fReturns the total amount of stake under a hotkey (delegative or otherwise) This function allows external accounts and contracts to query the total amount of RAO staked under a hotkey which effectively calls `get_total_hotkey_stake` on the subtensor pallet with specified hotkey as a parameter.
Parameters
hotkey (bytes32) The hotkey public key (32 bytes).Returns
return (uint256) The total amount of RAO staked under the hotkey.removeProxy(bytes32)nonpayable0x65ed5bb5Removes staking proxy account.
Parameters
delegate (bytes32) The public key (32 bytes) of the delegate.removeStake(bytes32,uint256,uint256)nonpayable0x7d691e30Removes a subtensor stake `amount` from the specified `hotkey`. This function allows external accounts and contracts to unstake TAO from the subtensor pallet, which effectively calls `remove_stake` on the subtensor pallet with specified hotkey as a parameter and coldkey being the hashed address mapping of H160 sender address to Substrate ss58 address as implemented in Frontier HashedAddressMapping: https://github.com/polkadot-evm/frontier/blob/2e219e17a526125da003e64ef22ec037917083fa/frame/evm/src/lib.rs#L739 Requirements: - `hotkey` must be a valid hotkey registered on the network, ensuring that the stake is correctly attributed. - The existing stake amount must be not lower than specified amount
Parameters
hotkey (bytes32) The hotkey public key (32 bytes).amount (uint256) The amount to unstake in rao.netuid (uint256) The subnet to stake to (uint256).addStake(bytes32,uint16)Retiredpayable0xb6b11efdAdds a subtensor stake corresponding to the value sent with the transaction, associated with the `hotkey`. This function allows external accounts and contracts to stake TAO into the subtensor pallet, which effectively calls `add_stake` on the subtensor pallet with specified hotkey as a parameter and coldkey being the hashed address mapping of H160 sender address to Substrate ss58 address as implemented in Frontier HashedAddressMapping: https://github.com/polkadot-evm/frontier/blob/2e219e17a526125da003e64ef22ec037917083fa/frame/evm/src/lib.rs#L739 Requirements: - `hotkey` must be a valid hotkey registered on the network, ensuring that the stake is correctly attributed.
Parameters
hotkey (bytes32) The hotkey public key (32 bytes).netuid (uint16) The subnet to stake to (uint16). Currently a noop, functionality will be enabled with RAO.removeStake(bytes32,uint256,uint16)Retiredpayable0x0636c28bRemoves a subtensor stake `amount` from the specified `hotkey`. This function allows external accounts and contracts to unstake TAO from the subtensor pallet, which effectively calls `remove_stake` on the subtensor pallet with specified hotkey as a parameter and coldkey being the hashed address mapping of H160 sender address to Substrate ss58 address as implemented in Frontier HashedAddressMapping: https://github.com/polkadot-evm/frontier/blob/2e219e17a526125da003e64ef22ec037917083fa/frame/evm/src/lib.rs#L739 Requirements: - `hotkey` must be a valid hotkey registered on the network, ensuring that the stake is correctly attributed. - The existing stake amount must be not lower than specified amount
Parameters
hotkey (bytes32) The hotkey public key (32 bytes).amount (uint256) The amount to unstake in rao.netuid (uint16) The subnet to stake to (uint16). Currently a noop, functionality will be enabled with RAO.Data: precompile-abis.v473. Runtime ranges are the spec versions on subtensor’s main branch when an entry first and last appeared, not the block it went live on chain.