-
Notifications
You must be signed in to change notification settings - Fork 412
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
Upgradable warp routes #3474
Upgradable warp routes #3474
Conversation
… to use deployAdminAndProxyContracts
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3474 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 1 1
Lines 16 16
=====================================
Misses 16 16
|
…routerContractName to be an abstract getter function. Implement constructorArgs and initializeArgs in token/deploy. Clean up
3c4700a
to
dd3c182
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious why we're using Transparent over UUPS? UUPS tends to be the de-facto recommendation these days (cheaper gas, more flexible, can eventually remove upgradability)
4683604
to
4ef2e82
Compare
4ef2e82
to
b5b7d8d
Compare
…lasses. Add defaultArgs for 721 deploy
45e8d61
to
74c3549
Compare
Should merge after #3490 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work
glad we reused ProxiedRouterDeployer
typescript/sdk/src/middleware/account/InterchainAccountDeployer.ts
Outdated
Show resolved
Hide resolved
typescript/sdk/src/middleware/liquidity-layer/LiquidityLayerRouterDeployer.ts
Outdated
Show resolved
Hide resolved
f032ab7
to
27ad190
Compare
7e74982
to
21e0aa3
Compare
21e0aa3
to
901e6c1
Compare
…-xyz/hyperlane-monorepo into upgradable-warp-routes
### Description Makes the following Warp Routes upgradable through CLI deployment ``` - FastHypERC20Collateral - FastHypERC20 - HypERC20 - HypERC20Collateral - HypERC20CollateralVaultDeposit - HypNative - HypNativeScaled - HypERC721Collateral - HypERC721 - HypERC721URICollateral - HypERC721URIStorage ``` - Adds `initialize()` to each contract - It mostly contains `_MailboxClient_initialize`, and any additional proxy specific constructor logic - Refactors - Update `GasRouterDeployer` to inherit from `ProxiedRouterDeployer` - Update `ProxiedRouterDeployer.routerContractName` to `abstract ProxiedRouterDeployer.routerContractName(): RouterKey` . - This allows child classes to specify their own contract name instead of being locked-in to a single name upon construction. Similar concept to the existing `ProxiedRouterDeployer.constructorArgs()` and `ProxiedRouterDeployer.initializeArgs()` - Update `router()` - Add function into `InterchainQueryDeployer` - Add function into `InterchainAccountDeployer` - Update to abstract function in `ProxiedRouterDeployer` - ### Drive-by changes ### Related issues Fixes #999 ### Backward compatibility - Should be backward compatible ### Testing - Updates contract unit tests - Manual testing through CLI and verified contracts
Description
Makes the following Warp Routes upgradable through CLI deployment
initialize()
to each contract_MailboxClient_initialize
, and any additional proxy specific constructor logicGasRouterDeployer
to inherit fromProxiedRouterDeployer
ProxiedRouterDeployer.routerContractName
toabstract ProxiedRouterDeployer.routerContractName(): RouterKey
.ProxiedRouterDeployer.constructorArgs()
andProxiedRouterDeployer.initializeArgs()
router()
InterchainQueryDeployer
InterchainAccountDeployer
ProxiedRouterDeployer
Drive-by changes
Related issues
Fixes #999
Backward compatibility
Testing