Skip to content

refactor(snap-solana-wallet): align Solana AssetsService read API with snap-networks-utils - #120

Open
ulissesferreira wants to merge 4 commits into
mainfrom
ulissesferreira/wpn-1652-align-assets-service-api-6620
Open

refactor(snap-solana-wallet): align Solana AssetsService read API with snap-networks-utils#120
ulissesferreira wants to merge 4 commits into
mainfrom
ulissesferreira/wpn-1652-align-assets-service-api-6620

Conversation

@ulissesferreira

@ulissesferreira ulissesferreira commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Explanation

Part of migrating the Solana assets-controller staged migration from snap-solana-wallet#635 into this monorepo (PR 1 of 6, Lane A / feature-flag path only).

  • Add shared read API methods on AssetsService: getAccountAssetByID, getAccountAssetsByIDs, getAccountAssetsByScope, getAccountAssetsForAllActiveScopes
  • Wire accountsService into AssetsService (needed for account lookup by ID)
  • Update Keyring, Send, send render, and refreshSend cron to use the new API
  • No behavior change — still reads from Snap-owned assetEntities via AssetsRepository

CI babysit fixes

  • Fix unused-vars eslint failures in SendService and prune the stale suppression
  • Rebased onto latest main (Release/5.0.0); restored Unreleased changelog entry above released 5.0.0
  • Synced snap.manifest.json shasum with the CI production build after rebase

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
Open in Web Open in Cursor 

cursor Bot pushed a commit that referenced this pull request Aug 5, 2026
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
@ulissesferreira
ulissesferreira marked this pull request as ready for review August 5, 2026 18:06
@ulissesferreira
ulissesferreira requested review from a team as code owners August 5, 2026 18:06
@ulissesferreira
ulissesferreira deployed to default-branch August 5, 2026 18:06 — with GitHub Actions Active
cursoragent and others added 3 commits August 5, 2026 18:08
…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>
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Drop unused catch binding and account assignment left after the
AssetsService read API migration, and prune the stale suppression.

Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
@cursor
cursor Bot force-pushed the ulissesferreira/wpn-1652-align-assets-service-api-6620 branch from f5ec399 to ed3340c Compare August 5, 2026 18:09
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
@MetaMask MetaMask deleted a comment from cursor Bot Aug 5, 2026
@ulissesferreira ulissesferreira changed the title chore(WPN-1652): align Solana AssetsService read API with snap-networks-utils refactor: align Solana AssetsService read API with snap-networks-utils Aug 5, 2026
@ulissesferreira ulissesferreira changed the title refactor: align Solana AssetsService read API with snap-networks-utils refactor(snap-solana-wallet): align Solana AssetsService read API with snap-networks-utils Aug 5, 2026
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