Trait orml_tokens::module::Config
source · pub trait Config: Config {
Show 13 associated items
type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen;
type Amount: Signed + TryInto<Self::Balance> + TryFrom<Self::Balance> + Parameter + Member + SimpleArithmetic + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen;
type CurrencyId: Parameter + Member + Copy + MaybeSerializeDeserialize + Ord + TypeInfo + MaxEncodedLen;
type WeightInfo: WeightInfo;
type ExistentialDeposits: GetByKey<Self::CurrencyId, Self::Balance>;
type OnDust: OnDust<Self::AccountId, Self::CurrencyId, Self::Balance>;
type OnNewTokenAccount: Happened<(Self::AccountId, Self::CurrencyId)>;
type OnKilledTokenAccount: Happened<(Self::AccountId, Self::CurrencyId)>;
type MaxLocks: Get<u32>;
type MaxReserves: Get<u32>;
type ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy;
type DustRemovalWhitelist: Contains<Self::AccountId>;
}
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 + MaxEncodedLen
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen
The balance type
sourcetype Amount: Signed + TryInto<Self::Balance> + TryFrom<Self::Balance> + Parameter + Member + SimpleArithmetic + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen
type Amount: Signed + TryInto<Self::Balance> + TryFrom<Self::Balance> + Parameter + Member + SimpleArithmetic + Default + Copy + MaybeSerializeDeserialize + MaxEncodedLen
The amount type, should be signed version of Balance
sourcetype CurrencyId: Parameter + Member + Copy + MaybeSerializeDeserialize + Ord + TypeInfo + MaxEncodedLen
type CurrencyId: Parameter + Member + Copy + MaybeSerializeDeserialize + Ord + TypeInfo + MaxEncodedLen
The currency ID type
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this module.
sourcetype ExistentialDeposits: GetByKey<Self::CurrencyId, Self::Balance>
type ExistentialDeposits: GetByKey<Self::CurrencyId, Self::Balance>
The minimum amount required to keep an account. It’s deprecated to config 0 as ED for any currency_id, zero ED will retain account even if its total is zero. Since accounts of orml_tokens are also used as providers of System::AccountInfo, zero ED may cause some problems.
sourcetype OnDust: OnDust<Self::AccountId, Self::CurrencyId, Self::Balance>
type OnDust: OnDust<Self::AccountId, Self::CurrencyId, Self::Balance>
Handler to burn or transfer account’s dust
sourcetype OnNewTokenAccount: Happened<(Self::AccountId, Self::CurrencyId)>
type OnNewTokenAccount: Happened<(Self::AccountId, Self::CurrencyId)>
Handler for when an account was created
sourcetype OnKilledTokenAccount: Happened<(Self::AccountId, Self::CurrencyId)>
type OnKilledTokenAccount: Happened<(Self::AccountId, Self::CurrencyId)>
Handler for when an account was created
type MaxLocks: Get<u32>
sourcetype MaxReserves: Get<u32>
type MaxReserves: Get<u32>
The maximum number of named reserves that can exist on an account.
sourcetype ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy
type ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy
The id type for named reserves.