config

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 28 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	LegacyLevelCrit = iota
	LegacyLevelError
	LegacyLevelWarn
	LegacyLevelInfo
	LegacyLevelDebug
	LegacyLevelTrace
)

legacy geth log levels - the geth command line --verbosity flag wasn't migrated to use slog's numerical levels.

Variables

View Source
var (

	// EthNodeVerbosity is the (legacy geth) level of verbosity to output
	EthNodeVerbosity int = 3
)

Functions

func DeployConfig

func DeployConfig(allocType AllocType) *genesis.DeployConfig

DeployConfig returns a fresh, fully-independent *genesis.DeployConfig for the given alloc type. Each call unmarshals from the cached JSON bytes, so the returned value shares no maps, slices or pointers with any other call. Callers can freely mutate the result without affecting any other test.

func IsCannonInDevelopment

func IsCannonInDevelopment() bool

func L1Allocs

func L1Allocs(allocType AllocType) *foundry.ForgeAllocs

func L1Deployments

func L1Deployments(allocType AllocType) *genesis.L1Deployments

func L2Allocs

func L2Allocs(allocType AllocType, mode genesis.L2AllocsMode) *foundry.ForgeAllocs

Types

type AllocType

type AllocType string
const (
	AllocTypeAltDA        AllocType = "alt-da"
	AllocTypeMTCannon     AllocType = "mt-cannon"
	AllocTypeMTCannonNext AllocType = "mt-cannon-next"
	AllocTypeFastGame     AllocType = "fast-game"

	DefaultAllocType = AllocTypeMTCannon
)

func (AllocType) Check

func (a AllocType) Check() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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