chains

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: GPL-3.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainTypeMAP     = ChainType(params.MainNetChainID)
	ChainTypeMAPTest = ChainType(params.TestNetChainID)
	ChainTypeMAPDev  = ChainType(params.DevNetChainID)
)
View Source
const (
	ChainGroupMAP = 1000
	ChainGroupETH = 1001
)

Variables

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

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 (
	ChainTypeETH     ChainType = 1
	ChainTypeETHTest ChainType = 34434
)

Directories

Path Synopsis
bls12381
Package bls implements a go-wrapper around a library implementing the the BLS12-381 curve and signature scheme.
Package bls implements a go-wrapper around a library implementing the the BLS12-381 curve and signature scheme.
bls12381/blst
Package blst implements a go-wrapper around a library implementing the the BLS12-381 curve and signature scheme.
Package blst implements a go-wrapper around a library implementing the the BLS12-381 curve and signature scheme.
bls12381/common
Package common provides the BLS interfaces that are implemented by the various BLS wrappers.
Package common provides the BLS interfaces that are implemented by the various BLS wrappers.
hash
Package hashutil includes all hash-function related helpers for Prysm.
Package hashutil includes all hash-function related helpers for Prysm.
rand
Package rand defines methods of obtaining random number generators.
Package rand defines methods of obtaining random number generators.
ssz
Package ssz defines HashTreeRoot utility functions.
Package ssz defines HashTreeRoot utility functions.
Package ethash implements the ethash proof-of-work consensus engine.
Package ethash implements the ethash proof-of-work consensus engine.

Jump to

Keyboard shortcuts

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