Name | Lookup | Parameters | |
|---|---|---|---|
| force_new_round | 2300 | - | |
| set_inflation | 2301 | 4 | |
| set_max_selected_candidates | 2302 | 1 | |
| set_blocks_per_round | 2303 | 1 | |
| set_max_candidate_stake | 2304 | 1 | |
| force_remove_candidate | 2305 | 1 | |
| join_candidates | 2306 | 1 | |
| init_leave_candidates | 2307 | - | |
| execute_leave_candidates | 2308 | 1 | |
| cancel_leave_candidates | 2309 | - | |
| candidate_stake_more | 230a | 1 | |
| candidate_stake_less | 230b | 1 | |
| join_delegators | 230c | 2 | |
| leave_delegators | 230d | - | |
| delegator_stake_more | 230e | 2 | |
| delegator_stake_less | 230f | 2 | |
| unlock_unstaked | 2310 | 1 | |
| claim_rewards | 2311 | - | |
| increment_collator_rewards | 2312 | - | |
| increment_delegator_rewards | 2313 | - | |
| execute_scheduled_reward_change | 2314 | - |
Name | Lookup | Attributes | |
|---|---|---|---|
| NewRound | 2300 | ["BlockNumberFor","SessionIndex"] | |
| EnteredTopCandidates | 2301 | ["AccountId"] | |
| LeftTopCandidates | 2302 | ["AccountId"] | |
| JoinedCollatorCandidates | 2303 | ["AccountId","BalanceOf"] | |
| CollatorStakedMore | 2304 | ["AccountId","BalanceOf","BalanceOf"] | |
| CollatorStakedLess | 2305 | ["AccountId","BalanceOf","BalanceOf"] | |
| CollatorScheduledExit | 2306 | ["SessionIndex","AccountId","SessionIndex"] | |
| CollatorCanceledExit | 2307 | ["AccountId"] | |
| CandidateLeft | 2308 | ["AccountId","BalanceOf"] | |
| CollatorRemoved | 2309 | ["AccountId","BalanceOf"] | |
| MaxCandidateStakeChanged | 230a | ["BalanceOf"] | |
| DelegatorStakedMore | 230b | ["AccountId","AccountId","BalanceOf","BalanceOf"] | |
| DelegatorStakedLess | 230c | ["AccountId","AccountId","BalanceOf","BalanceOf"] | |
| DelegatorLeft | 230d | ["AccountId","BalanceOf"] | |
| Delegation | 230e | ["AccountId","BalanceOf","AccountId","BalanceOf"] | |
| DelegationReplaced | 230f | ["AccountId","BalanceOf","AccountId","BalanceOf","AccountId","BalanceOf"] | |
| DelegatorLeftCollator | 2310 | ["AccountId","AccountId","BalanceOf","BalanceOf"] | |
| Rewarded | 2311 | ["AccountId","BalanceOf"] | |
| RoundInflationSet | 2312 | ["Perquintill","Perquintill","Perquintill","Perquintill"] | |
| MaxSelectedCandidatesSet | 2313 | ["u32","u32"] | |
| BlocksPerRoundSet | 2314 | ["SessionIndex","BlockNumberFor","BlockNumberFor","BlockNumberFor"] |
Name | Type | |
|---|---|---|
| MaxSelectedCandidates | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| Round | {"origin":"PlainType","plain_type":"parachain_staking:types:RoundInfo","PlainTypeValue":502} | |
| LastDelegation | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"parachain_staking:types:DelegationCounter","keys_id":0,"value_id":503}} | |
| DelegatorState | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"parachain_staking:types:Stake@504","keys_id":0,"value_id":504}} | |
| CandidatePool | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"parachain_staking:types:Candidate","keys_id":0,"value_id":505}} | |
| CounterForCandidatePool | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| TotalCollatorStake | {"origin":"PlainType","plain_type":"parachain_staking:types:TotalStake","PlainTypeValue":511} | |
| TopCandidates | {"origin":"PlainType","plain_type":"Vec<parachain_staking:types:Stake@507>","PlainTypeValue":512} | |
| InflationConfig | {"origin":"PlainType","plain_type":"parachain_staking:inflation:InflationInfo","PlainTypeValue":514} | |
| Unstaking | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"Vec<Tuple:U32U128>","keys_id":0,"value_id":517}} | |
| MaxCollatorCandidateStake | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} | |
| LastRewardReduction | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| RewardCount | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"U32","keys_id":0,"value_id":4}} | |
| Rewards | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}} | |
| ForceNewRound | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":30} |
Name | Type | Value | |
|---|---|---|---|
| MinBlocksPerRound | U32 | 2c010000 | |
| DefaultBlocksPerRound | U32 | 58020000 | |
| StakeDuration | U32 | e0c40000 | |
| ExitQueueDelay | U32 | 02000000 | |
| MinCollators | U32 | 08000000 | |
| MinRequiredCollators | U32 | 04000000 | |
| MaxDelegationsPerRound | U32 | 01000000 | |
| MaxDelegatorsPerCollator | U32 | 28000000 | |
| MaxTopCandidates | U32 | 28000000 | |
| MinCollatorStake | U128 | 0080e03779c311000000000000000000 | |
| MinCollatorCandidateStake | U128 | 0080e03779c311000000000000000000 | |
| MinDelegatorStake | U128 | 00a0724e180900000000000000000000 | |
| CollatorRewardRateDecay | U64 | 0042028c4357050d | |
| MaxUnstakeRequests | U32 | 0a000000 | |
| NetworkRewardStart | U32 | ffffffff | |
| NetworkRewardRate | U64 | 0000000000000000 | |
| TreasuryAccount | AccountId | 6d6f646c70792f74727372790000000000000000000000000000000000000000 |
Name | Docs |
|---|---|
| DelegatorNotFound | The account is not part of the delegators set. |
| CandidateNotFound | The account is not part of the collator candidates set. |
| DelegatorExists | The account is already part of the delegators set. |
| CandidateExists | The account is already part of the collator candidates set. |
| ValStakeZero | The account tried to stake more or less with amount zero. |
| ValStakeBelowMin | The account has not staked enough funds to be added to the collatorcandidates set. |
| ValStakeAboveMax | The account has already staked the maximum amount of funds possible. |
| DelegationBelowMin | The account has not staked enough funds to delegate a collatorcandidate. |
| AlreadyLeaving | The collator candidate has already trigger the process to leave theset of collator candidates. |
| NotLeaving | The collator candidate wanted to execute the exit but has notrequested to leave before by calling `init_leave_candidates`. |
| CannotLeaveYet | The collator tried to leave before waiting at least for`ExitQueueDelay` many rounds. |
| CannotJoinBeforeUnlocking | The account has a full list of unstaking requests and needs tounlock at least one of these before being able to join (again).NOTE: Can only happen if the account was a candidate ordelegator before and either got kicked or exited voluntarily. |
| AlreadyDelegating | The account is already delegating the collator candidate. |
| NotYetDelegating | The account has not delegated any collator candidate yet, hence itis not in the set of delegators. |
| DelegationsPerRoundExceeded | The delegator has exceeded the number of delegations per round whichis equal to MaxDelegatorsPerCollator.This protects against attacks in which a delegator can re-delegatefrom a collator who has already authored a block, to another onewhich has not in this round. |
| TooManyDelegators | The collator candidate has already reached the maximum number ofdelegators.This error is generated in case a new delegation request does notstake enough funds to replace some other existing delegation. |
| TooFewCollatorCandidates | The set of collator candidates would fall below the required minimumif the collator left. |
| CannotStakeIfLeaving | The collator candidate is in the process of leaving the set ofcandidates and cannot perform any other actions in the meantime. |
| CannotDelegateIfLeaving | The collator candidate is in the process of leaving the set ofcandidates and thus cannot be delegated to. |
| MaxCollatorsPerDelegatorExceeded | The delegator has already delegated the maximum number of candidatesallowed. |
| AlreadyDelegatedCollator | The delegator has already previously delegated the collatorcandidate. |
| DelegationNotFound | The given delegation does not exist in the set of delegations. |
| Underflow | The collator delegate or the delegator is trying to un-stake morefunds that are currently staked. |
| CannotSetAboveMax | The number of selected candidates per staking round isabove the maximum value allowed. |
| CannotSetBelowMin | The number of selected candidates per staking round isbelow the minimum value allowed. |
| InvalidSchedule | An invalid inflation configuration is trying to be set. |
| NoMoreUnstaking | The staking reward being unlocked does not exist.Max unlocking requests reached. |
| TooEarly | The reward rate cannot be adjusted yet as an entire year has notpassed. |
| StakeNotFound | Provided staked value is zero. Should never be thrown. |
| UnstakingIsEmpty | Cannot unlock when Unstaked is empty. |
| RewardsNotFound | Cannot claim rewards if empty. |
| TreasuryBalanceInsufficient | Treasury balance is insufficient for the operation. |
| TreasuryTransferFailed | Failed to transfer from treasury. |