config

package
v0.1.0-RC1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultValues = `` /* 1148-byte string literal not displayed */

DefaultValues is the default configuration

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log              log.Config
	SyncDB           db.Config
	ClaimTxManager   claimtxman.Config
	Etherman         etherman.Config
	Synchronizer     synchronizer.Config
	BridgeController bridgectrl.Config
	BridgeServer     server.Config
	NetworkConfig
}

Config struct

func Load

func Load(configFilePath string, network string) (*Config, error)

Load loads the configuration

type NetworkConfig

type NetworkConfig struct {
	GenBlockNumber        uint64
	PoEAddr               common.Address
	BridgeAddr            common.Address
	GlobalExitRootManAddr common.Address
	MaticAddr             common.Address
	L2BridgeAddrs         []common.Address
	L1ChainID             uint64
}

NetworkConfig is the configuration struct for the different environments.

Jump to

Keyboard shortcuts

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