Trait pallet_xcm::pallet::Config

source ·
pub trait Config: Config {
Show 14 associated items type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type SendXcmOrigin: EnsureOrigin<<Self as SysConfig>::RuntimeOrigin, Success = MultiLocation>; type XcmRouter: SendXcm; type ExecuteXcmOrigin: EnsureOrigin<<Self as SysConfig>::RuntimeOrigin, Success = MultiLocation>; type XcmExecuteFilter: Contains<(MultiLocation, Xcm<<Self as SysConfig>::RuntimeCall>)>; type XcmExecutor: ExecuteXcm<<Self as SysConfig>::RuntimeCall>; type XcmTeleportFilter: Contains<(MultiLocation, Vec<MultiAsset>)>; type XcmReserveTransferFilter: Contains<(MultiLocation, Vec<MultiAsset>)>; type Weigher: WeightBounds<<Self as SysConfig>::RuntimeCall>; type LocationInverter: InvertLocation; type RuntimeOrigin: From<Origin> + From<<Self as SysConfig>::RuntimeOrigin>; type RuntimeCall: Parameter + GetDispatchInfo + IsType<<Self as Config>::RuntimeCall> + Dispatchable<RuntimeOrigin = <Self as Config>::RuntimeOrigin, PostInfo = PostDispatchInfo>; type AdvertisedXcmVersion: Get<XcmVersion>; const VERSION_DISCOVERY_QUEUE_SIZE: u32;
}
Expand description

The module configuration trait.

Required Associated Types§

source

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

The overarching event type.

source

type SendXcmOrigin: EnsureOrigin<<Self as SysConfig>::RuntimeOrigin, Success = MultiLocation>

Required origin for sending XCM messages. If successful, it resolves to MultiLocation which exists as an interior location within this chain’s XCM context.

source

type XcmRouter: SendXcm

The type used to actually dispatch an XCM to its destination.

source

type ExecuteXcmOrigin: EnsureOrigin<<Self as SysConfig>::RuntimeOrigin, Success = MultiLocation>

Required origin for executing XCM messages, including the teleport functionality. If successful, then it resolves to MultiLocation which exists as an interior location within this chain’s XCM context.

source

type XcmExecuteFilter: Contains<(MultiLocation, Xcm<<Self as SysConfig>::RuntimeCall>)>

Our XCM filter which messages to be executed using XcmExecutor must pass.

source

type XcmExecutor: ExecuteXcm<<Self as SysConfig>::RuntimeCall>

Something to execute an XCM message.

source

type XcmTeleportFilter: Contains<(MultiLocation, Vec<MultiAsset>)>

Our XCM filter which messages to be teleported using the dedicated extrinsic must pass.

source

type XcmReserveTransferFilter: Contains<(MultiLocation, Vec<MultiAsset>)>

Our XCM filter which messages to be reserve-transferred using the dedicated extrinsic must pass.

source

type Weigher: WeightBounds<<Self as SysConfig>::RuntimeCall>

Means of measuring the weight consumed by an XCM message locally.

source

type LocationInverter: InvertLocation

Means of inverting a location.

source

type RuntimeOrigin: From<Origin> + From<<Self as SysConfig>::RuntimeOrigin>

The outer Origin type.

source

type RuntimeCall: Parameter + GetDispatchInfo + IsType<<Self as Config>::RuntimeCall> + Dispatchable<RuntimeOrigin = <Self as Config>::RuntimeOrigin, PostInfo = PostDispatchInfo>

The outer Call type.

source

type AdvertisedXcmVersion: Get<XcmVersion>

The latest supported version that we advertise. Generally just set it to pallet_xcm::CurrentXcmVersion.

Required Associated Constants§

Implementors§