config

package
v0.0.0-...-beefb37 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package config decodes strict file-driven runtime configuration.

Index

Constants

View Source
const (
	DefaultKeyEnv                         = "MERKLE_EXECUTOR_PRIVATE_KEY"
	DefaultRecipeCacheBytes        int64  = 16 << 20
	DefaultPollInterval                   = 15 * time.Second
	DefaultOperationTimeout               = 30 * time.Second
	DefaultHTTPTimeout                    = 15 * time.Second
	DefaultStrategyInterval               = time.Minute
	DefaultConfirmations           uint64 = 2
	DefaultTransactionPollInterval        = 2 * time.Second
	StandardMulticall3                    = protocolio.StandardMulticall3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	RPCURL      string `yaml:"rpcUrl"`
	WriteRPCURL string `yaml:"writeRpcUrl"`
	ChainID     uint64 `yaml:"chainId"`
}

type Config

type Config struct {
	Curator       Curator       `yaml:"curator"`
	Mode          string        `yaml:"mode"`
	Chain         Chain         `yaml:"chain"`
	Signer        Signer        `yaml:"signer"`
	TxManager     TxManager     `yaml:"txManager"`
	Observability Observability `yaml:"observability"`
	Strategies    []string      `yaml:"strategies"`
}

func Load

func Load(path string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type Curator

type Curator struct {
	URL string `yaml:"url"`
}

Curator contains the operator-supplied permission service settings.

type Observability

type Observability struct {
	Addr  string `yaml:"addr"`
	Debug bool   `yaml:"debug"`
}

type Signer

type Signer struct {
	Address string `yaml:"address"`
	KeyEnv  string `yaml:"keyEnv"`
}

type TxManager

type TxManager struct {
	MaxFeeGwei float64 `yaml:"maxFeeGwei"`
	MaxGas     uint64  `yaml:"maxGas"`
}

TxManager exposes deployment transaction budgets.

func (TxManager) SenderConfig

func (c TxManager) SenderConfig() transaction.Config

func (*TxManager) UnmarshalYAML

func (c *TxManager) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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