feat(tron-wallet-snap): implement feature-flagged AssetsController - #94
feat(tron-wallet-snap): implement feature-flagged AssetsController#94ulissesferreira wants to merge 1 commit into
Conversation
Route fungible asset reads through CoreAssetsAdapter based on remote migration stage flags, with SnapAssetsAdapter fallback where configured. Narrow account sync and saveMany to snap-owned assets when Core is active.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution MetaMask internal reviewing guidelines:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Summary
CoreAssetsAdapterbased onRemoteFeatureFlagControllermigration stage (Off / ReadWithFallback / Read)SnapAssetsAdaptersaveManyto snap-owned when Core stage is activegetAsset,getAssets, andRemoteFeatureFlagController:getStateJira
Test plan
yarn workspace @metamask/tron-wallet-snap buildyarn workspace @metamask/tron-wallet-snap run test(898 tests)Stacks on #92 (shared spine). Mutually exclusive with the direct cutover PR — pick one for cutover.
Supersedes #77 (fixes missing
AssetsController:getAssetsendowment).