rest

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestDenom = "denom"
	RestVoter = "voter"
)

nolint

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

Types

type AggregatePrevoteReq added in v0.4.0

type AggregatePrevoteReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Hash          string `json:"hash"`
	ExchangeRates string `json:"exchange_rates"`
	Salt          string `json:"salt"`
}

AggregatePrevoteReq ...

type AggregateVoteReq added in v0.4.0

type AggregateVoteReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	ExchangeRates string `json:"exchange_rates"`
	Salt          string `json:"salt"`
}

AggregateVoteReq ...

type DelegateReq added in v0.2.0

type DelegateReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
	Feeder  string       `json:"feeder"`
}

DelegateReq is request body to set feeder of validator

type PrevoteReq added in v0.2.0

type PrevoteReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Hash         string  `json:"hash"`
	ExchangeRate sdk.Dec `json:"exchange_rate"`
	Salt         string  `json:"salt"`

	Validator sdk.ValAddress `json:"validator"`
}

PrevoteReq ...

type VoteReq

type VoteReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	ExchangeRate sdk.Dec `json:"exchange_rate"`
	Salt         string  `json:"salt"`

	Validator sdk.ValAddress `json:"validator"`
}

VoteReq ...

Jump to

Keyboard shortcuts

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