Trait pallet_xcm::pallet::Config
source · pub trait Config: Config {
Show 14 associated items
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type SendXcmOrigin: EnsureOrigin<<Self as SysConfig>::Origin, Success = MultiLocation>;
type XcmRouter: SendXcm;
type ExecuteXcmOrigin: EnsureOrigin<<Self as SysConfig>::Origin, Success = MultiLocation>;
type XcmExecuteFilter: Contains<(MultiLocation, Xcm<<Self as SysConfig>::Call>)>;
type XcmExecutor: ExecuteXcm<<Self as SysConfig>::Call>;
type XcmTeleportFilter: Contains<(MultiLocation, Vec<MultiAsset>)>;
type XcmReserveTransferFilter: Contains<(MultiLocation, Vec<MultiAsset>)>;
type Weigher: WeightBounds<<Self as SysConfig>::Call>;
type LocationInverter: InvertLocation;
type Origin: From<Origin> + From<<Self as SysConfig>::Origin>;
type Call: Parameter + GetDispatchInfo + IsType<<Self as Config>::Call> + Dispatchable<Origin = <Self as Config>::Origin, PostInfo = PostDispatchInfo>;
type AdvertisedXcmVersion: Get<XcmVersion>;
const VERSION_DISCOVERY_QUEUE_SIZE: u32;
}
Expand description
The module configuration trait.
Required Associated Types§
sourcetype SendXcmOrigin: EnsureOrigin<<Self as SysConfig>::Origin, Success = MultiLocation>
type SendXcmOrigin: EnsureOrigin<<Self as SysConfig>::Origin, 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.
sourcetype ExecuteXcmOrigin: EnsureOrigin<<Self as SysConfig>::Origin, Success = MultiLocation>
type ExecuteXcmOrigin: EnsureOrigin<<Self as SysConfig>::Origin, 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.
sourcetype XcmExecuteFilter: Contains<(MultiLocation, Xcm<<Self as SysConfig>::Call>)>
type XcmExecuteFilter: Contains<(MultiLocation, Xcm<<Self as SysConfig>::Call>)>
Our XCM filter which messages to be executed using XcmExecutor
must pass.
sourcetype XcmExecutor: ExecuteXcm<<Self as SysConfig>::Call>
type XcmExecutor: ExecuteXcm<<Self as SysConfig>::Call>
Something to execute an XCM message.
sourcetype XcmTeleportFilter: Contains<(MultiLocation, Vec<MultiAsset>)>
type XcmTeleportFilter: Contains<(MultiLocation, Vec<MultiAsset>)>
Our XCM filter which messages to be teleported using the dedicated extrinsic must pass.
sourcetype XcmReserveTransferFilter: Contains<(MultiLocation, Vec<MultiAsset>)>
type XcmReserveTransferFilter: Contains<(MultiLocation, Vec<MultiAsset>)>
Our XCM filter which messages to be reserve-transferred using the dedicated extrinsic must pass.
sourcetype Weigher: WeightBounds<<Self as SysConfig>::Call>
type Weigher: WeightBounds<<Self as SysConfig>::Call>
Means of measuring the weight consumed by an XCM message locally.
sourcetype LocationInverter: InvertLocation
type LocationInverter: InvertLocation
Means of inverting a location.
sourcetype Call: Parameter + GetDispatchInfo + IsType<<Self as Config>::Call> + Dispatchable<Origin = <Self as Config>::Origin, PostInfo = PostDispatchInfo>
type Call: Parameter + GetDispatchInfo + IsType<<Self as Config>::Call> + Dispatchable<Origin = <Self as Config>::Origin, PostInfo = PostDispatchInfo>
The outer Call
type.
sourcetype AdvertisedXcmVersion: Get<XcmVersion>
type AdvertisedXcmVersion: Get<XcmVersion>
The latest supported version that we advertise. Generally just set it to
pallet_xcm::CurrentXcmVersion
.