Expand description
Per-opcode multi-gas dimension rules, mirroring Nitro’s gas functions.
Each opcode’s total gas is split across resource kinds. The non-computation amounts are derived from the EIP-2929/2200 constants below; whatever the observed total leaves over is computation (base cost, warm access, memory expansion, value transfer, forwarded call gas).
Enums§
- OpKind
- Classification inputs for the gas-relevant opcodes; all other opcodes are pure computation.
Functions§
- classify
- Split
gas(the opcode’s observed total) across resource kinds. The remainder after the typed amounts falls into computation, so the result always sums togas.