Modules

Structs

  • AllEpochConfig manages protocol configs that might be changing throughout epochs (hence EpochConfig). The main function in AllEpochConfig is ::for_protocol_version which takes a protocol version and returns the EpochConfig that should be used for this protocol version.
  • Information per each block.
  • Epoch config, determines validator assignment for given epoch. Can change from epoch to epoch depending on the sharding and other parameters, etc.
  • Information per epoch.
  • Additional configuration parameters for the new validator selection algorithm. See https://github.com/near/NEPs/pull/167 for details.

Enums

  • State that a slashed validator can be in.

Constants

Type Definitions