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§
- Call
Frame - Call CallStackFrame.
- Context
- Main Context structure that contains both EvmContext and External context.
- Context
Precompiles - Precompiles context.
- Context
With Handler Cfg - Context with handler configuration.
- Create
Frame - 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.
- Frame
Data - Inner
EvmContext - EVM contexts contains data that EVM needs for execution.
- Journal
Checkpoint - SubRoutine checkpoint that will help us to go back from this
- Journaled
State - A journal of state changes internal to the EVM.
Enums§
- Context
Precompile - A single precompile handler.
- Frame
- Call stack frame.
- Frame
OrResult - Contains either a frame or a result.
- Frame
Result - Journal
Entry - 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§
- Context
Stateful Precompile - Context aware stateful precompile trait. It is used to create
a arc precompile in
ContextPrecompile
. - Context
Stateful Precompile Mut - Context aware mutable stateful precompile trait. It is used to create
a boxed precompile in
ContextPrecompile
. - Database
- EVM database interface.
- Database
Commit - EVM database commit interface.
- Database
Ref - 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§
- Context
Stateful Precompile Arc - Arc over context stateful precompile.
- Context
Stateful Precompile Box - Box over context mutable stateful precompile