Crate evm_state[][src]

Re-exports

pub use secp256k1;
pub use secp256k1::rand;
pub use transactions::*;
pub use types::*;

Modules

error
persist_old
transactions
types

Structs

Bloom

Bloom hash type with 256 bytes (2048 bits) size.

ChainContext

Represents some chain context, that should be emulated for EVM based application proper works.

Committed
Config

Runtime configuration.

Context

Context of the runtime.

EvmBackend
EvmConfig

Config of evm chain. This type is written to genesis config, and can be updated in future releases

ExecutionResult
Executor
H256

Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.

Incomming
Log
MemoryAccount

Account information of a memory backend.

MemoryVicinity

Vivinity value of a memory backend.

StackExecutor

Stack-based executor.

Storage
Transfer

Transfer from source to target, with given value.

U256

Little-endian large integer type

Enums

Apply

Apply state operation.

EvmPersistState
EvmState
ExitError

Exit error reason.

ExitFatal

Exit fatal reason.

ExitReason

Exit reason.

ExitRevert

Exit revert reason.

ExitSucceed

Exit succeed reason.

Constants

DEFAULT_GAS_LIMIT
HELLO_WORLD_ABI
HELLO_WORLD_CODE
HELLO_WORLD_CODE_SAVED
HELLO_WORLD_RESULT
MAX_IN_MEMORY_EVM_ACCOUNTS

Dont load to many account to memory, to avoid OOM.

MAX_TX_LEN
TEST_CHAIN_ID
TX_MTU

Traits

AccountProvider
ApplyBackend

EVM backend that can apply changes.

Backend

EVM backend.

FromKey
Handler

EVM context handler.

Functions

empty_trie_hash

Get the empty trie hash for merkle trie.

Type Definitions

PrecompileCallResult

Exit result, if succeed, returns ExitSucceed - info about execution, Vec - output data, u64 - gas cost