Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d19c31d
chore: integrate storageService with tokenListController
sahar-fehri Dec 9, 2025
bffca81
chore: lint
sahar-fehri Dec 9, 2025
339ad11
fix: ut
sahar-fehri Dec 9, 2025
ec25b72
fix: lint
sahar-fehri Dec 9, 2025
bff906c
Merge branch 'main' into chore/integrate-storage-service-with-tokenLi…
sahar-fehri Dec 10, 2025
9c9078b
fix: changelog
sahar-fehri Dec 10, 2025
5c9329a
fix: per chain file save
sahar-fehri Dec 15, 2025
4058ce6
Merge branch 'main' into chore/integrate-storage-service-with-tokenLi…
sahar-fehri Dec 15, 2025
2582ded
Merge branch 'main' into chore/integrate-storage-service-with-tokenLi…
sahar-fehri Dec 15, 2025
0c0e101
fix: update @metamask/storage-service version in package.json and yar…
sahar-fehri Dec 15, 2025
c8b0472
test: enhance TokenListController tests for error handling in cache l…
sahar-fehri Dec 15, 2025
5490244
test: add test
sahar-fehri Dec 15, 2025
eec8869
test: fix test
sahar-fehri Dec 15, 2025
9332b6e
test: add test to ensure cache is loaded only once during multiple fe…
sahar-fehri Dec 18, 2025
9ce5b48
fix: fix race condition on clearingTokenListData
sahar-fehri Dec 18, 2025
0b606b6
fix: fix state inconsistency on error
sahar-fehri Dec 18, 2025
e74a520
fix: refactor and improve migration log
sahar-fehri Dec 18, 2025
6f63737
fix: fix timestamp save
sahar-fehri Dec 18, 2025
a2c42fb
fix: use promise.allSettled
sahar-fehri Dec 18, 2025
d1d8354
fix: clear state on storage access error
sahar-fehri Dec 18, 2025
eb78626
fix: changelog
sahar-fehri Dec 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions eslint-suppressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
},
"packages/assets-controllers/src/TokenListController.test.ts": {
"@typescript-eslint/explicit-function-return-type": {
"count": 2
"count": 1
},
"id-denylist": {
"count": 2
Expand All @@ -357,14 +357,6 @@
"count": 7
}
},
"packages/assets-controllers/src/TokenListController.ts": {
"@typescript-eslint/explicit-function-return-type": {
"count": 6
},
"no-restricted-syntax": {
"count": 7
}
},
"packages/assets-controllers/src/TokenRatesController.test.ts": {
"@typescript-eslint/explicit-function-return-type": {
"count": 4
Expand Down
5 changes: 5 additions & 0 deletions packages/assets-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- **BREAKING:** `TokenListController` now persists `tokensChainsCache` via `StorageService` using per-chain files to reduce write amplification ([#7413](https://github.com/MetaMask/core/pull/7413))
- Each chain's token cache (~100-500KB) is stored in a separate file, avoiding rewriting all chains (~5MB) on every update
- Includes migration logic to automatically split existing cache data into per-chain files on first launch after upgrade
- All chains are loaded in parallel at startup to maintain compatibility with TokenDetectionController
- `tokensChainsCache` state metadata now has `persist: false` to prevent duplicate persistence
- **BREAKING:** `AccountTrackerController` now requires `KeyringController:getState` action and `KeyringController:lock` event in addition to existing allowed actions and events ([#7492](https://github.com/MetaMask/core/pull/7492))
- Added `#isLocked` property to track keyring lock state, initialized from `KeyringController:getState`
- Added `isActive` getter that returns `true` when keyring is unlocked and user is onboarded
Expand Down
1 change: 1 addition & 0 deletions packages/assets-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"@metamask/snaps-controllers": "^14.0.1",
"@metamask/snaps-sdk": "^9.0.0",
"@metamask/snaps-utils": "^11.0.0",
"@metamask/storage-service": "^0.0.1",
"@metamask/transaction-controller": "^62.7.0",
"@metamask/utils": "^11.8.1",
"@types/bn.js": "^5.1.5",
Expand Down
Loading
Loading