[vm] Record VM gas charges in the gas ledger
ReferencesMIP-8
Records every VM gas charge in the ledger from #2861: the interpreter's static gas, memory, copies, keccak, logs, EXP, cold accesses, SSTORE by status, MIP-8 page writes and growth, calls and creates. Each deduction takes its amount from gas_profile::tag(component, units, gas), which records the charge and returns the gas, so the ledger and the deduction share one value. Without MONAD_GAS_PROFILE, tag just returns its argument.
Stack: #2861 → this PR → #2863 → #2864.
🤖 Generated with Claude Code