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§

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 CurrencyIdToLocation: Convert<Self::CurrencyId, Option<Location>>

Convert T::CurrencyId to Location.

source

type Transactor: Parameter + Member + Clone + XcmTransact

source

type AssetTransactor: TransactAsset

AssetTransactor allows us to withdraw asset without being trapped This should change in xcm v3, which allows us to burn assets

source

type DerivativeAddressRegistrationOrigin: EnsureOrigin<Self::RuntimeOrigin>

source

type HrmpManipulatorOrigin: EnsureOrigin<Self::RuntimeOrigin>

source

type HrmpOpenOrigin: EnsureOrigin<Self::RuntimeOrigin>

source

type AccountIdToLocation: Convert<Self::AccountId, Location>

Convert T::AccountId to Location.

source

type Weigher: WeightBounds<Self::RuntimeCall>

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

source

type UniversalLocation: Get<InteriorLocation>

This chain’s Universal Location.

source

type SelfLocation: Get<Location>

Self chain location.

source

type SovereignAccountDispatcherOrigin: EnsureOrigin<Self::RuntimeOrigin>

source

type XcmSender: SendXcm

XCM sender.

source

type BaseXcmWeight: Get<Weight>

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

source

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

source

type MaxHrmpFee: FilterMaxAssetFee

The way to filter the max fee to use for HRMP management operations

source

type WeightInfo: WeightInfo

Object Safety§

This trait is not object safe.

Implementors§