-
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.
* Add nft_sei_transfers.sql * Add Sei to cross-chain spell * Add Sei table * Add Sei to schema * Edited sei schema * Update _schema.yml * Update _schema.yml * Update _schema.yml * Update dbt_subprojects/nft/models/_sector/transfers/chains/nft_sei_transfers.sql Co-authored-by: jeff-dude <[email protected]> * Update nft_sei_transfers.sql * limit test range --------- Co-authored-by: jeff-dude <[email protected]> Co-authored-by: 0xRob <[email protected]>
- Loading branch information
1 parent
8dce71f
commit e24e01d
Showing
4 changed files
with
65 additions
and
7 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
24 changes: 24 additions & 0 deletions
24
dbt_subprojects/nft/models/_sector/transfers/chains/nft_sei_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_sei", | ||
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="sei", | ||
base_transactions=source("sei", "transactions"), | ||
erc721_transfers=source("erc721_sei", "evt_transfer"), | ||
erc1155_single=source("erc1155_sei", "evt_transfersingle"), | ||
erc1155_batch=source("erc1155_sei", "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
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 |
---|---|---|
|
@@ -46,3 +46,6 @@ sources: | |
- name: nft_scroll | ||
tables: | ||
- name: transfers | ||
- name: nft_sei | ||
tables: | ||
- name: transfers |