Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestProposalID = "proposal-id" RestCommitteeID = "committee-id" )
REST Variable names
Variables ¶
This section is empty.
Functions ¶
func ProposalRESTHandler ¶
func ProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes - Central function to define routes that get registered by the main application
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"` }
PostVoteReq defines the properties of a vote request's body.
Click to show internal directories.
Click to hide internal directories.