Trait orml_xtokens::module::Config
source · pub trait Config: Config {
Show 14 associated items
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
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::Call>;
type MultiLocationsFilter: Contains<MultiLocation>;
type Weigher: WeightBounds<Self::Call>;
type BaseXcmWeight: Get<Weight>;
type LocationInverter: InvertLocation;
type MaxAssetsForTransfer: Get<usize>;
type ReserveProvider: Reserve;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>
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::Call>
type XcmExecutor: ExecuteXcm<Self::Call>
XCM executor.
sourcetype MultiLocationsFilter: Contains<MultiLocation>
type MultiLocationsFilter: Contains<MultiLocation>
MultiLocation filter
sourcetype Weigher: WeightBounds<Self::Call>
type Weigher: WeightBounds<Self::Call>
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 LocationInverter: InvertLocation
type LocationInverter: InvertLocation
Means of inverting a 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