snapcfg

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Mainnet = fromToml(snapshothashes.Mainnet)
	// Holesky    = fromToml(snapshothashes.Holesky)
	Sepolia    = fromToml(snapshothashes.Sepolia)
	Goerli     = fromToml(snapshothashes.Goerli)
	Mumbai     = fromToml(snapshothashes.Mumbai)
	Amoy       = fromToml(snapshothashes.Amoy)
	BorMainnet = fromToml(snapshothashes.BorMainnet)
	Gnosis     = fromToml(snapshothashes.Gnosis)
	Chiado     = fromToml(snapshothashes.Chiado)
)
View Source
var (
	MainnetChainSnapshotCfg = newCfg(Mainnet)
	// HoleskyChainSnapshotCfg    = newCfg(Holesky, HoleskyHistory)
	SepoliaChainSnapshotCfg    = newCfg(Sepolia)
	GoerliChainSnapshotCfg     = newCfg(Goerli)
	MumbaiChainSnapshotCfg     = newCfg(Mumbai)
	AmoyChainSnapshotCfg       = newCfg(Amoy)
	BorMainnetChainSnapshotCfg = newCfg(BorMainnet)
	GnosisChainSnapshotCfg     = newCfg(Gnosis)
	ChiadoChainSnapshotCfg     = newCfg(Chiado)
)

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	ExpectBlocks uint64
	Preverified  Preverified
}

func KnownCfg

func KnownCfg(networkName string, whiteList, whiteListHistory []string) *Cfg

KnownCfg return list of preverified hashes for given network, but apply whiteList filter if it's not empty

type Preverified

type Preverified []PreverifiedItem

type PreverifiedItem

type PreverifiedItem struct {
	Name string
	Hash string
}

Jump to

Keyboard shortcuts

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