Query editor
/*-- @description: Safe deployments in Gnosis Chain with segemntation-- @notes:This can be later used in the Safe transactions query to understand what ecosystem project they are related toSegment attribute has to be corrected - many working not correctly-- @references:- query_3866691 - Circles segmentation- query_3866729 - Gnosis Pay segmentation*/WITH gno_safes AS (SELECTgs.block_date, gs.blockchain, gs.creation_version, gs.address, tr."from" AS deployer, gs.tx_hashFROM safe_gnosis.safes gs LEFT JOIN gnosis.transactions tr ON gs.tx_hash = tr.hash)SELECT -- Safes with segmentation based on the helper queries for identifying each addressgno_safes.block_date, gno_safes.blockchain, gno_safes.creation_version, gno_safes.address, gno_safes.deployer-- , COALESCE(-- circles.segment-- , gnosis_pay.segment-- , cow_amm.segment-- ,'NaN'-- ) AS segment, gno_safes.tx_hashFROM gno_safes-- LEFT JOIN query_3866691 circles-- ON gno_safes.address = circles.address-- LEFT JOIN query_3866729 gnosis_pay-- ON gno_safes.address = gnosis_pay.address-- LEFT JOIN query_4060865 cow_amm-- ON gno_safes.address = cow_amm.address