rest

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RestVoteDenom  = "denom"
	RestVoter      = "voter"
	RestPrice      = "price"
	RestParamsType = "params"
)

nolint

Variables

This section is empty.

Functions

func RegisterRoutes

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

RegisterRoutes registers staking-related REST handlers to a router

Types

type VoteReq

type VoteReq struct {
	BaseReq      rest.BaseReq `json:"base_req"`
	Price        float64      `json:"price"`
	Denom        string       `json:"denom"`
	VoterAddress string       `json:"voter_address"`
}

VoteReq ...

Jump to

Keyboard shortcuts

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