Skip to content

Commit

Permalink
Create nft_blast.wash_trades (#6148)
Browse files Browse the repository at this point in the history
* create blast`s nft wash filter

* fix

---------

Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
  • Loading branch information
hildobby and jeff-dude authored Jun 24, 2024
1 parent ac6f72f commit 8f4c6ba
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nft/models/_sector/wash_trades/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
17 changes: 17 additions & 0 deletions nft/models/_sector/wash_trades/chains/nft_blast_wash_trades.sql
Original file line number Diff line number Diff line change
@@ -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')
)}}
3 changes: 2 additions & 1 deletion nft/models/_sector/wash_trades/nft_wash_trades.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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"]\') }}')
Expand All @@ -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 *
Expand Down
3 changes: 3 additions & 0 deletions sources/_subprojects/spellbook/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f4c6ba

Please sign in to comment.