rest

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RestDenom = "denom"
	RestEpoch = "epoch"
)

Defines wildcard part of the request paths

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(clientCtx client.Context, r *mux.Router)

RegisterRoutes registers oracle-related REST handlers to a router

Types

type RewardWeightUpdateProposalReq added in v0.5.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.5.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