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)selectcount(1) as cnt,module_typefrom safesgroup bymodule_type