rest

package
v0.0.0-...-1237470 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Denom   = "denom"
	Coins   = "coins"
	ChainId = "chain_id"
)

Variables

This section is empty.

Functions

func BindAssetHashRequestHandlerFn

func BindAssetHashRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func CreateCoinsRequestHandlerFn

func CreateCoinsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func CreateDenomRequestHandlerFn

func CreateDenomRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

SendRequestHandlerFn - http request handler to send coins to a address.

func LockRequestHandlerFn

func LockRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func RegisterRoutes

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

RegisterRoutes registers minting module REST handlers on the provided router.

Types

type BindAssetHashReq

type BindAssetHashReq struct {
	BaseReq     rest.BaseReq `json:"base_req" yaml:"base_req"`
	Denom       string       `json:"denom" yaml:"denom"`
	ToChainId   uint64       `json:"to_chain_id" yaml:"to_chain_id"`
	ToAssetHash string       `json:"to_asset_hash" yaml:"to_asset_hash"`
}

type CreateReq

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

type LockReq

type LockReq struct {
	BaseReq   rest.BaseReq `json:"base_req" yaml:"base_req"`
	Denom     string       `json:"denom" yaml:"denom"`
	ToChainId uint64       `json:"to_chain_id" yaml:"to_chain_id"`
	ToAddress []byte       `json:"to_address" yaml:"to_address"`
	Amount    *big.Int     `json:"amount" yaml:"amount"`
}

Jump to

Keyboard shortcuts

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