v1

package
v0.0.0-...-774612f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 ContentCancelSoftwareUpgradeProposal

type ContentCancelSoftwareUpgradeProposal struct {
	Title       string `json:"title" bson:"title"`
	Description string `json:"description" bson:"description"`
}

type ContentClientUpdateProposal

type ContentClientUpdateProposal struct {
	Title       string `json:"title" bson:"title"`
	Description string `json:"description" bson:"description"`
	ClientId    string `json:"client_id" bson:"client_id"`
	Header      string `json:"header" bson:"header"`
}

type ContentCommunityPoolSpendProposal

type ContentCommunityPoolSpendProposal struct {
	Title       string        `json:"title" bson:"title"`
	Description string        `json:"description" bson:"description"`
	Recipient   string        `json:"recipient" bson:"recipient"`
	Amount      []models.Coin `json:"amount" bson:"amount"`
}

type ContentParameterChangeProposal

type ContentParameterChangeProposal struct {
	Title       string        `json:"title" bson:"title"`
	Description string        `json:"description" bson:"description"`
	Changes     []ParamChange `json:"changes" bson:"changes"`
}

type ContentSoftwareUpgradeProposal

type ContentSoftwareUpgradeProposal struct {
	Title       string `json:"title" bson:"title"`
	Description string `json:"description" bson:"description"`
	Plan        Plan   `json:"plan" bson:"plan"`
}

type ContentTextProposal

type ContentTextProposal struct {
	Title       string `json:"title" bson:"title"`
	Description string `json:"description" bson:"description"`
}

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 ParamChange struct {
	Subspace string `json:"subspace" bson:"subspace"`
	Key      string `json:"key" bson:"key"`
	Value    string `json:"value" bson:"value"`
}

type Plan

type Plan struct {
	Name                string    `json:"name" bson:"name"`
	Time                time.Time `json:"time" bson:"time"`
	Height              int64     `json:"height" bson:"height"`
	Info                string    `json:"info" bson:"info"`
	UpgradedClientState string    `json:"upgraded_client_state" bson:"upgraded_client_state"`
}

type WeightedVoteOption

type WeightedVoteOption struct {
	Option int32  `bson:"option"`
	Weight string `bson:"weight"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL