rest

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: BSD-2-Clause Imports: 14 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"`
}

func (*BancorCancelReq) GetBaseReq

func (req *BancorCancelReq) GetBaseReq() *rest.BaseReq

func (*BancorCancelReq) GetMsg

func (req *BancorCancelReq) GetMsg(r *http.Request, sender sdk.AccAddress) (sdk.Msg, error)

func (*BancorCancelReq) New

func (req *BancorCancelReq) New() restutil.RestReq

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"`
	MaxMoney           string       `json:"max_money"`
	StockPrecision     string       `json:"stock_precision"`
	MaxPrice           string       `json:"max_price"`
	EarliestCancelTime string       `json:"earliest_cancel_time"`
}

func (*BancorInitReq) GetBaseReq

func (req *BancorInitReq) GetBaseReq() *rest.BaseReq

func (*BancorInitReq) GetMsg

func (req *BancorInitReq) GetMsg(r *http.Request, sender sdk.AccAddress) (sdk.Msg, error)

func (*BancorInitReq) New

func (req *BancorInitReq) New() restutil.RestReq

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"`
}

func (*BancorTradeReq) GetBaseReq

func (req *BancorTradeReq) GetBaseReq() *rest.BaseReq

func (*BancorTradeReq) GetMsg

func (req *BancorTradeReq) GetMsg(r *http.Request, sender sdk.AccAddress) (sdk.Msg, error)

func (*BancorTradeReq) New

func (req *BancorTradeReq) New() restutil.RestReq

Jump to

Keyboard shortcuts

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