Skip to content

chore(stellar): drop RPC fallback for asset metadata enquiry - #505

Merged
stanleyyconsensys merged 6 commits into
mainfrom
dev/stellar/drop-token-metadata-rpc-fallback
Oct 23, 2026
Merged

stanleyyconsensys merged 6 commits into
mainfrom
dev/stellar/drop-token-metadata-rpc-fallback

Conversation

@stanleyyconsensys

@stanleyyconsensys stanleyyconsensys commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Explanation

This PR drop the fallback of RPC and Horizon fetch asset metadata, as we have token api, and it is already done the same work

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

@stanleyyconsensys
stanleyyconsensys requested review from a team as code owners October 23, 2026 04:19
@stanleyyconsensys
stanleyyconsensys requested a balanced review from Copilot and removed request for a team October 23, 2026 04:19
Base automatically changed from dev/stellar/tight-chainid to main October 23, 2026 04:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Uncached classic assets can no longer complete send and trustline operations through handlers that require metadata resolution.

2 open issues
What changed in this PR

This PR makes Stellar asset metadata lookups use persisted metadata and the mainnet token API only, removing Horizon and Soroban RPC fallbacks.

Changes:

  • Removes network metadata fetchers and contract metadata parsing.
  • Simplifies service wiring, fixtures, and tests.
  • Documents the behavior change and adjusts lint suppressions.
File Description
packages/​stellar-wallet-snap/​src/​utils/​index.ts Removes an unused batching re-export.
packages/​stellar-wallet-snap/​src/​services/​transaction/​xdrParser.ts Removes contract metadata extraction.
packages/​stellar-wallet-snap/​src/​services/​network/​NetworkService.ts Removes Horizon and RPC metadata fetchers.
packages/​stellar-wallet-snap/​src/​services/​network/​NetworkService.test.ts Removes tests for deleted fetchers.
packages/​stellar-wallet-snap/​src/​services/​network/​api.ts Removes the metadata response type.
packages/​stellar-wallet-snap/​src/​services/​asset-metadata/​AssetMetadataService.ts Restricts uncached lookups to the mainnet token API.
packages/​stellar-wallet-snap/​src/​services/​asset-metadata/​AssetMetadataService.test.ts Updates mocks and API-miss expectations.
packages/​stellar-wallet-snap/​src/​services/​asset-metadata/​__mocks__/​assets.fixtures.ts Removes network service construction.
packages/​stellar-wallet-snap/​src/​context.ts Removes the metadata service’s network dependency.
packages/​stellar-wallet-snap/​CHANGELOG.md Adds the token-API-only change entry.
eslint-suppressions.json Reduces obsolete test suppressions.

Review effort: Balanced

Comment thread packages/stellar-wallet-snap/src/services/asset-metadata/AssetMetadataService.ts Outdated
Comment thread packages/stellar-wallet-snap/CHANGELOG.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The removal is consistent across implementation, callers, tests, and documentation, with no unresolved blocking issues identified.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

Static review found no blocking defects or dangling references, and updated tests cover the intended behavior, though they were not executed.

No open issues 🎉

Review effort: Balanced

@sonarqubecloud

Copy link
Copy Markdown

@stanleyyconsensys
stanleyyconsensys added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit ed07e14 Oct 23, 2026
57 checks passed
@stanleyyconsensys
stanleyyconsensys deleted the dev/stellar/drop-token-metadata-rpc-fallback branch October 23, 2026 05:54
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