rest

package
v0.0.0-...-7f7d348 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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

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

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