Type Alias pallet_staking::ErasStakers
source · pub type ErasStakers<T: Config> = StorageDoubleMap<_GeneratedPrefixForStorageErasStakers<T>, Twox64Concat, EraIndex, Twox64Concat, T::AccountId, Exposure<T::AccountId, BalanceOf<T>>, ValueQuery>;
Expand description
Exposure of validator at era.
This is keyed first by the era index to allow bulk deletion and then the stash account.
Is it removed after Config::HistoryDepth
eras.
If stakers hasn’t been set or has been removed then empty exposure is returned.
Note: Deprecated since v14. Use EraInfo
instead to work with exposures.
Storage type is [StorageDoubleMap
] with key1 type EraIndex, key2 type T :: AccountId and value type Exposure < T :: AccountId, BalanceOf < T > >.
Aliased Type§
struct ErasStakers<T: Config>(/* private fields */);