-
Notifications
You must be signed in to change notification settings - Fork 18
feat(SvmSpokeUtils): implement findFillEvent #998
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(SvmSpokeUtils): implement findFillEvent #998
Conversation
src/arch/svm/SpokeUtils.ts
Outdated
destinationChainId: number, | ||
svmEventsClient: SvmCpiEventsClient, | ||
fromSlot: number, | ||
toSlot?: number | bigint |
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 we enforce one or the other?
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 think enforcing fromSlot is enough since the events client will always start fetching signatures from the current confirmed slot no matter if toSlot
is defined or not. wdyt?
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.
Sorry - i meant should we enforce that the toSlot is a number or is a bigint? (it's okay if they're undefined).
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.
+1
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.
my bad! Done here 9e50877
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.
two follow up comments
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 agree with @james-a-morris’s comments, but otherwise this looks good to me!
Happy to sync on this - I will approve to not block #998 (comment) |
This PR introduces the
findFillEvent
implementation for SVM chains. It looks for fill events in the PDA derived from the requested relayData.