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 https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/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>pull/4802/head
parent
fa06690914
commit
4c0605dca5
@ -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 |
Loading…
Reference in new issue