rpc

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: GPL-3.0, Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RpcContractAddr = cutil.HexToAddress("0000000000000000000000000000000000011101")

Functions

func ForwardFunds

func ForwardFunds(toAddr string, amount uint64, payload string, chainFlag string) (error, string, string, uint64)

0 means failed, 1 means success

func GetTxState

func GetTxState(txHash string, amount uint64, tmp string, chainFlag string) (error, uint64)

GetCross Tx state

func Handler

func Handler(input []byte) ([]byte, error)

func ReceiveFunds

func ReceiveFunds(to string, amount uint64, payload string, srcChainId uint64) (error, uint64)

Receipt funds

func Register

func Register(methodName string, f *RPCFunc) error

Register register a rpc route

Types

type RPCFunc

type RPCFunc struct {
	// contains filtered or unexported fields
}

RPCFunc contains the introspected type information for a function

func NewRPCFunc

func NewRPCFunc(f interface{}) *RPCFunc

NewRPCFunc create a new RPCFunc instance

Jump to

Keyboard shortcuts

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