Trait orml_xtokens::module::Config
source · pub trait Config: Config {
Show 14 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 CurrencyIdConvert: Convert<Self::CurrencyId, Option<MultiLocation>>;
type AccountIdToMultiLocation: Convert<Self::AccountId, MultiLocation>;
type SelfLocation: Get<MultiLocation>;
type MinXcmFee: GetByKey<MultiLocation, Option<u128>>;
type XcmExecutor: ExecuteXcm<Self::RuntimeCall>;
type MultiLocationsFilter: Contains<MultiLocation>;
type Weigher: WeightBounds<Self::RuntimeCall>;
type BaseXcmWeight: Get<Weight>;
type UniversalLocation: Get<InteriorMultiLocation>;
type MaxAssetsForTransfer: Get<usize>;
type ReserveProvider: Reserve;
}
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 CurrencyIdConvert: Convert<Self::CurrencyId, Option<MultiLocation>>
type CurrencyIdConvert: Convert<Self::CurrencyId, Option<MultiLocation>>
Convert T::CurrencyId
to MultiLocation
.
sourcetype AccountIdToMultiLocation: Convert<Self::AccountId, MultiLocation>
type AccountIdToMultiLocation: Convert<Self::AccountId, MultiLocation>
Convert T::AccountId
to MultiLocation
.
sourcetype SelfLocation: Get<MultiLocation>
type SelfLocation: Get<MultiLocation>
Self chain location.
sourcetype MinXcmFee: GetByKey<MultiLocation, Option<u128>>
type MinXcmFee: GetByKey<MultiLocation, Option<u128>>
Minimum xcm execution fee paid on destination chain.
sourcetype XcmExecutor: ExecuteXcm<Self::RuntimeCall>
type XcmExecutor: ExecuteXcm<Self::RuntimeCall>
XCM executor.
sourcetype MultiLocationsFilter: Contains<MultiLocation>
type MultiLocationsFilter: Contains<MultiLocation>
MultiLocation filter
sourcetype Weigher: WeightBounds<Self::RuntimeCall>
type Weigher: WeightBounds<Self::RuntimeCall>
Means of measuring the weight consumed by an XCM message locally.
sourcetype BaseXcmWeight: Get<Weight>
type BaseXcmWeight: Get<Weight>
Base XCM weight.
The actually weight for an XCM message is T::BaseXcmWeight + T::Weigher::weight(&msg)
.
sourcetype UniversalLocation: Get<InteriorMultiLocation>
type UniversalLocation: Get<InteriorMultiLocation>
This chain’s Universal Location.
sourcetype MaxAssetsForTransfer: Get<usize>
type MaxAssetsForTransfer: Get<usize>
The maximum number of distinct assets allowed to be transferred in a single helper extrinsic.
sourcetype ReserveProvider: Reserve
type ReserveProvider: Reserve
The way to retreave the reserve of a MultiAsset. This can be configured to accept absolute or relative paths for self tokens