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") )
View Source
var ChainTypeList = []ChainType{ ChainTypeETH, ChainTypeETHTest, ChainTypeETHDev, }
Functions ¶
func ChainType2ChainID ¶ added in v0.4.1
func ChainType2LondonBlock ¶ added in v0.3.1
func IsSupportedChain ¶
Types ¶
type ChainGroup ¶ added in v0.3.1
type ChainGroup uint64
func ChainType2ChainGroup ¶ added in v0.3.1
func ChainType2ChainGroup(chain ChainType) (ChainGroup, error)
Click to show internal directories.
Click to hide internal directories.