model

package
v1.7.38 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgDepositParams

type MsgDepositParams struct {
	ProposalId string     `json:"proposalId"`
	Depositor  string     `json:"depositor"`
	Amount     coin.Coins `json:"amount"`
}

type MsgSubmitProposalMsg

type MsgSubmitProposalMsg struct {
	Type string `mapstructure:"@type" json:"@type"`
}

type MsgSubmitProposalParams

type MsgSubmitProposalParams struct {
	MaybeProposalId *string       `json:"proposalId"`
	Messages        []interface{} `json:"messages"`
	InitialDeposit  coin.Coins    `json:"initial_deposit"`
	Proposer        string        `json:"proposer"`
	Metadata        string        `json:"metadata"`
}

type MsgVoteParams

type MsgVoteParams struct {
	ProposalId string `json:"proposalId"`
	Voter      string `json:"voter"`
	Option     string `json:"option"`
	Metadata   string `json:"metadata"`
}

type MsgVoteWeightedParams

type MsgVoteWeightedParams struct {
	ProposalId  string       `json:"proposalId"`
	Voter       string       `json:"voter"`
	VoteOptions []VoteOption `json:"voteOptions"`
	Metadata    string       `json:"metadata"`
}

type RawMsgSubmitProposal

type RawMsgSubmitProposal struct {
	Type           string        `json:"@type"`
	Messages       []interface{} `json:"messages"`
	Proposer       string        `json:"proposer"`
	InitialDeposit []interface{} `mapstructure:"initial_deposit" json:"initial_deposit"`
	Metadata       string        `json:"metadata"`
}

type RawMsgVoteWeight

type RawMsgVoteWeight struct {
	ProposalId string       `json:"proposalId"`
	Voter      string       `json:"voter"`
	Options    []VoteOption `json:"options"`
	Metadata   string       `json:"metadata"`
}

type VoteOption

type VoteOption struct {
	Option string `json:"option"`
	Weight string `json:"weight"`
}

Jump to

Keyboard shortcuts

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