-
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 seaport transfers and Opensea v3 events/trades (#1291)
* Add seaport transfers and Opensea v3 events/trades * Update seaport_ethereum_transfers.sql * Update seaport_ethereum_transfers.sql * Update seaport_ethereum_transfers.sql * standardize block number across nft tables * add test seaport transfers * Update seaport_ethereum_transfers.sql
- Loading branch information
Showing
15 changed files
with
2,094 additions
and
54 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
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
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
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
44 changes: 44 additions & 0 deletions
44
spellbook/models/opensea/ethereum/opensea_v3_ethereum_events.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,44 @@ | ||
{{ config(schema = 'opensea_v3_ethereum', | ||
alias='events') }} | ||
|
||
SELECT blockchain, | ||
'opensea' as project, | ||
'v3' as version, | ||
block_time, | ||
token_id, | ||
collection, | ||
amount_usd, | ||
token_standard, | ||
trade_type, | ||
number_of_items, | ||
trade_category, | ||
evt_type, | ||
seller, | ||
buyer, | ||
amount_original, | ||
amount_raw, | ||
currency_symbol, | ||
currency_contract, | ||
nft_contract_address, | ||
project_contract_address, | ||
aggregator_name, | ||
aggregator_address, | ||
tx_hash, | ||
block_number, | ||
tx_from, | ||
tx_to, | ||
platform_fee_amount_raw, | ||
platform_fee_amount, | ||
platform_fee_amount_usd, | ||
platform_fee_percentage, | ||
royalty_fee_amount_raw, | ||
royalty_fee_amount, | ||
royalty_fee_amount_usd, | ||
royalty_fee_percentage, | ||
royalty_fee_receive_address, | ||
royalty_fee_currency_symbol, | ||
unique_trade_id | ||
FROM {{ ref('seaport_ethereum_transfers') }} | ||
WHERE zone in ('0xf397619df7bfd4d1657ea9bdd9df7ff888731a11' | ||
,'0x9b814233894cd227f561b78cc65891aa55c62ad2' | ||
,'0x004c00500000ad104d7dbd00e3ae0a5c00560c00') |
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
Oops, something went wrong.