Expand description

The module that hosts all the FRAME types needed to add this pallet to a runtime.

Re-exports

pub use __tt_default_parts_6 as tt_default_parts;

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.

Functions

Type Definitions

The active era information, it holds index and start.

Map from all locked “stash” accounts to the controller account.

A mapping from still-bonded eras to the first session index of that era.

The amount of currency given to reporters of a slash event which was canceled by extraordinary circumstances (e.g. governance).

The threshold for when users can start calling chill_other for other validators / nominators. The threshold is compared to the actual number of validators / nominators (CountFor*) in the system compared to the configured max (Max*Count).

The current era index.

The last planned session scheduled by the session pallet.

The earliest era for which we have a pending, unapplied slash.

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.

Number of eras to keep in history.

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.

Total KTON in pool.

Map from all (unlocked) “controller” accounts to the info regarding the staking.

The chain’s running time form genesis in milliseconds, use for calculate darwinia era payout

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 amount of commission that validators can set.

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.

ModuleDeprecated

Type alias to Pallet, to be used by construct_runtime.

All slashing events on nominators, mapped by era to the highest slash value of the era.

The map from nominator stash key to the set of stash keys of all validators to nominate.

Indices of validators that have offended in the active era and whether they are currently disabled.

Where the reward payment should be made. Keyed by stash.

The percentage of the total payout that is distributed to validators and nominators

Total RING in pool.

The percentage of the slash that is distributed to reporters.

Slashing spans for stash accounts.

Records information about the maximum slash of a stash within a slashing span, as well as how much reward has been paid out.

True if network has been upgraded to this version. Storage version of the pallet.

All unapplied slashes that are queued for later.

The ideal number of staking participants.

All slashing events on validators, mapped by era to the highest slash proportion and slash value of the era.

The map from (wannabe) validator stash key to the preferences of that validator.