execution-spec-tests icon indicating copy to clipboard operation
execution-spec-tests copied to clipboard

chore(fw): extra opcode metadata - block opcode usage based on fork

Open spencer-tb opened this issue 11 months ago • 0 comments

For tests that are marked valid from a specific fork, i.e Frontier don't allow opcodes that are introduced after the fork.

Ideally we extend each opcode class to include a Fork field, such that they can be accessed using something like Op.GASPRICE.Fork.

We could also add futher meta information such as gas costs, something like Op.GASPRICE.Gas that can be used to easily calculate the total gas cost of chained opcodes, utilized for verification in tests. I.e asserting the gas cost is expected or adding it to an sstore.

spencer-tb avatar Feb 27 '24 05:02 spencer-tb