0xHaM-dOlas Traders in other Chains in ttl
Updated 2025-01-22
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with t1 as (
select
BLOCK_TIMESTAMP,
tx_hash,
SERVICE_ID,
ORIGIN_FROM_ADDRESS,
NAME,
case
when NAME ilike '%market_maker%' then 'Creator'
when NAME ilike '%Trader%' then 'Trader'
when NAME ilike '%Mech%' then 'Mech'
else null
end as service_type,
AGENT_IDS[0] as agent_Id
from crosschain.olas.ez_service_registrations
)
, trader_address as (
SELECT
DISTINCT ORIGIN_FROM_ADDRESS AS Trader
FROM t1
WHERE service_type = 'Trader'
)
SELECT
'Etherum' as chain,
PLATFORM,
COUNT(DISTINCT ORIGIN_FROM_ADDRESS) as n_traders
FROM ethereum.defi.ez_dex_swaps
WHERE ORIGIN_FROM_ADDRESS IN (SELECT Trader FROM trader_address)
GROUP by 1,2
UNION ALL
SELECT
'Arbitrum' as chain,
PLATFORM,
COUNT(DISTINCT ORIGIN_FROM_ADDRESS) as n_traders
QueryRunArchived: QueryRun has been archived