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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestOfferCoin = "offerCoin"
	RestAskDenom  = "askDenom"
)

REST Variable names nolint

Variables

This section is empty.

Functions

func RegisterRoutes

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

RegisterRoutes - Central function to define routes that get registered by the main application

func SubmitSwapHandlerFunction

func SubmitSwapHandlerFunction(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc

SubmitSwapHandlerFunction handles a POST vote request

Types

type SwapReq

type SwapReq struct {
	BaseReq        utils.BaseReq `json:"base_req"`
	OfferDenom     string        `json:"offer_denom"`
	OfferAmount    sdk.Int       `json:"offer_amount"`
	AskDenom       string        `json:"ask_denom"`
	SwapperAddress string        `json:"swapper_address"`
}

nolint

Jump to

Keyboard shortcuts

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