config

package
v0.0.0-...-c1a2f3d Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFile

func LoadFromFile(configFilePath string, target interface{}) error

func LoadGenesisAllocs

func LoadGenesisAllocs(baseDir, genesisPath string) (interface{}, error)

LoadGenesisAllocs loads the genessis allocations from the provided baseDir followed by the relative path of the genesis allocs file

Types

type RPCConfig

type RPCConfig struct {
	ChainID uint64
	URL     string
}

type RPCs

type RPCs struct {
	Networks map[string]RPCConfig
}

func Load

func Load(l1Network, rmAlias, rAlias, baseDir string) (*RPCs, *rollupmanager.RollupManager, *rollup.RollupMetadata, error)

Load RPCs configuration, rollup manager metadata and rollup metadata

func LoadRPCs

func LoadRPCs() (*RPCs, error)

func (*RPCs) GetChainID

func (r *RPCs) GetChainID(network string) (uint64, error)

func (*RPCs) GetClient

func (r *RPCs) GetClient(network string) (*ethclient.Client, error)

Jump to

Keyboard shortcuts

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