Trait pallet_balances::pallet::DefaultConfig
source · pub trait DefaultConfig: DefaultConfig {
type RuntimeEvent;
type WeightInfo: WeightInfo;
type Balance: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen + TypeInfo + FixedPointOperand;
type ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy;
type FreezeIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy;
type MaxLocks: Get<u32>;
type MaxReserves: Get<u32>;
type MaxHolds: Get<u32>;
type MaxFreezes: Get<u32>;
}
Expand description
Based on Config
. Auto-generated by
#[pallet::config(with_default)]
.
Can be used in tandem with
#[register_default_config]
and
#[derive_impl]
to derive test config traits
based on existing pallet config traits in a safe and developer-friendly way.
See here for more information and caveats about
the auto-generated DefaultConfig
trait and how it is generated.
Required Associated Types§
sourcetype RuntimeEvent
type RuntimeEvent
The overarching event type.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
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 ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy
type ReserveIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy
The ID type for reserves.
Use of reserves is deprecated in favour of holds. See https://github.com/paritytech/substrate/pull/12951/
sourcetype FreezeIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy
type FreezeIdentifier: Parameter + Member + MaxEncodedLen + Ord + Copy
The ID type for freezes.
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 MaxFreezes: Get<u32>
type MaxFreezes: Get<u32>
The maximum number of individual freeze locks that can exist on an account at any time.