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: core deploy apply admin proxy ownership fixes #4767

Merged
merged 36 commits into from
Nov 8, 2024

Conversation

xeno097
Copy link
Contributor

@xeno097 xeno097 commented Oct 25, 2024

Description

This PR updates the hyperlane core init, hyperlane core deploy and hyperlane core apply commands to allow a user to change ownership of the mailbox ProxyAdmin contract by setting a value in the config.

Drive-by changes

  • deduped randomAddress test util implementations across the sdk, 'infra' and cli package
  • added anvil1 to the run-e2e-test.sh script to test hyperlane core commands in isolation
  • implemented the proxyAdminOwnershipUpdateTxs to deduplicate proxy admin ownership tx data generation

Related issues

Backward compatibility

  • Yes

Testing

  • Manual
  • e2e

NOTE:

xeno097 and others added 28 commits October 21, 2024 16:22
…min field to allow deploy overrides and checks
…e an already existing proxy admi ncontract for deployments
…ents and admin proxy ownership transfer in warp apply
Co-authored-by: Paul Balaji <10051819+paulbalaji@users.noreply.github.com>
…nfig defines owners fro the mailbox proxy admin adn ica router and use those values intead of the signer
…to xeno/core-deploy-apply-admin-proxy-ownership-fixes
…yperlane-xyz/hyperlane-monorepo into xeno/core-deploy-apply-admin-proxy-ownership-fixes
…to xeno/core-deploy-apply-admin-proxy-ownership-fixes
…yperlane-xyz/hyperlane-monorepo into xeno/core-deploy-apply-admin-proxy-ownership-fixes
Copy link

changeset-bot bot commented Oct 25, 2024

🦋 Changeset detected

Latest commit: 52936e1

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/infra Minor
@hyperlane-xyz/cli Minor
@hyperlane-xyz/sdk Minor
@hyperlane-xyz/helloworld 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

Base automatically changed from xeno/warp-deploy-apply-ownership-fixes to main November 1, 2024 16:04
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.58%. Comparing base (884b00c) to head (52936e1).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4767   +/-   ##
=======================================
  Coverage   74.58%   74.58%           
=======================================
  Files         103      103           
  Lines        1515     1515           
  Branches      195      195           
=======================================
  Hits         1130     1130           
  Misses        364      364           
  Partials       21       21           
Components Coverage Δ
core 84.61% <ø> (ø)
hooks 77.77% <ø> (ø)
isms 79.02% <ø> (ø)
token 89.01% <ø> (ø)
middlewares 77.58% <ø> (ø)

Copy link
Contributor

@ltyu ltyu left a comment

Choose a reason for hiding this comment

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

e2e test failing in CI. it might be related to using anvil1, which is used by foundry-test.

typescript/sdk/src/core/EvmCoreReader.ts Outdated Show resolved Hide resolved
typescript/sdk/src/core/EvmCoreModule.ts Outdated Show resolved Hide resolved
typescript/sdk/src/deploy/proxy.ts Outdated Show resolved Hide resolved
typescript/sdk/src/deploy/proxy.ts Outdated Show resolved Hide resolved
typescript/sdk/src/core/schemas.ts Show resolved Hide resolved
typescript/sdk/src/core/EvmCoreModule.ts Outdated Show resolved Hide resolved
typescript/cli/scripts/run-e2e-test.sh Outdated Show resolved Hide resolved
typescript/cli/src/tests/commands/core.ts Show resolved Hide resolved
typescript/sdk/src/core/schemas.ts Show resolved Hide resolved
typescript/sdk/src/token/EvmERC20WarpModule.ts Outdated Show resolved Hide resolved
typescript/sdk/src/core/EvmCoreModule.ts Outdated Show resolved Hide resolved
…to xeno/core-deploy-apply-admin-proxy-ownership-fixes
@xeno097 xeno097 enabled auto-merge November 8, 2024 00:04
@xeno097 xeno097 added this pull request to the merge queue Nov 8, 2024
Merged via the queue into main with commit fa42482 Nov 8, 2024
34 checks passed
@xeno097 xeno097 deleted the xeno/core-deploy-apply-admin-proxy-ownership-fixes branch November 8, 2024 00:26
github-merge-queue bot pushed a commit that referenced this pull request Dec 4, 2024
### Description

This PR adds the required logic to enroll/unenroll ICAs between them
when running `core apply`

### Drive-by changes

- Implements the `EvmIcaReader`
- Updates the `EvmCoreModule` to read the current chain ICA config
-  Adds tests for the `EvmIcaRouterReader`

### Related issues

- Fixes #4819 

### Backward compatibility

- Yes

### Testing

- Manual
- E2E

### Note

- merge #4767 first

---------

Co-authored-by: Paul Balaji <10051819+paulbalaji@users.noreply.github.com>
tiendn pushed a commit to tiendn/hyperlane-monorepo that referenced this pull request Jan 11, 2025
### Description

This PR updates the `hyperlane core init`, `hyperlane core deploy` and
`hyperlane core apply` commands to allow a user to change ownership of
the mailbox ProxyAdmin contract by setting a value in the config.

### Drive-by changes

- deduped `randomAddress` test util implementations across the `sdk`,
'infra' and `cli` package
- added `anvil1` to the `run-e2e-test.sh` script to test `hyperlane
core` commands in isolation
- implemented the `proxyAdminOwnershipUpdateTxs` to deduplicate proxy
admin ownership tx data generation

### Related issues

- Fixes hyperlane-xyz#4728 

### Backward compatibility

- Yes

### Testing

- Manual
- e2e

### NOTE:

- Merge hyperlane-xyz#4726
first

---------

Co-authored-by: Paul Balaji <10051819+paulbalaji@users.noreply.github.com>
tiendn pushed a commit to tiendn/hyperlane-monorepo that referenced this pull request Jan 11, 2025
### Description

This PR adds the required logic to enroll/unenroll ICAs between them
when running `core apply`

### Drive-by changes

- Implements the `EvmIcaReader`
- Updates the `EvmCoreModule` to read the current chain ICA config
-  Adds tests for the `EvmIcaRouterReader`

### Related issues

- Fixes hyperlane-xyz#4819 

### Backward compatibility

- Yes

### Testing

- Manual
- E2E

### Note

- merge hyperlane-xyz#4767 first

---------

Co-authored-by: Paul Balaji <10051819+paulbalaji@users.noreply.github.com>
tiendn pushed a commit to tiendn/hyperlane-monorepo that referenced this pull request Jan 11, 2025
### Description

This PR updates the `hyperlane core init`, `hyperlane core deploy` and
`hyperlane core apply` commands to allow a user to change ownership of
the mailbox ProxyAdmin contract by setting a value in the config.

### Drive-by changes

- deduped `randomAddress` test util implementations across the `sdk`,
'infra' and `cli` package
- added `anvil1` to the `run-e2e-test.sh` script to test `hyperlane
core` commands in isolation
- implemented the `proxyAdminOwnershipUpdateTxs` to deduplicate proxy
admin ownership tx data generation

### Related issues

- Fixes hyperlane-xyz#4728 

### Backward compatibility

- Yes

### Testing

- Manual
- e2e

### NOTE:

- Merge hyperlane-xyz#4726
first

---------

Co-authored-by: Paul Balaji <10051819+paulbalaji@users.noreply.github.com>
tiendn pushed a commit to tiendn/hyperlane-monorepo that referenced this pull request Jan 11, 2025
### Description

This PR adds the required logic to enroll/unenroll ICAs between them
when running `core apply`

### Drive-by changes

- Implements the `EvmIcaReader`
- Updates the `EvmCoreModule` to read the current chain ICA config
-  Adds tests for the `EvmIcaRouterReader`

### Related issues

- Fixes hyperlane-xyz#4819 

### Backward compatibility

- Yes

### Testing

- Manual
- E2E

### Note

- merge hyperlane-xyz#4767 first

---------

Co-authored-by: Paul Balaji <10051819+paulbalaji@users.noreply.github.com>
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.

feat(cli,sdk): core commands support changing proxy admin ownership
3 participants