pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type CurrencyId: AssetId + Parameter + Member + Copy;
    type ReserveCurrency: Mutate<Self::AccountId, Reason = Self::RuntimeHoldReason>;
    type RuntimeHoldReason: From<HoldReason>;
    type Deposit: Get<DepositBalanceOf<Self>>;
    type Location: Member + TypeInfo + Encode + EncodeLike + Decode + MaxEncodedLen;
    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 CurrencyId: AssetId + Parameter + Member + Copy

source

type ReserveCurrency: Mutate<Self::AccountId, Reason = Self::RuntimeHoldReason>

Currency for holding/unholding with allowlist adding/removal, given that the allowlist will be in storage

source

type RuntimeHoldReason: From<HoldReason>

The identifier to be used for holding.

source

type Deposit: Get<DepositBalanceOf<Self>>

Deposit amount

source

type Location: Member + TypeInfo + Encode + EncodeLike + Decode + MaxEncodedLen

Type containing the locations a transfer can be sent to.

source

type WeightInfo: WeightInfo

Type for pallet weights

Object Safety§

This trait is not object safe.

Implementors§