winnie-fs🧈x👻 Snapshot vp copy
Updated 2023-04-07
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
›
⌄
-- forked from lajarre / 🧈x👻 Snapshot vp @ https://flipsidecrypto.xyz/lajarre/q/2023-04-05-10-33-am-wstAWy
with
vote as (
select
proposal_author,
quorum,
vote_option,
vote_timestamp,
voter,
voting_period,
voting_power,
voting_type
from
ethereum.core.ez_snapshot
WHERE
proposal_id = '0xf6da417983653f7e7f5560a8e16ad77d5e25533bba9157abfd222347b40d09d0'
order by
vote_timestamp
),
period as (
with RECURSIVE
date_range (date) AS (
SELECT
'2023-04-03 12:00:00'::TIMESTAMP AS date
UNION ALL
SELECT
date + INTERVAL '10 MINUTE' as date
FROM
date_range
WHERE
date + INTERVAL '10 MINUTE' <= least(current_timestamp(), '2023-04-10 12:00:00'::TIMESTAMP)
)
select
*
from
Run a query to Download Data