Type Alias polkadot_runtime_common::slots::pallet::Leases
source · pub type Leases<T: Config> = StorageMap<_GeneratedPrefixForStorageLeases<T>, Twox64Concat, Id, Vec<Option<(T::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance)>>, ValueQuery>;
Expand description
Amounts held on deposit for each (possibly future) leased parachain.
The actual amount locked on its behalf by any account at any time is the maximum of the second values of the items in this list whose first value is the account.
The first item in the list is the amount locked for the current Lease Period. Following items are for the subsequent lease periods.
The default value (an empty list) implies that the parachain no longer exists (or never existed) as far as this pallet is concerned.
If a parachain doesn’t exist yet but is scheduled to exist in the future, then it
will be left-padded with one or more None
s to denote the fact that nothing is held on
deposit for the non-existent chain currently, but is held at some point in the future.
It is illegal for a None
value to trail in the list.
Storage type is [StorageMap
] with key type ParaId
and value type Vec < Option < (T :: AccountId, BalanceOf < T >) > >
.
Aliased Type§
struct Leases<T: Config>(/* private fields */);