-
Notifications
You must be signed in to change notification settings - Fork 292
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
Kunal/v3 hooks #2580
Kunal/v3 hooks #2580
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v3 #2580 +/- ##
==========================================
- Coverage 62.51% 61.18% -1.34%
==========================================
Files 95 99 +4
Lines 1430 1466 +36
Branches 198 206 +8
==========================================
+ Hits 894 897 +3
- Misses 529 562 +33
Partials 7 7
☔ View full report in Codecov by Sentry. |
solidity/contracts/interfaces/optimism/ICrossDomainMessenger.sol
Outdated
Show resolved
Hide resolved
* @param _messageId Hyperlane ID for the message. | ||
*/ | ||
function verifyMessageId(bytes32 _messageId) external virtual { | ||
_isAuthorized(); |
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 would have isAuthorized
return a bool
as the name suggests and require
here
library OPStackHookMetadata { | ||
function msgValue(bytes calldata _metadata) | ||
internal | ||
pure | ||
returns (uint256) | ||
{ | ||
return uint256(bytes32(_metadata[0:32])); |
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 you add a layout in natspec similar to the other metadata libs
### Description - Adding Optimism Hook for MailboxV3 ### Drive-by changes - dispatch function with hookMetadata ### Related issues - hyperlane-xyz/issues#513 ### Backward compatibility No ### Testing None
Use mailbox callback to authenticate messages in hooks where necessary (#2609) Co-authored-by: Kunal Arora <55632507+aroralanuk@users.noreply.github.com>
- Adding Optimism Hook for MailboxV3 - dispatch function with hookMetadata - https://github.com/hyperlane-xyz/issues/issues/513 No None
- Adding Optimism Hook for MailboxV3 - dispatch function with hookMetadata - https://github.com/hyperlane-xyz/issues/issues/513 No None
Description
Drive-by changes
Related issues
Backward compatibility
No
Testing
None