Skip to content

feat(solana-wallet-snap): hardcode Core assets reads and remove migration flags - #124

Draft
ulissesferreira wants to merge 8 commits into
ulissesferreira/wpn-1476-migrate-solana-assets-controller-6620from
ulissesferreira/wpn-1476-hardcode-core-assets-adapter-flag-6620
Draft

feat(solana-wallet-snap): hardcode Core assets reads and remove migration flags#124
ulissesferreira wants to merge 8 commits into
ulissesferreira/wpn-1476-migrate-solana-assets-controller-6620from
ulissesferreira/wpn-1476-hardcode-core-assets-adapter-flag-6620

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Explanation

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

  • Remove migration-stage / remote feature-flag branching from AssetsService
  • Hardcode fungible reads through AssetsProvider + mapControllerAsset
  • Disable Snap fungible tracking (fetch/save/saveMany no longer persist fungibles)
  • Keep Snap-owned NFT reads via SnapAssetsAdapter
  • Drop RemoteFeatureFlagController:getState from messenger endowment / deps
  • Delete shouldTrackSnapAssets helpers

SnapAssetsAdapter / AssetsRepository / assetEntities state remain for PR 6 cleanup.

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 

cursoragent and others added 8 commits August 5, 2026 13:44
…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>
Move balance fetch/persist/read logic into SnapAssetsAdapter. AssetsService
delegates to a single adapter — no Core routing yet.

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

Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Wire endowment:messenger, AssetsProvider, and RemoteFeatureFlagsProvider
following the Tron WPN-1497 pattern. Providers are injected into
AssetsService but Snap-owned reads remain the sole production path.

Migrated from MetaMask/snap-solana-wallet#637 (Tron-style AssetsProvider
instead of a literal CoreAssetsAdapter).

Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
…tracking

Remove migration-stage and remote feature-flag routing from AssetsService.
Always read fungibles via AssetsProvider/mapControllerAsset; keep Snap-owned
NFT merge through SnapAssetsAdapter. Disable fetch/save persistence for
fungibles and simplify AccountsSynchronizer to Core reads only.

Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
@ulissesferreira ulissesferreira changed the title feat(WPN-1476): hardcode Core assets reads and remove migration flags feat(solana-wallet-snap): hardcode Core assets reads and remove migration flags Aug 6, 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