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

proposal_data.gno

Types

CommunityPoolSpendInfo

CommunityPoolSpendInfo contains information for community pool spending proposals.

source

Methods

Amount

Return Values

Name
Type
Description

int64

int64

transfer amount in the token's smallest unit.

source

Clone

Clone creates a deep copy of the CommunityPoolSpendInfo.

Return Values

Name
Type
Description

*CommunityPoolSpendInfo

*CommunityPoolSpendInfo

independent spend-data copy, or nil when the receiver is nil.

source

To

Getter methods

Return Values

Name
Type
Description

address

address

recipient address configured for the community-pool spend.

source

TokenPath

Return Values

Name
Type
Description

string

string

registered token path configured for the community-pool spend.

source

Constructors

  • func GetProposalCommunityPoolSpendInfo(proposalID int64) (*CommunityPoolSpendInfo, error) (source)

  • func NewCommunityPoolSpendInfo(to address, tokenPath string, amount int64) *CommunityPoolSpendInfo (source)

ExecutionInfo

ExecutionInfo contains information for parameter change execution. Messages are encoded strings that specify function calls and parameters.

source

Methods

Clone

Clone creates a deep copy of the ExecutionInfo.

Return Values

Name
Type
Description

*ExecutionInfo

*ExecutionInfo

independent execution-data copy including a copied message slice, or nil when the receiver is nil.

source

Msgs

Return Values

Name
Type
Description

[]string

[]string

encoded parameter-change messages in execution order.

source

Num

Getter methods

Return Values

Name
Type
Description

int64

int64

declared number of parameter-change messages.

source

Constructors

  • func GetProposalExecutionInfo(proposalID int64) (*ExecutionInfo, error) (source)

  • func NewExecutionInfo(num int64, msgs []string) *ExecutionInfo (source)

ParameterChangeInfo

ParameterChangeInfo represents a single parameter change to be executed.

source

Methods

Function

Return Values

Name
Type
Description

string

string

function name of the parameter-change handler.

source

Params

Return Values

Name
Type
Description

[]string

[]string

encoded arguments passed to the parameter-change handler.

source

PkgPath

Getter methods

Return Values

Name
Type
Description

string

string

package path of the parameter-change handler.

source

Constructors

  • func NewParameterChangeInfo(pkgPath string, function string, params []string) ParameterChangeInfo (source)

ProposalData

ProposalData contains the type-specific data for a proposal. This structure holds different data depending on the proposal type.

source

Methods

Clone

Clone creates a deep copy of the ProposalData.

Return Values

Name
Type
Description

*ProposalData

*ProposalData

independent proposal-data copy with cloned nested values, or nil when the receiver is nil.

source

CommunityPoolSpend

CommunityPoolSpend returns the community pool spending information.

Return Values

Name
Type
Description

*CommunityPoolSpendInfo

*CommunityPoolSpendInfo

community pool spending details

source

Execution

Execution returns the execution information for parameter changes.

Return Values

Name
Type
Description

*ExecutionInfo

*ExecutionInfo

parameter change execution details

source

ProposalType

ProposalType returns the type of this proposal.

Return Values

Name
Type
Description

ProposalType

ProposalType

the proposal type

source

Constructors

  • func NewProposalData(proposalType ProposalType, communityPoolSpend *CommunityPoolSpendInfo, execution *ExecutionInfo) *ProposalData (source)

ProposalMetadata

ProposalMetadata contains descriptive information about a proposal. This includes the title and description that are displayed to voters.

source

Methods

Clone

Clone creates a deep copy of the ProposalMetadata.

Return Values

Name
Type
Description

*ProposalMetadata

*ProposalMetadata

independent metadata copy, or nil when the receiver is nil.

source

Description

Description returns the proposal description.

Return Values

Name
Type
Description

string

string

proposal description

source

Title

Title returns the proposal title.

Return Values

Name
Type
Description

string

string

proposal title

source

Constructors

  • func NewProposalMetadata(title string, description string) *ProposalMetadata (source)

Last updated