-
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.
Browse files
Browse the repository at this point in the history
Brief comments on the purpose of your changes: This (very large) PR is the first PR that implements the new NFT spell design on Dune V2. Changes affect: - Opensea trades/transactions/mints/burns/fees on Ethereum and Solana - MagicEden trades/transactions/mints on Solana New columns were added: blockchain, project, 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, 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, block_number, tx_from, tx_to, unique_trade_id Made sure tests work w/ the new changes, run time is acceptable, fields match between Solana and Ethereum spells (although some fields are missing in Solana spells). I also implemented a temporary fix the bytea2numeric issue on Dune v2 that affects OpenSea ethereum spells: Token IDs larger than 64 bits now have the following mention: 'Token ID is larger than 64 bits and can not be displayed' until we find a better solution *For Dune Engine V2* I've checked that: * [x] I tested the query on dune.com after compiling the model with dbt compile (compiled queries are written to the target directory) * [x] I used "refs" to reference other models in this repo and "sources" to reference raw or decoded tables * [x] if adding a new model, I added a test * [x] the filename is unique and ends with .sql * [x] each sql file is a select statement and has only one view, table or function defined * [x] column names are `lowercase_snake_cased` When you are ready for a review, tag duneanalytics/data-experience. We will re-open your forked pull request as an internal pull request. Then your spells will run in dbt and the logs will be avaiable in Github Actions DBT Slim CI. This job will only run the models and tests changed by your PR compared to the production project.
- Loading branch information
Showing
48 changed files
with
2,212 additions
and
503 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{ config( | ||
alias ='mints' | ||
) | ||
}} | ||
|
||
SELECT blockchain, | ||
project, | ||
version, | ||
block_time, | ||
NULL::string as token_id, | ||
NULL::string as collection, | ||
amount_usd, | ||
token_standard, | ||
NULL::string as trade_type, | ||
NULL::string as number_of_items, | ||
NULL::string as trade_category, | ||
evt_type, | ||
NULL::string as seller, | ||
NULL::string as buyer, | ||
amount_original, | ||
amount_raw, | ||
currency_symbol, | ||
currency_contract, | ||
NULL::string as nft_contract_address, | ||
project_contract_address, | ||
NULL::string as aggregator_name, | ||
NULL::string as aggregator_address, | ||
tx_hash, | ||
NULL::string as tx_from, | ||
NULL::string as tx_to, | ||
unique_trade_id | ||
FROM {{ ref('magiceden_solana_mints') }} |
Oops, something went wrong.