refactor(tron-wallet-snap): organize handlers and rename asset reader functions - #90
Conversation
2960d5a to
414cba1
Compare
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
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.
Handler files moved into subfolders in WPN-1497, so point eslint suppressions at the new paths and refresh snap.manifest.json after the handler import path fix changed the bundle hash.
414cba1 to
0e17e41
Compare
|
@cursoragent resolve these conflicts |
|
Merge conflicts are resolved on What conflicted: Only What I did:
|
Resolve snap.manifest.json shasum conflict by rebuilding after merge. Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
|
@cursoragent now there are linting problems. fix those but make sure that doesn't introduce the same shasum problem |
|
The CI failures weren’t ESLint issues — all lint jobs passed. The Build and Test jobs failed because Root cause: The merge-resolution build used local
Fix: Updated the manifest to the CI-reported shasum ( Verified |
…build The previous shasum was computed locally with .env.example URLs, which differs from the CI production environment secrets. Use the shasum reported by the CI build job to keep the working tree clean. Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
taran-a
left a comment
There was a problem hiding this comment.
LGTM. GG.
Part of the AssetsController migration split stack (Step 1/3).
@ulissesferreira ^^ this is nice. I don't know if you have plans to also add links for the following PRs (would be nice imo), but the idea of stacks is really nice. We might even consider some template for such PRs if we are going to use stacks later.


Summary
handlers/assets/,cronjob/,keyring/,user-input/) with explicit import pathsAssetsServiceaccount readers:getAccountAssets,getAccountAssetsByIDs,getAccountAssetByIDJira
Test plan
yarn workspace @metamask/tron-wallet-snap buildyarn workspace @metamask/tron-wallet-snap run testPart of the AssetsController migration split stack (Step 1/3).