Skip to content

Conversation

dijanin-brat
Copy link
Contributor

Create SVM relayDataHash with messageHash instead of message.

@dijanin-brat dijanin-brat self-assigned this Jul 30, 2025
Copy link
Collaborator

@pxrl pxrl left a 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 },

* @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.
Copy link
Collaborator

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 👍

Suggested change
* @param messageHash - (Optional) Hash of the message that will be used to create relayDataHash from fill.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Suggested change
* @param messageHash Hash of the message that will be used to create relayDataHash from fill.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dijanin-brat dijanin-brat marked this pull request as ready for review August 6, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants