Skip to content

Commit

Permalink
add mooar nft marketplace (#339)
Browse files Browse the repository at this point in the history
* add mooar nft marketplace

* remove lock file
  • Loading branch information
sam-xyz authored Feb 6, 2024
1 parent ecfe5ac commit 7f03e63
Show file tree
Hide file tree
Showing 4 changed files with 2,150 additions and 1 deletion.
2 changes: 1 addition & 1 deletion models/gold/NFT/nft__ez_nft_sales.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
models:
- name: nft__ez_nft_sales
description: This table contains NFT sales from Opensea Seaport 1.1, 1.4 and 1.5 on Polygon.
description: This table contains NFT sales from Opensea Seaport 1.1, 1.4 and 1.5, TofuNFT and Mooar on Polygon.

columns:
- name: BLOCK_NUMBER
Expand Down
42 changes: 42 additions & 0 deletions models/silver/NFT/sales/silver__complete_nft_sales.sql
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,48 @@ WHERE
{{ this }}
)
{% endif %}
UNION ALL
SELECT
block_number,
block_timestamp,
tx_hash,
event_index,
event_type,
platform_address,
platform_name,
platform_exchange_version,
seller_address,
buyer_address,
nft_address,
erc1155_value :: STRING AS erc1155_value,
tokenId,
currency_address,
total_price_raw,
total_fees_raw,
platform_fee_raw,
creator_fee_raw,
tx_fee,
origin_from_address,
origin_to_address,
origin_function_signature,
input_data,
nft_log_id,
_log_id,
_inserted_timestamp
FROM
{{ ref('silver__mooar_sales') }}

{% if is_incremental() and 'mooar' not in var('HEAL_CURATED_MODEL') %}
WHERE
_inserted_timestamp >= (
SELECT
MAX(
_inserted_timestamp
) - INTERVAL '36 hours'
FROM
{{ this }}
)
{% endif %}
),
prices_raw AS (
SELECT
Expand Down
Loading

0 comments on commit 7f03e63

Please sign in to comment.