chains

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadChains

func LoadChains(
	ctx context.Context,
	lggr logger.Logger,
	config *cldf_environment.Config,
	chainSelectorsToLoad []uint64,
) (cldf_chain.BlockChains, error)

LoadChains concurrently loads all chains for the given environment. Each chain is loaded in parallel, and the results (including any errors) are collected for each chain. If any chains fail to load, the function aggregates the errors and returns a detailed error message specifying which chains failed and the reasons for failure.

Types

type ChainLoader

type ChainLoader interface {
	Load(ctx context.Context, selector uint64) (cldf_chain.BlockChain, error)
}

ChainLoader is an interface that defines the methods for loading a chain.

Jump to

Keyboard shortcuts

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