Trait xcm_executor::Config

source ·
pub trait Config {
Show 14 associated items type RuntimeCall: Parameter + Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo; type XcmSender: SendXcm; type AssetTransactor: TransactAsset; type OriginConverter: ConvertOrigin<<Self::RuntimeCall as Dispatchable>::RuntimeOrigin>; type IsReserve: FilterAssetLocation; type IsTeleporter: FilterAssetLocation; type LocationInverter: InvertLocation; type Barrier: ShouldExecute; type Weigher: WeightBounds<Self::RuntimeCall>; type Trader: WeightTrader; type ResponseHandler: OnResponse; type AssetTrap: DropAssets; type AssetClaims: ClaimAssets; type SubscriptionService: VersionChangeNotifier;
}
Expand description

The trait to parameterize the XcmExecutor.

Required Associated Types§

source

type RuntimeCall: Parameter + Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo

The outer call dispatch type.

source

type XcmSender: SendXcm

How to send an onward XCM message.

source

type AssetTransactor: TransactAsset

How to withdraw and deposit an asset.

source

type OriginConverter: ConvertOrigin<<Self::RuntimeCall as Dispatchable>::RuntimeOrigin>

How to get a call origin from a OriginKind value.

source

type IsReserve: FilterAssetLocation

Combinations of (Location, Asset) pairs which we trust as reserves.

source

type IsTeleporter: FilterAssetLocation

Combinations of (Location, Asset) pairs which we trust as teleporters.

source

type LocationInverter: InvertLocation

Means of inverting a location.

source

type Barrier: ShouldExecute

Whether we should execute the given XCM at all.

source

type Weigher: WeightBounds<Self::RuntimeCall>

The means of determining an XCM message’s weight.

source

type Trader: WeightTrader

The means of purchasing weight credit for XCM execution.

source

type ResponseHandler: OnResponse

What to do when a response of a query is found.

source

type AssetTrap: DropAssets

The general asset trap - handler for when assets are left in the Holding Register at the end of execution.

source

type AssetClaims: ClaimAssets

The handler for when there is an instruction to claim assets.

source

type SubscriptionService: VersionChangeNotifier

How we handle version subscription requests.

Implementors§