Skip to content

fix: deprecate reservoir#36

Merged
jackmellis merged 1 commit intomainfrom
fix/deprecate-reservoir
Jan 21, 2026
Merged

fix: deprecate reservoir#36
jackmellis merged 1 commit intomainfrom
fix/deprecate-reservoir

Conversation

@jackmellis
Copy link
Copy Markdown
Collaborator

reservoir.tools has been decomissioned and is no longer accessible as certain parts of nftx.js are built around reservoir (specifically for asset and collection data), they will now fail currently you will just get a "failed to fetch error" with no real explanation this commit throws a meaningful error instead
it also removes the reliance on reservoir in the fetchVaults method - we don't want the entire process to fail because we're unable to fetch some optional field data whether or not we look to reimplement all of the methods that will be failing is not yet decided, the following methods are directly affected:

  • fetchAssets
  • streamAssets
  • fetchAssetsFromReservoir
  • fetchCollection
  • fetchUserAssets

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR deprecates the Reservoir API integration by replacing the queryReservoir function with one that throws a meaningful error. The change addresses the issue that Reservoir.tools has been decommissioned and is no longer accessible, which previously resulted in unclear "failed to fetch" errors.

Changes:

  • Modified queryReservoir to throw an explanatory error instead of making API calls
  • Removed Reservoir-based collection fetching from the vault transformation pipeline
  • Simplified collectionSlug derivation to use only asset symbols

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/utils/src/web2/queryReservoir.ts Replaced implementation with error-throwing stub to indicate Reservoir deprecation
packages/core/src/vaults/fetchVaults/transformVault.ts Removed collection parameter and simplified collectionSlug to use only asset symbol
packages/core/src/vaults/fetchVaults/fetchVaults.ts Removed collection fetching logic that depended on Reservoir API

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

reservoir.tools has been decomissioned and is no longer accessible
as certain parts of nftx.js are built around reservoir (specifically for asset and collection data), they will now fail
currently you will just get a "failed to fetch error" with no real explanation
this commit throws a meaningful error instead
it also removes the reliance on reservoir in the fetchVaults method - we don't want the entire process to fail because we're unable to fetch some optional field data
whether or not we look to reimplement all of the methods that will be failing is not yet decided, the following methods are directly affected:
- fetchAssets
- streamAssets
- fetchAssetsFromReservoir
- fetchCollection
- fetchUserAssets
@jackmellis jackmellis force-pushed the fix/deprecate-reservoir branch from 2f7d5a7 to 0e61bfb Compare January 21, 2026 10:55
@jackmellis jackmellis merged commit 192cd25 into main Jan 21, 2026
1 check passed
@jackmellis jackmellis deleted the fix/deprecate-reservoir branch January 21, 2026 11:13
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