-
Notifications
You must be signed in to change notification settings - Fork 608
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
Twap: Integrate and Add migration tests #2429
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @mattverse
I skimmed the original issue and I think there might be one point that needs to be addressed:
add an upgrade test for v11, that ensures were still producing blocks with swaps post-upgrade.
I think that implies adding an e2e test. We currently don't have any doins swaps, only creating pools.
Can we either add it here or create an issue, attaching it to the v12 milestone blocker, please?
I'm also happy to help with adding this check to e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK (pending review comments being addressed 👍 )
Co-authored-by: Roman <[email protected]>
I think we should merge this after @p0mvn 's comment for transient store being tested is addressed |
Addressed! Merging :) |
Closes: #2198
What is the purpose of the change
Integrates and adds migration test. The migration logic is implemented using the last pool id, not by creating a method that iterates through all pools and gets all pool IDs.
This PR also introduces test cases for the upgrade itself, and the migration method.
Brief Changelog
Add migration test for existing pools on the twap module.
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? no