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

  • Enable/disable the given code depending on feature = "runtime-benchmarks" being enabled for the crate or not.

Structs

  • 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

Traits

Type Definitions

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