rest

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

nolint

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Codec)

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"`
	Price sdk.Dec `json:"price"`
	Salt  string  `json:"salt"`

	Validator string `json:"validator"`
}

PrevoteReq ...

type VoteReq

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

	Price sdk.Dec `json:"price"`
	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