Crate revm

Source
Expand description

Revm is a Rust EVM implementation.

Re-exports§

pub use db::CacheState;
pub use db::DBBox;
pub use db::State;
pub use db::StateBuilder;
pub use db::StateDBBox;
pub use db::TransitionAccount;
pub use db::TransitionState;
pub use db::InMemoryDB;
pub use handler::Handler;

Modules§

db
Database implementations.
handler
inspectors
Inspector implementations.
interpreter
revm-interpreter
precompile
revm-precompile
primitives
revm-primitives

Structs§

CallFrame
Call CallStackFrame.
Context
Main Context structure that contains both EvmContext and External context.
ContextPrecompiles
Precompiles context.
ContextWithHandlerCfg
Context with handler configuration.
CreateFrame
Evm
EVM instance containing both internal EVM context and external context and the handler that dictates the logic of EVM (or hardfork specification).
EvmBuilder
Evm Builder allows building or modifying EVM. Note that some of the methods that changes underlying structures will reset the registered handler to default mainnet.
EvmContext
EVM context that contains the inner EVM context and precompiles.
FrameData
InnerEvmContext
EVM contexts contains data that EVM needs for execution.
JournalCheckpoint
SubRoutine checkpoint that will help us to go back from this
JournaledState
A journal of state changes internal to the EVM.

Enums§

ContextPrecompile
A single precompile handler.
Frame
Call stack frame.
FrameOrResult
Contains either a frame or a result.
FrameResult
JournalEntry
Journal entries that are used to track changes to the state and are used to revert it.

Constants§

CALL_STACK_LIMIT
EVM call stack limit.

Traits§

ContextStatefulPrecompile
Context aware stateful precompile trait. It is used to create a arc precompile in ContextPrecompile.
ContextStatefulPrecompileMut
Context aware mutable stateful precompile trait. It is used to create a boxed precompile in ContextPrecompile.
Database
EVM database interface.
DatabaseCommit
EVM database commit interface.
DatabaseRef
EVM database interface.
GetInspector
Provides access to an Inspector instance.
Inspector
EVM Interpreter callbacks.

Functions§

inspector_handle_register
Register Inspector handles that interact with Inspector instance.

Type Aliases§

ContextStatefulPrecompileArc
Arc over context stateful precompile.
ContextStatefulPrecompileBox
Box over context mutable stateful precompile