pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type CustomMetadata: Parameter + Member + TypeInfo + MaxEncodedLen;
    type AssetId: Parameter + Member + Default + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen;
    type AuthorityOrigin: EnsureOriginWithArg<Self::RuntimeOrigin, Option<Self::AssetId>>;
    type AssetProcessor: AssetProcessor<Self::AssetId, AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>;
    type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaxEncodedLen;
    type StringLimit: Get<u32>;
    type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait.

Required Associated Types§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

source

type CustomMetadata: Parameter + Member + TypeInfo + MaxEncodedLen

Additional non-standard metadata to store for each asset

source

type AssetId: Parameter + Member + Default + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen

The type used as a unique asset id,

source

type AuthorityOrigin: EnsureOriginWithArg<Self::RuntimeOrigin, Option<Self::AssetId>>

Checks that an origin has the authority to register/update an asset

source

type AssetProcessor: AssetProcessor<Self::AssetId, AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>

A filter ran upon metadata registration that assigns an is and potentially modifies the supplied metadata.

source

type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaxEncodedLen

The balance type.

source

type StringLimit: Get<u32>

The maximum length of a name or symbol.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this module.

Implementors§