ethereum-optimism / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
5.54k stars 3.19k forks source link

Implement e2e test infrastructure for running the op-program #11653

Open Inphi opened 3 weeks ago

Inphi commented 3 weeks ago

It should be feasible to easily run VMs on the op-program (with valid inputs) without instantiating the op-challenger and dispute games.

ajsutton commented 3 weeks ago

We can do this for op-program natively already: https://github.com/ethereum-optimism/optimism/blob/b7f818877805b8c89eb27f7480e1b7b817c9f467/op-e2e/system_fpp_test.go#L299

Would need an extra helper to execute cannon since it can't be directly called like op-program can but should be fairly straight forward. Adding some helpers to abstract the test from the details of invoking op-program would make sense too, some of which is basically what the testFaultProofProgramScenario is trying to do.