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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Operator        = "operator"
	Coin            = "coin"
	LockProxyHash   = "lock_proxy_hash"
	ToChainId       = "to_chain_id"
	AssetDenom      = "asset_denom"
	ToLockProxyHash = "to_lock_proxy_hash"
)

Variables

This section is empty.

Functions

func CreateAndDelegateCoinRequestHandlerFn

func CreateAndDelegateCoinRequestHandlerFn(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 BaseReq

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

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 []byte       `json:"to_asset_hash" yaml:"to_asset_hash"`
	InitialAmt  *big.Int     `json:"initial_amt" yaml:"initial_amt"`
}

type LockReq

type LockReq struct {
	BaseReq   rest.BaseReq `json:"base_req" yaml:"base_req"`
	LockProxy []byte       `json:"lock_proxy" yaml:"lock_proxy"`
	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