rest

package
v0.4.2-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL