Query editor
-- VeeFriends Series 1: Single Transfer Audit View-- Detailed audit interface for Tier B (Likely Vaulted) tokens-- Provides full context for manual verification of vault moves vs OTC sales---- Parameters:-- {{BlockWindowNear}} - Tight window for OTC detection (default: 10)-- {{BlockWindowFar}} - Wider window for OTC detection (default: 50)-- {{ConfidenceMin}} - Minimum confidence score to include (default: 80)-- {{ConfidenceMax}} - Maximum confidence score to include (default: 94)---- Output: Detailed rows for tokens in the specified confidence rangeWITH-- Series 1 contracts1_contract AS (SELECT 0xA3AEE8BCE55BEEA1951EF834B99F3AC60D1ABEEB AS address),-- ============================================-- BASE DATA-- ============================================all_transfers AS (SELECTtr.tokenId AS token_id,tr."from" AS from_address,tr."to" AS to_address,tr.evt_block_time AS transfer_time,tr.evt_block_number AS transfer_block,tr.evt_tx_hash AS tx_hash,ROW_NUMBER() OVER (PARTITION BY tr.tokenId ORDER BY tr.evt_block_time, tr.evt_index) AS transfer_seqFROM erc721_ethereum.evt_Transfer trCROSS JOIN s1_contract cWHERE tr.contract_address = c.address),minters AS (SELECT token_id, to_address AS minter, transfer_time AS mint_timeFROM all_transfersWHERE from_address = 0x0000000000000000000000000000000000000000 AND transfer_seq = 1),current_owners AS (SELECT token_id, to_address AS current_owner, transfer_time AS last_transfer_timeFROM (SELECT token_id, to_address, transfer_time,ROW_NUMBER() OVER (PARTITION BY token_id ORDER BY transfer_time DESC, transfer_seq DESC) AS rnFROM all_transfers) rankedWHERE rn = 1 AND to_address != 0x0000000000000000000000000000000000000000),transfer_counts AS (SELECT token_id, COUNT(*) AS transfer_countFROM all_transfers WHERE from_address != 0x0000000000000000000000000000000000000000GROUP BY token_id),-- First non-mint transfer (the one we audit)first_transfers AS (