Documentation ¶
Index ¶
- func DisableTokenProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- func TokenParamsChangeProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- type DisableTokenProposalReq
- type TokenParamsChangeProposalReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableTokenProposalRESTHandler ¶
func DisableTokenProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
ProposalRESTHandler returns a ProposalRESTHandler that exposes the community pool spend REST handler with a given sub-route.
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers staking-related REST handlers to a router
func TokenParamsChangeProposalRESTHandler ¶
func TokenParamsChangeProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
Types ¶
type DisableTokenProposalReq ¶
type DisableTokenProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Symbol string `json:"symbol" yaml:"symbol"` Deposit sdk.Coins `json:"deposit" yaml:"deposit` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` }
DisableTokenProposalReq defines a disable token request body.
type TokenParamsChangeProposalReq ¶
type TokenParamsChangeProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Symbol string `json:"symbol" yaml:"symbol"` Changes cli.ParamChangesJSON `json:"changes" yaml:"changes"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` }
TokenParamsChangeProposalReq defines a token params change request body.
Click to show internal directories.
Click to hide internal directories.