Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brief comments on the purpose of your changes: Fixed X2Y2's `token_id`, `project`, `royalty_fee_percentage`, `platform_fee_percentage` and `token_standard` and make abstraction more efficient (added block_time on joins) Probably needs a full rerun after merging due to project name change 🤔 *For Dune Engine V2* I've checked that: General checks: * [X] I tested the query on dune.com after compiling the model with dbt compile (compiled queries are written to the target directory) * [X] I used "refs" to reference other models in this repo and "sources" to reference raw or decoded tables * [X] if adding a new model, I added a test * [X] the filename is unique and ends with .sql * [X] each sql file is a select statement and has only one view, table or function defined * [X] column names are `lowercase_snake_cased` * [X] if adding a new model, I edited the dbt project YAML file with new directory path for both models and seeds (if applicable) * [X] if adding a new model, I edited the alter table macro to display new database object (table or view) in UI explorer * [X] if adding a new materialized table, I edited the optimize table macro Join logic: * [X] if joining to base table (i.e. ethereum transactions or traces), I looked to make it an inner join if possible Incremental logic: * [X] I used is_incremental & not is_incremental jinja block filters on both base tables and decoded tables * [X] where block_time >= date_trunc("day", now() - interval '1 week') * [X] if joining to base table (i.e. ethereum transactions or traces), I applied join condition where block_time >= date_trunc("day", now() - interval '1 week') * [X] if joining to prices view, I applied join condition where minute >= date_trunc("day", now() - interval '1 week')
- Loading branch information