-
Notifications
You must be signed in to change notification settings - Fork 1.4k
thorchain: update model logic #8979
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
Merged
Merged
+3,327
−6,050
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit f2e0547.
This reverts commit c0269e8.
defi_daily_earningsThere 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.
Comment @cursor review or bugbot run to trigger another review on this PR
dbt_subprojects/daily_spellbook/models/thorchain/silver/thorchain_silver_rewards_events.sql
Show resolved
Hide resolved
dbt_subprojects/daily_spellbook/models/thorchain/silver/thorchain_silver_transfer_events.sql
Show resolved
Hide resolved
dbt_subprojects/daily_spellbook/models/thorchain/silver/thorchain_silver_pool_events.sql
Show resolved
Hide resolved
dbt_subprojects/daily_spellbook/models/thorchain/gold/thorchain_defi_bond_actions.sql
Show resolved
Hide resolved
dbt_subprojects/daily_spellbook/models/thorchain/silver/thorchain_silver_total_value_locked.sql
Show resolved
Hide resolved
dbt_subprojects/daily_spellbook/models/thorchain/silver/thorchain_silver_transfers.sql
Show resolved
Hide resolved
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
dbt: daily
covers the Daily dbt subproject
ready-for-review
this PR development is complete, please review
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Refactors Thorchain silver models to normalized, day-based schemas and rewrites gold fact models to join core blocks with new surrogate keys/partitioning, adding
thorchain_core_transfersand extensive schema tests.row_number, and standardize columns (block_timestamp,day) acrosssilvermodels (add/bond/swap/stake/withdraw/events, prices, block_log, pool depths/fees/stats, rewards, transfers, TVL, block rewards).table/view; keys/partitions moved today; removed legacy time columns; recalculated daily aggregates.goldDeFi fact models to:thorchain_core_blockfordim_block_id, useblock_timestampincremental predicates, and new surrogate keys.daywhere applicable and adjust unique keys.thorchain_core_transfersand remove legacythorchain_defi_transfers._schema.ymlwith unique-combination tests aligned to new keys (primarilyday+ id/_unique_key).Written by Cursor Bugbot for commit 96f65da. Configure here.