configs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainNameRollupA ChainName = "rollup-a"
	ChainNameRollupB ChainName = "rollup-b"

	ContractNameBridge   ContractName = "bridge"
	ContractNamePingPong ContractName = "pingpong"
	ContractNameToken    ContractName = "bridgeabletoken"
)

Variables

This section is empty.

Functions

func TestConfigPrivateKeysAreValidForECDSA

func TestConfigPrivateKeysAreValidForECDSA(t *testing.T)

TestConfigPrivateKeysAreValidForECDSA verifies that the normalized private keys from the config can be successfully converted to ECDSA private keys. This is an integration test that ensures the config normalization works correctly with the crypto.HexToECDSA function used throughout the codebase.

func TestConfigPrivateKeysDoNotHavePrefix

func TestConfigPrivateKeysDoNotHavePrefix(t *testing.T)

TestConfigPrivateKeysDoNotHavePrefix verifies that after normalization, no private keys in the config have the '0x' prefix.

Types

type App

type App struct {
	L2 L2 `yaml:"l2"`
}
var (
	Values App
)

type ChainConfig

type ChainConfig struct {
	ID     int64  `yaml:"id"`
	RPCURL string `yaml:"rpc-url"`
	PK     string `yaml:"pk"`
}

type ChainName

type ChainName string

type ContractConfig

type ContractConfig struct {
	Address common.Address `yaml:"address"`
	ABI     string         `yaml:"abi"`
}

type ContractName

type ContractName string

type L2

type L2 struct {
	ChainConfigs map[ChainName]ChainConfig       `yaml:"chain-configs"`
	Contracts    map[ContractName]ContractConfig `yaml:"contracts"`
}

Jump to

Keyboard shortcuts

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