referrerpolicy=no-referrer-when-downgrade

Crate sp_staking

source ·
Expand description

A crate which contains primitives that are useful for implementation that uses staking approaches in general. Definitions related to sessions, slashing, etc go here.

Modules§

  • Common traits and types that are useful for describing offences for usage in environments that use staking.

Macros§

Structs§

  • A type that belongs only in the context of an Agent.
  • A type that belongs only in the context of a Delegator.
  • A snapshot of the stake backing a single validator in the system.
  • A snapshot of the stake backing a single validator in the system.
  • The amount of exposure for an era that an individual nominator has (susceptible to slashing).
  • Metadata for Paged Exposure of a validator such as total stake across pages and page count.
  • A struct that reflects stake that an account has in the staking system. Provides a set of methods to operate on it’s properties. Aimed at making StakingInterface more concise.

Enums§

  • Representation of the status of a staker.
  • Representation of a staking account, which may be a stash or controller account.

Traits§

Type Aliases§

  • Counter for the number of eras that have passed.
  • Type for identifying a page.
  • Simple index type with which we can count sessions.