Crate revm_interpreter
source ·Expand description
§revm-interpreter
REVM Interpreter.
Re-exports§
pub use gas::Gas;
pub use instructions::opcode;
pub use instructions::Instruction;
pub use instructions::OpCode;
pub use instructions::OPCODE_JUMPMAP;
Modules§
- EVM gas calculation utilities.
- EVM opcode implementations.
Macros§
Structs§
- An analyzed bytecode.
- Context of a runtime call.
- Inputs for a call.
- Represents the outcome of a call operation in a virtual machine.
- EVM contract information.
- Inputs for a create call.
- Represents the outcome of a create operation in an interpreter.
- A dummy Host implementation.
- The result of an interpreter operation.
- Result of a call that resulted in a self destruct.
- A sequential memory shared between calls, which uses a
Vec
for internal representation. A SharedMemory instance should always be obtained using thenew
static method to ensure memory safety. - EVM stack with STACK_LIMIT capacity of words.
- Transfer from source to target, with given value.
Enums§
- Call schemes.
- Create scheme.
Constants§
- Empty shared memory.
- EIP-170: Contract code size limit By default limit is 0x6000 (~25kb)
- EIP-3860: Limit and meter initcode
- EVM interpreter stack limit.
Traits§
- EVM context host.
Functions§
- Rounds up
x
to the closest multiple of 32. Ifx % 32 == 0
thenx
is returned.