Expand description
Functions§
- claim_
bonus_ reward - Used to claim bonus reward for a smart contract, if eligible.
- claim_
bonus_ reward_ for - Used to claim bonus reward for a smart contract on behalf of the specified account, if eligible.
- claim_
dapp_ reward - Used to claim dApp reward for the specified era.
- claim_
staker_ rewards - Claims some staker rewards, if user has any. In the case of a successful call, at least one era will be claimed, with the possibility of multiple claims happening.
- claim_
staker_ rewards_ for - Claims some staker rewards for the specified account, if they have any. In the case of a successful call, at least one era will be claimed, with the possibility of multiple claims happening.
- claim_
unlocked - Claims all of fully unlocked chunks, removing the lock from them.
- cleanup_
expired_ entries - Cleanup expired stake entries for the contract.
- force
- Used to force a change of era or subperiod. The effect isn’t immediate but will happen on the next block.
- lock
- Locks additional funds into dApp staking.
- maintenance_
mode - Used to enable or disable maintenance mode. Can only be called by manager origin.
- move_
stake - Transfers stake between two smart contracts, ensuring bonus status preservation if eligible.
Emits a
StakeMovedevent. - register
- Used to register a new contract for dApp staking.
- relock_
unlocking - Warning: Doc-Only
- set_
dapp_ owner - Used to change dApp owner.
- set_
dapp_ reward_ beneficiary - Used to modify the reward beneficiary account for a dApp.
- set_
static_ tier_ params - Used to set static tier parameters, which are used to calculate tier configuration. Tier configuration defines tier entry threshold values, number of slots, and reward portions.
- stake
- Stake the specified amount on a smart contract.
The precise
amountspecified must be available for staking. The total amount staked on a dApp must be greater than the minimum required value. - unbond_
and_ unstake - Wrapper around legacy-like
unbond_and_unstake. - unlock
- Attempts to start the unlocking process for the specified amount.
- unregister
- Unregister dApp from dApp staking protocol, making it ineligible for future rewards. This doesn’t remove the dApp completely from the system just yet, but it can no longer be used for staking.
- unstake
- Unstake the specified amount from a smart contract.
The
amountspecified must not exceed what’s staked, otherwise the call will fail. - unstake_
from_ unregistered - Used to unstake funds from a contract that was unregistered after an account staked on it. This is required if staker wants to re-stake these funds on another active contract during the ongoing period.
- withdraw_
unbonded - Wrapper around legacy-like
withdraw_unbonded.