Type Alias pallet_nis::pallet::QueueTotals
source · pub type QueueTotals<T: Config> = StorageValue<_GeneratedPrefixForStorageQueueTotals<T>, BoundedVec<(u32, <<T as Config>::Currency as FunInspect<<T as Config>::AccountId>>::Balance), <T as Config>::QueueCount>, ValueQuery, OnEmptyQueueTotals<T>>;
Expand description
The totals of items and balances within each queue. Saves a lot of storage reads in the case of sparsely packed queues.
The vector is indexed by duration in Period
s, offset by one, so information on the queue
whose duration is one Period
would be storage 0
.
Storage type is [StorageValue
] with value type QueueTotalsTypeOf < T >
.
Aliased Type§
struct QueueTotals<T: Config>(/* private fields */);