Query editor
--ethereum.signatures--ethereum.contracts--labels.contractsselectdate_trunc('week', a.block_time) as week, COALESCE(b.name, cast(a."from" as varchar)) as integration_type, count(distinct(tx_hash)) as times_called, sum(cast(value as double)/1e18) as eth_receivedfrom ethereum.traces aleft join labels.contracts b on a."from" = b.addressleft join ethereum.signatures c on substring(cast(a.input as varchar), 1, 4) = cast(c.id as varchar)where to = 0x00000000000000ADc04C56Bf30aC9d3c0aAF14dCand b.blockchain = 'ethereum'and trace_address is not NULLand success = trueand block_time > now() - interval '1' monthand lower(b.name) NOT LIKE '%gnosis%'and lower(b.name) NOT LIKE '%argent%'and (json_value(c.abi, 'strict $.stateMutability') NOT IN ('view', 'pure') OR c.id is NULL)and a."type" = 'call'and (a.call_type NOT IN ('delegatecall', 'staticcall', 'callcode') OR a.call_type is NULL)and cast(a.value as double) > 0group by 1, 2order by 1 desc