subscan
Runtime Modules / Staking
Spec Version:
Storage Functions
Name
Type
HistoryDepth{"origin":"PlainType","plain_type":"u32"}
ValidatorCount{"origin":"PlainType","plain_type":"u32"}
MinimumValidatorCount{"origin":"PlainType","plain_type":"u32"}
Invulnerables{"origin":"PlainType","plain_type":"Vec<AccountId>"}
Bonded{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"AccountId","isLinked":false}}
Ledger{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"StakingLedger<AccountId, BalanceOf>","isLinked":false}}
Payee{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"RewardDestination<AccountId>","isLinked":false}}
Validators{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"ValidatorPrefs","isLinked":false}}
Nominators{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"Nominations<AccountId>","isLinked":false}}
CurrentEra{"origin":"PlainType","plain_type":"EraIndex"}
ActiveEra{"origin":"PlainType","plain_type":"ActiveEraInfo"}
ErasStartSessionIndex{"origin":"MapType","map_type":{"key":"EraIndex","hasher":"Twox64Concat","value":"SessionIndex","isLinked":false}}
ErasStakers{"origin":"DoubleMapType","double_map_type":{"key":"EraIndex","key2":"AccountId","hasher":"Twox64Concat","key2Hasher":"Twox64Concat","value":"Exposure<AccountId, BalanceOf>","isLinked":false}}
ErasStakersClipped{"origin":"DoubleMapType","double_map_type":{"key":"EraIndex","key2":"AccountId","hasher":"Twox64Concat","key2Hasher":"Twox64Concat","value":"Exposure<AccountId, BalanceOf>","isLinked":false}}
ErasValidatorPrefs{"origin":"DoubleMapType","double_map_type":{"key":"EraIndex","key2":"AccountId","hasher":"Twox64Concat","key2Hasher":"Twox64Concat","value":"ValidatorPrefs","isLinked":false}}
ErasValidatorReward{"origin":"MapType","map_type":{"key":"EraIndex","hasher":"Twox64Concat","value":"BalanceOf","isLinked":false}}
ErasRewardPoints{"origin":"MapType","map_type":{"key":"EraIndex","hasher":"Twox64Concat","value":"EraRewardPoints<AccountId>","isLinked":false}}
ErasTotalStake{"origin":"MapType","map_type":{"key":"EraIndex","hasher":"Twox64Concat","value":"BalanceOf","isLinked":false}}
ForceEra{"origin":"PlainType","plain_type":"Forcing"}
SlashRewardFraction{"origin":"PlainType","plain_type":"Perbill"}
CanceledSlashPayout{"origin":"PlainType","plain_type":"BalanceOf"}
UnappliedSlashes{"origin":"MapType","map_type":{"key":"EraIndex","hasher":"Twox64Concat","value":"Vec<UnappliedSlash<AccountId, BalanceOf>>","isLinked":false}}
BondedEras{"origin":"PlainType","plain_type":"Vec<(EraIndex, SessionIndex)>"}
ValidatorSlashInEra{"origin":"DoubleMapType","double_map_type":{"key":"EraIndex","key2":"AccountId","hasher":"Twox64Concat","key2Hasher":"Twox64Concat","value":"(Perbill, BalanceOf)","isLinked":false}}
NominatorSlashInEra{"origin":"DoubleMapType","double_map_type":{"key":"EraIndex","key2":"AccountId","hasher":"Twox64Concat","key2Hasher":"Twox64Concat","value":"BalanceOf","isLinked":false}}
SlashingSpans{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"slashing::SlashingSpans","isLinked":false}}
SpanSlash{"origin":"MapType","map_type":{"key":"(AccountId, slashing::SpanIndex)","hasher":"Twox64Concat","value":"slashing::SpanRecord<BalanceOf>","isLinked":false}}
EarliestUnappliedSlash{"origin":"PlainType","plain_type":"EraIndex"}
SnapshotValidators{"origin":"PlainType","plain_type":"Vec<AccountId>"}
SnapshotNominators{"origin":"PlainType","plain_type":"Vec<AccountId>"}
QueuedElected{"origin":"PlainType","plain_type":"ElectionResult<AccountId, BalanceOf>"}
QueuedScore{"origin":"PlainType","plain_type":"ElectionScore"}
EraElectionStatus{"origin":"PlainType","plain_type":"ElectionStatus<BlockNumber>"}
IsCurrentSessionFinal{"origin":"PlainType","plain_type":"bool"}
PermissionedIdentity{"origin":"MapType","map_type":{"key":"IdentityId","hasher":"Twox64Concat","value":"PermissionedIdentityPrefs","isLinked":false}}
ValidatorCommissionCap{"origin":"PlainType","plain_type":"Perbill"}
MinimumBondThreshold{"origin":"PlainType","plain_type":"BalanceOf"}
SlashingAllowedFor{"origin":"PlainType","plain_type":"SlashingSwitch"}
StorageVersion{"origin":"PlainType","plain_type":"Releases"}
Constants
Name
Type
Value
SessionsPerEraSessionIndex0x06000000
BondingDurationEraIndex0x1c000000
SlashDeferDurationEraIndex0x0e000000
ElectionLookaheadBlockNumber0x96000000
MaxIterationsu320x0a000000
MinSolutionScoreBumpPerbill0x20a10700
MaxNominatorRewardedPerValidatoru320x00080000
MaxValidatorPerIdentityPermill0x10090500
MaxVariableInflationTotalIssuanceBalanceOf0x0080c6a47e8d03000000000000000000
FixedYearlyRewardBalanceOf0x00c0444a547f00000000000000000000
MinimumBondBalanceOf0x40420f00000000000000000000000000
Error Types
Name
Docs
NotController Not a controller account.
NotStash Not a stash account.
AlreadyBonded Stash is already bonded.
AlreadyPaired Controller is already paired.
EmptyTargets Targets cannot be empty.
InvalidSlashIndex Slash record index out of bounds.
InsufficientValue Can not bond with value less than minimum balance.
NoMoreChunks Can not schedule more unlock chunks.
NoUnlockChunk Can not rebond without unlocking chunks.
FundedTarget Attempting to target a stash that still has funds.
InvalidEraToReward Invalid era to reward.
NotSortedAndUnique Items are not sorted and unique.
AlreadyClaimed Rewards for this era have already been claimed for this validator.
OffchainElectionEarlySubmission The submitted result is received out of the open window.
OffchainElectionWeakSubmission The submitted result is not as good as the one stored on chain.
SnapshotUnavailable The snapshot data of the current window is missing.
OffchainElectionBogusWinnerCount Incorrect number of winners were presented.
OffchainElectionBogusWinner One of the submitted winners is not an active candidate on chain (index is out of range in snapshot).
OffchainElectionBogusCompact Error while building the assignment type from the compact. This can happen if an index is invalid, or if the weights _overflow_.
OffchainElectionBogusNominator One of the submitted nominators is not an active nominator on chain.
OffchainElectionBogusNomination One of the submitted nominators has an edge to which they have not voted on chain.
OffchainElectionSlashedNomination One of the submitted nominators has an edge which is submitted before the last non-zero slash of the target.
OffchainElectionBogusSelfVote A self vote must only be originated from a validator to ONLY themselves.
OffchainElectionBogusEdge The submitted result has unknown edges that are not among the presented winners.
OffchainElectionBogusScore The claimed score does not match with the one computed from the data.
OffchainElectionBogusElectionSize The election size is invalid.
CallNotAllowed The call is not allowed at the given time due to restrictions of election period.
IncorrectSlashingSpans Incorrect number of slashing spans provided.
AlreadyExists Permissioned validator already exists.
NotExists Permissioned validator not exists.
NoChange Updates with same value.
InvalidValidatorIdentity Given potential validator identity is invalid.
InvalidValidatorCommission Validator prefs are not in valid range.
StashIdentityNotPermissioned Validator stash identity was not permissioned.
HitIntendedValidatorCount Running validator count hit the intended count.
IntendedCountIsExceedingConsensusLimit When the intended number of validators to run is >= 2/3 of `validator_count`.
BondTooSmall When the amount to be bonded is less than `MinimumBond`
BadState Internal state has become somehow corrupted and the operation cannot continue.