feat(tron-wallet-snap): route fungible asset reads through AssetsController (WPN-1498) - #93
feat(tron-wallet-snap): route fungible asset reads through AssetsController (WPN-1498)#93ulissesferreira wants to merge 5 commits into
Conversation
…rvice Move existing assets logic into SnapAssetsAdapter and keep AssetsService as a thin facade that always delegates to the Snap adapter. Behavior unchanged; prepares for a later Core adapter / feature-flag routing PR.
Adapter lives one directory deeper than AssetsService; bump client, constants, and types imports to ../../../ and ../types respectively.
Co-authored-by: Cursor <cursoragent@cursor.com>
…roller Direct Core cutover for fungible reads via CoreAssetsAdapter while snap-owned protocol assets remain on SnapAssetsAdapter. Stop syncing and persisting fungibles in Snap cron/saveMany paths.
Drop packages/tron-wallet-snap/tron-wallet-snap/ tree that was included in the Fork X commit by mistake.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution MetaMask internal reviewing guidelines:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
b67ea64 to
8624473
Compare
|
Closing in favor of the split migration stack:
This monolithic fork ( |
Summary
CoreAssetsAdapter→AssetsController:getAsset/getAssetsSnapAssetsAdaptersaveManyto snap-owned assets onlymapControllerAsset,core-messengertypes, and messenger endowmentsJira
Test plan
yarn workspace @metamask/tron-wallet-snap buildyarn workspace @metamask/tron-wallet-snap run test(896 tests)Stacks on #92 (shared spine). Mutually exclusive with the feature-flagged fork PR — pick one for cutover.
Supersedes #78.