Crate revm_interpreter
source ·Expand description
§revm-interpreter
REVM Interpreter.
Re-exports§
pub use gas::Gas;pub use interpreter::analysis;pub use interpreter::num_words;pub use interpreter::Contract;pub use interpreter::Interpreter;pub use interpreter::InterpreterResult;pub use interpreter::Stack;pub use interpreter::EMPTY_SHARED_MEMORY;pub use interpreter::STACK_LIMIT;pub use interpreter_action::CallInputs;pub use interpreter_action::CallOutcome;pub use interpreter_action::CallScheme;pub use interpreter_action::CallValue;pub use interpreter_action::CreateInputs;pub use interpreter_action::CreateOutcome;pub use interpreter_action::EOFCreateInputs;pub use interpreter_action::EOFCreateKind;pub use interpreter_action::InterpreterAction;pub use opcode::Instruction;pub use opcode::OpCode;pub use opcode::OPCODE_INFO_JUMPTABLE;
Modules§
- EVM gas calculation utilities.
- EVM opcode implementations.
- EVM opcode definitions and utilities.
Macros§
- Converts a
U256value to aisize, saturating toisize::MAXif the value is too large. - Converts a
U256value to au64, saturating toMAXif the value is too large. - Converts a
U256value to ausize, failing the instruction if the value is too large. - Converts a
U256value to ausizeand returnsret, failing the instruction if the value is too large. - Converts a
U256value to ausize, saturating toMAXif the value is too large. - Check if the
SPECis enabled, and fail the instruction if it is not. - Records a
gascost and fails the instruction if it would exceed the available gas. - Same as
gas!, but withgasas an option. - Pops
U256values from the stack. Fails the instruction if the stack is too small. - Pops
Addressvalues from the stack. Fails the instruction if the stack is too small. - Pop
Addressvalues from the stack, returnsreton stack underflow. - Pops
U256values from the stack, and returnsret. Fails the instruction if the stack is too small. - Pops
U256values from the stack, and returns a reference to the top of the stack. Fails the instruction if the stack is too small. - Pushes a
B256value onto the stack. Fails the instruction if the stack is full. - Pushes
B256values onto the stack. Fails the instruction if the stack is full. - Records a
gasrefund. - 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§
- A dummy Host implementation.
- Function return frame. Needed information for returning from a function.
- Function Stack
- Result of the account load from Journal state.
- Represents the result of an
sstoreoperation. - Result of a selfdestruct instruction.
Enums§
- Create scheme.
- Internal result that are not ex
Constants§
- EIP-170: Contract code size limit
- EIP-3860: Limit and meter initcode
Traits§
- EVM context host.