Documentation ¶
Index ¶
- Constants
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- func RewardWeightUpdateProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- func TaxRateUpdateProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- type RewardWeightUpdateProposalReq
- type TaxRateUpdateProposalReq
Constants ¶
View Source
const ( RestDenom = "denom" RestEpoch = "epoch" )
Defines whildcard part of the request paths
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers oracle-related REST handlers to a router
func RewardWeightUpdateProposalRESTHandler ¶ added in v0.3.0
func RewardWeightUpdateProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
RewardWeightUpdateProposalRESTHandler returns a ProposalRESTHandler that exposes the community pool spend REST handler with a given sub-route.
func TaxRateUpdateProposalRESTHandler ¶ added in v0.3.0
func TaxRateUpdateProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
TaxRateUpdateProposalRESTHandler returns a ProposalRESTHandler that exposes the community pool spend REST handler with a given sub-route.
Types ¶
type RewardWeightUpdateProposalReq ¶ added in v0.3.0
type RewardWeightUpdateProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` RewardWeight sdk.Dec `json:"reward_weight" yaml:"reward_weight"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` }
RewardWeightUpdateProposalReq defines a tax-rate-update proposal request body.
type TaxRateUpdateProposalReq ¶ added in v0.3.0
type TaxRateUpdateProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` TaxRate sdk.Dec `json:"tax_rate" yaml:"tax_rate"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` }
TaxRateUpdateProposalReq defines a tax-rate-update proposal request body.
Click to show internal directories.
Click to hide internal directories.