Query editor
WITH deployed_instances AS (SELECT instanceFROM hopr_network_gnosis.hoprnodestakefactorydufour_evt_newhoprnodestakesafe), contract_instances_with_latest_threshold AS (/** 91 threshold changing activities*/SELECT *, ROW_NUMBER() OVER(PARTITION BY contract_address ORDER BY block_number DESC) AS rankFROM gnosis.logsWHERE topic0 = 0x610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c93 -- event ChangedThreshold(uint256)AND contract_address IN (SELECT instance FROM deployed_instances))/** 33 safes have threshold larger than 1,* where 3 got 3, and 30 have 2*/SELECT contract_address AS safe, varbinary_to_uint256(data) AS new_threshold FROM contract_instances_with_latest_thresholdWHERE rank = 1 -- 44 contracts have changed thresholdAND varbinary_to_uint256(data) != 1 -- filter out threshold of 1