Module types

Source
Expand description

Types for the Capacity Pallet

Structs§

CapacityDetails
The type for storing Registered Provider Capacity balance:
EpochInfo
The type for storing details about an epoch. May evolve to store other needed data such as epoch_end.
ProviderBoostHistory
A record of staked amounts for a complete RewardEra
RetargetInfo
Struct with utilities for storing and updating unlock chunks
RewardEraInfo
The information needed to track a Reward Era
RewardPoolHistoryChunk
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.
StakingDetails
The type used for storing information about staking details.
StakingTargetDetails
Details about the total token amount targeted to an MSA. The Capacity that the target will receive.
UnlockChunk
The type that is used to record a single request for a number of tokens to be unlocked.

Enums§

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

Constants§

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

Traits§

ProviderBoostRewardsProvider
A trait that provides the Economic Model for Provider Boosting.

Functions§

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

Type Aliases§

UnlockChunkList
A BoundedVec containing UnlockChunks