types

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainId

type ChainId uint
const (
	ChainStart ChainId = iota + 0x00
	ChainEth
	ChainRopsten
	ChainNear

	ChainUnknown = 0x99
)

type ParentChain

type ParentChain interface {
	ChainId() ChainId
	ContractAddr() string
	GetBalance(addr string, blockNumber int64) *big.Int
}

type SourceChain

type SourceChain interface {
	ChainId() ChainId
	MakeReleaseProof([]byte) []byte
}

type TargetChain

type TargetChain interface {
	ChainId() ChainId
	MakeMintProof([]byte) []byte
}

type TokenId

type TokenId uint
const (
	TokenStart TokenId = iota + 0x10000
	TokenErc20Oin
	TokenEth

	TokenUnknown = 0x10099
)

Jump to

Keyboard shortcuts

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