forked from duneanalytics/spellbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Balance improvements (duneanalytics#7290)
* move safe balance models * add incremental to balances and use daily prices table
- Loading branch information
Showing
19 changed files
with
165 additions
and
387 deletions.
There are no files selected for viewing
This file contains 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
123 changes: 123 additions & 0 deletions
123
dbt_subprojects/daily_spellbook/models/_projects/safe/balances/_schema.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: safe_arbitrum_balances | ||
data_tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- day | ||
- address | ||
- token_address | ||
meta: | ||
blockchain: arbitrum | ||
project: safe | ||
contributors: safeintern | ||
config: | ||
tags: ['safe', 'arbitrum'] | ||
description: “Safe addresses balances” | ||
|
||
- name: safe_avalanche_c_balances | ||
data_tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- day | ||
- address | ||
- token_address | ||
meta: | ||
blockchain: avalanche_c | ||
project: safe | ||
contributors: safeintern | ||
config: | ||
tags: [ 'safe', 'avalanche_c' ] | ||
description: “Safe addresses balances” | ||
|
||
- name: safe_base_balances | ||
data_tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- day | ||
- address | ||
- token_address | ||
meta: | ||
blockchain: base | ||
project: safe | ||
contributors: safeintern | ||
config: | ||
tags: [ 'safe', 'base' ] | ||
description: “Safe addresses balances” | ||
|
||
- name: safe_ethereum_balances | ||
data_tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- day | ||
- address | ||
- token_address | ||
meta: | ||
blockchain: ethereum | ||
project: safe | ||
contributors: safeintern | ||
config: | ||
tags: [ 'safe', 'ethereum' ] | ||
description: “Safe addresses balances” | ||
|
||
- name: safe_linea_balances | ||
data_tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- day | ||
- address | ||
- token_address | ||
meta: | ||
blockchain: linea | ||
project: safe | ||
contributors: safeintern | ||
config: | ||
tags: [ 'safe', 'linea' ] | ||
description: “Safe addresses balances” | ||
|
||
- name: safe_optimism_balances | ||
data_tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- day | ||
- address | ||
- token_address | ||
meta: | ||
blockchain: optimism | ||
project: safe | ||
contributors: safeintern | ||
config: | ||
tags: [ 'safe', 'optimism' ] | ||
description: “Safe addresses balances” | ||
|
||
- name: safe_polygon_balances | ||
data_tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- day | ||
- address | ||
- token_address | ||
meta: | ||
blockchain: polygon | ||
project: safe | ||
contributors: safeintern | ||
config: | ||
tags: [ 'safe', 'polygon' ] | ||
description: “Safe addresses balances” | ||
|
||
- name: safe_scroll_balances | ||
data_tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- day | ||
- address | ||
- token_address | ||
meta: | ||
blockchain: scroll | ||
project: safe | ||
contributors: safeintern | ||
config: | ||
tags: [ 'safe', 'scroll' ] | ||
description: “Safe addresses balances” | ||
|
This file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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
Oops, something went wrong.