celo-org / celo-monorepo

Official repository for core projects comprising the Celo platform
https://celo.org
Apache License 2.0
687 stars 362 forks source link

Design proof of concept e2e test against Anvil devchain #11015

Closed arthurgousset closed 1 month ago

arthurgousset commented 1 month ago

The Anvil devchain is set to become a core part of the primitive team's L2 testing and release tooling. The end goal is to run e2e tests against the anvil devchain, instead of the ganache devchain. This is a large initiative akin to the unit test migration from ganache to forge:

The scope of this issue to implement a proof of concept e2e test, and demo a setup pattern that can be used across all contracts.

To start, the idea is to demo a proof of concept with FeeCurrencyDirectory.sol or Accounts.sol since these might be simpler contracts. Technically, Governance.sol or Proposals.sol are the higher impact/value contracts, but they are more complex. So they might not be the best playground.

Once this is done, the next step is to create a list of e2e test to be migrated using the pattern demoed here.