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 (
	ModuleStoreKey = "module_store_key"
	ToContract     = "to_contract"
	FromChainId    = "from_chain_id"
	ModuleName     = "module_name"
)

Variables

This section is empty.

Functions

func ProcessCrossChainTxRequestHandlerFn

func ProcessCrossChainTxRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

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

func RegisterRoutes

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

RegisterRoutes registers minting module REST handlers on the provided router.

Types

type ProcessCrossChainTxReq

type ProcessCrossChainTxReq struct {
	BaseReq     rest.BaseReq `json:"base_req" yaml:"base_req"`
	FromChainId uint64       `json:"from_chain_id" yaml:"from_chain_id"`
	Proof       string       `json:"proof" yaml:"proof"`
	Header      string       `json:"header" yaml:"header"`
	HeaderProof string       `json:"header_proof" yaml:"header_proof"`
	CurHeader   string       `json:"cur_header" yaml:"cur_header"`
}

SendReq defines the properties of a send request's body.

Jump to

Keyboard shortcuts

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