Interaction

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: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FAILED = iota
	SUCCESS
	PENDING
)
View Source
const (
	Null           = "Null"
	JustitiaChainA = "chainA"
	JustitiaChainB = "chainB"
)

define specified type of system contract

View Source
const (
	InitialCrossChainPort CrossChainPort = "0"
	ChainACrossChainPort                 = "47768"
	ChainBCrossChainPort                 = "47769"
)

Variables

View Source
var CrossChainAddr = cutil.HexToAddress("0000000000000000000000000000000000011100")

Functions

func CallCrossRawTransactionReq

func CallCrossRawTransactionReq(from types.Address, to types.Address, amount uint64, payload string, chainFlag string) (types.Hash, types.Hash, error)

func GetPubliceAcccount

func GetPubliceAcccount() (types.Address, error)

Types

type CrossChainContract

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

func NewCrossChainContract

func NewCrossChainContract() *CrossChainContract

type CrossChainPort

type CrossChainPort string

func CrossTargetChainPort

func CrossTargetChainPort(chainFlag string) CrossChainPort

func OppositeChainPort

func OppositeChainPort(chainFlag string) CrossChainPort

type Status

type Status uint64

Jump to

Keyboard shortcuts

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