Documentation ¶
Index ¶
- Constants
- func CovertContent(content GovContent) interface{}
- type ContentCancelSoftwareUpgradeProposal
- type ContentClientUpdateProposal
- type ContentCommunityPoolSpendProposal
- type ContentParameterChangeProposal
- type ContentSoftwareUpgradeProposal
- type ContentTextProposal
- type DocTxMsgDepositV1
- type DocTxMsgExecLegacyContent
- type DocTxMsgSubmitProposalV1
- type DocTxMsgVoteV1
- type DocTxMsgVoteWeightedV1
- 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 DocTxMsgDepositV1 ¶
type DocTxMsgDepositV1 struct { ProposalID int64 `bson:"proposal_id"` // ID of the proposal Depositor string `bson:"depositor"` // Address of the depositor Amount []types.Coin `bson:"amount"` // Coins to add to the proposal's deposit }
MsgDeposit
func (*DocTxMsgDepositV1) BuildMsg ¶
func (m *DocTxMsgDepositV1) BuildMsg(txMsg interface{})
func (*DocTxMsgDepositV1) GetType ¶
func (m *DocTxMsgDepositV1) GetType() string
func (*DocTxMsgDepositV1) HandleTxMsg ¶
func (m *DocTxMsgDepositV1) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgExecLegacyContent ¶
type DocTxMsgExecLegacyContent struct { Content interface{} `bson:"content"` Authority string `bson:"authority"` }
MsgExecLegacyContent
func (*DocTxMsgExecLegacyContent) BuildMsg ¶
func (m *DocTxMsgExecLegacyContent) BuildMsg(txMsg interface{})
func (*DocTxMsgExecLegacyContent) GetType ¶
func (m *DocTxMsgExecLegacyContent) GetType() string
func (*DocTxMsgExecLegacyContent) HandleTxMsg ¶
func (m *DocTxMsgExecLegacyContent) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgSubmitProposalV1 ¶
type DocTxMsgSubmitProposalV1 struct { Messages interface{} `bson:"messages"` // Address of the proposer InitialDeposit []models.Coin `bson:"initial_deposit"` // Initial deposit paid by sender. Must be strictly positive. Proposer string `bson:"proposer"` // Address of the proposer Metadata string `bson:"metadata"` // Since: cosmos-sdk 0.47 Title string `bson:"title"` Summary string `bson:"summary"` }
func (*DocTxMsgSubmitProposalV1) BuildMsg ¶
func (m *DocTxMsgSubmitProposalV1) BuildMsg(txMsg interface{})
func (*DocTxMsgSubmitProposalV1) GetType ¶
func (m *DocTxMsgSubmitProposalV1) GetType() string
func (*DocTxMsgSubmitProposalV1) HandleTxMsg ¶
func (m *DocTxMsgSubmitProposalV1) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgVoteV1 ¶
type DocTxMsgVoteV1 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 Metadata string `bson:"metadata"` }
MsgVote
func (*DocTxMsgVoteV1) BuildMsg ¶
func (m *DocTxMsgVoteV1) BuildMsg(txMsg interface{})
func (*DocTxMsgVoteV1) GetType ¶
func (m *DocTxMsgVoteV1) GetType() string
func (*DocTxMsgVoteV1) HandleTxMsg ¶
func (m *DocTxMsgVoteV1) HandleTxMsg(v SdkMsg) MsgDocInfo
type DocTxMsgVoteWeightedV1 ¶
type DocTxMsgVoteWeightedV1 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 Metadata string `bson:"metadata"` }
MsgVote
func (*DocTxMsgVoteWeightedV1) BuildMsg ¶
func (m *DocTxMsgVoteWeightedV1) BuildMsg(txMsg interface{})
func (*DocTxMsgVoteWeightedV1) GetType ¶
func (m *DocTxMsgVoteWeightedV1) GetType() string
func (*DocTxMsgVoteWeightedV1) HandleTxMsg ¶
func (m *DocTxMsgVoteWeightedV1) HandleTxMsg(v SdkMsg) MsgDocInfo
type ParamChange ¶
type WeightedVoteOption ¶
Click to show internal directories.
Click to hide internal directories.