Type Alias pallet_assets::pallet::NextAssetId

source ·
pub type NextAssetId<T: Config<I>, I: 'static = ()> = StorageValue<_GeneratedPrefixForStorageNextAssetId<T, I>, T::AssetId, OptionQuery>;
Expand description

The asset ID enforced for the next asset creation, if any present. Otherwise, this storage item has no effect.

This can be useful for setting up constraints for IDs of the new assets. For example, by providing an initial NextAssetId and using the crate::AutoIncAssetId callback, an auto-increment model can be applied to all new asset IDs.

The initial next asset ID can be set using the GenesisConfig or the SetNextAssetId migration.

Storage type is [StorageValue] with value type T :: AssetId.

Aliased Type§

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