rest

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const RestDenom = "denom"

RestDenom is the whildcard part of the request path

Variables

This section is empty.

Functions

func RegisterRoutes

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

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

Types

type SwapReq

type SwapReq struct {
	BaseReq   rest.BaseReq   `json:"base_req"`
	OfferCoin sdk.Coin       `json:"offer_coin"`
	AskDenom  string         `json:"ask_denom"`
	Receiver  sdk.AccAddress `json:"receiver,omitempty"`
}

SwapReq defines request body for swap operation

Jump to

Keyboard shortcuts

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