Skip to content

feat(tron-wallet-snap): route fungible reads through Core AssetsController - #127

Draft
ulissesferreira wants to merge 6 commits into
WPN-1497-messenger-plumbingfrom
ulissesferreira/wpn-1497-core-adapter-routing-9863
Draft

feat(tron-wallet-snap): route fungible reads through Core AssetsController#127
ulissesferreira wants to merge 6 commits into
WPN-1497-messenger-plumbingfrom
ulissesferreira/wpn-1497-core-adapter-routing-9863

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Summary

  • Route fungible asset reads (TRX, TRC10, TRC20) based on resolved migration stage (Off / ReadWithFallback / Read) via AssetsProvider
  • Add mapControllerAsset helper and update SnapAssetsAdapter for stage-aware sync/saveMany
  • Snap-owned assets always use SnapAssetsAdapter
  • Manifest keeps endowment:messenger actions for AssetsController reads and RemoteFeatureFlagController

Part 2 of the Tron Assets migration stack (replaces closed #96 after branch rebuild onto #95).

PR chain

#126#95this PR#97

Jira

Test plan

  • yarn workspace @metamask/tron-wallet-snap run jest --no-coverage src/services/assets/
  • CI green
Open in Web Open in Cursor 

@cursor
cursor Bot force-pushed the ulissesferreira/wpn-1497-core-adapter-routing-9863 branch from bfa488d to 327dfab Compare August 5, 2026 18:29
@cursor
cursor Bot force-pushed the WPN-1497-messenger-plumbing branch 2 times, most recently from 6587ae2 to 9428a52 Compare August 5, 2026 19:34
@cursor
cursor Bot force-pushed the ulissesferreira/wpn-1497-core-adapter-routing-9863 branch from 61a0b87 to 6769ec9 Compare August 5, 2026 19:34
cursoragent and others added 6 commits August 5, 2026 19:34
…oller

Introduce migration-stage routing for fungible asset reads (Off /
ReadWithFallback / Read) via AssetsProvider, with mapControllerAsset and
SnapAssetsAdapter updates. Snap-owned assets remain on the Snap adapter.

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

Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
@cursor
cursor Bot force-pushed the ulissesferreira/wpn-1497-core-adapter-routing-9863 branch from 6769ec9 to 4d766ab Compare August 5, 2026 19:34
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