Module pallet_capacity::types

source ·
Expand description

Types for the Capacity Pallet

Structs

  • The type for storing Registered Provider Capacity balance:
  • The type for storing details about an epoch. May evolve to store other needed data such as epoch_end.
  • A record of staked amounts for a complete RewardEra
  • Struct with utilities for storing and updating unlock chunks
  • The information needed to track a Reward Era
  • A chunk of Reward Pool history items consists of a BoundedBTreeMap, RewardEra is the key and the total stake for the RewardPool is the value. the map has up to T::RewardPoolChunkLength items, however, the chunk storing the current era has only that one.
  • The type used for storing information about staking details.
  • Details about the total token amount targeted to an MSA. The Capacity that the target will receive.
  • The type that is used to record a single request for a number of tokens to be unlocked.

Enums

  • The type of staking a given Staking Account is doing.

Constants

  • How much, as a percentage of staked token, to boost a targeted Provider when staking. this value should be between 0 and 100

Traits

Functions

  • Deletes thawed chunks Caller is responsible for updating free/locked balance on the token account. Returns: the total amount reaped from unlocking
  • Computes and returns the total token held in an UnlockChunkList.

Type Aliases