Crate revm_interpreter

source ·
Expand description

§revm-interpreter

REVM Interpreter.

Re-exports§

Modules§

Macros§

  • 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.
  • Fails the instruction if the min is not enabled in SPEC.
  • Fails the instruction if the current call is static.
  • 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.
  • 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.
  • Resizes the interpreter memory if necessary. Fails the instruction if the memory or gas limit is exceeded.

Structs§

Enums§

Constants§

Traits§

  • EVM context host.