Type Alias PoolMap

Source
pub type PoolMap<T: Config<I>, I: 'static = ()> = StorageNMap<_GeneratedPrefixForStoragePoolMap<T, I>, (NMapKey<Blake2_128Concat, CommitReason<T, I>>, NMapKey<Blake2_128Concat, PoolDigest<T>>), PoolInfo<T, I>, OptionQuery>;
Expand description

Stores pool-level information associated with a specific CommitReason.

§Key Structure:

(CommitReason, PoolDigest) -> PoolInfo

§Purpose:

  • Represents a composite pool of multiple slots, each corresponding to one or more underlying commitments, entries, or digests.
  • Provides aggregation of collective commitment state, total capital, and operational parameters such as commission.

§Notes:

  • Used together with PoolManager for management and operational control.

Storage type is [StorageNMap] with keys type (CommitReason < T, I >, PoolDigest < T >) and value type PoolInfo < T, I >.

Aliased Type§

pub struct PoolMap<T: Config<I>, I: 'static = ()>(/* private fields */);