Struct frame_system::pallet::config_preludes::TestDefaultConfig
source · pub struct TestDefaultConfig;
Expand description
Provides a viable default config that can be used with
derive_impl
to derive a testing pallet config
based on this one.
See Test
in the default-config
example pallet’s test.rs
for an example of
a downstream user of this particular TestDefaultConfig
Trait Implementations§
source§impl DefaultConfig for TestDefaultConfig
impl DefaultConfig for TestDefaultConfig
§type Hashing = BlakeTwo256
type Hashing = BlakeTwo256
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
§type Lookup = IdentityLookup<u64>
type Lookup = IdentityLookup<u64>
Converting trait to take a source type and convert to
AccountId
. Read more§type MaxConsumers = ConstU32<16>
type MaxConsumers = ConstU32<16>
The maximum number of consumers allowed on a single account.
§type AccountData = ()
type AccountData = ()
Data to be associated with an account (other than nonce/transaction counter, which this
pallet does regardless).
§type OnNewAccount = ()
type OnNewAccount = ()
Handler for when a new account has just been created.
§type OnKilledAccount = ()
type OnKilledAccount = ()
A function that is invoked when an account has been determined to be dead. Read more
type SystemWeightInfo = ()
§type SS58Prefix = ()
type SS58Prefix = ()
The designated SS58 prefix of this chain. Read more
§type BlockWeights = ()
type BlockWeights = ()
Block & extrinsics weights: base values and limits.
§type BlockLength = ()
type BlockLength = ()
The maximum length of a block (in bytes).
§type RuntimeEvent = ()
type RuntimeEvent = ()
The aggregated event type of the runtime.
§type RuntimeOrigin = ()
type RuntimeOrigin = ()
The
RuntimeOrigin
type used by dispatchable calls.§type RuntimeCall = ()
type RuntimeCall = ()
The aggregated
RuntimeCall
type.§type PalletInfo = ()
type PalletInfo = ()
Provides information about the pallet setup in the runtime. Read more
§type BaseCallFilter = Everything
type BaseCallFilter = Everything
The basic call filter to use in Origin. All origins are built with this filter as base,
except Root. Read more
§type BlockHashCount = ConstU64<10>
type BlockHashCount = ConstU64<10>
Maximum number of block number to block hash mappings to keep (oldest pruned first).
Auto Trait Implementations§
impl RefUnwindSafe for TestDefaultConfig
impl Send for TestDefaultConfig
impl Sync for TestDefaultConfig
impl Unpin for TestDefaultConfig
impl UnwindSafe for TestDefaultConfig
Blanket Implementations§
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.