Documentation ¶
Index ¶
- func NormalizeProposalStatus(status string) string
- func NormalizeProposalType(proposalType string) string
- func NormalizeVoteOption(option string) string
- func QueryDepositByTxQuery(cdc *codec.Codec, cliCtx context.CLIContext, params gov.QueryDepositParams) ([]byte, error)
- func QueryDepositsByTxQuery(cdc *codec.Codec, cliCtx context.CLIContext, params gov.QueryProposalParams) ([]byte, error)
- func QueryProposalByID(proposalID uint64, cliCtx context.CLIContext, cdc *codec.Codec, ...) ([]byte, error)
- func QueryVoteByTxQuery(cdc *codec.Codec, cliCtx context.CLIContext, params gov.QueryVoteParams) ([]byte, error)
- func QueryVotesByTxQuery(cdc *codec.Codec, cliCtx context.CLIContext, params gov.QueryProposalParams) ([]byte, error)
- type Proposer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeProposalStatus ¶
NormalizeProposalStatus - normalize user specified proposal status
func NormalizeProposalType ¶
NormalizeProposalType - normalize user specified proposal type
func NormalizeVoteOption ¶
NormalizeVoteOption - normalize user specified vote option
func QueryDepositByTxQuery ¶ added in v0.28.1
func QueryDepositByTxQuery( cdc *codec.Codec, cliCtx context.CLIContext, params gov.QueryDepositParams, ) ([]byte, error)
QueryDepositByTxQuery will query for a single deposit via a direct txs tags query.
func QueryDepositsByTxQuery ¶ added in v0.28.1
func QueryDepositsByTxQuery( cdc *codec.Codec, cliCtx context.CLIContext, params gov.QueryProposalParams, ) ([]byte, error)
QueryDepositsByTxQuery will query for deposits via a direct txs tags query. It will fetch and build deposits directly from the returned txs and return a JSON marshalled result or any error that occurred.
NOTE: SearchTxs is used to facilitate the txs query which does not currently support configurable pagination.
func QueryProposalByID ¶ added in v0.30.0
func QueryProposalByID(proposalID uint64, cliCtx context.CLIContext, cdc *codec.Codec, queryRoute string) ([]byte, error)
QueryProposalByID takes a proposalID and returns a proposal
func QueryVoteByTxQuery ¶ added in v0.28.1
func QueryVoteByTxQuery( cdc *codec.Codec, cliCtx context.CLIContext, params gov.QueryVoteParams, ) ([]byte, error)
QueryVoteByTxQuery will query for a single vote via a direct txs tags query.
func QueryVotesByTxQuery ¶ added in v0.28.1
func QueryVotesByTxQuery( cdc *codec.Codec, cliCtx context.CLIContext, params gov.QueryProposalParams, ) ([]byte, error)
QueryVotesByTxQuery will query for votes via a direct txs tags query. It will fetch and build votes directly from the returned txs and return a JSON marshalled result or any error that occurred.
NOTE: SearchTxs is used to facilitate the txs query which does not currently support configurable pagination.
Types ¶
type Proposer ¶ added in v0.30.0
Proposer contains metadata of a governance proposal used for querying a proposer.
func NewProposer ¶ added in v0.30.0
NewProposer returns a new Proposer given id and proposer
func QueryProposerByTxQuery ¶ added in v0.30.0
func QueryProposerByTxQuery( cdc *codec.Codec, cliCtx context.CLIContext, proposalID uint64, ) (Proposer, error)
QueryProposerByTxQuery will query for a proposer of a governance proposal by ID.