governance

package
v1.24.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultURL = "https://rocketdash.net"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client reads the same public REST API as https://rocketdash.net/vote. The Snapshot response types are retained for Smartnode API compatibility.

func NewClient

func NewClient(baseURL string, chainID uint) (*Client, error)

func (*Client) Proposals

func (c *Client) Proposals(ctx context.Context, state string) ([]api.SnapshotProposal, error)

func (*Client) Votes

func (c *Client) Votes(ctx context.Context, proposals []api.SnapshotProposal, node common.Address, delegateAt func(uint32) (common.Address, error)) ([]api.SnapshotProposalVote, error)

Votes returns at most one effective ballot per proposal. RocketDash publishes the node behind each signer, so a changed signalling address does not hide an earlier ballot. A node's own ballot overrides its delegate's ballot. Resolve delegation at each proposal's snapshot block, rather than at the current head.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL