Query editor
-- Enumerate every Uniswap V3 pool on Robinhood Chain where CASHCAT is-- one of the two tokens, and mark which one is the PRIMARY pool the-- dashboard is computed against.WITH pool_created AS (SELECTblock_time,tx_hash,topic1 AS topic_token0,topic2 AS topic_token1,topic3 AS topic_fee,dataFROM robinhood.logsWHERE contract_address = {{factory_address}}AND topic0 = 0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118AND (topic1 = 0x000000000000000000000000020bfc650a365f8bb26819deaabf3e21291018b4OR topic2 = 0x000000000000000000000000020bfc650a365f8bb26819deaabf3e21291018b4))SELECTCASE WHEN bytearray_substring(data, 45, 20) = {{pool_address}}THEN 'PRIMARY' ELSE 'sibling' END AS role,bytearray_substring(data, 45, 20) AS pool_address,bytearray_substring(topic_token0, 13, 20) AS token0,bytearray_substring(topic_token1, 13, 20) AS token1,CAST(bytearray_to_uint256(topic_fee) AS INTEGER) AS fee_tier,block_time,tx_hashFROM pool_createdORDER BY CASE WHEN role = 'PRIMARY' THEN 0 ELSE 1 END, block_time DESC;