Updated 2022-10-19Copy Reference Fork
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
›
⌄
-- reference - --ref : https://app.flipsidecrypto.com/dashboard/gXhhQ8
with active as (
select distinct tx_from as Active_Users,
date_trunc (week,block_timestamp) as Week,
count (distinct block_timestamp::date) as active_days
from osmosis.core.fact_transactions
where tx_status = 'SUCCEEDED'
and week >= '2022-01-01'
group by 1,2
having active_days >= 5)
select date_trunc (week,block_timestamp) as Week,project_name , count(distinct TX_ID) as txs
from osmosis.core.fact_transfers t join osmosis.core.dim_labels l on t.CURRENCY = l.address
where TX_STATUS = 'SUCCEEDED'
and TRANSFER_TYPE = 'IBC_TRANSFER_OUT'
and sender in (SELECT Active_Users from active)
and BLOCK_TIMESTAMP > '2022-01-01'
and currency in
(
with active as (
select distinct tx_from as Active_Users,
date_trunc (week,block_timestamp) as Week,
count (distinct block_timestamp::date) as active_days
from osmosis.core.fact_transactions
where tx_status = 'SUCCEEDED'
and week >= '2022-01-01'
group by 1,2
having active_days >= 5)
select CURRENCY
from osmosis.core.fact_transfers t join osmosis.core.dim_labels l on t.CURRENCY = l.address
where TX_STATUS = 'SUCCEEDED'
and TRANSFER_TYPE = 'IBC_TRANSFER_OUT'
and sender in (SELECT Active_Users from active)
and BLOCK_TIMESTAMP > '2022-01-01'
Run a query to Download Data