Query editor
-- traces where Seaport (some contract) was called-- join on tx , to get the wallet that signed txWITH et as (SELECTDISTINCTdate_trunc('week', tx.block_time) as week, tx."from" as userFROM {{W4_chain}}.traces trLEFT JOIN {{W4_chain}}.transactions tx ON tx.hash = tr.tx_hashWHERE tr.to = {{W4_contract}}AND tr.successAND tr.block_time > NOW() - interval '{{W4_months ago}}' month),count_eth as (SELECTweek, CASE WHEN times_used = 1 THEN 'eth_new'ELSE 'eth_old'END AS user_type, COUNT(*) as num_usersFROM (SELECTweek, user, row_number() over (partition by user order by week asc) as times_usedFROM et)GROUP BY 1, 2),base AS(SELECTDISTINCTdate_trunc('week', btx.block_time) as week, btx."from" as userFROM base.traces btrLEFT JOIN base.transactions btx ON btx.hash = btr.tx_hashWHERE btr.to = {{W4_contract}}AND btr.successAND btr.block_time > NOW() - interval '{{W4_months ago}}' month),count_base as (SELECTweek, CASE WHEN times_used = 1 THEN 'base_new'ELSE 'base_old'END AS user_type, COUNT(*) as num_usersFROM (SELECTweek, user, row_number() over (partition by user order by week asc) as times_usedFROM base)GROUP BY 1, 2