pub fn build_step(
cfg: &OpcodeTracerConfig,
pc: u64,
opcode: u8,
gas: u64,
gas_cost: u64,
depth: u32,
refund: u64,
stack_view: &[U256],
memory_view: &[u8],
mem_size: u64,
return_data: &Bytes,
storage_kv: Option<(H256, H256)>,
) -> OpcodeStepExpand description
Constructs an OpcodeStep from raw VM state. Shared between the
dispatch-loop hook (pre_step_capture) and synthetic-step builders
(e.g. fused JUMPDEST under JUMP/JUMPI). Callers pass gas_cost = 0 when
they intend to patch it later in finalize_step; synthetic steps pass the
known cost directly.