[vm] Add a gas ledger behind MONAD_GAS_PROFILE
Gas pricing work needs to know what each unit of gas pays for. This adds a per-transaction ledger that records every gas charge against its resource: an opcode's static gas, memory and copy words, cold accounts and slots, MIP-8 page writes, each precompile, the parts of intrinsic gas, and the code bytes a transaction loads. It's off by default. Without MONAD_GAS_PROFILE every hook compiles to nothing, so production builds don't change: with it off, every function in the objects the stack touches has the same instruction count as on main.
Stack: this PR → #2862 (VM hooks) → #2863 (execution hooks) → #2864 (monad-ethereum-test --gas-profile). With the whole stack, every transaction's components add up exactly to its gas, with nothing untagged, across the 5,398 transactions in the 300 mainnet replay blocks, 68,773 in the MONAD_TEN spec tests and 23,771 in the Osaka spec tests.
Most of the diff is the component enum and its names.
🤖 Generated with Claude Code