-
Couldn't load subscription status.
- Fork 24
improve: Create SVM relayDataHash with messageHash instead of message #1168
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
base: master
Are you sure you want to change the base?
Conversation
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.
@dijanin-brat Just one general comment here - we already have messageHash on both FundsDeposited and FilledRelay events - does it make sense to just update the type of RelayData on each of these function prototypes to include messageHash ?
i.e.:
relayData: RelayData: & { messageHash: string },
src/arch/svm/SpokeUtils.ts
Outdated
| * @param provider - SVM provider instance. | ||
| * @param svmEventsClient - SVM events client for querying events. | ||
| * @param atHeight - (Optional) Specific slot number to query. Defaults to the latest confirmed slot. | ||
| * @param messageHash - (Optional) Hash of the message that will be used to create relayDataHash from fill. |
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.
Should be OK to drop this one now 👍
| * @param messageHash - (Optional) Hash of the message that will be used to create relayDataHash from fill. |
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.
src/arch/svm/utils.ts
Outdated
| * @param programId The SpokePool program ID. | ||
| * @param relayData The relay data to get the fill status PDA for. | ||
| * @param destinationChainId The destination chain ID. | ||
| * @param messageHash Hash of the message that will be used to create relayDataHash from fill. |
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.
Same as above.
| * @param messageHash Hash of the message that will be used to create relayDataHash from fill. |
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.
Create SVM relayDataHash with messageHash instead of message.