config

package
v0.6.36 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EthereumChainID        = big.NewInt(1)
	GoerliChainID          = big.NewInt(5)
	SepoliaChainID         = big.NewInt(11155111)
	ArbitrumOneChainID     = big.NewInt(42161)
	ArbitrumGoerliChainID  = big.NewInt(421613)
	ArbitrumSepoliaChainID = big.NewInt(421614)
	OptimismChainID        = big.NewInt(10)
	OptimismGoerliChainID  = big.NewInt(420)
	OptimismSepoliaChainID = big.NewInt(11155420)
	BaseChainID            = big.NewInt(8453)
	BaseGoerliChainID      = big.NewInt(84531)
	BaseSepoliaChainID     = big.NewInt(84532)
	LyraChainID            = big.NewInt(957)
	LyraSepoliaChainID     = big.NewInt(902)
	Ancient8SepoliaChainID = big.NewInt(28122024)

	OpStackChains = mapset.NewSet[*big.Int](
		OptimismChainID,
		OptimismGoerliChainID,
		OptimismSepoliaChainID,
		BaseChainID,
		BaseGoerliChainID,
		BaseSepoliaChainID,
		LyraChainID,
		LyraSepoliaChainID,
		Ancient8SepoliaChainID,
	)
)

Functions

func NewReputationConstantsFromEnv added in v0.6.33

func NewReputationConstantsFromEnv() *entities.ReputationConstants

Types

type Values

type Values struct {
	// Documented variables.
	PrivateKey                   string
	EthClientUrl                 string
	Port                         int
	DataDirectory                string
	SupportedEntryPoints         []common.Address
	MaxVerificationGas           *big.Int
	MaxBatchGasLimit             *big.Int
	MaxOpTTL                     time.Duration
	Beneficiary                  string
	NativeBundlerCollectorTracer string
	ReputationConstants          *entities.ReputationConstants

	// Searcher mode variables.
	EthBuilderUrls    []string
	BlocksInTheFuture int

	// Observability variables.
	OTELServiceName      string
	OTELCollectorHeaders map[string]string
	OTELCollectorUrl     string
	OTELInsecureMode     bool

	// Alternative mempool variables.
	AltMempoolIPFSGateway string
	AltMempoolIds         []string

	// Stack Specific gas calculation variables.
	IsOpStackNetwork bool

	// Undocumented variables.
	DebugMode bool
	GinMode   string
}

func GetValues

func GetValues() *Values

GetValues returns config for the bundler that has been read in from env vars. See https://docs.stackup.sh/docs/packages/bundler/configure for details.

Jump to

Keyboard shortcuts

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