Skip to content

Conversation

ryangoree
Copy link
Member

@ryangoree ryangoree commented Sep 4, 2025

  • Adds an earliest block for each position type based on the earliest position opened on each chain to narrow block ranges in portfolio event queries.
  • Adds options to the portfolio queries to prevent them from refetching when the window is refocused or when the ttl option of the store (1 minute) is reached.
  • Updates the SDK to use the latest version of drift which includes some efficiency improvements like automatic multicall batching.
  • Adds a hook to all event requests made by the SDK to retry failures with multiple smaller requests.
  • Patches all SDK clients to ensure their epochBlock option which limits the fromBlock of event queries is passed to their super class.
  • Deletes the old deprecated SDK packages and the outdated and broken docs site.
  • Bumps a few important dependencies.

Copy link

changeset-bot bot commented Sep 4, 2025

⚠️ No Changeset found

Latest commit: 6207d50

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Sep 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
hyperdrive-mainnet-production Ignored Ignored Sep 4, 2025 6:07am

Copy link
Member Author

Choose a reason for hiding this comment

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

Added fromBlocks here.

Copy link
Contributor

@jrhea jrhea left a comment

Choose a reason for hiding this comment

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

nice work. thanks for doing this

Comment on lines +32 to +34
retry: false,
refetchOnWindowFocus: false,
staleTime: Infinity,
Copy link
Member Author

Choose a reason for hiding this comment

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

Query options forwarded to the react-query client here to reduce the number of times these expensive requests are made.

@ryangoree ryangoree merged commit af430c6 into main Sep 4, 2025
8 checks passed
@ryangoree ryangoree deleted the ryan-update-sdk branch September 4, 2025 21:00
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