Documentation ¶
Index ¶
- func CoinBuyRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func CoinCreateRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func CoinSellAllRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func CoinSellRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func CoinSendRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- type CoinBuyReq
- type CoinCreateReq
- type CoinSellAllReq
- type CoinSellReq
- type CoinSendReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoinBuyRequestHandlerFn ¶
func CoinBuyRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func CoinCreateRequestHandlerFn ¶
func CoinCreateRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func CoinSellAllRequestHandlerFn ¶
func CoinSellAllRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func CoinSellRequestHandlerFn ¶
func CoinSellRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func CoinSendRequestHandlerFn ¶
func CoinSendRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers coin-related REST handlers to a router
Types ¶
type CoinBuyReq ¶
type CoinCreateReq ¶
type CoinCreateReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` // Full coin title (Bitcoin) ConstantReserveRatio string `json:"constant_reserve_ratio" yaml:"constant_reserve_ratio"` // between 10 and 100 Symbol string `json:"symbol" yaml:"symbol"` // Short coin title (BTC) InitialVolume string `json:"initial_volume" yaml:"initial_volume"` InitialReserve string `json:"initial_reserve" yaml:"initial_reserve"` LimitVolume string `json:"limit_volume" yaml:"limit_volume"` // How many coins can be issued Identity string `json:"identity" yaml:"identity"` }
type CoinSellAllReq ¶
type CoinSellReq ¶
Click to show internal directories.
Click to hide internal directories.