Query editor
WITHpairs AS (SELECTpool,MIN(token0) AS token0,MIN(token1) AS token1,MIN(fee) AS fee,MIN(type) AS typeFROM (SELECT DISTINCToutput_pool AS pool,token0,token1,fee,'V3' AS typeFROM thruster_blast.NonfungiblePositionManager_call_createAndInitializePoolIfNecessaryUNION ALLSELECT DISTINCTpair AS pool,token0,token1,0.3 AS fee,'V2' AS typeFROM thruster_blast.ThrusterFactory_Point_3_Fee_evt_PairCreatedUNION ALLSELECT DISTINCTpair AS pool,token0,token1,1 AS fee,'V2' AS typeFROM thruster_blast.ThrusterFactory_1_Fee_evt_PairCreatedUNION ALLSELECT DISTINCTtoken0_data.pool,token0_data.token0,token1_data.token1,fee_data.fee,'V3' AS typeFROM(SELECT DISTINCTcontract_address AS pool,output_0 AS token0FROMthruster_blast.ThrusterPool_V3_Point_3_Fee_call_token0WHEREcall_success = true) AS token0_dataLEFT JOIN(SELECT DISTINCTcontract_address AS pool,output_0 AS token1FROMthruster_blast.ThrusterPool_V3_Point_3_Fee_call_token1WHERE