Trait cumulus_pallet_xcmp_queue::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type MaintenanceStatusProvider: GetMaintenanceStatusTrait;
type XcmExecutor: ExecuteXcm<Self::RuntimeCall>;
type ChannelInfo: GetChannelInfo;
type VersionWrapper: WrapVersion;
type ExecuteOverweightOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type ControllerOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type ControllerOriginConverter: ConvertOrigin<Self::RuntimeOrigin>;
type PriceForSiblingDelivery: PriceForParachainDelivery;
type WeightInfo: WeightInfo;
}
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.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type MaintenanceStatusProvider: GetMaintenanceStatusTrait
sourcetype XcmExecutor: ExecuteXcm<Self::RuntimeCall>
type XcmExecutor: ExecuteXcm<Self::RuntimeCall>
Something to execute an XCM message. We need this to service the XCMoXCMP queue.
sourcetype ChannelInfo: GetChannelInfo
type ChannelInfo: GetChannelInfo
Information on the avaialble XCMP channels.
sourcetype VersionWrapper: WrapVersion
type VersionWrapper: WrapVersion
Means of converting an Xcm
into a VersionedXcm
.
sourcetype ExecuteOverweightOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ExecuteOverweightOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin that is allowed to execute overweight messages.
sourcetype ControllerOrigin: EnsureOrigin<Self::RuntimeOrigin>
type ControllerOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin that is allowed to resume or suspend the XCMP queue.
sourcetype ControllerOriginConverter: ConvertOrigin<Self::RuntimeOrigin>
type ControllerOriginConverter: ConvertOrigin<Self::RuntimeOrigin>
The conversion function used to attempt to convert an XCM MultiLocation
origin to a
superuser origin.
sourcetype PriceForSiblingDelivery: PriceForParachainDelivery
type PriceForSiblingDelivery: PriceForParachainDelivery
The price for delivering an XCM to a sibling parachain destination.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
The weight information of this pallet.