diff --git a/nft/models/_sector/wash_trades/_schema.yml b/nft/models/_sector/wash_trades/_schema.yml index cfb4f9c67e5..f3e665fd1c1 100644 --- a/nft/models/_sector/wash_trades/_schema.yml +++ b/nft/models/_sector/wash_trades/_schema.yml @@ -3,7 +3,7 @@ version: 2 models: - name: nft_wash_trades meta: - blockchain: arbitrum, avalanche_c, bnb, ethereum, gnosis, optimism, polygon, zksync, base, scroll, zora + blockchain: arbitrum, avalanche_c, bnb, ethereum, gnosis, optimism, polygon, zksync, base, scroll, zora, blast sector: nft contributors: hildobby config: diff --git a/nft/models/_sector/wash_trades/chains/nft_blast_wash_trades.sql b/nft/models/_sector/wash_trades/chains/nft_blast_wash_trades.sql new file mode 100644 index 00000000000..89cc83fe0cb --- /dev/null +++ b/nft/models/_sector/wash_trades/chains/nft_blast_wash_trades.sql @@ -0,0 +1,17 @@ +{{ config( + + schema = 'nft_blast', + alias='wash_trades', + partition_by=['block_month'], + materialized='incremental', + file_format = 'delta', + incremental_strategy = 'merge', + incremental_predicates = ['DBT_INTERNAL_DEST.block_time >= date_trunc(\'day\', now() - interval \'7\' day)'], + unique_key = ['unique_trade_id'] +) +}} + +{{nft_wash_trades( + blockchain='blast', + first_funded_by = source('addresses_events_blast', 'first_funded_by') +)}} diff --git a/nft/models/_sector/wash_trades/nft_wash_trades.sql b/nft/models/_sector/wash_trades/nft_wash_trades.sql index b8702aa7e4b..effb7054849 100644 --- a/nft/models/_sector/wash_trades/nft_wash_trades.sql +++ b/nft/models/_sector/wash_trades/nft_wash_trades.sql @@ -2,7 +2,7 @@ alias = 'wash_trades', schema = 'nft', - post_hook='{{ expose_spells(\'["arbitrum", "avalanche_c", "bnb", "ethereum", "gnosis", "optimism", "polygon", "celo", "zksync", "base", "scroll", "zora"]\', + post_hook='{{ expose_spells(\'["arbitrum", "avalanche_c", "bnb", "ethereum", "gnosis", "optimism", "polygon", "celo", "zksync", "base", "scroll", "zora", "blast"]\', "sector", "nft", \'["hildobby"]\') }}') @@ -21,6 +21,7 @@ , ref('nft_base_wash_trades') , ref('nft_scroll_wash_trades') , ref('nft_zora_wash_trades') +, ref('nft_blast_wash_trades') ] %} SELECT * diff --git a/sources/_subprojects/spellbook/_sources.yml b/sources/_subprojects/spellbook/_sources.yml index e1dab41cd83..b0da7f55ad3 100644 --- a/sources/_subprojects/spellbook/_sources.yml +++ b/sources/_subprojects/spellbook/_sources.yml @@ -41,6 +41,9 @@ sources: - name: addresses_events_zora tables: - name: first_funded_by + - name: addresses_events_blast + tables: + - name: first_funded_by - name: bridge_optimism tables: - name: standard_bridge_flows