Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deploy missing factories in core deploy #5367

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

ljankovic-txfusion
Copy link
Collaborator

Description

Adds a new --fix-factories flag to the hyperlane core deploy command that allows deploying only missing factory contracts while keeping existing core contracts.

Drive-by changes

  • Added --fix-factories flag to core deploy command
  • Added factory deployment planning logic to identify missing factories

Related issues

None

Backward compatibility

Yes

Testing

Manual

Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: 0cfdb7e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@hyperlane-xyz/cli Minor
@hyperlane-xyz/sdk Minor
@hyperlane-xyz/helloworld Minor
@hyperlane-xyz/infra Minor
@hyperlane-xyz/widgets Minor
@hyperlane-xyz/ccip-server Minor
@hyperlane-xyz/github-proxy Minor
@hyperlane-xyz/utils Minor
@hyperlane-xyz/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR


const proxyFactoryDeployer = new HyperlaneProxyFactoryDeployer(
multiProvider,
contractVerifier,
false,
factoryDeploymentPlan,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Had to expand constructor params to include deployment plan since await proxyFactoryDeployer.deploy({ is calling child HyperlaneProxyFactoryDeployer.deployContract

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.53%. Comparing base (ac984a1) to head (0cfdb7e).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5367   +/-   ##
=======================================
  Coverage   77.53%   77.53%           
=======================================
  Files         103      103           
  Lines        2110     2110           
  Branches      190      190           
=======================================
  Hits         1636     1636           
  Misses        453      453           
  Partials       21       21           
Components Coverage Δ
core 87.80% <ø> (ø)
hooks 79.39% <ø> (ø)
isms 83.68% <ø> (ø)
token 91.27% <ø> (ø)
middlewares 79.80% <ø> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

1 participant