piperJupiter Governance - Votes
    Updated 17 hours ago

    with t0 as (
    select decoded_instruction:args:side::string as side
    , decoded_instruction:args:weight::int * power(10, -6) as weight
    , signers[0]::string as voter
    , value:pubkey::string AS proposal
    , value:name::string AS name
    , block_timestamp
    from solana.core.fact_decoded_instructions i
    , LATERAL FLATTEN(input => decoded_instruction:accounts)
    where block_timestamp >= '2024-11-16'
    and i.program_id in (
    'GovaE4iu227srtG2s3tZzB4RmWBzw8sTwrCLZz7kN7rY'
    )
    and name = 'proposal'
    and proposal = 'ByQ21v3hqdQVwPHsfwurrtEAH8pB3DYuLdp9jU2Hwnd4'
    and side is not null
    and side > 0
    and weight is not null
    and event_type = 'setVote'
    qualify(
    row_number() over (partition by voter order by block_timestamp desc) = 1
    )
    )
    select proposal
    , side
    , case when side = '1' then 'Burning Cat'
    when side = '2' then 'PPP'
    when side = '3' then 'In Space'
    when side = '4' then 'Discovery'
    when side = '5' then 'Jupiverse??'
    when side = '6' then 'The Current Default'
    end as options
    , round(sum(weight)) as votes
    , count(1) as n_voters
    , max(block_timestamp)
    Last run: about 18 hours agoAuto-refreshes every 12 hours
    PROPOSAL
    SIDE
    OPTIONS
    VOTES
    N_VOTERS
    MAX(BLOCK_TIMESTAMP)
    MIN(BLOCK_TIMESTAMP)
    1
    ByQ21v3hqdQVwPHsfwurrtEAH8pB3DYuLdp9jU2Hwnd44Discovery113431869377582024-11-20 15:59:51.0002024-11-16 16:00:21.000
    2
    ByQ21v3hqdQVwPHsfwurrtEAH8pB3DYuLdp9jU2Hwnd41Burning Cat66491648336102024-11-20 15:59:46.0002024-11-16 16:02:07.000
    3
    ByQ21v3hqdQVwPHsfwurrtEAH8pB3DYuLdp9jU2Hwnd43In Space59854806328312024-11-20 15:59:40.0002024-11-16 16:01:37.000
    4
    ByQ21v3hqdQVwPHsfwurrtEAH8pB3DYuLdp9jU2Hwnd46The Current Default52454842281122024-11-20 15:59:39.0002024-11-16 16:01:13.000
    5
    ByQ21v3hqdQVwPHsfwurrtEAH8pB3DYuLdp9jU2Hwnd45Jupiverse??44409789321622024-11-20 15:59:27.0002024-11-16 16:01:35.000
    6
    ByQ21v3hqdQVwPHsfwurrtEAH8pB3DYuLdp9jU2Hwnd42PPP25365485190502024-11-20 15:58:39.0002024-11-16 16:02:48.000
    6
    801B
    3s