From 47deb48b92a93bfe35367a71c7e07432f65299b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hildebert=20Mouli=C3=A9?= Date: Sun, 6 Oct 2024 03:37:00 +0200 Subject: [PATCH 1/6] create `tokens_mode.transfers` --- .../transfers_and_balances/mode/_schema.yml | 106 ++++++++++++++++++ .../mode/tokens_mode_base_transfers.sql | 20 ++++ .../mode/tokens_mode_transfers.sql | 26 +++++ .../_subprojects_outputs/tokens/transfers.yml | 12 ++ 4 files changed, 164 insertions(+) create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/mode/_schema.yml create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_base_transfers.sql create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_transfers.sql diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/mode/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/mode/_schema.yml new file mode 100644 index 00000000000..51d7993e7a8 --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/mode/_schema.yml @@ -0,0 +1,106 @@ +version: 2 + +models: + - name: tokens_mode_base_transfers + meta: + blockchain: mode + sector: tokens + contributors: aalan3, jeff-dude, hildobby + config: + tags: ['tokens','transfers', 'mode'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: amount_raw + description: "The raw amount of the transfer" + + - name: tokens_mode_transfers + meta: + blockchain: mode + sector: tokens + contributors: aalan3, jeff-dude, hildobby + config: + tags: ['tokens','transfers', 'mode'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: symbol + description: "The token symbol transferred" + - name: amount_raw + description: "The raw amount of the transfer" + - name: amount + description: "The formatted amount of the transfer" + - name: price_usd + description: "The USD price used to calculate the amount_usd" + - name: amount_usd + description: "The USD amount of the transfer" \ No newline at end of file diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_base_transfers.sql new file mode 100644 index 00000000000..af99808a985 --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_base_transfers.sql @@ -0,0 +1,20 @@ +{{config( + schema = 'tokens_mode', + alias = 'base_transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['block_date','unique_key'], +) +}} + +{{transfers_base( + blockchain='mode', + traces = source('mode','traces'), + transactions = source('mode','transactions'), + erc20_transfers = source('erc20_mode','evt_transfer'), + native_contract_address = null +) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_transfers.sql new file mode 100644 index 00000000000..3d677105c12 --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_transfers.sql @@ -0,0 +1,26 @@ +{{config( + schema = 'tokens_mode', + alias = 'transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['block_date','unique_key'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], + post_hook='{{ expose_spells(\'["mode"]\', + "sector", + "tokens", + \'["aalan3", "jeff-dude", "hildobby"]\') }}' +) +}} + +{{ + transfers_enrich( + base_transfers = ref('tokens_mode_base_transfers') + , tokens_erc20_model = source('tokens', 'erc20') + , prices_model = source('prices', 'usd') + , evms_info_model = source('evms','info') + , transfers_start_date = '2020-04-22' + , blockchain = 'mode' + ) +}} diff --git a/sources/_subprojects_outputs/tokens/transfers.yml b/sources/_subprojects_outputs/tokens/transfers.yml index e229ae82b19..b5a9d948296 100644 --- a/sources/_subprojects_outputs/tokens/transfers.yml +++ b/sources/_subprojects_outputs/tokens/transfers.yml @@ -68,5 +68,17 @@ sources: - name: transfers - name: tokens_mantle + tables: + - name: transfers + + - name: tokens_sei + tables: + - name: transfers + + - name: tokens_mode + tables: + - name: transfers + + - name: tokens_goerli tables: - name: transfers \ No newline at end of file From a3d90d7c65c25196560f104563fd5a8231a5abb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hildebert=20Mouli=C3=A9?= Date: Sun, 6 Oct 2024 03:40:53 +0200 Subject: [PATCH 2/6] add to crosschain spell --- .../tokens/models/transfers_and_balances/_schema.yml | 2 +- .../tokens/models/transfers_and_balances/tokens_transfers.sql | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/_schema.yml index 5b9a6ab9cb9..523f4446f05 100644 --- a/dbt_subprojects/tokens/models/transfers_and_balances/_schema.yml +++ b/dbt_subprojects/tokens/models/transfers_and_balances/_schema.yml @@ -5,7 +5,7 @@ models: meta: docs_slug: /curated/asset-tracking/evm/token-transfers sector: tokens - contributors: aalan3, jeff-dude, 0xBoxer + contributors: aalan3, jeff-dude, 0xBoxer, hildobby config: tags: ['tokens','transfers'] description: > diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql index dfa38cbd772..03b4c70febe 100644 --- a/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql +++ b/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql @@ -20,10 +20,11 @@ ,"zkevm" ,"zksync" ,"zora" + ,"mode" ]\', "sector", "tokens", - \'["aalan3", "jeff-dude"]\') }}' + \'["aalan3", "jeff-dude", "0xBoxer", "hildobby"]\') }}' ) }} @@ -46,6 +47,7 @@ ,'zkevm' ,'zksync' ,'zora' + ,'mode' ] %} SELECT * From 374e109a768e2f907e7c6bfcdeebfbac8fc4974f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hildebert=20Mouli=C3=A9?= Date: Sun, 6 Oct 2024 04:39:50 +0200 Subject: [PATCH 3/6] add sepolia, degen and bob --- .../transfers_and_balances/bob/_schema.yml | 106 ++++++++++++++++++ .../bob/tokens_bob_base_transfers.sql | 20 ++++ .../bob/tokens_bob_transfers.sql | 26 +++++ .../transfers_and_balances/degen/_schema.yml | 106 ++++++++++++++++++ .../degen/tokens_degen_base_transfers.sql | 20 ++++ .../degen/tokens_degen_transfers.sql | 26 +++++ .../transfers_and_balances/goerli/_schema.yml | 106 ++++++++++++++++++ .../goerli/tokens_goerli_base_transfers.sql | 20 ++++ .../goerli/tokens_goerli_transfers.sql | 26 +++++ .../sepolia/_schema.yml | 106 ++++++++++++++++++ .../sepolia/tokens_sepolia_base_transfers.sql | 20 ++++ .../sepolia/tokens_sepolia_transfers.sql | 26 +++++ .../tokens_transfers.sql | 4 + 13 files changed, 612 insertions(+) create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/bob/_schema.yml create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_base_transfers.sql create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_transfers.sql create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/degen/_schema.yml create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_base_transfers.sql create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_transfers.sql create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/goerli/_schema.yml create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_base_transfers.sql create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_transfers.sql create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/sepolia/_schema.yml create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_base_transfers.sql create mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_transfers.sql diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/bob/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/bob/_schema.yml new file mode 100644 index 00000000000..6c9adfa508d --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/bob/_schema.yml @@ -0,0 +1,106 @@ +version: 2 + +bobls: + - name: tokens_bob_base_transfers + meta: + blockchain: bob + sector: tokens + contributors: aalan3, jeff-dude + config: + tags: ['tokens','transfers', 'bob'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: amount_raw + description: "The raw amount of the transfer" + + - name: tokens_bob_transfers + meta: + blockchain: bob + sector: tokens + contributors: aalan3, jeff-dude + config: + tags: ['tokens','transfers', 'bob'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: symbol + description: "The token symbol transferred" + - name: amount_raw + description: "The raw amount of the transfer" + - name: amount + description: "The formatted amount of the transfer" + - name: price_usd + description: "The USD price used to calculate the amount_usd" + - name: amount_usd + description: "The USD amount of the transfer" diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_base_transfers.sql new file mode 100644 index 00000000000..f2fa2ad5338 --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_base_transfers.sql @@ -0,0 +1,20 @@ +{{config( + schema = 'tokens_bob', + alias = 'base_transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['block_date','unique_key'], +) +}} + +{{transfers_base( + blockchain='bob', + traces = source('bob','traces'), + transactions = source('bob','transactions'), + erc20_transfers = source('erc20_bob','evt_transfer'), + native_contract_address = null +) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_transfers.sql new file mode 100644 index 00000000000..5b8be2a27b0 --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_transfers.sql @@ -0,0 +1,26 @@ +{{config( + schema = 'tokens_bob', + alias = 'transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['block_date','unique_key'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], + post_hook='{{ expose_spells(\'["bob"]\', + "sector", + "tokens", + \'["aalan3", "jeff-dude"]\') }}' +) +}} + +{{ + transfers_enrich( + base_transfers = ref('tokens_bob_base_transfers') + , tokens_erc20_model = source('tokens', 'erc20') + , prices_model = source('prices', 'usd') + , evms_info_model = source('evms','info') + , transfers_start_date = '2024-05-27' + , blockchain = 'bob' + ) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/degen/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/degen/_schema.yml new file mode 100644 index 00000000000..1d09b15a54e --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/degen/_schema.yml @@ -0,0 +1,106 @@ +version: 2 + +degenls: + - name: tokens_degen_base_transfers + meta: + blockchain: degen + sector: tokens + contributors: aalan3, jeff-dude + config: + tags: ['tokens','transfers', 'degen'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: amount_raw + description: "The raw amount of the transfer" + + - name: tokens_degen_transfers + meta: + blockchain: degen + sector: tokens + contributors: aalan3, jeff-dude + config: + tags: ['tokens','transfers', 'degen'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: symbol + description: "The token symbol transferred" + - name: amount_raw + description: "The raw amount of the transfer" + - name: amount + description: "The formatted amount of the transfer" + - name: price_usd + description: "The USD price used to calculate the amount_usd" + - name: amount_usd + description: "The USD amount of the transfer" diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_base_transfers.sql new file mode 100644 index 00000000000..55b530ce9da --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_base_transfers.sql @@ -0,0 +1,20 @@ +{{config( + schema = 'tokens_degen', + alias = 'base_transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['block_date','unique_key'], +) +}} + +{{transfers_base( + blockchain='degen', + traces = source('degen','traces'), + transactions = source('degen','transactions'), + erc20_transfers = source('erc20_degen','evt_transfer'), + native_contract_address = null +) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_transfers.sql new file mode 100644 index 00000000000..da12e71907b --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_transfers.sql @@ -0,0 +1,26 @@ +{{config( + schema = 'tokens_degen', + alias = 'transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['block_date','unique_key'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], + post_hook='{{ expose_spells(\'["degen"]\', + "sector", + "tokens", + \'["aalan3", "jeff-dude"]\') }}' +) +}} + +{{ + transfers_enrich( + base_transfers = ref('tokens_degen_base_transfers') + , tokens_erc20_model = source('tokens', 'erc20') + , prices_model = source('prices', 'usd') + , evms_info_model = source('evms','info') + , transfers_start_date = '2024-05-27' + , blockchain = 'degen' + ) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/_schema.yml new file mode 100644 index 00000000000..92d1dad9c0d --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/_schema.yml @@ -0,0 +1,106 @@ +version: 2 + +goerlils: + - name: tokens_goerli_base_transfers + meta: + blockchain: goerli + sector: tokens + contributors: aalan3, jeff-dude, hildobby + config: + tags: ['tokens','transfers', 'goerli'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: amount_raw + description: "The raw amount of the transfer" + + - name: tokens_goerli_transfers + meta: + blockchain: goerli + sector: tokens + contributors: aalan3, jeff-dude, hildobby + config: + tags: ['tokens','transfers', 'goerli'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: symbol + description: "The token symbol transferred" + - name: amount_raw + description: "The raw amount of the transfer" + - name: amount + description: "The formatted amount of the transfer" + - name: price_usd + description: "The USD price used to calculate the amount_usd" + - name: amount_usd + description: "The USD amount of the transfer" \ No newline at end of file diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_base_transfers.sql new file mode 100644 index 00000000000..9cca6fe26dc --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_base_transfers.sql @@ -0,0 +1,20 @@ +{{config( + schema = 'tokens_goerli', + alias = 'base_transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['block_date','unique_key'], +) +}} + +{{transfers_base( + blockchain='goerli', + traces = source('goerli','traces'), + transactions = source('goerli','transactions'), + erc20_transfers = source('erc20_goerli','evt_transfer'), + native_contract_address = null +) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_transfers.sql new file mode 100644 index 00000000000..6412e61cbbb --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_transfers.sql @@ -0,0 +1,26 @@ +{{config( + schema = 'tokens_goerli', + alias = 'transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['block_date','unique_key'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], + post_hook='{{ expose_spells(\'["goerli"]\', + "sector", + "tokens", + \'["aalan3", "jeff-dude", "hildobby"]\') }}' +) +}} + +{{ + transfers_enrich( + base_transfers = ref('tokens_goerli_base_transfers') + , tokens_erc20_goerlil = source('tokens', 'erc20') + , prices_goerlil = source('prices', 'usd') + , evms_info_goerlil = source('evms','info') + , transfers_start_date = '2020-04-22' + , blockchain = 'goerli' + ) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/_schema.yml new file mode 100644 index 00000000000..f187747c1e7 --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/_schema.yml @@ -0,0 +1,106 @@ +version: 2 + +sepolials: + - name: tokens_sepolia_base_transfers + meta: + blockchain: sepolia + sector: tokens + contributors: aalan3, jeff-dude, hildobby + config: + tags: ['tokens','transfers', 'sepolia'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: amount_raw + description: "The raw amount of the transfer" + + - name: tokens_sepolia_transfers + meta: + blockchain: sepolia + sector: tokens + contributors: aalan3, jeff-dude, hildobby + config: + tags: ['tokens','transfers', 'sepolia'] + description: > + Token transfers + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - block_date + - unique_key + columns: + - name: unique_key + description: "Surrogate key to identify unique row" + - name: blockchain + description: "The blockchain of the transfers" + - name: block_date + description: "The date of the block" + - name: block_time + description: "The time of the block" + - name: block_number + description: "The block number" + - name: tx_hash + description: "The transaction hash" + - name: evt_index + description: "The log event index of the transfer if any" + - name: trace_address + description: "The trace address of the transfer if any" + - name: token_standard + description: "The token standard of the transfer" + - name: tx_from + description: "The transaction sender" + - name: tx_to + description: "The transaction receiver" + - name: tx_index + description: "The transaction index" + - name: from + description: "The sender of the transfer" + - name: to + description: "The receiver of the transfer" + - name: contract_address + description: "The contract address of the transfer" + - name: symbol + description: "The token symbol transferred" + - name: amount_raw + description: "The raw amount of the transfer" + - name: amount + description: "The formatted amount of the transfer" + - name: price_usd + description: "The USD price used to calculate the amount_usd" + - name: amount_usd + description: "The USD amount of the transfer" \ No newline at end of file diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_base_transfers.sql new file mode 100644 index 00000000000..21c51a72be8 --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_base_transfers.sql @@ -0,0 +1,20 @@ +{{config( + schema = 'tokens_sepolia', + alias = 'base_transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], + unique_key = ['block_date','unique_key'], +) +}} + +{{transfers_base( + blockchain='sepolia', + traces = source('sepolia','traces'), + transactions = source('sepolia','transactions'), + erc20_transfers = source('erc20_sepolia','evt_transfer'), + native_contract_address = null +) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_transfers.sql new file mode 100644 index 00000000000..5f3296fb573 --- /dev/null +++ b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_transfers.sql @@ -0,0 +1,26 @@ +{{config( + schema = 'tokens_sepolia', + alias = 'transfers', + partition_by = ['block_month'], + materialized = 'incremental', + file_format = 'delta', + incremental_strategy = 'merge', + unique_key = ['block_date','unique_key'], + incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], + post_hook='{{ expose_spells(\'["sepolia"]\', + "sector", + "tokens", + \'["aalan3", "jeff-dude", "hildobby"]\') }}' +) +}} + +{{ + transfers_enrich( + base_transfers = ref('tokens_sepolia_base_transfers') + , tokens_erc20_sepolial = source('tokens', 'erc20') + , prices_sepolial = source('prices', 'usd') + , evms_info_sepolial = source('evms','info') + , transfers_start_date = '2020-04-22' + , blockchain = 'sepolia' + ) +}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql index 03b4c70febe..9c20ac371c6 100644 --- a/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql +++ b/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql @@ -21,6 +21,8 @@ ,"zksync" ,"zora" ,"mode" + ,"bob" + ,"degen" ]\', "sector", "tokens", @@ -48,6 +50,8 @@ ,'zksync' ,'zora' ,'mode' + ,'bob' + ,'degen' ] %} SELECT * From cdd6d6abdbb8efa18194b78b18f11a25fb9a9117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hildebert=20Mouli=C3=A9?= Date: Sun, 6 Oct 2024 05:56:25 +0200 Subject: [PATCH 4/6] add stakers --- ..._ethereum_entities_depositor_addresses.sql | 53 ++++++++++--------- .../ethereum/staking_ethereum_info.sql | 1 + 2 files changed, 29 insertions(+), 25 deletions(-) diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/staking/ethereum/entities/staking_ethereum_entities_depositor_addresses.sql b/dbt_subprojects/hourly_spellbook/models/_sector/staking/ethereum/entities/staking_ethereum_entities_depositor_addresses.sql index 7ace634d77e..f98ce1b24dc 100644 --- a/dbt_subprojects/hourly_spellbook/models/_sector/staking/ethereum/entities/staking_ethereum_entities_depositor_addresses.sql +++ b/dbt_subprojects/hourly_spellbook/models/_sector/staking/ethereum/entities/staking_ethereum_entities_depositor_addresses.sql @@ -369,6 +369,31 @@ FROM , (0xa6cd28ef39015f7f9b162a6e08a6168c9ebfdd66, 'Daniel Wang', 'Daniel Wang 17', 'Solo Staker') , (0x4757d97449aca795510b9f3152c6a9019a3545c3, 'Daniel Wang', 'wangdong.eth', 'Solo Staker') , (0x69aa0361dbb0527d4f1e5312403bd41788fe61fe, 'Daniel Wang', 'danielwang.eth', 'Solo Staker') + , (0xc372d454835ac654d43b99c7789cc1c32f364237, 'Russell Verbeeten', 'Russell Verbeeten 1', 'Solo Staker') + , (0x71ca7a0253b28c93AaC910F9365A24d83af8c3B4, 'Russell Verbeeten', 'Russell Verbeeten 2', 'Solo Staker') + , (0x995fc15a5dfcf41ed9c4534955e770f00cb7ff0f, 'Russell Verbeeten', 'Russell Verbeeten 3', 'Solo Staker') + , (0x049e49c4d27b806c0b471495727e2c23de9273cd, 'Russell Verbeeten', 'Russell Verbeeten 4', 'Solo Staker') + , (0xcb8e076163b03fed92b7a22dd7e39edfa31e1717, 'Russell Verbeeten', 'Russell Verbeeten 5', 'Solo Staker') + , (0x265bc4ea57b5ab14b5c9b1f8bdbeea09707b4265, 'Russell Verbeeten', 'Russell Verbeeten 6', 'Solo Staker') + , (0x275ff2628ec066a7d9d53b3af5d0f7813daaaf02, 'Russell Verbeeten', 'Russell Verbeeten 7', 'Solo Staker') + , (0xb519f1d4e0cae24690b7320bae8f4ce7caaea8d7, 'Russell Verbeeten', 'Russell Verbeeten 8', 'Solo Staker') + , (0xc9885f0f8163b2afc2247dd386f26ade8b6c6b45, 'Russell Verbeeten', 'Russell Verbeeten 9', 'Solo Staker') + , (0x7e6609821961a169a62b43d6c2b83c24473dbc51, 'Russell Verbeeten', 'Russell Verbeeten 10', 'Solo Staker') + , (0x7498702e4c26eefcf9a17d68bcf5ce2f7740ed80, 'Russell Verbeeten', 'Russell Verbeeten 11', 'Solo Staker') + , (0xafe4c52fbe0d1d7dd690cd9298d889ba3f0c8761, 'Russell Verbeeten', 'Russell Verbeeten 12', 'Solo Staker') + , (0x6E6c7B17A288F08b626E664F07c35294ef28489a, 'Russell Verbeeten', 'Russell Verbeeten 13', 'Solo Staker') + , (0x03815b0efceec860a43e4e85f5bf8e2a4602606b, 'Russell Verbeeten', 'Russell Verbeeten 14', 'Solo Staker') + , (0x82aac6595269ba312dcc306f3b67c4df710e214b, 'Russell Verbeeten', 'Russell Verbeeten 15', 'Solo Staker') + , (0x84a379311768ac90fa299e956c144cab30bdcd17, 'Russell Verbeeten', 'Russell Verbeeten 15', 'Solo Staker') + , (0xe5130785ee691e398d75f532d38736f431e92f9e, 'Russell Verbeeten', 'Russell Verbeeten 16', 'Solo Staker') + , (0x5fa7dc7b49b931a6d588d54bb1d2d7b293eca0b5, 'Russell Verbeeten', 'Russell Verbeeten 17', 'Solo Staker') + , (0x5b8c8d0e2eac1d8d640f7a28a528452523ea502b, 'Russell Verbeeten', 'Russell Verbeeten 18', 'Solo Staker') + , (0x5b8f0834a70a5803f1059576e2c24965773b759c, 'Russell Verbeeten', 'Russell Verbeeten 19', 'Solo Staker') + , (0x4b53c263b8925d9919e5cb5e8c4d3ceda86726c4, 'Russell Verbeeten', 'Russell Verbeeten 20', 'Solo Staker') + , (0xc3467b8cf8224a63f4a21aa6900a9957a1a0b521, 'Russell Verbeeten', 'Russell Verbeeten 21', 'Solo Staker') + , (0x2a10bdf67f462ab3f25801bb65e8bae26d504754, 'Russell Verbeeten', 'Russell Verbeeten 22', 'Solo Staker') + , (0x681b67246b0d19e21ca065a90a94be3f01c6d4b1, 'Russell Verbeeten', 'Russell Verbeeten 23', 'Solo Staker') + , (0x6be67d001066dcc10bb944faabd205e3f8de1f6b, 'Russell Verbeeten', 'Russell Verbeeten 24', 'Solo Staker') , (0x8dbfbd35f8bc9622ef907c372f4d91188d4de8b3, 'Daniel Wang', 'degreenetwork.eth', 'Solo Staker') , (0x75160f5cc50f57e16d6d18336c44c331f03794a2, 'EPotter', 'EPotter', 'Liquid Staking') , (0x8c1bed5b9a0928467c9b1341da1d7bd5e10b6549, 'Liquid Collective', 'Liquid Collective', 'Liquid Staking') @@ -1768,30 +1793,8 @@ FROM , (0x005c382e661b2ebeeb8b87c132f6a7d722a4b864, 'Cluster 0x0f5b', 'Cluster 0x0f5b 1', NULL) , (0x7e8eede00d0dce9a97673f143a4614a4a196eac5, 'Cluster 0x0f5b', 'Cluster 0x0f5b 2', NULL) - , (0xc372d454835ac654d43b99c7789cc1c32f364237, 'Cluster 0xc372', 'Cluster 0xc372 1', NULL) - , (0x71ca7a0253b28c93AaC910F9365A24d83af8c3B4, 'Cluster 0xc372', 'Cluster 0xc372 2', NULL) - , (0x995fc15a5dfcf41ed9c4534955e770f00cb7ff0f, 'Cluster 0xc372', 'Cluster 0xc372 3', NULL) - , (0x049e49c4d27b806c0b471495727e2c23de9273cd, 'Cluster 0xc372', 'Cluster 0xc372 4', NULL) - , (0xcb8e076163b03fed92b7a22dd7e39edfa31e1717, 'Cluster 0xc372', 'Cluster 0xc372 5', NULL) - , (0x265bc4ea57b5ab14b5c9b1f8bdbeea09707b4265, 'Cluster 0xc372', 'Cluster 0xc372 6', NULL) - , (0x275ff2628ec066a7d9d53b3af5d0f7813daaaf02, 'Cluster 0xc372', 'Cluster 0xc372 7', NULL) - , (0xb519f1d4e0cae24690b7320bae8f4ce7caaea8d7, 'Cluster 0xc372', 'Cluster 0xc372 8', NULL) - , (0xc9885f0f8163b2afc2247dd386f26ade8b6c6b45, 'Cluster 0xc372', 'Cluster 0xc372 9', NULL) - , (0x7e6609821961a169a62b43d6c2b83c24473dbc51, 'Cluster 0xc372', 'Cluster 0xc372 10', NULL) - , (0x7498702e4c26eefcf9a17d68bcf5ce2f7740ed80, 'Cluster 0xc372', 'Cluster 0xc372 11', NULL) - , (0xafe4c52fbe0d1d7dd690cd9298d889ba3f0c8761, 'Cluster 0xc372', 'Cluster 0xc372 12', NULL) - , (0x6E6c7B17A288F08b626E664F07c35294ef28489a, 'Cluster 0xc372', 'Cluster 0xc372 13', NULL) - , (0x03815b0efceec860a43e4e85f5bf8e2a4602606b, 'Cluster 0xc372', 'Cluster 0xc372 14', NULL) - , (0x82aac6595269ba312dcc306f3b67c4df710e214b, 'Cluster 0xc372', 'Cluster 0xc372 15', NULL) - , (0x84a379311768ac90fa299e956c144cab30bdcd17, 'Cluster 0xc372', 'Cluster 0xc372 15', NULL) - , (0xe5130785ee691e398d75f532d38736f431e92f9e, 'Cluster 0xc372', 'Cluster 0xc372 16', NULL) - , (0x5fa7dc7b49b931a6d588d54bb1d2d7b293eca0b5, 'Cluster 0xc372', 'Cluster 0xc372 17', NULL) - , (0x5b8c8d0e2eac1d8d640f7a28a528452523ea502b, 'Cluster 0xc372', 'Cluster 0xc372 18', NULL) - , (0x5b8f0834a70a5803f1059576e2c24965773b759c, 'Cluster 0xc372', 'Cluster 0xc372 19', NULL) - , (0x4b53c263b8925d9919e5cb5e8c4d3ceda86726c4, 'Cluster 0xc372', 'Cluster 0xc372 20', NULL) - , (0xc3467b8cf8224a63f4a21aa6900a9957a1a0b521, 'Cluster 0xc372', 'Cluster 0xc372 21', NULL) - , (0x2a10bdf67f462ab3f25801bb65e8bae26d504754, 'Cluster 0xc372', 'Cluster 0xc372 22', NULL) - , (0x681b67246b0d19e21ca065a90a94be3f01c6d4b1, 'Cluster 0xc372', 'Cluster 0xc372 23', NULL) - , (0x6be67d001066dcc10bb944faabd205e3f8de1f6b, 'Cluster 0xc372', 'Cluster 0xc372 24', NULL) + , (0xd5e9f568cc878e991492cf90e711c181a9b177aa, 'Cluster Stakefish Contracts', 'Cluster Stakefish Contracts 1', NULL) + , (0x7e8eede00d0dce9a97673f143a4614a4a196eac5, 'Cluster Stakefish Contracts', 'Cluster Stakefish Contracts 2', NULL) + , (0x3f054c3b93468fa08cdc5ce417b3b38c9ff2638f, 'Cluster Stakefish Contracts', 'Cluster Stakefish Contracts 3', NULL) ) x (depositor_address, entity, entity_unique_name, category) diff --git a/dbt_subprojects/hourly_spellbook/models/_sector/staking/ethereum/staking_ethereum_info.sql b/dbt_subprojects/hourly_spellbook/models/_sector/staking/ethereum/staking_ethereum_info.sql index 0b0c5bb32eb..1740600c3ea 100644 --- a/dbt_subprojects/hourly_spellbook/models/_sector/staking/ethereum/staking_ethereum_info.sql +++ b/dbt_subprojects/hourly_spellbook/models/_sector/staking/ethereum/staking_ethereum_info.sql @@ -134,6 +134,7 @@ FROM (VALUES , ('Eigenpie', 'Eigenpiexyz_io') , ('YieldNest', 'YieldNestFi') , ('Origin Protocol', 'originprotocol') + , ('Russell Verbeeten', 'rverbee') -- Unknown Clusters: , ('Cluster 0x0f5b', 'etherscan.io/address/0x0f5b2f0d89f66b163e5e8e2ccf4de706c53a5060') From fc3ff824b5da6be4781357325e0fd37d3306430b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hildebert=20Mouli=C3=A9?= Date: Sat, 12 Oct 2024 13:50:59 +0200 Subject: [PATCH 5/6] fix --- .../models/transfers_and_balances/_schema.yml | 2 +- .../transfers_and_balances/bob/_schema.yml | 106 ------------------ .../bob/tokens_bob_base_transfers.sql | 20 ---- .../bob/tokens_bob_transfers.sql | 26 ----- .../transfers_and_balances/degen/_schema.yml | 106 ------------------ .../degen/tokens_degen_base_transfers.sql | 20 ---- .../degen/tokens_degen_transfers.sql | 26 ----- .../transfers_and_balances/goerli/_schema.yml | 106 ------------------ .../goerli/tokens_goerli_base_transfers.sql | 20 ---- .../goerli/tokens_goerli_transfers.sql | 26 ----- .../transfers_and_balances/mode/_schema.yml | 106 ------------------ .../mode/tokens_mode_base_transfers.sql | 20 ---- .../mode/tokens_mode_transfers.sql | 26 ----- .../sepolia/_schema.yml | 106 ------------------ .../sepolia/tokens_sepolia_base_transfers.sql | 20 ---- .../sepolia/tokens_sepolia_transfers.sql | 26 ----- .../_subprojects_outputs/tokens/transfers.yml | 12 -- 17 files changed, 1 insertion(+), 773 deletions(-) delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/bob/_schema.yml delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_base_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/degen/_schema.yml delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_base_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/goerli/_schema.yml delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_base_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/mode/_schema.yml delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_base_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/sepolia/_schema.yml delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_base_transfers.sql delete mode 100644 dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_transfers.sql diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/_schema.yml index 523f4446f05..5b9a6ab9cb9 100644 --- a/dbt_subprojects/tokens/models/transfers_and_balances/_schema.yml +++ b/dbt_subprojects/tokens/models/transfers_and_balances/_schema.yml @@ -5,7 +5,7 @@ models: meta: docs_slug: /curated/asset-tracking/evm/token-transfers sector: tokens - contributors: aalan3, jeff-dude, 0xBoxer, hildobby + contributors: aalan3, jeff-dude, 0xBoxer config: tags: ['tokens','transfers'] description: > diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/bob/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/bob/_schema.yml deleted file mode 100644 index 6c9adfa508d..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/bob/_schema.yml +++ /dev/null @@ -1,106 +0,0 @@ -version: 2 - -bobls: - - name: tokens_bob_base_transfers - meta: - blockchain: bob - sector: tokens - contributors: aalan3, jeff-dude - config: - tags: ['tokens','transfers', 'bob'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: amount_raw - description: "The raw amount of the transfer" - - - name: tokens_bob_transfers - meta: - blockchain: bob - sector: tokens - contributors: aalan3, jeff-dude - config: - tags: ['tokens','transfers', 'bob'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: symbol - description: "The token symbol transferred" - - name: amount_raw - description: "The raw amount of the transfer" - - name: amount - description: "The formatted amount of the transfer" - - name: price_usd - description: "The USD price used to calculate the amount_usd" - - name: amount_usd - description: "The USD amount of the transfer" diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_base_transfers.sql deleted file mode 100644 index f2fa2ad5338..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_base_transfers.sql +++ /dev/null @@ -1,20 +0,0 @@ -{{config( - schema = 'tokens_bob', - alias = 'base_transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], - unique_key = ['block_date','unique_key'], -) -}} - -{{transfers_base( - blockchain='bob', - traces = source('bob','traces'), - transactions = source('bob','transactions'), - erc20_transfers = source('erc20_bob','evt_transfer'), - native_contract_address = null -) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_transfers.sql deleted file mode 100644 index 5b8be2a27b0..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/bob/tokens_bob_transfers.sql +++ /dev/null @@ -1,26 +0,0 @@ -{{config( - schema = 'tokens_bob', - alias = 'transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - unique_key = ['block_date','unique_key'], - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], - post_hook='{{ expose_spells(\'["bob"]\', - "sector", - "tokens", - \'["aalan3", "jeff-dude"]\') }}' -) -}} - -{{ - transfers_enrich( - base_transfers = ref('tokens_bob_base_transfers') - , tokens_erc20_model = source('tokens', 'erc20') - , prices_model = source('prices', 'usd') - , evms_info_model = source('evms','info') - , transfers_start_date = '2024-05-27' - , blockchain = 'bob' - ) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/degen/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/degen/_schema.yml deleted file mode 100644 index 1d09b15a54e..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/degen/_schema.yml +++ /dev/null @@ -1,106 +0,0 @@ -version: 2 - -degenls: - - name: tokens_degen_base_transfers - meta: - blockchain: degen - sector: tokens - contributors: aalan3, jeff-dude - config: - tags: ['tokens','transfers', 'degen'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: amount_raw - description: "The raw amount of the transfer" - - - name: tokens_degen_transfers - meta: - blockchain: degen - sector: tokens - contributors: aalan3, jeff-dude - config: - tags: ['tokens','transfers', 'degen'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: symbol - description: "The token symbol transferred" - - name: amount_raw - description: "The raw amount of the transfer" - - name: amount - description: "The formatted amount of the transfer" - - name: price_usd - description: "The USD price used to calculate the amount_usd" - - name: amount_usd - description: "The USD amount of the transfer" diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_base_transfers.sql deleted file mode 100644 index 55b530ce9da..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_base_transfers.sql +++ /dev/null @@ -1,20 +0,0 @@ -{{config( - schema = 'tokens_degen', - alias = 'base_transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], - unique_key = ['block_date','unique_key'], -) -}} - -{{transfers_base( - blockchain='degen', - traces = source('degen','traces'), - transactions = source('degen','transactions'), - erc20_transfers = source('erc20_degen','evt_transfer'), - native_contract_address = null -) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_transfers.sql deleted file mode 100644 index da12e71907b..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/degen/tokens_degen_transfers.sql +++ /dev/null @@ -1,26 +0,0 @@ -{{config( - schema = 'tokens_degen', - alias = 'transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - unique_key = ['block_date','unique_key'], - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], - post_hook='{{ expose_spells(\'["degen"]\', - "sector", - "tokens", - \'["aalan3", "jeff-dude"]\') }}' -) -}} - -{{ - transfers_enrich( - base_transfers = ref('tokens_degen_base_transfers') - , tokens_erc20_model = source('tokens', 'erc20') - , prices_model = source('prices', 'usd') - , evms_info_model = source('evms','info') - , transfers_start_date = '2024-05-27' - , blockchain = 'degen' - ) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/_schema.yml deleted file mode 100644 index 92d1dad9c0d..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/_schema.yml +++ /dev/null @@ -1,106 +0,0 @@ -version: 2 - -goerlils: - - name: tokens_goerli_base_transfers - meta: - blockchain: goerli - sector: tokens - contributors: aalan3, jeff-dude, hildobby - config: - tags: ['tokens','transfers', 'goerli'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: amount_raw - description: "The raw amount of the transfer" - - - name: tokens_goerli_transfers - meta: - blockchain: goerli - sector: tokens - contributors: aalan3, jeff-dude, hildobby - config: - tags: ['tokens','transfers', 'goerli'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: symbol - description: "The token symbol transferred" - - name: amount_raw - description: "The raw amount of the transfer" - - name: amount - description: "The formatted amount of the transfer" - - name: price_usd - description: "The USD price used to calculate the amount_usd" - - name: amount_usd - description: "The USD amount of the transfer" \ No newline at end of file diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_base_transfers.sql deleted file mode 100644 index 9cca6fe26dc..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_base_transfers.sql +++ /dev/null @@ -1,20 +0,0 @@ -{{config( - schema = 'tokens_goerli', - alias = 'base_transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], - unique_key = ['block_date','unique_key'], -) -}} - -{{transfers_base( - blockchain='goerli', - traces = source('goerli','traces'), - transactions = source('goerli','transactions'), - erc20_transfers = source('erc20_goerli','evt_transfer'), - native_contract_address = null -) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_transfers.sql deleted file mode 100644 index 6412e61cbbb..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/goerli/tokens_goerli_transfers.sql +++ /dev/null @@ -1,26 +0,0 @@ -{{config( - schema = 'tokens_goerli', - alias = 'transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - unique_key = ['block_date','unique_key'], - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], - post_hook='{{ expose_spells(\'["goerli"]\', - "sector", - "tokens", - \'["aalan3", "jeff-dude", "hildobby"]\') }}' -) -}} - -{{ - transfers_enrich( - base_transfers = ref('tokens_goerli_base_transfers') - , tokens_erc20_goerlil = source('tokens', 'erc20') - , prices_goerlil = source('prices', 'usd') - , evms_info_goerlil = source('evms','info') - , transfers_start_date = '2020-04-22' - , blockchain = 'goerli' - ) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/mode/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/mode/_schema.yml deleted file mode 100644 index 51d7993e7a8..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/mode/_schema.yml +++ /dev/null @@ -1,106 +0,0 @@ -version: 2 - -models: - - name: tokens_mode_base_transfers - meta: - blockchain: mode - sector: tokens - contributors: aalan3, jeff-dude, hildobby - config: - tags: ['tokens','transfers', 'mode'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: amount_raw - description: "The raw amount of the transfer" - - - name: tokens_mode_transfers - meta: - blockchain: mode - sector: tokens - contributors: aalan3, jeff-dude, hildobby - config: - tags: ['tokens','transfers', 'mode'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: symbol - description: "The token symbol transferred" - - name: amount_raw - description: "The raw amount of the transfer" - - name: amount - description: "The formatted amount of the transfer" - - name: price_usd - description: "The USD price used to calculate the amount_usd" - - name: amount_usd - description: "The USD amount of the transfer" \ No newline at end of file diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_base_transfers.sql deleted file mode 100644 index af99808a985..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_base_transfers.sql +++ /dev/null @@ -1,20 +0,0 @@ -{{config( - schema = 'tokens_mode', - alias = 'base_transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], - unique_key = ['block_date','unique_key'], -) -}} - -{{transfers_base( - blockchain='mode', - traces = source('mode','traces'), - transactions = source('mode','transactions'), - erc20_transfers = source('erc20_mode','evt_transfer'), - native_contract_address = null -) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_transfers.sql deleted file mode 100644 index 3d677105c12..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/mode/tokens_mode_transfers.sql +++ /dev/null @@ -1,26 +0,0 @@ -{{config( - schema = 'tokens_mode', - alias = 'transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - unique_key = ['block_date','unique_key'], - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], - post_hook='{{ expose_spells(\'["mode"]\', - "sector", - "tokens", - \'["aalan3", "jeff-dude", "hildobby"]\') }}' -) -}} - -{{ - transfers_enrich( - base_transfers = ref('tokens_mode_base_transfers') - , tokens_erc20_model = source('tokens', 'erc20') - , prices_model = source('prices', 'usd') - , evms_info_model = source('evms','info') - , transfers_start_date = '2020-04-22' - , blockchain = 'mode' - ) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/_schema.yml b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/_schema.yml deleted file mode 100644 index f187747c1e7..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/_schema.yml +++ /dev/null @@ -1,106 +0,0 @@ -version: 2 - -sepolials: - - name: tokens_sepolia_base_transfers - meta: - blockchain: sepolia - sector: tokens - contributors: aalan3, jeff-dude, hildobby - config: - tags: ['tokens','transfers', 'sepolia'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: amount_raw - description: "The raw amount of the transfer" - - - name: tokens_sepolia_transfers - meta: - blockchain: sepolia - sector: tokens - contributors: aalan3, jeff-dude, hildobby - config: - tags: ['tokens','transfers', 'sepolia'] - description: > - Token transfers - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - block_date - - unique_key - columns: - - name: unique_key - description: "Surrogate key to identify unique row" - - name: blockchain - description: "The blockchain of the transfers" - - name: block_date - description: "The date of the block" - - name: block_time - description: "The time of the block" - - name: block_number - description: "The block number" - - name: tx_hash - description: "The transaction hash" - - name: evt_index - description: "The log event index of the transfer if any" - - name: trace_address - description: "The trace address of the transfer if any" - - name: token_standard - description: "The token standard of the transfer" - - name: tx_from - description: "The transaction sender" - - name: tx_to - description: "The transaction receiver" - - name: tx_index - description: "The transaction index" - - name: from - description: "The sender of the transfer" - - name: to - description: "The receiver of the transfer" - - name: contract_address - description: "The contract address of the transfer" - - name: symbol - description: "The token symbol transferred" - - name: amount_raw - description: "The raw amount of the transfer" - - name: amount - description: "The formatted amount of the transfer" - - name: price_usd - description: "The USD price used to calculate the amount_usd" - - name: amount_usd - description: "The USD amount of the transfer" \ No newline at end of file diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_base_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_base_transfers.sql deleted file mode 100644 index 21c51a72be8..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_base_transfers.sql +++ /dev/null @@ -1,20 +0,0 @@ -{{config( - schema = 'tokens_sepolia', - alias = 'base_transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')], - unique_key = ['block_date','unique_key'], -) -}} - -{{transfers_base( - blockchain='sepolia', - traces = source('sepolia','traces'), - transactions = source('sepolia','transactions'), - erc20_transfers = source('erc20_sepolia','evt_transfer'), - native_contract_address = null -) -}} diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_transfers.sql deleted file mode 100644 index 5f3296fb573..00000000000 --- a/dbt_subprojects/tokens/models/transfers_and_balances/sepolia/tokens_sepolia_transfers.sql +++ /dev/null @@ -1,26 +0,0 @@ -{{config( - schema = 'tokens_sepolia', - alias = 'transfers', - partition_by = ['block_month'], - materialized = 'incremental', - file_format = 'delta', - incremental_strategy = 'merge', - unique_key = ['block_date','unique_key'], - incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_date')], - post_hook='{{ expose_spells(\'["sepolia"]\', - "sector", - "tokens", - \'["aalan3", "jeff-dude", "hildobby"]\') }}' -) -}} - -{{ - transfers_enrich( - base_transfers = ref('tokens_sepolia_base_transfers') - , tokens_erc20_sepolial = source('tokens', 'erc20') - , prices_sepolial = source('prices', 'usd') - , evms_info_sepolial = source('evms','info') - , transfers_start_date = '2020-04-22' - , blockchain = 'sepolia' - ) -}} diff --git a/sources/_subprojects_outputs/tokens/transfers.yml b/sources/_subprojects_outputs/tokens/transfers.yml index b5a9d948296..e229ae82b19 100644 --- a/sources/_subprojects_outputs/tokens/transfers.yml +++ b/sources/_subprojects_outputs/tokens/transfers.yml @@ -68,17 +68,5 @@ sources: - name: transfers - name: tokens_mantle - tables: - - name: transfers - - - name: tokens_sei - tables: - - name: transfers - - - name: tokens_mode - tables: - - name: transfers - - - name: tokens_goerli tables: - name: transfers \ No newline at end of file From c1ee1a5b9380fd6b5ffddbaa251e0e27c8c94251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hildebert=20Mouli=C3=A9?= Date: Sat, 12 Oct 2024 13:52:00 +0200 Subject: [PATCH 6/6] fix --- .../models/transfers_and_balances/tokens_transfers.sql | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql b/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql index 9c20ac371c6..dfa38cbd772 100644 --- a/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql +++ b/dbt_subprojects/tokens/models/transfers_and_balances/tokens_transfers.sql @@ -20,13 +20,10 @@ ,"zkevm" ,"zksync" ,"zora" - ,"mode" - ,"bob" - ,"degen" ]\', "sector", "tokens", - \'["aalan3", "jeff-dude", "0xBoxer", "hildobby"]\') }}' + \'["aalan3", "jeff-dude"]\') }}' ) }} @@ -49,9 +46,6 @@ ,'zkevm' ,'zksync' ,'zora' - ,'mode' - ,'bob' - ,'degen' ] %} SELECT *