Trait pallet_balances::pallet::Config
source · pub trait Config<I: 'static = ()>: Config {
type Balance: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen + TypeInfo + FixedPointOperand;
type DustRemoval: OnUnbalanced<NegativeImbalance<Self, I>>;
type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>;
type ExistentialDeposit: Get<Self::Balance>;
type AccountStore: StoredMap<Self::AccountId, AccountData<Self::Balance>>;
type WeightInfo: WeightInfo;
type MaxLocks: Get<u32>;
type MaxReserves: Get<u32>;
type ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype Balance: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen + TypeInfo + FixedPointOperand
type Balance: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen + TypeInfo + FixedPointOperand
The balance of an account.
sourcetype DustRemoval: OnUnbalanced<NegativeImbalance<Self, I>>
type DustRemoval: OnUnbalanced<NegativeImbalance<Self, I>>
Handler for the unbalanced reduction when removing a dust account.
sourcetype RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype ExistentialDeposit: Get<Self::Balance>
type ExistentialDeposit: Get<Self::Balance>
The minimum amount required to keep an account open.
sourcetype AccountStore: StoredMap<Self::AccountId, AccountData<Self::Balance>>
type AccountStore: StoredMap<Self::AccountId, AccountData<Self::Balance>>
The means of storing the balances of an account.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype MaxLocks: Get<u32>
type MaxLocks: Get<u32>
The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation.
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.