rest

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 9 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 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 string `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 string `json:"validator"`
}

VoteReq ...

Jump to

Keyboard shortcuts

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