0xaiman2023-04-15 04:19 AM
Updated 2023-04-15
999
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 squid as (
select
ROW_NUMBER() OVER (ORDER BY day) AS row_num,*
from ( select
date_trunc('day', tm) as day,
count(distinct sender) as n_new_address,
sum(n_new_address) OVER (
ORDER BY day asc ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
) AS Squid_user_growth
from (
select sender, min(block_timestamp) as tm
from axelar.core.ez_squid
group by 1
order by 1
)
group by 1
order by 1 asc
limit 100)
), tc as (
select
ROW_NUMBER() OVER (ORDER BY day) AS row_num,* from (select
date_trunc('day', tm) as day,
count(distinct from_address) as n_new_address,
sum(n_new_address) OVER (
ORDER BY day asc ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
) AS Thorchain_user_growth
from (
select from_address, min(block_timestamp) as tm
from thorchain.core.fact_swaps
group by 1
)
group by 1
order by 1 asc
limit 100)
)
Run a query to Download Data