pub struct SolochainDefaultConfig;Expand description
Default configurations of this pallet in a solochain environment.
§Considerations:
By default, this type makes the following choices:
- Use a normal 32 byte account id, with a
DefaultConfig::Lookupthat implies no ‘account-indexing’ pallet is being used. - Given that we don’t know anything about the existence of a currency system in scope,
an
DefaultConfig::AccountDatais chosen that has no addition data. Overwrite this if you usepallet-balancesor similar. - Make sure to overwrite
DefaultConfig::Version. - 2s block time, and a default 5mb block size is used.
Trait Implementations§
Source§impl DefaultConfig for SolochainDefaultConfig
impl DefaultConfig for SolochainDefaultConfig
Source§type Hashing = BlakeTwo256
type Hashing = BlakeTwo256
The default hashing algorithm used.
Source§type AccountId = AccountId32
type AccountId = AccountId32
The default identifier used to distinguish between accounts.
Source§type Lookup = AccountIdLookup<<SolochainDefaultConfig as DefaultConfig>::AccountId, ()>
type Lookup = AccountIdLookup<<SolochainDefaultConfig as DefaultConfig>::AccountId, ()>
The lookup mechanism to get account ID from whatever is passed in dispatchers.
Source§type MaxConsumers = ConstU32<128>
type MaxConsumers = ConstU32<128>
The maximum number of consumers allowed on a single account. Using 128 as default.
Source§type AccountData = ()
type AccountData = ()
The default data to be stored in an account.
Source§type OnNewAccount = ()
type OnNewAccount = ()
What to do if a new account is created.
Source§type OnKilledAccount = ()
type OnKilledAccount = ()
What to do if an account is fully reaped from the system.
Source§type SystemWeightInfo = ()
type SystemWeightInfo = ()
Weight information for the extrinsics of this pallet.
Source§type ExtensionsWeightInfo = ()
type ExtensionsWeightInfo = ()
Weight information for the extensions of this pallet.
Source§type SS58Prefix = ()
type SS58Prefix = ()
This is used as an identifier of the chain.
Source§type BlockWeights = ()
type BlockWeights = ()
Block & extrinsics weights: base values and limits.
Source§type BlockLength = ()
type BlockLength = ()
The maximum length of a block (in bytes).
Source§type RuntimeEvent = ()
type RuntimeEvent = ()
The ubiquitous event type injected by construct_runtime!.
Source§type RuntimeOrigin = ()
type RuntimeOrigin = ()
The ubiquitous origin type injected by construct_runtime!.
Source§type RuntimeCall = ()
type RuntimeCall = ()
The aggregated dispatch type available for extrinsics, injected by
construct_runtime!.
Source§type RuntimeTask = ()
type RuntimeTask = ()
The aggregated Task type, injected by construct_runtime!.
Source§type PalletInfo = ()
type PalletInfo = ()
Converts a module to the index of the module, injected by construct_runtime!.
Source§type BaseCallFilter = Everything
type BaseCallFilter = Everything
The basic call filter to use in dispatchable. Supports everything as the default.
Source§type BlockHashCount = TestBlockHashCount<ConstU32<256>>
type BlockHashCount = TestBlockHashCount<ConstU32<256>>
Maximum number of block number to block hash mappings to keep (oldest pruned first). Using 256 as default.
Source§type SingleBlockMigrations = ()
type SingleBlockMigrations = ()
Source§type MultiBlockMigrator = ()
type MultiBlockMigrator = ()
Source§type PreInherents = ()
type PreInherents = ()
Source§type PostInherents = ()
type PostInherents = ()
Source§type PostTransactions = ()
type PostTransactions = ()
Auto Trait Implementations§
impl Freeze for SolochainDefaultConfig
impl RefUnwindSafe for SolochainDefaultConfig
impl Send for SolochainDefaultConfig
impl Sync for SolochainDefaultConfig
impl Unpin for SolochainDefaultConfig
impl UnwindSafe for SolochainDefaultConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T, U> DefensiveTruncateInto<U> for Twhere
U: DefensiveTruncateFrom<T>,
impl<T, U> DefensiveTruncateInto<U> for Twhere
U: DefensiveTruncateFrom<T>,
Source§fn defensive_truncate_into(self) -> U
fn defensive_truncate_into(self) -> U
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> 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>,
T. Read moreSource§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
Source§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
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.