config

package
v0.0.0-...-54ffc96 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigFileFlag = &cli.StringFlag{
		Name:     "config",
		Required: true,
		Usage:    "Load base configurations from `FILE`",
	}
)

Functions

func NewLogger

func NewLogger(loggingLevel sdklogging.LogLevel) (sdklogging.Logger, error)

Types

type AggregatorConfig

type AggregatorConfig struct {
	BaseConfig  *BaseConfig
	EcdsaConfig *EcdsaConfig
	BlsConfig   *BlsConfig
	Aggregator  struct {
		ServerIpPortAddress           string
		BlsPublicKeyCompendiumAddress common.Address
		AvsServiceManagerAddress      common.Address
		EnableMetrics                 bool
	}
}

func NewAggregatorConfig

func NewAggregatorConfig(configFilePath string) *AggregatorConfig

type AggregatorConfigFromYaml

type AggregatorConfigFromYaml struct {
	Aggregator struct {
		ServerIpPortAddress           string         `yaml:"server_ip_port_address"`
		BlsPublicKeyCompendiumAddress common.Address `yaml:"bls_public_key_compendium_address"`
		AvsServiceManagerAddress      common.Address `yaml:"avs_service_manager_address"`
		EnableMetrics                 bool           `yaml:"enable_metrics"`
	} `yaml:"aggregator"`
}

type AlignedLayerDeploymentConfig

type AlignedLayerDeploymentConfig struct {
	AlignedLayerServiceManagerAddr         common.Address
	AlignedLayerRegistryCoordinatorAddr    common.Address
	AlignedLayerOperatorStateRetrieverAddr common.Address
}

type AlignedLayerDeploymentConfigFromJson

type AlignedLayerDeploymentConfigFromJson struct {
	Addresses struct {
		AlignedLayerServiceManagerAddr         common.Address `json:"alignedLayerServiceManager"`
		AlignedLayerRegistryCoordinatorAddr    common.Address `json:"registryCoordinator"`
		AlignedLayerOperatorStateRetrieverAddr common.Address `json:"operatorStateRetriever"`
	} `json:"addresses"`
}

type BaseConfig

type BaseConfig struct {
	AlignedLayerDeploymentConfig *AlignedLayerDeploymentConfig
	EigenLayerDeploymentConfig   *EigenLayerDeploymentConfig
	Logger                       sdklogging.Logger
	EthRpcUrl                    string
	EthWsUrl                     string
	EthRpcClient                 eth.Client
	EthWsClient                  eth.Client
	EigenMetricsIpPortAddress    string
	ChainId                      *big.Int
}

func NewBaseConfig

func NewBaseConfig(configFilePath string) *BaseConfig

type BaseConfigFromYaml

type BaseConfigFromYaml struct {
	AlignedLayerDeploymentConfigFilePath string              `yaml:"aligned_layer_deployment_config_file_path"`
	EigenLayerDeploymentConfigFilePath   string              `yaml:"eigen_layer_deployment_config_file_path"`
	Environment                          sdklogging.LogLevel `yaml:"environment"`
	EthRpcUrl                            string              `yaml:"eth_rpc_url"`
	EthWsUrl                             string              `yaml:"eth_ws_url"`
	EigenMetricsIpPortAddress            string              `yaml:"eigen_metrics_ip_port_address"`
}

type BlsConfig

type BlsConfig struct {
	KeyPair *bls.KeyPair
}

type BlsConfigFromYaml

type BlsConfigFromYaml struct {
	Bls struct {
		PrivateKeyStorePath     string `yaml:"private_key_store_path"`
		PrivateKeyStorePassword string `yaml:"private_key_store_password"`
	} `yaml:"bls"`
}

type EcdsaConfig

type EcdsaConfig struct {
	PrivateKey *ecdsa.PrivateKey
	Signer     signer.Signer
}

func NewEcdsaConfig

func NewEcdsaConfig(ecdsaConfigFilePath string, chainId *big.Int) *EcdsaConfig

type EcdsaConfigFromYaml

type EcdsaConfigFromYaml struct {
	Ecdsa struct {
		PrivateKeyStorePath     string `yaml:"private_key_store_path"`
		PrivateKeyStorePassword string `yaml:"private_key_store_password"`
	} `yaml:"ecdsa"`
}

type EigenLayerDeploymentConfig

type EigenLayerDeploymentConfig struct {
	DelegationManagerAddr common.Address
	AVSDirectoryAddr      common.Address
	SlasherAddr           common.Address
}

type EigenLayerDeploymentConfigFromJson

type EigenLayerDeploymentConfigFromJson struct {
	Addresses struct {
		DelegationManagerAddr common.Address `json:"delegationManager"`
		AVSDirectoryAddr      common.Address `json:"avsDirectory"`
		SlasherAddr           common.Address `json:"slasher"`
	} `json:"addresses"`
}

type OperatorConfig

type OperatorConfig struct {
	BaseConfig                   *BaseConfig
	EcdsaConfig                  *EcdsaConfig
	BlsConfig                    *BlsConfig
	AlignedLayerDeploymentConfig *AlignedLayerDeploymentConfig
	Operator                     struct {
		Address                   common.Address
		EarningsReceiverAddress   common.Address
		DelegationApproverAddress common.Address
		StakerOptOutWindowBlocks  int
		MetadataUrl               string
		RegisterOperatorOnStartup bool
	}
}

func NewOperatorConfig

func NewOperatorConfig(configFilePath string) *OperatorConfig

type OperatorConfigFromYaml

type OperatorConfigFromYaml struct {
	Operator struct {
		Address                   common.Address `yaml:"address"`
		EarningsReceiverAddress   common.Address `yaml:"earnings_receiver_address"`
		DelegationApproverAddress common.Address `yaml:"delegation_approver_address"`
		StakerOptOutWindowBlocks  int            `yaml:"staker_opt_out_window_blocks"`
		MetadataUrl               string         `yaml:"metadata_url"`
		RegisterOperatorOnStartup bool           `yaml:"register_operator_on_startup"`
	} `yaml:"operator"`
	EcdsaConfigFromYaml EcdsaConfigFromYaml `yaml:"ecdsa"`
	BlsConfigFromYaml   BlsConfigFromYaml   `yaml:"bls"`
}

type TaskSenderConfig

type TaskSenderConfig struct {
	BaseConfig  *BaseConfig
	EcdsaConfig *EcdsaConfig
}

func NewTaskSenderConfig

func NewTaskSenderConfig(configFilePath string) *TaskSenderConfig

type TaskSenderConfigFromYaml

type TaskSenderConfigFromYaml struct {
	EcdsaConfigFromYaml EcdsaConfigFromYaml `yaml:"ecdsa"`
}

Jump to

Keyboard shortcuts

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