For the complete documentation index, see llms.txt. This page is also available as Markdown.

governance_execute.gno

Cancel

func Cancel(
	cur realm,
	proposalId int64
) int64

Cancel cancels the proposal with the given ID.

Halt check: reverts while the Governance halt scope is active.

Parameters

Name
Type
Description

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

Name
Type
Description

proposalId

int64

The ID of the proposal.

source

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

Name
Type
Description

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

Name
Type
Description

proposalId

int64

The ID of the proposal.

source

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

Name
Type
Description

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.

source

Last updated