DAY | USER_TYPE | BRIDGERS | |
---|---|---|---|
1 | 2025-02-02 00:00:00.000 | Active Bridgers | 68 |
2 | 2025-02-02 00:00:00.000 | Fist Time Bridgers | 663 |
3 | 2025-02-03 00:00:00.000 | Active Bridgers | 92 |
4 | 2025-02-03 00:00:00.000 | Fist Time Bridgers | 693 |
5 | 2025-02-04 00:00:00.000 | Active Bridgers | 80 |
6 | 2025-02-04 00:00:00.000 | Fist Time Bridgers | 634 |
7 | 2025-02-05 00:00:00.000 | Active Bridgers | 102 |
8 | 2025-02-05 00:00:00.000 | Fist Time Bridgers | 566 |
9 | 2025-02-06 00:00:00.000 | Active Bridgers | 158 |
10 | 2025-02-06 00:00:00.000 | Fist Time Bridgers | 628 |
11 | 2025-02-07 00:00:00.000 | Active Bridgers | 139 |
12 | 2025-02-07 00:00:00.000 | Fist Time Bridgers | 648 |
13 | 2025-02-08 00:00:00.000 | Active Bridgers | 154 |
14 | 2025-02-08 00:00:00.000 | Fist Time Bridgers | 586 |
15 | 2025-02-09 00:00:00.000 | Active Bridgers | 177 |
16 | 2025-02-09 00:00:00.000 | Fist Time Bridgers | 662 |
17 | 2025-02-10 00:00:00.000 | Active Bridgers | 197 |
18 | 2025-02-10 00:00:00.000 | Fist Time Bridgers | 712 |
19 | 2025-02-11 00:00:00.000 | Active Bridgers | 212 |
20 | 2025-02-11 00:00:00.000 | Fist Time Bridgers | 739 |
0-MIDuser type base copy
Updated 2024-04-16
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 bsc.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
Last run: about 2 months ago
62
3KB
52s