Skip to content

refactor(tron-wallet-snap): organize handlers and rename asset readers (WPN-1497) - #85

Closed
ulissesferreira wants to merge 3 commits into
mainfrom
assets-split/1-handlers-and-renames
Closed

refactor(tron-wallet-snap): organize handlers and rename asset readers (WPN-1497)#85
ulissesferreira wants to merge 3 commits into
mainfrom
assets-split/1-handlers-and-renames

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Summary

  • Move handlers into dedicated folders (handlers/assets/, cronjob/, keyring/, user-input/) with explicit import paths
  • Rename AssetsService account readers: getAccountAssets, getAccountAssetsByIDs, getAccountAssetByID
  • No runtime behavior change

Test plan

  • yarn workspace @metamask/tron-wallet-snap build
  • yarn workspace @metamask/tron-wallet-snap run test

Part of the AssetsController migration split stack (Step 1/3).

Pure organizational move with import path updates only. No AssetsService
API renames or behavior changes.
Align public reader names with the final AssetsController-oriented API:
getAccountAssets, getAccountAssetsByIDs, getAccountAssetByID.
Handler folder move requires importing from ../cronjob/cronjob rather
than the bare folder path so the Snap bundle resolves correctly.
@ulissesferreira
ulissesferreira requested a review from a team as a code owner July 31, 2026 21:15
@ulissesferreira
ulissesferreira deleted the assets-split/1-handlers-and-renames branch July 31, 2026 21:36
@ulissesferreira ulissesferreira changed the title refactor(tron-wallet-snap): organize handlers and rename asset readers refactor(tron-wallet-snap): organize handlers and rename asset readers (WPN-1497) Jul 31, 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.

1 participant