Trait orml_asset_registry::module::Config
source · 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§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
sourcetype CustomMetadata: Parameter + Member + TypeInfo + MaxEncodedLen
type CustomMetadata: Parameter + Member + TypeInfo + MaxEncodedLen
Additional non-standard metadata to store for each asset
sourcetype AssetId: Parameter + Member + Default + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen
type AssetId: Parameter + Member + Default + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen
The type used as a unique asset id,
sourcetype AuthorityOrigin: EnsureOriginWithArg<Self::RuntimeOrigin, Option<Self::AssetId>>
type AuthorityOrigin: EnsureOriginWithArg<Self::RuntimeOrigin, Option<Self::AssetId>>
Checks that an origin has the authority to register/update an asset
sourcetype AssetProcessor: AssetProcessor<Self::AssetId, AssetMetadata<Self::Balance, Self::CustomMetadata, Self::StringLimit>>
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.
sourcetype Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaxEncodedLen
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaxEncodedLen
The balance type.
sourcetype StringLimit: Get<u32>
type StringLimit: Get<u32>
The maximum length of a name or symbol.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this module.