Structs§
- Account
- Basic account information.
- Check
EvmTransaction - Check
EvmTransaction Config - Check
EvmTransaction Input - Config
- Runtime configuration.
- Context
- Context of the runtime.
- Execution
Info - Execution
Info V2 - Genesis
Account - Account definition used for genesis block construction.
- Log
- Opcode
- Opcode enum. One-to-one corresponding to an
u8
value. - Precompile
Output - Data returned by a precompile on success.
- Transfer
- Transfer from source to target, with given value.
- UsedGas
- Vicinity
- External input from the transaction.
- Weight
Info
Enums§
- Accessed
Storage - Call
OrCreate Info - Exit
Error - Exit error reason.
- Exit
Reason - Exit reason.
- Exit
Revert - Exit revert reason.
- Exit
Succeed - Exit succeed reason.
- IsPrecompile
Result - Precompile
Failure - Data returned by a precompile in case of failure.
- Transaction
Validation Error - Transaction validation errors
Constants§
- ACCOUNT_
BASIC_ PROOF_ SIZE System::Account
16(hash) + 20 (key) + 72 (AccountInfo::max_encoded_len)- ACCOUNT_
CODES_ KEY_ SIZE AccountCodes
key size. 16 (hash) + 20 (key)- ACCOUNT_
CODES_ METADATA_ PROOF_ SIZE AccountCodesMetadata
read, temtatively 16 (hash) + 20 (key) + 40 (CodeMetadata).- ACCOUNT_
STORAGE_ PROOF_ SIZE - 16 (hash1) + 20 (key1) + 16 (hash2) + 32 (key2) + 32 (value)
- IS_
EMPTY_ CHECK_ PROOF_ SIZE - Account basic proof size + 5 bytes max of
decode_len
call. - WRITE_
PROOF_ SIZE - Fixed trie 32 byte hash.
Traits§
- Account
Provider - The account provider interface abstraction layer.
- FeeCalculator
- Trait that outputs the current transaction gas price.
- Linear
Cost Precompile - Precompile
- One single precompile used by EVM engine.
- Precompile
Handle - Handle provided to a precompile to interact with the EVM.
- Precompile
Set - A set of precompiles.
Functions§
- handle_
storage_ oog - set_
storage_ oog - weight_
per_ gas WeightPerGas
is an approximate ratio of the amount of Weight per Gas. u64 works for approximations because Weight is a very small unit compared to gas.