Trait pallet_moonbeam_foreign_assets::pallet::Config
source · pub trait Config: Config + Config {
type AccountIdToH160: Convert<Self::AccountId, H160>;
type AssetIdFilter: Contains<AssetId>;
type EvmRunner: Runner<Self>;
type ForeignAssetCreatorOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type ForeignAssetFreezerOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type ForeignAssetModifierOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type ForeignAssetUnfreezerOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type OnForeignAssetCreated: ForeignAssetCreatedHook<Location>;
type MaxForeignAssets: Get<u32>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type WeightInfo: WeightInfo;
type XcmLocationToH160: ConvertLocation<H160>;
}
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 AccountIdToH160: Convert<Self::AccountId, H160>
sourcetype AssetIdFilter: Contains<AssetId>
type AssetIdFilter: Contains<AssetId>
A filter to forbid some AssetId values, if you don’t use it, put “Everything”
sourcetype ForeignAssetCreatorOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ForeignAssetCreatorOrigin: EnsureOrigin<Self::RuntimeOrigin>
Origin that is allowed to create a new foreign assets
sourcetype ForeignAssetFreezerOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ForeignAssetFreezerOrigin: EnsureOrigin<Self::RuntimeOrigin>
Origin that is allowed to freeze all tokens of a foreign asset
sourcetype ForeignAssetModifierOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ForeignAssetModifierOrigin: EnsureOrigin<Self::RuntimeOrigin>
Origin that is allowed to modify asset information for foreign assets
sourcetype ForeignAssetUnfreezerOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ForeignAssetUnfreezerOrigin: EnsureOrigin<Self::RuntimeOrigin>
Origin that is allowed to unfreeze all tokens of a foreign asset that was previously frozen
sourcetype OnForeignAssetCreated: ForeignAssetCreatedHook<Location>
type OnForeignAssetCreated: ForeignAssetCreatedHook<Location>
Hook to be called when new foreign asset is registered.
sourcetype MaxForeignAssets: Get<u32>
type MaxForeignAssets: Get<u32>
Maximum nulmbers of differnt foreign assets
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.