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

execute.gno

Execute

func Execute(
	cur realm,
	proposalId int64
) int64

Execute executes the given proposal.

The proposal must have reached quorum and have more Yes voting power than No voting power to become executable. Tied votes are rejected and cannot be executed.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

proposalId

int64

The ID of the proposal to execute.

Return Values

Name
Type
Description

proposalId

int64

The ID of the proposal.

Cancel

Cancel cancels the proposal with the given ID.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

proposalId

int64

The ID of the proposal to cancel.

Return Values

Name
Type
Description

proposalId

int64

The ID of the proposal.

Last updated