pub type Delegators<T: Config> = CountedStorageMap<_GeneratedPrefixForStorageDelegators<T>, Twox64Concat, T::AccountId, Delegation<T>, OptionQuery>;
Expand description
Map of Delegators to their Delegation
.
Implementation note: We are not using a double map with delegator
and agent
account
as keys since we want to restrict delegators to delegate only to one account at a time.
Storage type is [CountedStorageMap
] with key type T :: AccountId and value type Delegation < T >.
Aliased Type§
struct Delegators<T: Config>(/* private fields */);