-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
migrate all dex models to the new structure / design #4759
Comments
thanks for the intiative @Hosuke 🙌 should we repurpose this issue to be we could have separate issues for separate sectors edit: based on the title and label on issue, maybe you intended dex only? reading the description made me doubt that a bit, just want to clarify |
Sorry my phrase may not clear enough. I intended in the |
next steps in the
|
@Hosuke are you comfortable leading this? we can also reach out to users in the community to help migrate to new design in this issue, and coordinate who is helping migrate which dex. |
it is recommended to open one PR per dex to keep review cycle clean & quick as possible. it's okay to do all blockchains of a dex in one PR, but at minimum keep the PR to one dex. |
I am very enthusiastic about leading this initiative. However, there may be times when my language or technical descriptions might not be as precise as needed. Any additional directions or specific content that you can provide to ensure the success of this project are welcomed. |
no problem -- i'll be closely engaged all along 🤝 thanks for leading this! |
specific next steps:
once we reach step 3, we can look to see if anyone in the community is interested in helping migrate any dex projects to the new structure 🙏 |
Once you reach step 3 and finalized instructions created, i would like to help to migrate spells to the new structure |
Thank you @nyssarex , as I think we are at step 3, you can take any project to migrate and list them here if you want. |
@Hosuke can we monitor the beta spell over time, as more are added, in terms of matching existing this comment had a query to compare during the initial build and results matched. sadly i didn't save the query & it's a screenshot, but should be quick to rewrite (and enhance as needed). if results differ at all as more dexes are added, we can group by project / blockchain / version and find specific spells which may be the issue. we could explore adding as a test in the repo too, so it runs in CI automatically, if that's easier. |
I have done some experiments to rank token stability in this query: If this rank is useful to solve this problem, I can extend the query into a spell. edit: which is better? static or dynamic stable coin rank? |
@Hosuke where do we stand on the status? what steps are left to finalize the migration? some thoughts:
|
The current dex.trades_beta covers all existing dex.trades: |
fantastic! want to open a PR which renames the |
i will work on how to finalize communication on this |
We may keep the original dex.trades maybe as Here is a simple test we may use for testing data consistency. |
okay, we can keep it live under the linked query here will need to evolve a bit as analysis continues, to account for some intentional changes we made of switching bought/sold during migration (as tom found bugs, for example). so we could add case statements for certain projets/versions/blockchains to ignore in results, if we know we flipped intentionally. |
Since we have fixed flipped tokens in both dex.trades and dex.trades_beta, the diff is caused by |
|
i wonder if we quickly add one final test / validation, we fork this dashboard: and update a few queries to read from we don't need to do all the queries and visuals, but maybe 2-3, such as: if you think you can do this in ~an hour or two, let's see how that looks 🙏 edit: |
Updated at Apr 23, 2024:
Since all dexes have been migrated to the new dex.trades lineage.
We continue to remove/modify the legacy code project by project.
Hello Team,
I'm opening this issue to keep track of all the Pull Requests (PRs) that implement the new macro approach in dex.trades, as introduced in PR #4533.
Purpose
_beta
dex lineage.Call for Contributions
Looking forward to seeing the innovative ways this new approach is being utilized and enhanced!
Migration tracking table
Dune Query by @tomfutago: https://dune.com/queries/3240358
Updated records in dex.trades_beta compared to dex.trades
Related PR
Enhancement PR
check_seed
tests and seed files with new schema tobase_trades
models #4774The text was updated successfully, but these errors were encountered: