snapcfg

package
v0.0.0-...-92d349b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Mainnet    = fromToml(snapshothashes.Mainnet)
	Sepolia    = fromToml(snapshothashes.Sepolia)
	Goerli     = fromToml(snapshothashes.Goerli)
	Mumbai     = fromToml(snapshothashes.Mumbai)
	BorMainnet = fromToml(snapshothashes.BorMainnet)
	Gnosis     = fromToml(snapshothashes.Gnosis)
	Chiado     = fromToml(snapshothashes.Chiado)

	MainnetHistory    = fromToml(snapshothashes.MainnetHistory)
	SepoliaHistory    = fromToml(snapshothashes.SepoliaHistory)
	GoerliHistory     = fromToml(snapshothashes.GoerliHistory)
	MumbaiHistory     = fromToml(snapshothashes.MumbaiHistory)
	BorMainnetHistory = fromToml(snapshothashes.BorMainnetHistory)
	GnosisHistory     = fromToml(snapshothashes.GnosisHistory)
	ChiadoHistory     = fromToml(snapshothashes.ChiadoHistory)
)
View Source
var (
	MainnetChainSnapshotCfg    = newCfg(Mainnet, MainnetHistory)
	SepoliaChainSnapshotCfg    = newCfg(Sepolia, SepoliaHistory)
	GoerliChainSnapshotCfg     = newCfg(Goerli, GoerliHistory)
	MumbaiChainSnapshotCfg     = newCfg(Mumbai, MumbaiHistory)
	BorMainnetChainSnapshotCfg = newCfg(BorMainnet, BorMainnetHistory)
	GnosisChainSnapshotCfg     = newCfg(Gnosis, GnosisHistory)
	ChiadoChainSnapshotCfg     = newCfg(Chiado, ChiadoHistory)
)

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	ExpectBlocks       uint64
	Preverified        Preverified
	PreverifiedHistory 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