NEW_VOTES | ETH_VOTES | ETH_VOTES_PCT | ARB_VOTES | ARB_VOTES_PCT | BASE_VOTES | BASE_VOTES_PCT | OP_VOTES | OP_VOTES_PCT | |
---|---|---|---|---|---|---|---|---|---|
1 | 484201078.656751 | 384092113.819001 | 79.324919078 | 26813217.0184878 | 5.537620257 | 65530669.643033 | 13.533771925 | 7765078.1762291 | 1.60368874 |
marquw gov - voting power bignums
Updated 2025-03-28
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
delegateVotesChanged_txs as (
select
block_timestamp
, tx_hash
, concat('0x', right(topics[1], 40)) as delegate
, utils.udf_hex_to_int(substr(data, 67, 64)) ::int / pow(10, 18) as new_votes
, utils.udf_hex_to_int(substr(data, 3, 64)) ::int / pow(10, 18) as previous_votes
, new_votes - previous_votes as change_votes
, 'Ethereum' as chain
from ethereum.core.fact_event_logs
where tx_status = 'SUCCESS'
and contract_address = '0xb0ffa8000886e57f86dd5264b9582b2ad87b2b91'
and topics[0] = '0xdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724' -- DelegateVotesChanged
and block_timestamp >= '2024-04-17'
qualify row_number() over (partition by delegate order by block_timestamp desc, event_index desc) = 1
union all
select
block_timestamp
, tx_hash
, concat('0x', right(topics[1], 40)) as delegate
, utils.udf_hex_to_int(substr(data, 67, 64)) ::int / pow(10, 18) as new_votes
, utils.udf_hex_to_int(substr(data, 3, 64)) ::int / pow(10, 18) as previous_votes
, new_votes - previous_votes as change_votes
, 'Arbitrum' as chain
from arbitrum.core.fact_event_logs
where tx_status = 'SUCCESS'
and contract_address = '0xb0ffa8000886e57f86dd5264b9582b2ad87b2b91'
Last run: 30 days ago
1
135B
212s