config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHomeDir = "./halo" // Defaults to "halo" in current directory

)

Variables

This section is empty.

Functions

func WriteConfigTOML

func WriteConfigTOML(cfg Config, logCfg log.Config) error

WriteConfigTOML writes the toml halo config to disk.

Types

type Config

type Config struct {
	HomeDir            string
	Network            netconf.ID
	EigenKeyPassword   string
	EngineJWTFile      string
	EngineEndpoint     string
	RPCEndpoints       xchain.RPCEndpoints
	SnapshotInterval   uint64 // See cosmossdk.io/store/snapshots/types/options.go
	SnapshotKeepRecent uint64 // See cosmossdk.io/store/snapshots/types/options.go
	BackendType        string // See cosmos-db/db.go
	MinRetainBlocks    uint64
	PruningOption      string // See cosmossdk.io/store/pruning/types/options.go
	EVMBuildDelay      time.Duration
	EVMBuildOptimistic bool
	Tracer             tracer.Config
}

Config defines all halo specific config.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default halo config.

func (Config) AppStateDir

func (c Config) AppStateDir() string

func (Config) ConfigFile

func (c Config) ConfigFile() string

ConfigFile returns the default path to the toml halo config file.

func (Config) DataDir

func (c Config) DataDir() string

func (Config) KeystoreFile added in v0.1.3

func (c Config) KeystoreFile() (string, bool, error)

KeystoreFile returns the path to the eigenlayer-format ethereum keystore file and true if it exists. It returns false if the file does not exist. It returns an error if multiple files are found.

func (Config) KeystoreGlob added in v0.1.3

func (c Config) KeystoreGlob() string

KeystoreGlob returns the glob pattern for the eigenlayer-format ethereum keystore.

func (Config) SnapshotDir

func (c Config) SnapshotDir() string

func (Config) Verify

func (c Config) Verify() error

func (Config) VoterStateFile

func (c Config) VoterStateFile() string

Jump to

Keyboard shortcuts

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