Back to godoc.org

Package rest

v0.3.6
Latest Go to latest
Published: Jun 11, 2020 | License: Apache-2.0 | Module: github.com/terra-project/core

Index

Package Files

Constants

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

nolint

func RegisterRoutes

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

RegisterRoutes registers oracle-related REST handlers to a router

type DelegateReq

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

DelegateReq is request body to set feeder of validator

type PrevoteReq

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 ...

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier