reth_revm

Crate interpreter

Expand description

§revm-interpreter

REVM Interpreter.

Modules§

Macros§

  • Converts a U256 value to a isize, saturating to isize::MAX if the value is too large.
  • Converts a U256 value to a u64, saturating to MAX if the value is too large.
  • Converts a U256 value to a usize, failing the instruction if the value is too large.
  • Converts a U256 value to a usize and returns ret, failing the instruction if the value is too large.
  • Converts a U256 value to a usize, saturating to MAX if the value is too large.
  • Check if the SPEC is enabled, and fail the instruction if it is not.
  • Records a gas cost and fails the instruction if it would exceed the available gas.
  • Same as gas!, but with gas as an option.
  • Pops U256 values from the stack. Fails the instruction if the stack is too small.
  • Pops Address values from the stack. Fails the instruction if the stack is too small.
  • Pop Address values from the stack, returns ret on stack underflow.
  • Pops U256 values from the stack, and returns ret. Fails the instruction if the stack is too small.
  • Pops U256 values from the stack, and returns a reference to the top of the stack. Fails the instruction if the stack is too small.
  • Pushes a B256 value onto the stack. Fails the instruction if the stack is full.
  • Pushes B256 values onto the stack. Fails the instruction if the stack is full.
  • Records a gas refund.
  • Error if the current call is executing EOF.
  • Error if not init eof call.
  • Fails the instruction if the current call is static.
  • Resizes the interpreter memory if necessary. Fails the instruction if the memory or gas limit is exceeded.

Structs§

Enums§

Constants§

Traits§

  • EVM context host.

Functions§

  • Returns number of words what would fit to provided number of bytes, i.e. it rounds up the number bytes to number of words.

Type Aliases§