Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProposalRESTHandler ¶
func ProposalRESTHandler(cliCtx context.CLIContext) external.GovProposalRESTHandler
ProposalRESTHandler returns a ProposalRESTHandler that exposes the param change REST handler with a given sub-route.
Types ¶
type PostProposalParamsReq ¶
type PostProposalParamsReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` // Title of the proposal Description string `json:"description" yaml:"description"` // Description of the proposal InitialDeposit string `json:"initial_deposit" yaml:"initial_deposit"` // Coins to add to the proposal's deposit ProposerAcc string `json:"proposer_acc" yaml:"proposer_acc"` // account of the proposer ParamChanges []proposal.ParamChange `json:"param_changes" yaml:"param_changes"` }
Click to show internal directories.
Click to hide internal directories.