Trait xcm_builder::test_utils::Config
source · pub trait Config {
Show 14 associated items
type Call: Parameter + Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo;
type XcmSender: SendXcm;
type AssetTransactor: TransactAsset;
type OriginConverter: ConvertOrigin<<Self::Call as Dispatchable>::Origin>;
type IsReserve: FilterAssetLocation;
type IsTeleporter: FilterAssetLocation;
type LocationInverter: InvertLocation;
type Barrier: ShouldExecute;
type Weigher: WeightBounds<Self::Call>;
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§
sourcetype Call: Parameter + Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo
type Call: Parameter + Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo
The outer call dispatch type.
sourcetype AssetTransactor: TransactAsset
type AssetTransactor: TransactAsset
How to withdraw and deposit an asset.
sourcetype OriginConverter: ConvertOrigin<<Self::Call as Dispatchable>::Origin>
type OriginConverter: ConvertOrigin<<Self::Call as Dispatchable>::Origin>
How to get a call origin from a OriginKind
value.
sourcetype IsReserve: FilterAssetLocation
type IsReserve: FilterAssetLocation
Combinations of (Location, Asset) pairs which we trust as reserves.
sourcetype IsTeleporter: FilterAssetLocation
type IsTeleporter: FilterAssetLocation
Combinations of (Location, Asset) pairs which we trust as teleporters.
sourcetype LocationInverter: InvertLocation
type LocationInverter: InvertLocation
Means of inverting a location.
sourcetype Barrier: ShouldExecute
type Barrier: ShouldExecute
Whether we should execute the given XCM at all.
sourcetype Weigher: WeightBounds<Self::Call>
type Weigher: WeightBounds<Self::Call>
The means of determining an XCM message’s weight.
sourcetype Trader: WeightTrader
type Trader: WeightTrader
The means of purchasing weight credit for XCM execution.
sourcetype ResponseHandler: OnResponse
type ResponseHandler: OnResponse
What to do when a response of a query is found.
sourcetype AssetTrap: DropAssets
type AssetTrap: DropAssets
The general asset trap - handler for when assets are left in the Holding Register at the end of execution.
sourcetype AssetClaims: ClaimAssets
type AssetClaims: ClaimAssets
The handler for when there is an instruction to claim assets.
sourcetype SubscriptionService: VersionChangeNotifier
type SubscriptionService: VersionChangeNotifier
How we handle version subscription requests.