Trait pallet_xcm_transactor::pallet::Config
source · pub trait Config: Config {
Show 19 associated items
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128>;
type CurrencyId: Parameter + Member + Clone;
type CurrencyIdToLocation: Convert<Self::CurrencyId, Option<Location>>;
type Transactor: Parameter + Member + Clone + XcmTransact;
type AssetTransactor: TransactAsset;
type DerivativeAddressRegistrationOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type HrmpManipulatorOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type HrmpOpenOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type AccountIdToLocation: Convert<Self::AccountId, Location>;
type Weigher: WeightBounds<Self::RuntimeCall>;
type UniversalLocation: Get<InteriorLocation>;
type SelfLocation: Get<Location>;
type SovereignAccountDispatcherOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type XcmSender: SendXcm;
type BaseXcmWeight: Get<Weight>;
type ReserveProvider: Reserve;
type MaxHrmpFee: FilterMaxAssetFee;
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>
sourcetype Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128>
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128>
The balance type.
sourcetype CurrencyId: Parameter + Member + Clone
type CurrencyId: Parameter + Member + Clone
Currency Id.
sourcetype CurrencyIdToLocation: Convert<Self::CurrencyId, Option<Location>>
type CurrencyIdToLocation: Convert<Self::CurrencyId, Option<Location>>
Convert T::CurrencyId
to Location
.
type Transactor: Parameter + Member + Clone + XcmTransact
sourcetype AssetTransactor: TransactAsset
type AssetTransactor: TransactAsset
AssetTransactor allows us to withdraw asset without being trapped This should change in xcm v3, which allows us to burn assets
type DerivativeAddressRegistrationOrigin: EnsureOrigin<Self::RuntimeOrigin>
type HrmpManipulatorOrigin: EnsureOrigin<Self::RuntimeOrigin>
type HrmpOpenOrigin: EnsureOrigin<Self::RuntimeOrigin>
sourcetype AccountIdToLocation: Convert<Self::AccountId, Location>
type AccountIdToLocation: Convert<Self::AccountId, Location>
Convert T::AccountId
to Location
.
sourcetype Weigher: WeightBounds<Self::RuntimeCall>
type Weigher: WeightBounds<Self::RuntimeCall>
Means of measuring the weight consumed by an XCM message locally.
sourcetype UniversalLocation: Get<InteriorLocation>
type UniversalLocation: Get<InteriorLocation>
This chain’s Universal Location.
sourcetype SelfLocation: Get<Location>
type SelfLocation: Get<Location>
Self chain location.
type SovereignAccountDispatcherOrigin: EnsureOrigin<Self::RuntimeOrigin>
sourcetype BaseXcmWeight: Get<Weight>
type BaseXcmWeight: Get<Weight>
The actual weight for an XCM message is T::BaseXcmWeight + T::Weigher::weight(&msg)
.
sourcetype ReserveProvider: Reserve
type ReserveProvider: Reserve
The way to retrieve the reserve of a Asset. This can be configured to accept absolute or relative paths for self tokens
sourcetype MaxHrmpFee: FilterMaxAssetFee
type MaxHrmpFee: FilterMaxAssetFee
The way to filter the max fee to use for HRMP management operations