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 (*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.
Click to show internal directories.
Click to hide internal directories.