Skip to content

feat(SvmSpokePoolClient): relayFillStatus and fillStatusArray implementation #990

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

Open
wants to merge 1 commit into
base: epic/svm-client
Choose a base branch
from

Conversation

melisaguevara
Copy link
Contributor

This PR introduces the SVM implementation for relayFillStatus, which reconstructs the fill status of a given relay based on historical events up to a specific block.

The steps to reconstruct fill status are:

  1. Retrieve the fill status PDA associated with the target relay.
  2. Query all relevant events (fills and slow fill requests) from that PDA, up to the specified block.
  3. Sort the events in ascending order by slot number.
  4. Determine the current fill status based on the most recent event:
    • If no events are found, the status is considered Unfilled.
    • Otherwise, the status reflects the type of the latest event.

It also introduces the implementation for fillStatusArray, which batch calls to relayFillStatus in groups of 200 deposits.

Copy link

linear bot commented Apr 24, 2025

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.

1 participant