Documentation
¶
Index ¶
Constants ¶
const ( DefaultAggregatorRPCServer = "0.0.0.0:26653" DefaultOperatorResponseTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatorConfig ¶
type AggregatorConfig struct {
AggregatorRPCServer string `json:"aggregator_rpc_server"`
OperatorResponseTimeout string `json:"operator_response_timeout"`
}
AggregatorConfig stores configuration settings for the aggregator service including network addresses and timeout values
func LoadConfig ¶
func LoadConfig(filePath string, logger log.Logger) (*AggregatorConfig, error)
LoadConfig loads and parses aggregator configuration from a JSON file. It reads the file at the given path, deserializes the JSON content, and returns the resulting configuration object.
func (*AggregatorConfig) Finalize ¶
func (c *AggregatorConfig) Finalize(logger log.Logger)
Finalize ensures that the AggregatorConfig has valid values.
func (*AggregatorConfig) GetOperatorResponseTimeout ¶
GetOperatorResponseTimeout converts the string timeout value to a time.Duration. This allows the timeout value to be used directly in timing operations, parsing the string format into a proper duration object.
type ChainConfig ¶
type ChainConfig struct {
ChainID ChainID `json:"-"`
RPCURL string `json:"rpc_url"`
OperatorInfoProviderAddress common.Address `json:"operator_info_provider_address"`
OperatorKeyManagerAddress common.Address `json:"operator_key_manager_address"`
CentralSchedulerAddress common.Address `json:"central_scheduler_address"`
}
ChainConfig stores chain-specific configuration parameters including contract addresses and RPC endpoints