Helpers for offchain worker election.
A slashing implementation for NPoS systems.
Autogenerated weights for pallet_staking
The active era information, it holds index and start.
Information regarding the active era (era in used in session).
Map from all locked “stash” accounts to the controller account.
The amount of currency given to reporters of a slash event which was canceled by extraordinary circumstances (e.g. governance).
The current era index.
The result of an election round.
Some indications about the size of the election. This must be submitted with the solution.
Flag to control the execution of the offchain election. When
Reward points of an era. Used to split era total payout between validators.
Accumulated balances for the last
Rewards for the last
Exposure of validator at era.
Clipped Exposure of validator at era.
The session index at which the era start for the last
The total amount staked for the last
The total validator era payout for the last
A snapshot of the stake backing a single validator in the system.
A typed conversion from stash account ID to the active exposure of nominators on that account.
Filter historical offences out and only allow those from the bonding period.
Mode of era forcing.
Genesis config for the module, allow to build genesis storage.
The amount of exposure (to slashing) than an individual nominator has.
Any validators that may never be slashed or forcibly kicked. It’s a Vec since they’re easy to initialize and the performance hit is minimal (we expect no more than four invulnerables) and restricted to testnets.
True if the current planned session is final. Note that this does not take era forcing into account.
Map from all (unlocked) “controller” accounts to the info regarding the staking.
Minimum number of staking participants before emergency conditions are imposed.
A record of the nominations made by a specific account.
The map from nominator stash key to the set of stash keys of all validators to nominate.
Where the reward payment should be made. Keyed by stash.
The next validator set. At the end of an era, if this is available (potentially from the result of an offchain worker), it is immediately used. Otherwise, the on-chain election is executed.
The score of the current
The percentage of the slash that is distributed to reporters.
Snapshot of nominators at the beginning of the current election window. This should only
have a value when
Snapshot of validators at the beginning of the current election window. This should only
have a value when
The ledger of a (bonded) stash.
A pending slash record. The value of the slash has been computed but not applied yet, rather deferred for several eras.
All unapplied slashes that are queued for later.
Just a Balance/BlockNumber tuple to encode when a chunk of funds will be unlocked.
The ideal number of staking participants.
Preference of what happens regarding validation.
The map from (wannabe) validator stash key to the preferences of that validator.
Indicate how an election round was computed.
The status of the upcoming (offchain) election.
Error for the staking module.
Mode of era-forcing.
Events for this module.
A destination account for payment.
Indicates the initial status of the staker.
Means for interacting with a specialized version of the
The balance type of this module.
Accuracy used for on-chain election.
Counter for the number of eras that have passed.
Data type used to index nominators in the compact type
Accuracy used for off-chain election. This better be small.
Counter for the number of “reward” points earned by a given validator.
Data type used to index validators in the compact type.