-
Notifications
You must be signed in to change notification settings - Fork 378
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: Add hook update into WarpModule.update() #4891
base: main
Are you sure you want to change the base?
Conversation
…orepo into ltyu/warp-apply-hook
… such that it updates a warp route _without_ a hook, and one with an existing hook.
🦋 Changeset detectedLatest commit: abab8a9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
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 |
…orepo into ltyu/warp-apply-hook
…orepo into ltyu/warp-apply-hook
0798188
to
adaf990
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4891 +/- ##
=======================================
Coverage 74.60% 74.60%
=======================================
Files 103 103
Lines 1516 1516
Branches 195 195
=======================================
Hits 1131 1131
Misses 364 364
Partials 21 21
|
…orepo into ltyu/warp-apply-hook
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.
I don't know this code well but the changes look fine to me :)
@@ -42,12 +46,14 @@ import { EvmERC20WarpRouteReader } from './EvmERC20WarpRouteReader.js'; | |||
import { HypERC20Deployer } from './deploy.js'; | |||
import { TokenRouterConfig, TokenRouterConfigSchema } from './schemas.js'; | |||
|
|||
``; |
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.
typo?
* | ||
* @returns Object with deployedHook address, and update Transactions | ||
*/ | ||
public async deployOrUpdateHook( |
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.
Nit, public keyword is unnecessary
this.multiProvider, | ||
{ | ||
chain: this.args.chain, | ||
config: actualConfig.hook as HookConfig, |
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.
Can the casts here and below be avoided?
Description
This is a multi-part PR.
This adds
createHookUpdateTxs()
toWarpModule.update()
such that it updates a warp route without a hook, and one with an existing hook.Related issues
Backward compatibility
Yes
Testing
Unit Tests