Query editor
WITH token_registry AS (-- Use your materialized Query 1, or inline the token discoverySELECT DISTINCT contract_addressFROM dune.asxn_research.result_robinhood_token_factory),Ledger AS (SELECTevt_block_time AS block_time,evt_tx_hash AS tx_hash,contract_address,"from","to",value/1e18 AS amountFROM erc20_arbitrum.evt_transferWHERE contract_address IN (SELECT contract_address FROM token_registry)AND evt_block_date >= DATE('2025-05-23'))SELECTblock_time,CASEWHEN "from" = 0x0000000000000000000000000000000000000000 THEN 'mint'WHEN "to" = 0x0000000000000000000000000000000000000000 THEN 'burn'ELSE 'transfer'END AS type,tx_hash,contract_address,"from","to",amountFROM ledger