rahoVotes and Voters
Updated 2023-04-13
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
›
⌄
-- Lido Snapshot Data
with all_votes as(
select
date(proposal_start_time) as start_time,
date(proposal_end_time) as end_time,
date(vote_timestamp) as vote_time,
proposal_id,
proposal_title,
voter,
vote_option,
voting_power,
space_id,
proposal_author
from ethereum.core.ez_snapshot
where space_id = 'stgdao.eth'
),
overview as (
select
count(distinct proposal_title) as number_of_proposals,
count(distinct voter) as unique_voters,
sum(voting_power) as total_power_cast
from all_votes
)
select
start_time as "Proposal Start Date",
end_time as "Proposal End Date",
proposal_title as "Proposal Title",
sum(voting_power) as "Number of Votes",
count(voter) as "Total Voters"
from all_votes
group by 3,2,1
order by start_time asc
Run a query to Download Data