Type Alias ReasonValue

Source
pub type ReasonValue<T: Config<I>, I: 'static = ()> = StorageMap<_GeneratedPrefixForStorageReasonValue<T, I>, Blake2_128Concat, CommitReason<T, I>, AssetOf<T, I>, OptionQuery>;
Expand description

Tracks the total committed asset value for a specific CommitReason.

This storage sums up all committed amounts (total asset-circulation) across all digests and variants for a given reason.

Unlike digest-level or variant-level tracking, ReasonValue provides an aggregated view of total assets committed under a specific reason, which simplifies monitoring, accounting, and reporting of the total exposure.

This includes assets scheduled to be issued (AssetToIssue), as newly minted value is reflected within commitments. However, it excludes assets scheduled to be reaped (AssetToReap), as those are pending removal and not considered part of the effective committed value.

Storage type is [StorageMap] with key type CommitReason < T, I > and value type AssetOf < T, I >.

Aliased Typeยง

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