rest

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

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

Types

type BancorCancelReq

type BancorCancelReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
	Stock   string       `json:"stock"`
	Money   string       `json:"money"`
}

type BancorInitReq

type BancorInitReq struct {
	BaseReq            rest.BaseReq `json:"base_req"`
	Stock              string       `json:"stock"`
	Money              string       `json:"money"`
	InitPrice          string       `json:"init_price"`
	MaxSupply          string       `json:"max_supply"`
	MaxPrice           string       `json:"max_price"`
	EarliestCancelTime string       `json:"earliest_cancel_time"`
}

type BancorTradeReq

type BancorTradeReq struct {
	BaseReq    rest.BaseReq `json:"base_req"`
	Stock      string       `json:"stock"`
	Money      string       `json:"money"`
	Amount     string       `json:"amount"`
	IsBuy      bool         `json:"is_buy"`
	MoneyLimit string       `json:"money_limit"`
}

Jump to

Keyboard shortcuts

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