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§

source

type AccountIdToH160: Convert<Self::AccountId, H160>

source

type AssetIdFilter: Contains<AssetId>

A filter to forbid some AssetId values, if you don’t use it, put “Everything”

source

type EvmRunner: Runner<Self>

EVM runner

source

type ForeignAssetCreatorOrigin: EnsureOrigin<Self::RuntimeOrigin>

Origin that is allowed to create a new foreign assets

source

type ForeignAssetFreezerOrigin: EnsureOrigin<Self::RuntimeOrigin>

Origin that is allowed to freeze all tokens of a foreign asset

source

type ForeignAssetModifierOrigin: EnsureOrigin<Self::RuntimeOrigin>

Origin that is allowed to modify asset information for foreign assets

source

type ForeignAssetUnfreezerOrigin: EnsureOrigin<Self::RuntimeOrigin>

Origin that is allowed to unfreeze all tokens of a foreign asset that was previously frozen

source

type OnForeignAssetCreated: ForeignAssetCreatedHook<Location>

Hook to be called when new foreign asset is registered.

source

type MaxForeignAssets: Get<u32>

Maximum nulmbers of differnt foreign assets

source

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

The overarching event type.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type XcmLocationToH160: ConvertLocation<H160>

Object Safety§

This trait is not object safe.

Implementors§