Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 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
71124a6
Merge branch 'main' into chore/integrate-storage-service-with-tokenLi…
sahar-fehri Jan 5, 2026
e84ca0a
fix: use subscribe to update state with debounce, rm migration and cr…
sahar-fehri Jan 13, 2026
cda1046
Merge branch 'main' into chore/integrate-storage-service-with-tokenLi…
sahar-fehri Jan 13, 2026
f6cac32
fix: test cov
sahar-fehri Jan 13, 2026
abd120e
fix: test cov
sahar-fehri Jan 13, 2026
b0d745f
fix: changelog
sahar-fehri Jan 13, 2026
dd094a6
fix: cleanup debounce on destroy
sahar-fehri Jan 13, 2026
0e847c0
fix: fix loading cache from storage
sahar-fehri Jan 13, 2026
aaf4ec8
fix: fix race between in progress persistence and clear
sahar-fehri Jan 13, 2026
87d13b2
fix: fix persistence on initialization
sahar-fehri Jan 13, 2026
b521491
Merge branch 'main' into chore/integrate-storage-service-with-tokenLi…
sahar-fehri Jan 13, 2026
ab94d42
fix: test cov
sahar-fehri Jan 13, 2026
1cd37df
fix: lint
sahar-fehri Jan 13, 2026
e88e572
fix: fix coverage
sahar-fehri Jan 14, 2026
3168445
Merge branch 'main' into chore/integrate-storage-service-with-tokenLi…
sahar-fehri Jan 14, 2026
d98f8cc
fix: rm not needed import
sahar-fehri Jan 14, 2026
821afcb
fix: lint
sahar-fehri Jan 14, 2026
009e026
fix: fix repersistence of cached chains
sahar-fehri Jan 14, 2026
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": 1
},
"no-restricted-syntax": {
"count": 7
}
},
"packages/assets-controllers/src/TokenRatesController.test.ts": {
"@typescript-eslint/explicit-function-return-type": {
"count": 4
Expand Down
7 changes: 7 additions & 0 deletions packages/assets-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- **BREAKING:** `TokenListController` now persists `tokensChainsCache` via `StorageService` and requires clients to call `initialize()` after construction ([#7413](https://github.com/MetaMask/core/pull/7413))
- Each chain's token cache is stored in a separate file, reducing write amplification
- All chains are loaded in parallel at startup to maintain compatibility with TokenDetectionController
- `tokensChainsCache` state metadata now has `persist: false` to prevent duplicate persistence
- Clients must call `await controller.initialize()` before using the controller
- State changes are automatically persisted via debounced subscription
- Bump `@metamask/transaction-controller` from `^62.8.0` to `^62.9.0` ([#7602](https://github.com/MetaMask/core/pull/7602))
- Bump `@metamask/transaction-controller` from `^62.8.0` to `^62.9.1` ([#7602](https://github.com/MetaMask/core/pull/7602), [#7604](https://github.com/MetaMask/core/pull/7604))
- Bump `@metamask/network-controller` from `^27.2.0` to `^28.0.0` ([#7604](https://github.com/MetaMask/core/pull/7604))
- Bump `@metamask/accounts-controller` from `^35.0.0` to `^35.0.1` ([#7604](https://github.com/MetaMask/core/pull/7604))
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": "^17.2.0",
"@metamask/snaps-sdk": "^10.3.0",
"@metamask/snaps-utils": "^11.7.0",
"@metamask/storage-service": "^0.0.1",
"@metamask/transaction-controller": "^62.9.1",
"@metamask/utils": "^11.9.0",
"@types/bn.js": "^5.1.5",
Expand Down
Loading