Query editor
with modules as (selectcontract_address as safe,bytearray_substring (data, 13) as "module"from {{chain}}.logswheretopic0 = 0xecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f8440 -- EnabledModuleand block_time > TIMESTAMP '{{date}}'), cobosafes as (selectbytearray_substring (topic1, 13) as "safe",bytearray_substring (data, 13) as "cobosafe"from {{chain}}.logswheretopic0 = 0x532cf4635ae9ff4e1e42ba14917e825d00f602f28297cc654fa3b414b911232b -- ProxyCreatedand topic2 = 0x436F626F536166654163636F756E740000000000000000000000000000000000 -- CoboSafeAccountand block_time > TIMESTAMP '{{date}}'), safes as (selectt1.safe,t1.module,if(t2.cobosafe is not null, 'cobosafe', 'other') as module_typefrom modules t1 left join cobosafes t2on t1.safe = t2.safe and t1.module = t2.cobosafe), module_txs as (selectcontract_address as safe,bytearray_substring (topic1, 13) as modulefrom {{chain}}.logswheretopic0 in (0x6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb8, -- ExecutionFromModuleSuccess0xacd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd375 -- ExecutionFromModuleFailure-- We donot choose SafeModuleTransaction cause it's only emitted in GnosisSafeL2)and block_time > TIMESTAMP '{{date}}')selectcount(1) as cnt,if(t2.cobosafe is null, 'other-module-tx', 'cobosafe-tx') as tagfrom module_txs t1 left join cobosafes t2on t1.safe = t2.safeand t1.module = t2.cobosafegroup byif(t2.cobosafe is null, 'other-module-tx', 'cobosafe-tx')