Documentation ¶
Index ¶
Constants ¶
This section is empty.
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 registers REST routes for the upgrade module under the path specified by routeName.
Types ¶
type CancelRequest ¶
type CancelRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` }
CancelRequest defines a proposal to cancel a current plan.
type PlanRequest ¶
type PlanRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` UpgradeName string `json:"upgrade_name" yaml:"upgrade_name"` UpgradeHeight int64 `json:"upgrade_height" yaml:"upgrade_height"` UpgradeTime string `json:"upgrade_time" yaml:"upgrade_time"` UpgradeInfo string `json:"upgrade_info" yaml:"upgrade_info"` }
PlanRequest defines a proposal for a new upgrade plan.
Click to show internal directories.
Click to hide internal directories.