Type Alias BalanceSnapShots

Source
pub type BalanceSnapShots<T: Config<I>, I: 'static = ()> = StorageNMap<_GeneratedPrefixForStorageBalanceSnapShots<T, I>, (NMapKey<Blake2_128Concat, Digest<T>>, NMapKey<Blake2_128Concat, T::Position>, NMapKey<Blake2_128Concat, T::Time>), VirtualSnapShot<T, I>, OptionQuery>;
Expand description

Snapshot storage for LazyBalance state.

When a balance needs to capture and store its current state for later queries, a snapshot is recorded here.

Used by plugin families implementing LazyBalanceRoot via Config::BalanceFamily to support snapshot-based, lazy resolution.

This is the concrete storage backing the VirtualNMap used by LazyBalance.

Each snapshot is indexed by:

  • Digest: the balance identifier (linked to a commitment reason)
  • Position: the balance position (see Config::Position)
  • Time: the snapshot time (typically a counter)

Storage type is [StorageNMap] with keys type (Digest < T >, T :: Position, T :: Time) and value type VirtualSnapShot < T, I >.

Aliased Typeยง

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