0-MIDuser type arbb
Updated 2024-09-02
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
›
⌄
with tab1 as (
select date_trunc('minute',BLOCK_TIMESTAMP) as time
,ORIGIN_FROM_ADDRESS
from arbitrum.core.ez_decoded_event_logs
where EVENT_NAME='LiFiTransferStarted'
and DECODED_LOG:bridgeData:integrator='jumper.exchange'
and ORIGIN_TO_ADDRESS='0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae'
and BLOCK_TIMESTAMP::date>=current_date-30
),
tab2 as (
select date_trunc('day',time) as day
,ORIGIN_FROM_ADDRESS
,row_number()over(partition by ORIGIN_FROM_ADDRESS order by day) as time_row
from tab1
)
select day
,case
when time_row=1 then 'Fist Time Bridgers' else 'Active Bridgers' end as user_type
,count(distinct ORIGIN_FROM_ADDRESS) as bridgers
--,sum(new_bridgers) over (order by day) as total_new_bridgers
from tab2
--where time_row=1
group by 1,2
order by 1,2
QueryRunArchived: QueryRun has been archived