Query editor
WITHparams AS (SELECT DATE '2026-08-01' AS start_date, current_date AS end_date),launches AS (SELECT block_time, block_number, tx_hash,varbinary_substring(topic1,13,20) AS creator,varbinary_substring(topic2,13,20) AS token,varbinary_substring(topic3,13,20) AS curve,varbinary_substring(data,173,20) AS poolFROM arc.logs CROSS JOIN paramsWHERE block_date BETWEEN start_date AND end_dateAND contract_address=0x96a1f09f0e85b3f1800efbfb0cd6be7edd7a9be5AND topic0=0xc643b9d98a31eba22dd6da98df02c5d31f29ec8c97beebb177b39303c15963ec),curve_events AS (SELECT l.block_time,l.tx_hash,la.token,CASE WHEN l.topic0=0x6d9c6fad0db13f6f7fca7124777996deaeb1949d0750a4874c18611ff5d436b9 THEN 'buy' ELSE 'sell' END AS side,varbinary_substring(l.topic2,13,20) AS trader,bytearray_to_uint256(bytearray_substring(l.data,33,32)) AS gross_native_usdc_raw,CASE WHEN l.topic0=0x6d9c6fad0db13f6f7fca7124777996deaeb1949d0750a4874c18611ff5d436b9THEN bytearray_to_uint256(bytearray_substring(l.data,129,32))ELSE bytearray_to_uint256(bytearray_substring(l.data,97,32)) END AS total_fee_native_usdc_rawFROM arc.logs l JOIN launches la ON l.contract_address=la.curve CROSS JOIN paramsWHERE l.block_date BETWEEN start_date AND end_dateAND l.topic0 IN (0x6d9c6fad0db13f6f7fca7124777996deaeb1949d0750a4874c18611ff5d436b9,0x2a4943814d663ce264e1d6189fe907df85c7e33d252a60282a8984f2574b3505)),graduations AS (SELECT varbinary_substring(topic1,13,20) AS tokenFROM arc.logs CROSS JOIN paramsWHERE block_date BETWEEN start_date AND end_dateAND contract_address=0x9c89ce203ad7fd9e74e2fd882a3ec55b3b70317eAND topic0=0x126619a443831714a534dd6dae1ea4bb124a2d4b9f59b28e02aacfabd25f988a),pool_swaps AS (SELECT la.token,l.tx_hash,l.tx_from AS trader,CASE WHEN la.token < 0x3600000000000000000000000000000000000000THEN abs(bytearray_to_int256(bytearray_substring(l.data,33,32)))ELSE abs(bytearray_to_int256(bytearray_substring(l.data,1,32))) END AS erc20_usdc_rawFROM arc.logs l JOIN launches la ON l.contract_address=la.pool JOIN graduations g ON g.token=la.token CROSS JOIN paramsWHERE l.block_date BETWEEN start_date AND end_dateAND l.topic0=0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67),freshness AS (SELECT max(block_number) AS dune_latest_log_block,max(block_time) AS dune_latest_log_timeFROM arc.logs WHERE block_date>=current_date-interval '2' day)SELECTCAST((SELECT start_date FROM params) AS varchar)||' to '||CAST((SELECT end_date FROM params) AS varchar) AS date_range_utc,'Arc Testnet' AS network,(SELECT dune_latest_log_block FROM freshness) AS dune_latest_log_block,(SELECT dune_latest_log_time FROM freshness) AS dune_latest_log_time,(SELECT count(*) FROM launches) AS total_tokens_created,(SELECT count(DISTINCT creator) FROM launches) AS unique_creators,(SELECT count(*) FROM curve_events) AS total_curve_trades,(SELECT count(DISTINCT trader) FROM curve_events) AS unique_curve_traders,COALESCE((SELECT sum(CAST(gross_native_usdc_raw AS double))/1e18 FROM curve_events),0) AS curve_volume_native_usdc_18,COALESCE((SELECT sum(CAST(total_fee_native_usdc_raw AS double))/1e18 FROM curve_events),0) AS curve_fees_native_usdc_18,(SELECT count(*) FROM graduations) AS graduation_count,(SELECT count(*) FROM pool_swaps) AS graduated_uniswap_v3_swaps,COALESCE((SELECT sum(CAST(erc20_usdc_raw AS double))/1e6 FROM pool_swaps),0) AS graduated_uniswap_v3_volume_erc20_usdc_6,CASE WHEN (SELECT count(*) FROM launches)=0 THEN 'INCOMPLETE: Dune Arc has not indexed the verified Cooket deployment range'