Crate t1rn_parachain_runtime
source ·Re-exports
pub use crate::parachain_config::*;
pub use crate::signed_extrinsics_config::*;
Modules
Structs
- Implementation of [
PrivilegeCmp
] that only checks for equal origins. - Key = 32 bytes, Value = 36 bytes (32+1+1+1+1)
- Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - A fixed point representation of a number in the range [0, 1].
- A fixed point representation of a number in the range [0, 1].
- Implements all runtime apis for the client side.
- The runtime origin type representing the origin of a call.
Enums
- A multi-format address wrapper for on-chain accounts.
- A reason for placing a freeze on funds.
- A reason for placing a hold on funds.
- An identifier for each lock placed on funds.
- A reason for slashing funds.
- Generic type for Token Ids covering both native and pallet_assets tokens used by ERC 20 precompile
Constants
- We assume that ~25% of the block weight is consumed by
on_initialize
handlers. This is used to limit the maximal weight of a single extrinsic. - EVM block gas limit
- EVM gas limit POV size ratio
- EVM gas price
- EVM gas weight
- We allow for 0.5 of a second of compute with a 12 second average block time.
- EVM max POV size
- This determines the average expected block time that we are targeting. Blocks will be produced at a minimum duration defined by
SLOT_DURATION
.SLOT_DURATION
is picked up bypallet_timestamp
which is in turn picked up bypallet_aura
to implementfn slot_duration()
. - EVM weight per gas
Traits
- Complex storage builder stuff.
Functions
- Calculate the storage deposit based on the number of storage items and the combined byte size of those items.
- The version information used to identify this runtime when compiled natively.
Type Definitions
- Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- The type for looking up accounts. We don’t expect more than 4 billion of them.
- The address format for describing accounts.
- AllPalletsDeprecatedAll pallets included in the runtime as a nested tuple of types.
- AllPalletsReversedWithSystemFirstDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order. With the system pallet first.
- All pallets included in the runtime as a nested tuple of types.
- AllPalletsWithSystemReversedDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order.
- All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- AllPalletsWithoutSystemReversedDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order. Excludes the System pallet.
- Balance of an account.
- Asset Id.
- An Aura authority identifier using S/R 25519 as its crypto.
- Balance of an account.
- An index to a block.
- EVM Address
- Executive: handles dispatch to the various modules.
- GenesisConfigDeprecated
- A hash of some data used by the chain.
- Block header type as expected by this runtime.
- Index of a transaction in the chain.
- Index of a transaction in the chain.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.