Skip to content

chore(WPN-1652): align Solana AssetsService read API with snap-networks-utils - #635

Closed
ulissesferreira wants to merge 1 commit into
mainfrom
WPN-1652-align-assets-service-api
Closed

chore(WPN-1652): align Solana AssetsService read API with snap-networks-utils#635
ulissesferreira wants to merge 1 commit into
mainfrom
WPN-1652-align-assets-service-api

Conversation

@ulissesferreira

@ulissesferreira ulissesferreira commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add shared read API methods: getAccountAssetByID, getAccountAssetsByIDs, getAccountAssetsByScope
  • Update Keyring, Send, send render, and refreshSend cron to use the new API
  • No behavior change — still reads from Snap-owned assetEntities via AssetsRepository

Test plan

  • yarn workspace @metamask/solana-wallet-snap test src/core/services/assets/AssetsService.test.ts
  • yarn workspace @metamask/solana-wallet-snap test src/core/services/send/SendService.test.ts
  • Manual smoke: send form balances, keyring asset list

Part of the WPN-1652 staged migration split (PR 1 of 8).

…ks-utils

Co-authored-by: Cursor <cursoragent@cursor.com>
@ulissesferreira
ulissesferreira force-pushed the WPN-1652-align-assets-service-api branch from d56be38 to 48ddcf8 Compare August 5, 2026 10:33
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

cursor Bot pushed a commit to MetaMask/internal-snaps that referenced this pull request Aug 5, 2026
…ks-utils

Add getAccountAssetByID, getAccountAssetsByIDs, getAccountAssetsByScope,
and getAccountAssetsForAllActiveScopes. Update Keyring, Send, send render,
and refreshSend to use the new API. No behavior change — still reads from
Snap-owned assetEntities via AssetsRepository.

Migrated from MetaMask/snap-solana-wallet#635.

Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
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