Skip to content

Conversation

@bergarces
Copy link
Contributor

@bergarces bergarces commented Dec 19, 2025

Explanation

Updates list of supported networks with latest info from their API. Also ensures they are ordered so that it's easy to identify them.

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, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Expands spot-prices supported chains/mappings and drops the v2 fallback so token prices are fetched via v3 only, with test and type updates.

  • Token Prices Service (packages/assets-controllers/src/token-prices-service/codefi-v2.ts)
    • Expanded SPOT_PRICES_SUPPORT_INFO with many new/updated chain CAIP-19 mappings and native asset entries.
    • Removed v2 fallback: deleted BASE_URL_V2 and #fetchTokenPricesV2; fetchTokenPrices now queries only v3/spot-prices.
    • Improved typings: explicit return types for onBreak, onDegraded.
  • Tests (codefi-v2.test.ts)
    • Removed v2 endpoint test; updated helpers to return precise types.
    • Kept and adjusted v3 spot-prices tests and circuit-breaker/degraded-path tests.
  • Changelog
    • Added entry noting updated spot-prices supported chains/assets.

Written by Cursor Bugbot for commit aa068b1. This will update automatically on new commits. Configure here.

@bergarces bergarces requested a review from a team as a code owner December 19, 2025 13:22
@bergarces bergarces changed the title update price api support chore: update price api support Dec 19, 2025
@bergarces bergarces requested a review from a team as a code owner December 19, 2025 14:53
@bergarces bergarces added this pull request to the merge queue Dec 19, 2025
Merged via the queue into main with commit 1bb6d53 Dec 19, 2025
286 checks passed
@bergarces bergarces deleted the update-price-api-support branch December 19, 2025 15:40
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