config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const AVS_NAME = "TriggerX"
View Source
const SEM_VER = "0.0.1"

Variables

View Source
var (
	ConfigFileFlag = cli.StringFlag{
		Name:     "config",
		Required: true,
		Usage:    "Load configuration from `FILE`",
	}
	TriggerXDeploymentFileFlag = cli.StringFlag{
		Name:     "triggerx-deployment",
		Required: true,
		Usage:    "Load triggerx contract addresses from `FILE`",
	}
	EcdsaPrivateKeyFlag = cli.StringFlag{
		Name:     "ecdsa-private-key",
		Usage:    "Ethereum private key",
		Required: true,
		EnvVar:   "ECDSA_PRIVATE_KEY",
	}
	BlsPrivateKeyFlag = cli.StringFlag{
		Name:     "bls-private-key",
		Usage:    "BLS private key",
		Required: true,
		EnvVar:   "BLS_PRIVATE_KEY",
	}
)
View Source
var Flags []cli.Flag

Functions

This section is empty.

Types

type Config

type Config struct {
	EcdsaPrivateKey           *ecdsa.PrivateKey // Keeper node's private key - used for signing transactions
	BlsPrivateKey             *bls.PrivateKey   // BLS private key - used for signing BLS messages
	Logger                    sdklogging.Logger
	EigenMetricsIpPortAddress string
	// Needed for Communication:
	EthHttpRpcUrl string            // Ethereum HTTP RPC URL
	EthWsRpcUrl   string            // Ethereum WebSocket RPC URL
	EthHttpClient ethclient.Client  // Ethereum HTTP client
	EthWsClient   ethclient.Client  // Ethereum WebSocket client
	SignerFn      signerv2.SignerFn `json:"-"`
	TxMgr         txmgr.TxManager   // Transaction manager
	// Contracts
	OperatorStateRetrieverAddr common.Address // Operator state retriever address
	TriggerXServiceManagerAddr common.Address // TriggerX service manager address
	// DB API address
	DBApiIpPortAddr string // DB API IP port address
}

func NewConfig

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

type ConfigRaw

type ConfigRaw struct {
	Environment     sdklogging.LogLevel `yaml:"environment"`
	EthRpcUrl       string              `yaml:"eth_rpc_url"`
	EthWsUrl        string              `yaml:"eth_ws_url"`
	DBApiIpPortAddr string              `yaml:"db_api_ip_port_addr"` // DB API IP port address
}

type TriggerXContractsRaw

type TriggerXContractsRaw struct {
	ServiceManagerAddr         string `json:"serviceManager"`
	OperatorStateRetrieverAddr string `json:"operatorStateRetriever"`
}

type TriggerXDeploymentRaw

type TriggerXDeploymentRaw struct {
	Addresses TriggerXContractsRaw `json:"addresses"`
}

Jump to

Keyboard shortcuts

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