Expand description
Custom opcodes example
Re-exportsยง
pub(crate) use bytecode::opcode;๐pub(crate) use Evm;๐pub(crate) use TxEnv;๐pub(crate) use BenchmarkDB;๐pub(crate) use BENCH_TARGET;๐pub(crate) use instructions::EthInstructions;๐pub(crate) use EthPrecompiles;๐pub(crate) use inspector::inspectors::TracerEip3155;๐pub(crate) use interpreter::EthInterpreter;๐pub(crate) use Immediates;๐pub(crate) use Jumps;๐pub(crate) use Instruction;๐pub(crate) use InstructionContext;๐pub(crate) use primitives::hardfork::SpecId;๐pub(crate) use primitives::TxKind;๐pub(crate) use state::Bytecode;๐pub(crate) use Context;๐pub(crate) use InspectEvm;๐pub(crate) use MainContext;๐
Constantsยง
- MY_
STATIC_ ๐JUMP - Opcode hex value
Functionsยง
- main
- Demonstrates how to implement and use custom opcodes in REVM. This example shows how to create a custom static jump opcode that reads a 16-bit offset from the bytecode and performs a relative jump.