Trait pallet_transfer_allowlist::pallet::Config
source · 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§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type CurrencyId: AssetId + Parameter + Member + Copy
sourcetype ReserveCurrency: Mutate<Self::AccountId, Reason = Self::RuntimeHoldReason>
type ReserveCurrency: Mutate<Self::AccountId, Reason = Self::RuntimeHoldReason>
Currency for holding/unholding with allowlist adding/removal, given that the allowlist will be in storage
sourcetype RuntimeHoldReason: From<HoldReason>
type RuntimeHoldReason: From<HoldReason>
The identifier to be used for holding.
sourcetype Deposit: Get<DepositBalanceOf<Self>>
type Deposit: Get<DepositBalanceOf<Self>>
Deposit amount
sourcetype Location: Member + TypeInfo + Encode + EncodeLike + Decode + MaxEncodedLen
type Location: Member + TypeInfo + Encode + EncodeLike + Decode + MaxEncodedLen
Type containing the locations a transfer can be sent to.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Type for pallet weights
Object Safety§
This trait is not object safe.