Crate local_runtime
source ·Modules§
Structs§
- Simple wrapper for fetching current native transaction fee weight fee multiplier.
- EVM gas limit
- Ethereum-compatible chain_id:
- The amount of gas per PoV size. Value is calculated as:
- Inflation parameters.
- 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. - Implements all runtime apis for the client side.
- We allow for 1 seconds of compute with a 2 second average block time.
- The runtime origin type representing the origin of a call.
- Handles converting a weight scalar to a fee value, based on the scale and granularity of the node’s balance type.
- Filter that only allows whitelisted runtime call to pass through dispatch precompile
Enums§
- Contains a variant per dispatchable extrinsic that this pallet has.
- The type used to represent the kinds of proxying allowed.
- The aggregated runtime call type.
- 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.
- An aggregation of all
Task
enums across all pallets included in the current runtime. - Contains a variant per dispatchable extrinsic that this pallet has.
- Description of tier entry requirement.
- Contains a variant per dispatchable extrinsic that this pallet has.
Constants§
- The asset precompile address prefix. Addresses that match against this prefix will be routed to Erc20AssetsPrecompileSet
- Current approximation of the gas/s consumption considering EVM execution over compiled WASM (on 4.4Ghz CPU). Given the 500ms Weight, from which 75% only are used for transactions, the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 15_000_000.
- Constant values used within the runtime.
- 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()
. - Approximate ratio of the amount of Weight per Gas. u64 works for approximations because Weight is a very small unit compared to gas.
Traits§
- Complex storage builder stuff.
Functions§
- Charge fee for stored bytes and items.
- The version information used to identify this runtime when compiled natively.
- Wasm binary unwrapped. If built with
BUILD_DUMMY_WASM_BINARY
, the function panics.
Type Aliases§
- Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- All pallets included in the runtime as a nested tuple of types.
- All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- An Aura authority identifier using S/R 25519 as its crypto.
- Block type as expected by this runtime.
- BlockId type as expected by this runtime.
- Extrinsic type that has already been checked.
- Executive: handles dispatch to the various modules.
- Identity of a Grandpa authority.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.
- A Block signed with a Justification
- The SignedExtension to the basic transaction logic.
- The payload being signed in transactions.
- Unchecked extrinsic type as expected by this runtime.