Afonso_Diaz2023-06-16 10:48 PM
Updated 2023-06-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
32
33
34
35
36
›
⌄
with t as (
select
date_trunc('month', block_timestamp)::date as month,
'Near' as chain,
count(distinct tx_hash) as proposals,
sum(proposals) over (order by month) as cumulative_proposals
from near.core.fact_actions_events_function_call a
left outer join near.core.dim_address_labels
on address = receiver_id
where method_name = 'add_proposal'
and label_type = 'dao'
and creator = 'Near Foundation'
group by 1
union all
select
date_trunc('month', block_timestamp)::date as month,
'Cosmos' as chain,
count(distinct tx_id) as proposals,
sum(proposals) over (order by month) as cumulative_proposals
from cosmos.core.fact_governance_submit_proposal
where tx_succeeded = 1
group by 1
union all
select
date_trunc('month', block_timestamp)::date as month,
'Osmosis' as chain,
count(distinct tx_id) as proposals,
sum(proposals) over (order by month) as cumulative_proposals
from osmosis.core.fact_governance_submit_proposal
where tx_succeeded = 1
group by 1
)
Run a query to Download Data