rest

package
v0.7.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RestOrderId = "id"
	RestAddress = "address"
)

nolint

Variables

This section is empty.

Functions

func RegisterRoutes

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

Types

type CancelReq added in v0.6.0

type CancelReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
}

type PostOrderReq

type PostOrderReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
	Supply  sdk.Coin     `json:"supply"`
	Target  sdk.Coin     `json:"target"`
}

type TakeReq added in v0.6.0

type TakeReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
	Amount  sdk.Coin     `json:"amount"`
}

Jump to

Keyboard shortcuts

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