Module inspector

Module inspector 

Source
Expand description

revm inspector that accumulates per-transaction multi-gas by dimension.

Each opcode’s observed gas delta (step to step_end) is split with classify. Frame-spawning opcodes are special: their delta includes the gas forwarded to the child frame, whose own opcodes are observed separately, so the forwarded portion is removed via the call/create hooks. Contract code-deposit gas is charged at frame return rather than at an opcode, so it is added in create_end.

Structs§

MultiGasInspector
Accumulates per-transaction multi-gas across every executed frame.

Type Aliases§

MultiGasSink
Shared slot a MultiGasInspector writes each transaction’s multi-gas to, read by the block executor after execution.