Trait frame_system::pallet::DefaultConfig
source · pub trait DefaultConfig {
Show 15 associated items
type BlockWeights: Get<BlockWeights>;
type BlockLength: Get<BlockLength>;
type Nonce: Parameter + Member + MaybeSerializeDeserialize + Debug + Default + MaybeDisplay + AtLeast32Bit + Copy + MaxEncodedLen;
type Hash: Parameter + Member + MaybeSerializeDeserialize + Debug + MaybeDisplay + SimpleBitOps + Ord + Default + Copy + CheckEqual + Hash + AsRef<[u8]> + AsMut<[u8]> + MaxEncodedLen;
type Hashing: Hash<Output = Self::Hash> + TypeInfo;
type AccountId: Parameter + Member + MaybeSerializeDeserialize + Debug + MaybeDisplay + Ord + MaxEncodedLen;
type Lookup: StaticLookup<Target = Self::AccountId>;
type DbWeight: Get<RuntimeDbWeight>;
type Version: Get<RuntimeVersion>;
type AccountData: Member + FullCodec + Clone + Default + TypeInfo + MaxEncodedLen;
type OnNewAccount: OnNewAccount<Self::AccountId>;
type OnKilledAccount: OnKilledAccount<Self::AccountId>;
type SystemWeightInfo: WeightInfo;
type SS58Prefix: Get<u16>;
type MaxConsumers: ConsumerLimits;
}
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 BlockWeights: Get<BlockWeights>
type BlockWeights: Get<BlockWeights>
Block & extrinsics weights: base values and limits.
sourcetype BlockLength: Get<BlockLength>
type BlockLength: Get<BlockLength>
The maximum length of a block (in bytes).
sourcetype Nonce: Parameter + Member + MaybeSerializeDeserialize + Debug + Default + MaybeDisplay + AtLeast32Bit + Copy + MaxEncodedLen
type Nonce: Parameter + Member + MaybeSerializeDeserialize + Debug + Default + MaybeDisplay + AtLeast32Bit + Copy + MaxEncodedLen
This stores the number of previous transactions associated with a sender account.
sourcetype Hash: Parameter + Member + MaybeSerializeDeserialize + Debug + MaybeDisplay + SimpleBitOps + Ord + Default + Copy + CheckEqual + Hash + AsRef<[u8]> + AsMut<[u8]> + MaxEncodedLen
type Hash: Parameter + Member + MaybeSerializeDeserialize + Debug + MaybeDisplay + SimpleBitOps + Ord + Default + Copy + CheckEqual + Hash + AsRef<[u8]> + AsMut<[u8]> + MaxEncodedLen
The output of the Hashing
function.
sourcetype Hashing: Hash<Output = Self::Hash> + TypeInfo
type Hashing: Hash<Output = Self::Hash> + TypeInfo
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
sourcetype AccountId: Parameter + Member + MaybeSerializeDeserialize + Debug + MaybeDisplay + Ord + MaxEncodedLen
type AccountId: Parameter + Member + MaybeSerializeDeserialize + Debug + MaybeDisplay + Ord + MaxEncodedLen
The user account identifier type for the runtime.
sourcetype Lookup: StaticLookup<Target = Self::AccountId>
type Lookup: StaticLookup<Target = Self::AccountId>
Converting trait to take a source type and convert to AccountId
.
Used to define the type and conversion mechanism for referencing accounts in
transactions. It’s perfectly reasonable for this to be an identity conversion (with the
source type being AccountId
), but other pallets (e.g. Indices pallet) may provide more
functional/efficient alternatives.
sourcetype DbWeight: Get<RuntimeDbWeight>
type DbWeight: Get<RuntimeDbWeight>
The weight of runtime database operations the runtime can invoke.
sourcetype Version: Get<RuntimeVersion>
type Version: Get<RuntimeVersion>
Get the chain’s current version.
sourcetype AccountData: Member + FullCodec + Clone + Default + TypeInfo + MaxEncodedLen
type AccountData: Member + FullCodec + Clone + Default + TypeInfo + MaxEncodedLen
Data to be associated with an account (other than nonce/transaction counter, which this pallet does regardless).
sourcetype OnNewAccount: OnNewAccount<Self::AccountId>
type OnNewAccount: OnNewAccount<Self::AccountId>
Handler for when a new account has just been created.
sourcetype OnKilledAccount: OnKilledAccount<Self::AccountId>
type OnKilledAccount: OnKilledAccount<Self::AccountId>
A function that is invoked when an account has been determined to be dead.
All resources should be cleaned up associated with the given account.
type SystemWeightInfo: WeightInfo
sourcetype SS58Prefix: Get<u16>
type SS58Prefix: Get<u16>
The designated SS58 prefix of this chain.
This replaces the “ss58Format” property declared in the chain spec. Reason is that the runtime should know about the prefix in order to make use of it as an identifier of the chain.
sourcetype MaxConsumers: ConsumerLimits
type MaxConsumers: ConsumerLimits
The maximum number of consumers allowed on a single account.