Query editor
WITH params AS (SELECT DATE '2026-08-01' start_date,current_date end_date),launches AS (SELECT block_time,block_date,tx_hash,varbinary_substring(topic1,13,20) creator,varbinary_substring(topic2,13,20) token,varbinary_substring(topic3,13,20) curve,varbinary_substring(data,173,20) poolFROM arc.logs CROSS JOIN params WHERE block_date BETWEEN start_date AND end_dateAND contract_address=0x96a1f09f0e85b3f1800efbfb0cd6be7edd7a9be5AND topic0=0xc643b9d98a31eba22dd6da98df02c5d31f29ec8c97beebb177b39303c15963ec),curve AS (SELECT la.token,count(*) trades,sum(CAST(bytearray_to_uint256(bytearray_substring(l.data,33,32)) AS double))/1e18 curve_volume_native_usdc_18,sum(CASE WHEN l.topic0=0x6d9c6fad0db13f6f7fca7124777996deaeb1949d0750a4874c18611ff5d436b9THEN CAST(bytearray_to_uint256(bytearray_substring(l.data,97,32)) AS double)ELSE -CAST(bytearray_to_uint256(bytearray_substring(l.data,1,32)) AS double) END)/1e18 net_tokens_soldFROM arc.logs l JOIN launches la ON l.contract_address=la.curve CROSS JOIN paramsWHERE l.block_date BETWEEN start_date AND end_date AND l.topic0 IN(0x6d9c6fad0db13f6f7fca7124777996deaeb1949d0750a4874c18611ff5d436b9,0x2a4943814d663ce264e1d6189fe907df85c7e33d252a60282a8984f2574b3505)GROUP BY 1),grads AS (SELECT varbinary_substring(topic1,13,20) token,min(block_time) graduated_atFROM arc.logs CROSS JOIN params WHERE block_date BETWEEN start_date AND end_dateAND contract_address=0x9c89ce203ad7fd9e74e2fd882a3ec55b3b70317eAND topic0=0x126619a443831714a534dd6dae1ea4bb124a2d4b9f59b28e02aacfabd25f988a GROUP BY 1)SELECT 'Arc Testnet' network,l.token,l.creator,l.curve,l.pool,l.block_time launch_time_utc,coalesce(c.trades,0) curve_trades,coalesce(c.curve_volume_native_usdc_18,0) curve_volume_native_usdc_18,coalesce(c.net_tokens_sold,0) net_curve_tokens_sold,least(100.0,greatest(0.0,coalesce(c.net_tokens_sold,0)/800000000.0*100.0)) curve_progress_percent,greatest(0.0,800000000.0-coalesce(c.net_tokens_sold,0)) tokens_remaining_to_graduation,g.graduated_at graduated_at_utc,g.graduated_at IS NOT NULL AS graduated,'Token and curve quantities use 18 decimals; curve target is 800,000,000 tokens' noteFROM launches l LEFT JOIN curve c ON c.token=l.token LEFT JOIN grads g ON g.token=l.tokenORDER BY curve_volume_native_usdc_18 DESC,curve_progress_percent DESC LIMIT 100