proposal_data.gno
Types
CommunityPoolSpendInfo
CommunityPoolSpendInfo contains information for community pool spending proposals.
Methods
Amount
Return Values
int64
int64
transfer amount in the token's smallest unit.
Clone
Clone creates a deep copy of the CommunityPoolSpendInfo.
Return Values
*CommunityPoolSpendInfo
*CommunityPoolSpendInfo
independent spend-data copy, or nil when the receiver is nil.
To
Getter methods
Return Values
address
address
recipient address configured for the community-pool spend.
TokenPath
Return Values
string
string
registered token path configured for the community-pool spend.
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.
Methods
Clone
Clone creates a deep copy of the ExecutionInfo.
Return Values
*ExecutionInfo
*ExecutionInfo
independent execution-data copy including a copied message slice, or nil when the receiver is nil.
Msgs
Return Values
[]string
[]string
encoded parameter-change messages in execution order.
Num
Getter methods
Return Values
int64
int64
declared number of parameter-change messages.
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.
Methods
Function
Return Values
string
string
function name of the parameter-change handler.
Params
Return Values
[]string
[]string
encoded arguments passed to the parameter-change handler.
PkgPath
Getter methods
Return Values
string
string
package path of the parameter-change handler.
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.
Methods
Clone
Clone creates a deep copy of the ProposalData.
Return Values
*ProposalData
*ProposalData
independent proposal-data copy with cloned nested values, or nil when the receiver is nil.
CommunityPoolSpend
CommunityPoolSpend returns the community pool spending information.
Return Values
*CommunityPoolSpendInfo
*CommunityPoolSpendInfo
community pool spending details
Execution
Execution returns the execution information for parameter changes.
Return Values
*ExecutionInfo
*ExecutionInfo
parameter change execution details
ProposalType
ProposalType returns the type of this proposal.
Return Values
ProposalType
ProposalType
the proposal type
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.
Methods
Clone
Clone creates a deep copy of the ProposalMetadata.
Return Values
*ProposalMetadata
*ProposalMetadata
independent metadata copy, or nil when the receiver is nil.
Description
Description returns the proposal description.
Return Values
string
string
proposal description
Title
Title returns the proposal title.
Return Values
string
string
proposal title
Constructors
func NewProposalMetadata(title string, description string) *ProposalMetadata(source)
Last updated