Structs§
- Basic account information.
- Runtime configuration.
- Context of the runtime.
- Account definition used for genesis block construction.
- Opcode enum. One-to-one corresponding to an
u8
value. - Data returned by a precompile on success.
- Transfer from source to target, with given value.
- External input from the transaction.
Enums§
- Exit error reason.
- Exit reason.
- Exit revert reason.
- Exit succeed reason.
- Data returned by a precompile in case of failure.
- Transaction validation errors
Constants§
System::Account
16(hash) + 20 (key) + 60 (AccountInfo::max_encoded_len)AccountCodesMetadata
read, temptatively 16 (hash) + 20 (key) + 40 (CodeMetadata).- 16 (hash1) + 20 (key1) + 16 (hash2) + 32 (key2) + 32 (value)
- Account basic proof size + 5 bytes max of
decode_len
call. - Fixed trie 32 byte hash.
Traits§
- Trait that outputs the current transaction gas price.
- One single precompile used by EVM engine.
- Handle provided to a precompile to interact with the EVM.
- A set of precompiles.
Functions§
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.