Module pallet_staking::pallet [−][src]
Structs
Can be used to configure the genesis state of this pallet.
The pallet implementing the on-chain logic.
Enums
Contains one variant per dispatchable that can be called by an extrinsic.
Custom dispatch errors of this pallet.
The event emitted by this pallet.
Traits
Configuration trait of this pallet.
Type Definitions
The active era information, it holds index and start.
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).
A tracker to keep count of the number of items in the Nominators
map.
A tracker to keep count of the number of items in the Validators
map.
The current era index.
The last planned session scheduled by the session pallet.
Rewards for the last HISTORY_DEPTH
eras.
If reward hasn’t been set or has been removed then 0 reward is returned.
Exposure of validator at era.
Clipped Exposure of validator at era.
The session index at which the era start for the last HISTORY_DEPTH
eras.
The total amount staked for the last HISTORY_DEPTH
eras.
If total hasn’t been set or has been removed then 0 stake is returned.
Similar to ErasStakers
, this holds the preferences of validators.
The total validator era payout for the last HISTORY_DEPTH
eras.
Mode of era forcing.
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.
Map from all (unlocked) “controller” accounts to the info regarding the staking.
The maximum nominator count before we stop allowing new validators to join.
The maximum validator count before we stop allowing new validators to join.
The minimum active bond to become and maintain the role of a nominator.
The minimum active bond to become and maintain the role of a validator.
Minimum number of staking participants before emergency conditions are imposed.
Type alias to Pallet
, to be used by construct_runtime
.
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 percentage of the slash that is distributed to reporters.
All unapplied slashes that are queued for later.
The ideal number of staking participants.
The map from (wannabe) validator stash key to the preferences of that validator.