Query editor
-- MoodyMadness July 2026 gross primary-sale revenue: independent clean-room audit.-- UTC window: [2026-07-01 00:00:00, 2026-08-01 00:00:00).-- Direct sources only: decoded MoodyMadnessAssets tables and canonical tokens.transfers.WITHraw_claims AS (SELECTcall_tx_hash,call_tx_index,array_join(transform(call_trace_address, x -> CAST(x AS varchar)), '.') AS call_path,concat('0x', lower(to_hex(call_tx_hash)), ':', array_join(transform(call_trace_address, x -> CAST(x AS varchar)), '.')) AS call_id,call_success,call_tx_from,_receiver AS receiver,_tokenId AS token_id,_quantity AS quantity,CASE WHEN _currency = 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeTHEN 0x000000000000000000000000000000000000800aELSE _currency END AS transfer_currency,_pricePerToken AS price_per_token_raw,_pricePerToken * _quantity AS expected_amount_rawFROM moodymadness_abstract.moodymadnessassets_call_claimWHERE contract_address = 0x35ffe9d966e35bd1b0e79f0d91e438701ea1c644AND call_block_date >= DATE '2026-07-01'AND call_block_date < DATE '2026-08-01'AND call_block_time >= TIMESTAMP '2026-07-01 00:00:00'AND call_block_time < TIMESTAMP '2026-08-01 00:00:00'),successful_claims AS (SELECT*,row_number() OVER (PARTITION BY call_tx_hash, receiver, token_id, quantityORDER BY call_path, call_tx_index) AS tuple_ordinal,row_number() OVER (PARTITION BY call_tx_hash, transfer_currency, expected_amount_rawORDER BY call_path, call_tx_index) AS payment_ordinalFROM raw_claimsWHERE call_success),claim_events AS (SELECTevt_tx_hash,evt_index,claimer,receiver,tokenId AS token_id,quantityClaimed AS quantity,row_number() OVER (PARTITION BY evt_tx_hash, receiver, tokenId, quantityClaimedORDER BY evt_index) AS tuple_ordinalFROM moodymadness_abstract.moodymadnessassets_evt_tokensclaimedWHERE contract_address = 0x35ffe9d966e35bd1b0e79f0d91e438701ea1c644AND evt_block_date >= DATE '2026-07-01'AND evt_block_date < DATE '2026-08-01'AND evt_block_time >= TIMESTAMP '2026-07-01 00:00:00'AND evt_block_time < TIMESTAMP '2026-08-01 00:00:00'