governance_execute.gno
Cancel
func Cancel(
cur realm,
proposalId int64
) int64Cancel cancels the proposal with the given ID.
Halt check: reverts while the Governance halt scope is active.
Parameters
cur
realm
Current realm context; callers use cross(cur) when crossing into this realm.
proposalId
int64
The ID of the proposal to cancel.
Return Values
proposalId
int64
The ID of the proposal.
Execute
Execute executes the given proposal.
Halt check: reverts while the Governance halt scope is active, except for halt-recovery proposals that only target the halt realm.
Parameters
cur
realm
Current realm context; callers use cross(cur) when crossing into this realm.
proposalId
int64
The ID of the proposal to execute.
Return Values
proposalId
int64
The ID of the proposal.
RemoveInactiveProposalFromIndex
RemoveInactiveProposalFromIndex removes an inactive proposal from the timestamp-ordered index without deleting its proposal or voting history.
Halt check: reverts while the Governance halt scope is active.
Parameters
cur
realm
Current realm context; callers use cross(cur) when crossing into this realm.
proposalID
int64
Identifier of the inactive proposal to remove from the active index.
Last updated