-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: warp deploy apply ownership fixes (#4726)
### Description This PR adds the required logic for allowing an already existing AdminProxy contract to be used in a warp route deployment using `warp deploy` by modifying `warp init`. Additionally, `warp apply` now allows the transfer of ownership of the warp route if specified in the config. - If the user specifies the `--yes` flag the proxy admin prompt will not be shown - Updates the `ProxiedRouterDeployer` to check if a proxy admin contract has been defined in the current configuration so that it can be reused instead of deploying a new contract. ### Drive-by changes - Defines a `DeployedOwnableConfig` type to represent any deployed contract that can be owned by an address (AdminProxy in this case) - ### Related issues - Fixes #4710 ### Backward compatibility - Yes: the new field has been added as an optional field and if not present in the config it is ignored ### Testing - Manual testing --------- Co-authored-by: Paul Balaji <10051819+paulbalaji@users.noreply.github.com>
- Loading branch information
1 parent
fa06690
commit 4c0605d
Showing
12 changed files
with
232 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@hyperlane-xyz/cli': minor | ||
'@hyperlane-xyz/sdk': minor | ||
--- | ||
|
||
Add optional proxy admin reuse in warp route deployments and admin proxy ownership transfer in warp apply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.