Documentation ¶
Index ¶
- Constants
- func CovertContent(content GovContent) interface{}
- type Client
- type ContentCancelSoftwareUpgradeProposal
- type ContentClientUpdateProposal
- type ContentCommunityPoolSpendProposal
- type ContentParameterChangeProposal
- type ContentSoftwareUpgradeProposal
- type ContentTextProposal
- type DocTxMsgDeposit
- type DocTxMsgSubmitProposal
- type DocTxMsgVote
- type DocTxMsgVoteWeighted
- type ParamChange
- type Plan
- type WeightedVoteOption
Constants ¶
View Source
const ( ProposalTypeSoftwareUpgrade = "SoftwareUpgrade" ProposalTypeCancelSoftwareUpgrade = "CancelSoftwareUpgrade" ProposalTypeParameterChange = "ParameterChange" ProposalTypeCommunityPoolSpend = "CommunityPoolSpend" ProposalTypeText = "Text" ProposalTypeClientUpdate = "ClientUpdate" )
Variables ¶
This section is empty.
Functions ¶
func CovertContent ¶
func CovertContent(content GovContent) interface{}
Types ¶
type ContentParameterChangeProposal ¶
type ContentParameterChangeProposal struct { Title string `json:"title" bson:"title"` Description string `json:"description" bson:"description"` Changes []ParamChange `json:"changes" bson:"changes"` }
type ContentTextProposal ¶
type DocTxMsgDeposit ¶
type DocTxMsgDeposit struct { ProposalID int64 `bson:"proposal_id"` // ID of the proposal Depositor string `bson:"depositor"` // Address of the depositor Amount []models.Coin `bson:"amount"` // Coins to add to the proposal's deposit }
MsgDeposit
func (*DocTxMsgDeposit) BuildMsg ¶
func (doctx *DocTxMsgDeposit) BuildMsg(txMsg interface{})
func (*DocTxMsgDeposit) GetType ¶
func (doctx *DocTxMsgDeposit) GetType() string
func (*DocTxMsgDeposit) HandleTxMsg ¶
func (m *DocTxMsgDeposit) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgSubmitProposal ¶
type DocTxMsgSubmitProposal struct { Proposer string `bson:"proposer"` // Address of the proposer InitialDeposit []models.Coin `bson:"initial_deposit"` // Initial deposit paid by sender. Must be strictly positive. Content interface{} `bson:"content"` }
func (*DocTxMsgSubmitProposal) BuildMsg ¶
func (doctx *DocTxMsgSubmitProposal) BuildMsg(txMsg interface{})
func (*DocTxMsgSubmitProposal) GetType ¶
func (doctx *DocTxMsgSubmitProposal) GetType() string
func (*DocTxMsgSubmitProposal) HandleTxMsg ¶
func (m *DocTxMsgSubmitProposal) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgVote ¶
type DocTxMsgVote struct { ProposalID int64 `bson:"proposal_id"` // ID of the proposal Voter string `bson:"voter"` // address of the voter Option int32 `bson:"option"` // option from OptionSet chosen by the voter }
MsgVote
func (*DocTxMsgVote) BuildMsg ¶
func (doctx *DocTxMsgVote) BuildMsg(txMsg interface{})
func (*DocTxMsgVote) GetType ¶
func (doctx *DocTxMsgVote) GetType() string
func (*DocTxMsgVote) HandleTxMsg ¶
func (m *DocTxMsgVote) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgVoteWeighted ¶
type DocTxMsgVoteWeighted struct { ProposalID int64 `bson:"proposal_id"` // ID of the proposal Voter string `bson:"voter"` // address of the voter Options []WeightedVoteOption `bson:"options"` // option from OptionSet chosen by the voter }
MsgVote
func (*DocTxMsgVoteWeighted) BuildMsg ¶
func (m *DocTxMsgVoteWeighted) BuildMsg(txMsg interface{})
func (*DocTxMsgVoteWeighted) GetType ¶
func (m *DocTxMsgVoteWeighted) GetType() string
func (*DocTxMsgVoteWeighted) HandleTxMsg ¶
func (m *DocTxMsgVoteWeighted) HandleTxMsg(v SdkMsg) MsgDocInfo
type ParamChange ¶
type WeightedVoteOption ¶
Click to show internal directories.
Click to hide internal directories.