Crate revm_bytecode

Source
Expand description

Crate that contains bytecode types and opcode constants.

Legacy bytecode will always contain a jump table.

While EIP-7702 bytecode must contains a Address.

Re-exports§

pub use bytecode::Bytecode;
pub use legacy::JumpTable;
pub use legacy::LegacyAnalyzedBytecode;
pub use legacy::LegacyRawBytecode;
pub use opcode::OpCode;
pub use bitvec;

Modules§

bytecode
Module that contains the bytecode enum with all variants supported by Ethereum mainnet.
eip7702
EIP-7702 bytecode.
legacy
Legacy bytecode.
opcode
EVM opcode definitions and utilities. It contains opcode information and utilities to work with opcodes.
utils
Various utilities for the bytecode

Structs§

BytecodeIterator
Iterator over opcodes in a bytecode, skipping immediates.

Enums§

BytecodeDecodeError
Bytecode decode errors