Crate fp_evm

Source

Structs§

Account
Basic account information.
CheckEvmTransaction
CheckEvmTransactionConfig
CheckEvmTransactionInput
Config
Runtime configuration.
Context
Context of the runtime.
ExecutionInfo
ExecutionInfoV2
GenesisAccount
Account definition used for genesis block construction.
Log
Opcode
Opcode enum. One-to-one corresponding to an u8 value.
PrecompileOutput
Data returned by a precompile on success.
Transfer
Transfer from source to target, with given value.
UsedGas
Vicinity
External input from the transaction.
WeightInfo

Enums§

AccessedStorage
CallOrCreateInfo
ExitError
Exit error reason.
ExitReason
Exit reason.
ExitRevert
Exit revert reason.
ExitSucceed
Exit succeed reason.
IsPrecompileResult
PrecompileFailure
Data returned by a precompile in case of failure.
TransactionValidationError
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§

AccountProvider
The account provider interface abstraction layer.
FeeCalculator
Trait that outputs the current transaction gas price.
LinearCostPrecompile
Precompile
One single precompile used by EVM engine.
PrecompileHandle
Handle provided to a precompile to interact with the EVM.
PrecompileSet
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.

Type Aliases§

CallInfo
CreateInfo
PrecompileResult