referrerpolicy=no-referrer-when-downgrade

Trait pallet_xcm::pallet::Config

source ·
pub trait Config: Config {
Show 23 associated items type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type Currency: LockableCurrency<Self::AccountId, Moment = BlockNumberFor<Self>>; type CurrencyMatcher: MatchesFungible<BalanceOf<Self>>; type SendXcmOrigin: EnsureOrigin<<Self as SysConfig>::RuntimeOrigin, Success = Location>; type XcmRouter: SendXcm; type ExecuteXcmOrigin: EnsureOrigin<<Self as SysConfig>::RuntimeOrigin, Success = Location>; type XcmExecuteFilter: Contains<(Location, Xcm<<Self as Config>::RuntimeCall>)>; type XcmExecutor: ExecuteXcm<<Self as Config>::RuntimeCall> + XcmAssetTransfers + FeeManager; type XcmTeleportFilter: Contains<(Location, Vec<Asset>)>; type XcmReserveTransferFilter: Contains<(Location, Vec<Asset>)>; type Weigher: WeightBounds<<Self as Config>::RuntimeCall>; type UniversalLocation: Get<InteriorLocation>; type RuntimeOrigin: From<Origin> + From<<Self as SysConfig>::RuntimeOrigin>; type RuntimeCall: Parameter + GetDispatchInfo + Dispatchable<RuntimeOrigin = <Self as Config>::RuntimeOrigin, PostInfo = PostDispatchInfo>; type AdvertisedXcmVersion: Get<XcmVersion>; type AdminOrigin: EnsureOrigin<<Self as SysConfig>::RuntimeOrigin>; type TrustedLockers: ContainsPair<Location, Asset>; type SovereignAccountOf: ConvertLocation<Self::AccountId>; type MaxLockers: Get<u32>; type MaxRemoteLockConsumers: Get<u32>; type RemoteLockConsumerIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy; type WeightInfo: WeightInfo; const VERSION_DISCOVERY_QUEUE_SIZE: u32;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait. The module configuration trait.

Required Associated Types§

source

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

The overarching event type.

source

type Currency: LockableCurrency<Self::AccountId, Moment = BlockNumberFor<Self>>

A lockable currency.

source

type CurrencyMatcher: MatchesFungible<BalanceOf<Self>>

The Asset matcher for Currency.

source

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

Required origin for sending XCM messages. If successful, it resolves to Location 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 = Location>

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

source

type XcmExecuteFilter: Contains<(Location, Xcm<<Self as Config>::RuntimeCall>)>

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

source

type XcmExecutor: ExecuteXcm<<Self as Config>::RuntimeCall> + XcmAssetTransfers + FeeManager

Something to execute an XCM message.

source

type XcmTeleportFilter: Contains<(Location, Vec<Asset>)>

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

source

type XcmReserveTransferFilter: Contains<(Location, Vec<Asset>)>

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

source

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

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

source

type UniversalLocation: Get<InteriorLocation>

This chain’s Universal Location.

source

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

The runtime Origin type.

source

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

The runtime Call type.

source

type AdvertisedXcmVersion: Get<XcmVersion>

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

source

type AdminOrigin: EnsureOrigin<<Self as SysConfig>::RuntimeOrigin>

The origin that is allowed to call privileged operations on the XCM pallet

source

type TrustedLockers: ContainsPair<Location, Asset>

The assets which we consider a given origin is trusted if they claim to have placed a lock.

source

type SovereignAccountOf: ConvertLocation<Self::AccountId>

How to get an AccountId value from a Location, useful for handling asset locks.

source

type MaxLockers: Get<u32>

The maximum number of local XCM locks that a single account may have.

source

type MaxRemoteLockConsumers: Get<u32>

The maximum number of consumers a single remote lock may have.

source

type RemoteLockConsumerIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy

The ID type for local consumers of remote locks.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementors§