Skip to content

hotfix(maybe deprecate): eigensdk on Operator and Aggregator boot#1737

Closed
uri-99 wants to merge 3 commits intotestnetfrom
hotfix-eigensdk-operator-restars
Closed

hotfix(maybe deprecate): eigensdk on Operator and Aggregator boot#1737
uri-99 wants to merge 3 commits intotestnetfrom
hotfix-eigensdk-operator-restars

Conversation

@uri-99
Copy link
Copy Markdown
Contributor

@uri-99 uri-99 commented Jan 13, 2025

Important

PR replaced by #1740

EigenSDK fix

Description

EigenSDK made a breaking change that stops Operators from restarting, and stops a potential Aggregator restart as well.

This PR imports both versions of the SDK, and tries first with the old one, then with the new one.

Type of change

  • New feature
  • Bug fix
  • Optimization
  • Refactor

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@uri-99 uri-99 self-assigned this Jan 13, 2025
@uri-99 uri-99 changed the title feat: import 2 versions of eigensdk, and try both versions in NewAvsR… hotfix: eigensdk on Operator and Aggregator boot Jan 13, 2025
Comment on lines +45 to +72
// We build the V0.2.0-beta.1 clients
buildAllConfig := eigenClients.BuildAllConfig{
EthHttpUrl: baseConfig.EthRpcUrl,
EthWsUrl: baseConfig.EthWsUrl,
RegistryCoordinatorAddr: baseConfig.AlignedLayerDeploymentConfig.AlignedLayerRegistryCoordinatorAddr.String(),
OperatorStateRetrieverAddr: baseConfig.AlignedLayerDeploymentConfig.AlignedLayerOperatorStateRetrieverAddr.String(),
AvsName: "AlignedLayer",
PromMetricsIpPortAddress: baseConfig.EigenMetricsIpPortAddress,
}
clients, err := eigenClients.BuildReadClients(buildAllConfig, baseConfig.Logger)
if err != nil {
return nil, err
}
chainReader := clients.AvsRegistryChainReader

avsServiceBindings, err := NewAvsServiceBindings(baseConfig.AlignedLayerDeploymentConfig.AlignedLayerServiceManagerAddr, baseConfig.AlignedLayerDeploymentConfig.AlignedLayerOperatorStateRetrieverAddr, baseConfig.EthRpcClient, baseConfig.EthRpcClientFallback, baseConfig.Logger)
if err != nil {
return nil, err
}

chainReader := clients.AvsRegistryChainReader
return &AvsReader{
ChainReader: chainReader,
AvsContractBindings: avsServiceBindings,
AlignedLayerServiceManagerAddr: baseConfig.AlignedLayerDeploymentConfig.AlignedLayerServiceManagerAddr,
logger: baseConfig.Logger,
}, nil
}
chainReader := clients_v0113.AvsRegistryChainReader
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move this logic to a separate function.

Comment thread go.mod
golang.org/x/crypto v0.22.0
)

replace github.com/Layr-Labs/eigensdk-go-v0.1.13 => github.com/Layr-Labs/eigensdk-go v0.1.13
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want a comment explaining the dark magic at play.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented

@uri-99 uri-99 marked this pull request as draft January 14, 2025 20:39
@uri-99 uri-99 changed the title hotfix: eigensdk on Operator and Aggregator boot hotfix(maybe deprecate): eigensdk on Operator and Aggregator boot Jan 14, 2025
@uri-99 uri-99 closed this Jan 15, 2025
@uri-99 uri-99 deleted the hotfix-eigensdk-operator-restars branch January 15, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants