rest

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RestVoteDenom = "denom"
	RestVoter     = "voteraddress"
)

nolint

Variables

This section is empty.

Functions

func RegisterRoutes

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

RegisterRoutes registers staking-related REST handlers to a router

Types

type VoteReq

type VoteReq struct {
	BaseReq      utils.BaseReq `json:"base_req"`
	TargetPrice  float64       `json:"target_price"`
	CurrentPrice float64       `json:"current_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