0xaiman2023-04-30 12:35 PM
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
raw as (
select
proposal_id,
validator,
validator_address,
address,
updated_at as vote_time
from
osmosis.core.fact_governance_validator_votes fgvv
right join osmosis.core.fact_validators fv on fv.address = fgvv.validator_address
),
vinception as (
select
attribute_value as validator,
block_timestamp as tvi
from
osmosis.core.fact_msg_attributes
where
msg_type = 'create_validator'
and attribute_key = 'validator'
),
raw2 as (
select
proposal_id,
min(updated_at) as vote_time
from
osmosis.core.fact_governance_validator_votes fgvv
group by
1
),
raw3 as (
select
proposal_id,
vote_time,
tvi,
Run a query to Download Data