chains

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainGroupMAP = 1000
	ChainGroupETH = 1001
)

Variables

View Source
var (
	EthereumHeaderStoreAddress = common.BytesToAddress([]byte("EthereumHeaderStoreAddress"))
	EthereumHeaderSyncAddress  = common.BytesToAddress([]byte("EthereumHeaderSyncInfoAddress"))
)
View Source
var (
	ErrNotSupportChain = errors.New("not supported chain")
	ErrRLPDecode       = errors.New("rlp decode error")
)

Functions

func ChainType2ChainID added in v0.4.1

func ChainType2ChainID(chain ChainType) (uint64, error)

func ChainType2LondonBlock added in v0.3.1

func ChainType2LondonBlock(chain ChainType) (*big.Int, error)

func IsSupportedChain

func IsSupportedChain(chain ChainType) bool

Types

type ChainGroup added in v0.3.1

type ChainGroup uint64

func ChainType2ChainGroup added in v0.3.1

func ChainType2ChainGroup(chain ChainType) (ChainGroup, error)

type ChainType added in v0.4.1

type ChainType uint64
const (
	//ChainTypeMAP     ChainType = ChainType(params.MainNetChainID)
	//ChainTypeMAPTest ChainType = ChainType(params.TestNetChainID)
	//ChainTypeMAPDev  ChainType = ChainType(params.DevNetChainID)
	ChainTypeETH     ChainType = 1
	ChainTypeETHTest ChainType = 3
	ChainTypeETHDev  ChainType = 10
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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