Query editor
WITH AllAddresses AS (-- CEXSELECT DISTINCTaddress AS contract_address,cex_name AS project_name,'dex' AS project_typeFROM cex_optimism.addressesUNION-- DEXSELECT DISTINCTproject_contract_address AS contract_address,project AS project_name,'dex' AS project_typeFROM dex.tradesWHERE blockchain = 'optimism'UNION-- DeFiSELECT DISTINCTproject_contract_address AS contract_address,project AS project_name,'defi' AS project_typeFROM dex_aggregator.tradesUNION-- -- L2-- SELECT DISTINCT-- address AS contract_address,-- protocol_name AS project_name,-- 'l2' AS project_type-- FROM addresses_ethereum.l2_batch_submitters-- UNION-- -- MEV-- SELECT DISTINCT-- address AS contract_address,-- 'mev' AS project_name,-- 'mev' AS project_type-- FROM addresses_ethereum.mev-- UNION-- BridgesSELECT DISTINCTtx_to AS contract_address,project AS project_name,'bridge' AS project_typeFROM bridge_optimism.standard_bridge_flowsUNION-- NFTs (collection)SELECT DISTINCTnft_contract_address AS contract_address,collection AS project_name,