Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestProposalID = "proposal-id" RestCommitteeID = "committee-id" RestVote = "vote" )
REST Variable names
Variables ¶
This section is empty.
Functions ¶
func ProposalRESTHandler ¶
func ProposalRESTHandler(cliCtx client.Context) govrest.ProposalRESTHandler
Types ¶
type PostGovProposalReq ¶
type PostGovProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Content govtypes.Content `json:"content" yaml:"content"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` }
This is a rest handler for for the gov module, that handles committee change/delete proposals.
type PostProposalReq ¶
type PostProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` PubProposal types.PubProposal `json:"pub_proposal" yaml:"pub_proposal"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` }
PostProposalReq defines the properties of a proposal request's body.
type PostVoteReq ¶
type PostVoteReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Voter sdk.AccAddress `json:"voter" yaml:"voter"` Vote types.VoteType `json:"vote" yaml:"vote"` }
PostVoteReq defines the properties of a vote request's body.
Click to show internal directories.
Click to hide internal directories.