-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create nft_ronin_transfers table * Update nft_transfers.sql Added Ronin * Rename nft_ronin_transfers to nft_ronin_transfers.sql * Update _schema.yml --------- Co-authored-by: 0xRob <[email protected]>
- Loading branch information
1 parent
bf8b448
commit 5ea5c4c
Showing
3 changed files
with
48 additions
and
1 deletion.
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
24 changes: 24 additions & 0 deletions
24
dbt_subprojects/nft/models/_sector/transfers/chains/nft_ronin_transfers.sql
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,24 @@ | ||
{{ | ||
config( | ||
schema="nft_ronin", | ||
alias="transfers", | ||
partition_by=["block_month"], | ||
materialized="incremental", | ||
file_format="delta", | ||
incremental_strategy="merge", | ||
incremental_predicates=[ | ||
incremental_predicate("DBT_INTERNAL_DEST.block_time") | ||
], | ||
unique_key=["tx_hash", "evt_index", "token_id", "amount"], | ||
) | ||
}} | ||
|
||
{{ | ||
nft_transfers( | ||
blockchain="ronin", | ||
base_transactions=source("ronin", "transactions"), | ||
erc721_transfers=source("erc721_ronin", "evt_transfer"), | ||
erc1155_single=source("erc1155_ronin", "evt_transfersingle"), | ||
erc1155_batch=source("erc1155_ronin", "evt_transferbatch"), | ||
) | ||
}} |
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