vote.gno

Vote

func Vote(
    proposalId uint64, 
    yes bool,
) string

Allows a user to vote on a given proposal.

Parameters

NameTypeDescription

proposalId

uint64

The ID of the proposal to vote.

yes

bool

The flag to vote as yes or not.

Return Values

NameTypeDescription

voteKey

string

The key of the vote.

Cancel

func Cancel(
    proposalId uint64
) uint64 

Cancels the proposal with the given ID.

Parameters

NameTypeDescription

proposalId

uint64

The ID of the proposal to cancel.

Return Values

NameTypeDescription

proposalId

uint64

The ID of the proposal.

Last updated