-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Snapshot with 0.1 governance spec #3
Comments
Unfortunately this is not looking anywhere as easy I'd hoped. Snapshot has a local test harness (no Docker container) that connects to a live network (e.g. main net) to run against contract's there. End to end testing is going to be ...interesting 🤔 |
@shahankhatch do you want the testing framework code in this BitDAO repo or under the WindRanger repo? Current thoughts being create the e2e code in the WindRanger then port over the test code to verify the deployed BitDAO contract. |
Your suggestion for having e2e in Windranger and porting BitDAO-specific tests sounds like a good suggestion @CjHare 👍 |
The test repo up and running against the latest Governance contracts with a open vote and role vote strategies available. https://github.com/windranger-io/windranger-governance-snapshot-strategies-it The |
Evaluate whether this testing framework can be offered as a template To apply to a different Governance framework, interfaces can be added to abstract the details of which contract to deploy and how to initialise them, which would create a further separation between the init and test logic. The one hiccup is needing to know the multicall contract (common for all snapshot testing) before it is deployed. Not difficult as HardHat uses generated addresses based on order of contract creation, so is consistent across runs, but when updating dependencies is going to be a gotcha) |
@shahankhatch This one I think can be closed too as we have sufficient integration test for current contracts and snapshot in strategies-it repo and full flow tests for on-chain Governance in the current repo. |
@shahankhatch this last point is likely to need a PoC (experimenting on Rinkeby with Gnosis Safe+Zodiac), as it's not entirely clear to me from the Zodiac docs how the various plugins work together 🤔 Using Zodiac with on-chain governance is mentioned, but only in passing, without example ...many open questions. |
Future work:
The text was updated successfully, but these errors were encountered: