rest

package
v0.0.0-...-bd61a53 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryMapinfoRequestHandlerFn

func QueryMapinfoRequestHandlerFn(queryRoute string, cliCtx context.CLIContext) http.HandlerFunc

func RegisterRequestHandlerFn

func RegisterRequestHandlerFn(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, storeName string)

RegisterRoutes registers the auth module REST routes.

func VerifyRequestHandlerFn

func VerifyRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

Types

type RegisterReq

type RegisterReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
	ErcAddr string       `json:"erc_addr"` // erc20 address
	CCAddr  string       `json:"cc_addr"`  // cross chain address
}

type VerifyReq

type VerifyReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
	ErcAddr string       `json:"erc_addr"` // erc20 address
	CCAddr  string       `json:"cc_addr"`  // cross chain address
}

Jump to

Keyboard shortcuts

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