Skip to content

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

Merged

Conversation

melisaguevara
Copy link
Contributor

This PR introduces the findFillEvent implementation for SVM chains. It looks for fill events in the PDA derived from the requested relayData.

Copy link

linear bot commented Apr 29, 2025

destinationChainId: number,
svmEventsClient: SvmCpiEventsClient,
fromSlot: number,
toSlot?: number | bigint
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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).

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

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

Copy link
Member

@james-a-morris james-a-morris left a 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

Copy link
Contributor

@md0x md0x left a 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!

@james-a-morris
Copy link
Member

Happy to sync on this - I will approve to not block #998 (comment)

@melisaguevara melisaguevara changed the base branch from mguevara/acx-4029-relay-fill-status to epic/svm-client May 7, 2025 12:37
@melisaguevara melisaguevara merged commit 5ac115a into epic/svm-client May 7, 2025
4 checks passed
@melisaguevara melisaguevara deleted the mguevara/acx-4056-implement-findfillevent branch May 8, 2025 15:26
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.

3 participants