Trait staging_xcm_executor::Config
source · pub trait Config {
Show 29 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: ContainsPair<Asset, Location>;
type IsTeleporter: ContainsPair<Asset, Location>;
type Aliasers: ContainsPair<Location, Location>;
type UniversalLocation: Get<InteriorLocation>;
type Barrier: ShouldExecute;
type Weigher: WeightBounds<Self::RuntimeCall>;
type Trader: WeightTrader;
type ResponseHandler: OnResponse;
type AssetTrap: DropAssets;
type AssetLocker: AssetLock;
type AssetExchanger: AssetExchange;
type AssetClaims: ClaimAssets;
type SubscriptionService: VersionChangeNotifier;
type PalletInstancesInfo: PalletsInfoAccess;
type MaxAssetsIntoHolding: Get<u32>;
type FeeManager: FeeManager;
type MessageExporter: ExportXcm;
type UniversalAliases: Contains<(Location, Junction)>;
type CallDispatcher: CallDispatcher<Self::RuntimeCall>;
type SafeCallFilter: Contains<Self::RuntimeCall>;
type TransactionalProcessor: ProcessTransaction;
type HrmpNewChannelOpenRequestHandler: HandleHrmpNewChannelOpenRequest;
type HrmpChannelAcceptedHandler: HandleHrmpChannelAccepted;
type HrmpChannelClosingHandler: HandleHrmpChannelClosing;
type XcmRecorder: RecordXcm;
}
Expand description
The trait to parameterize the XcmExecutor
.
Required Associated Types§
sourcetype RuntimeCall: Parameter + Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo
type RuntimeCall: Parameter + Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo
The outer call dispatch type.
sourcetype XcmSender: SendXcm
type XcmSender: SendXcm
How to send an onward XCM message.
The sender is tasked with returning the assets it needs to pay for delivery fees. Only one asset should be returned as delivery fees, any other will be ignored by the executor.
sourcetype AssetTransactor: TransactAsset
type AssetTransactor: TransactAsset
How to withdraw and deposit an asset.
sourcetype OriginConverter: ConvertOrigin<<Self::RuntimeCall as Dispatchable>::RuntimeOrigin>
type OriginConverter: ConvertOrigin<<Self::RuntimeCall as Dispatchable>::RuntimeOrigin>
How to get a call origin from a OriginKind
value.
sourcetype IsReserve: ContainsPair<Asset, Location>
type IsReserve: ContainsPair<Asset, Location>
Combinations of (Asset, Location) pairs which we trust as reserves.
sourcetype IsTeleporter: ContainsPair<Asset, Location>
type IsTeleporter: ContainsPair<Asset, Location>
Combinations of (Asset, Location) pairs which we trust as teleporters.
sourcetype Aliasers: ContainsPair<Location, Location>
type Aliasers: ContainsPair<Location, Location>
A list of (Origin, Target) pairs allowing a given Origin to be substituted with its corresponding Target pair.
sourcetype UniversalLocation: Get<InteriorLocation>
type UniversalLocation: Get<InteriorLocation>
This chain’s Universal Location.
sourcetype Barrier: ShouldExecute
type Barrier: ShouldExecute
Whether we should execute the given XCM at all.
sourcetype Weigher: WeightBounds<Self::RuntimeCall>
type Weigher: WeightBounds<Self::RuntimeCall>
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 AssetLocker: AssetLock
type AssetLocker: AssetLock
Handler for asset locking.
sourcetype AssetExchanger: AssetExchange
type AssetExchanger: AssetExchange
Handler for exchanging assets.
This is used in the executor to swap the asset wanted for fees with the asset needed for delivery fees.
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.
sourcetype PalletInstancesInfo: PalletsInfoAccess
type PalletInstancesInfo: PalletsInfoAccess
Information on all pallets.
sourcetype MaxAssetsIntoHolding: Get<u32>
type MaxAssetsIntoHolding: Get<u32>
The maximum number of assets we target to have in the Holding Register at any one time.
NOTE: In the worse case, the Holding Register may contain up to twice as many assets as this and any benchmarks should take that into account.
sourcetype FeeManager: FeeManager
type FeeManager: FeeManager
Configure the fees.
sourcetype MessageExporter: ExportXcm
type MessageExporter: ExportXcm
The method of exporting a message.
sourcetype UniversalAliases: Contains<(Location, Junction)>
type UniversalAliases: Contains<(Location, Junction)>
The origin locations and specific universal junctions to which they are allowed to elevate themselves.
sourcetype CallDispatcher: CallDispatcher<Self::RuntimeCall>
type CallDispatcher: CallDispatcher<Self::RuntimeCall>
The call dispatcher used by XCM.
XCM will use this to dispatch any calls. When no special call dispatcher is required,
this can be set to the same type as Self::Call
.
sourcetype SafeCallFilter: Contains<Self::RuntimeCall>
type SafeCallFilter: Contains<Self::RuntimeCall>
The safe call filter for Transact
.
Use this type to explicitly whitelist calls that cannot undergo recursion. This is a temporary measure until we properly account for proof size weights for XCM instructions.
sourcetype TransactionalProcessor: ProcessTransaction
type TransactionalProcessor: ProcessTransaction
Transactional processor for XCM instructions.
sourcetype HrmpNewChannelOpenRequestHandler: HandleHrmpNewChannelOpenRequest
type HrmpNewChannelOpenRequestHandler: HandleHrmpNewChannelOpenRequest
Allows optional logic execution for the HrmpNewChannelOpenRequest
XCM notification.
sourcetype HrmpChannelAcceptedHandler: HandleHrmpChannelAccepted
type HrmpChannelAcceptedHandler: HandleHrmpChannelAccepted
Allows optional logic execution for the HrmpChannelAccepted
XCM notification.
sourcetype HrmpChannelClosingHandler: HandleHrmpChannelClosing
type HrmpChannelClosingHandler: HandleHrmpChannelClosing
Allows optional logic execution for the HrmpChannelClosing
XCM notification.
sourcetype XcmRecorder: RecordXcm
type XcmRecorder: RecordXcm
Allows recording the last executed XCM (used by dry-run runtime APIs).