Expand description
Revm is a Rust EVM implementation.
Modules§
- bytecode
- Crate that contains bytecode types and opcode constants.
- context
- EVM execution context.
- context_
interface - EVM execution context interface.
- database
- Database implementations.
- database_
interface - Database interface.
- handler
- EVM execution handling.
- inspector
- Inspector is a crate that provides a set of traits that allow inspecting the EVM execution.
- interpreter
- revm-interpreter
- precompile
- revm-precompile
- primitives
- revm-primitives
- state
- Account and storage state.
- statetest_
types - revm-statetest-types
Structs§
- AsyncDb
- Adapter that exposes an async database through the synchronous
Databaseinterface. - Context
- EVM context contains data that EVM needs for execution.
- Journal
- A journal of state changes internal to the EVM
- Noop
Hook - An
OnStateHookthat does nothing. - Wrap
Database Async - Wraps a DatabaseAsync or DatabaseAsyncRef to provide a
Databaseimplementation.
Enums§
- Async
Error - Error returned by async database execution helpers.
- Journal
Entry - Journal entries that are used to track changes to the state and are used to revert it.
Traits§
- Database
- EVM database interface.
- Database
Async - The async EVM database interface.
- Database
Commit - EVM database commit interface.
- Database
Ref - EVM database interface.
- Execute
Commit Evm - Extension of the
ExecuteEvmtrait that adds a method that commits the state after execution. - Execute
Evm - Execute EVM transactions. Main trait for transaction execution.
- Execute
EvmAsync - Async extension of the
ExecuteEvmtrait that runs execution on an async fiber. - Inspect
Commit Evm - InspectCommitEvm is a API that allows inspecting similar to
InspectEvmbut it has functions that commit the state diff to the database. - Inspect
Evm - InspectEvm is a API that allows inspecting the EVM.
- Inspect
System Call Evm - InspectSystemCallEvm is an API that allows inspecting system calls in the EVM.
- Inspector
- EVM hooks into execution.
- Main
Builder - Trait for building mainnet EVM instances from contexts.
- Main
Context - Trait used to initialize Context with default mainnet types.
- OnState
Hook - A hook that is called when state changes are committed.
- System
Call Commit Evm - Extension of the
SystemCallEvmtrait that adds a method that commits the state after execution. - System
Call Evm - API for executing the system calls. System calls dont deduct the caller or reward the beneficiary. They are used before and after block execution to insert or obtain blockchain state.
- System
Call EvmAsync - Async extension of the
SystemCallEvmtrait that runs execution on an async fiber.
Functions§
- install_
crypto - Install a custom crypto provider globally.
Type Aliases§
- Async
Result - Result type used by async database execution helpers.
- Mainnet
Evm - Type alias for a mainnet EVM instance with standard Ethereum components.