config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultValues = `` /* 1027-byte string literal not displayed */

DefaultValues is the default configuration

View Source
const (
	// FlagCfg flag used for config aka cfg
	FlagCfg = "cfg"
)

Variables

This section is empty.

Functions

func NewKeyFromKeystore

func NewKeyFromKeystore(cfg types.KeystoreFileConfig) (*ecdsa.PrivateKey, error)

NewKeyFromKeystore creates a private key from a keystore file

Types

type Config

type Config struct {
	FullNodeRPCs FullNodeRPCs       `mapstructure:"FullNodeRPCs"`
	RPC          jRPC.Config        `mapstructure:"RPC"`
	ProofSigners ProofSigners       `mapstructure:"ProofSigners"`
	Log          log.Config         `mapstructure:"Log"`
	DB           db.Config          `mapstructure:"DB"`
	EthTxManager EthTxManagerConfig `mapstructure:"EthTxManager"`
	L1           L1Config           `mapstructure:"L1"`
	Telemetry    Telemetry          `mapstructure:"Telemetry"`
}

Config represents the full configuration of the data node

func Default

func Default() (*Config, error)

Default parses the default configuration values.

func Load

func Load(ctx *cli.Context) (*Config, error)

Load loads the configuration baseed on the cli context

type EthTxManagerConfig added in v0.1.0

type EthTxManagerConfig struct {
	ethtxmanager.Config  `mapstructure:",squash"`
	GasOffset            uint64         `mapstructure:"GasOffset"`
	KMSKeyName           string         `mapstructure:"KMSKeyName"`
	KMSConnectionTimeout types.Duration `mapstructure:"KMSConnectionTimeout"`
	MaxRetries           uint64         `mapstructure:"MaxRetries"`
}

type FullNodeRPCs

type FullNodeRPCs map[uint32]string

type L1Config

type L1Config struct {
	ChainID               int64
	NodeURL               string
	RollupManagerContract common.Address
}

type ProofSigners added in v0.1.1

type ProofSigners map[uint32]common.Address

ProofSigners holds the address for authorized signers of proofs for a given rollup ip

type Telemetry

type Telemetry struct {
	PrometheusAddr string
}

Jump to

Keyboard shortcuts

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