Documentation ¶
Overview ¶
Package rest defines the RESTful service for the cert module.
Index ¶
- func ProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- func RegisterQueryRoutes(cliCtx context.CLIContext, r *mux.Router)
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router)
- type CertifierUpdateProposalReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProposalRESTHandler ¶
func ProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
ProposalRESTHandler returns a ProposalRESTHandler that exposes the community pool spend REST handler with a given sub-route.
func RegisterQueryRoutes ¶
func RegisterQueryRoutes(cliCtx context.CLIContext, r *mux.Router)
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers the routes in main application.
func RegisterTxRoutes ¶
func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router)
Types ¶
type CertifierUpdateProposalReq ¶
type CertifierUpdateProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Certifier sdk.AccAddress `json:"certifier" yaml:"certifier"` Alias string `json:"alias" yaml:"alias"` AddOrRemove types.AddOrRemove `json:"add_or_remove" yaml:"add_or_remove"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` }
CertifierUpdateProposalReq defines a certifier update proposal request body.
Click to show internal directories.
Click to hide internal directories.