-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CUR2-263 taiko to base trades #8502
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
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.
Pull Request Overview
This PR implements DEX (Decentralized Exchange) trade tracking for the Taiko blockchain by adding base trade models for four platforms: Oku, Unagi V2/V3, and Izumi. The implementation follows the standard Spellbook pattern for DEX integrations.
- Adds source definitions for DEX event tables from four platforms on Taiko
- Creates individual base trade models for each platform using existing Uniswap-compatible macros
- Implements a unified aggregation model that combines all platform trades
- Adds comprehensive test coverage with seed data validation
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
sources/_sector/dex/trades/taiko/_sources.yml | Defines event table sources for Oku, Unagi V2/V3, and Izumi DEX platforms |
dbt_subprojects/dex/seeds/trades/_schema.yml | Adds seed data schemas for testing each platform's base trades |
dbt_subprojects/dex/models/trades/taiko/platforms/*.sql | Individual platform models that transform raw events into standardized trade data |
dbt_subprojects/dex/models/trades/taiko/dex_taiko_base_trades.sql | Unified model aggregating all platform trades with transaction metadata |
dbt_subprojects/dex/models/trades/taiko/_schema.yml | Defines model metadata, tests, and documentation for all Taiko DEX models |
Comments suppressed due to low confidence (1)
dbt_subprojects/dex/models/trades/taiko/platforms/oku_v3_taiko_base_trades.sql:3
- The schema name 'oku_v3_taiko' is inconsistent with the project name. Based on the source definition, this should be 'oku_taiko' to match the source name 'oku_taiko'.
schema = 'oku_v3_taiko',
dbt_subprojects/dex/models/trades/taiko/platforms/izumi_taiko_base_trades.sql
Outdated
Show resolved
Hide resolved
dbt_subprojects/dex/models/trades/taiko/platforms/izumi_finance_taiko_base_trades.sql
Show resolved
Hide resolved
dbt_subprojects/dex/models/trades/taiko/platforms/izumi_finance_taiko_base_trades.sql
Show resolved
Hide resolved
…spellbook into taiko_into_trades
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.
missing the amount_usd check
Thank you for contributing to Spellbook 🪄
Please open the PR in draft and mark as ready when you want to request a review.
Description:
[...]
quick links for more information: