Type Alias AuthorRewards

Source
pub type AuthorRewards<T: Config> = StorageNMap<_GeneratedPrefixForStorageAuthorRewards<T>, (NMapKey<Blake2_128Concat, BlockNumberFor<T>>, NMapKey<Blake2_128Concat, Author<T>>), AuthorAsset<T>, OptionQuery>;
Expand description

Stores pending rewards for authors by ([BlockNumberFor], Author) key.

  • Enables deferred reward application at the correct block.
  • Supports retrieval of total reward for an author or for a specific timestamp.
  • Value type is AuthorAsset, representing the reward amount.

Storage type is [StorageNMap] with keys type (BlockNumberFor < T >, Author < T >) and value type AuthorAsset < T >.

Aliased Typeยง

pub struct AuthorRewards<T: Config>(/* private fields */);