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§

source

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

source

type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128>

The balance type.

source

type CurrencyId: Parameter + Member + Clone

Currency Id.

source

type CurrencyIdConvert: Convert<Self::CurrencyId, Option<MultiLocation>>

Convert T::CurrencyId to MultiLocation.

source

type AccountIdToMultiLocation: Convert<Self::AccountId, MultiLocation>

Convert T::AccountId to MultiLocation.

source

type SelfLocation: Get<MultiLocation>

Self chain location.

source

type MinXcmFee: GetByKey<MultiLocation, Option<u128>>

Minimum xcm execution fee paid on destination chain.

source

type XcmExecutor: ExecuteXcm<Self::RuntimeCall>

XCM executor.

source

type MultiLocationsFilter: Contains<MultiLocation>

MultiLocation filter

source

type Weigher: WeightBounds<Self::RuntimeCall>

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

source

type BaseXcmWeight: Get<Weight>

Base XCM weight.

The actually weight for an XCM message is T::BaseXcmWeight + T::Weigher::weight(&msg).

source

type UniversalLocation: Get<InteriorMultiLocation>

This chain’s Universal Location.

source

type MaxAssetsForTransfer: Get<usize>

The maximum number of distinct assets allowed to be transferred in a single helper extrinsic.

source

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

Implementors§