@metamask-previews/assets-controllers 93.1.0-preview-d2037635 → 94.0.0-preview-a4b203f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/dist/TokenBalancesController.cjs +342 -378
  3. package/dist/TokenBalancesController.cjs.map +1 -1
  4. package/dist/TokenBalancesController.d.cts +17 -38
  5. package/dist/TokenBalancesController.d.cts.map +1 -1
  6. package/dist/TokenBalancesController.d.mts +17 -38
  7. package/dist/TokenBalancesController.d.mts.map +1 -1
  8. package/dist/TokenBalancesController.mjs +342 -378
  9. package/dist/TokenBalancesController.mjs.map +1 -1
  10. package/dist/TokenDetectionController.cjs +131 -207
  11. package/dist/TokenDetectionController.cjs.map +1 -1
  12. package/dist/TokenDetectionController.d.cts +38 -12
  13. package/dist/TokenDetectionController.d.cts.map +1 -1
  14. package/dist/TokenDetectionController.d.mts +38 -12
  15. package/dist/TokenDetectionController.d.mts.map +1 -1
  16. package/dist/TokenDetectionController.mjs +132 -208
  17. package/dist/TokenDetectionController.mjs.map +1 -1
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +1 -1
  20. package/dist/index.d.cts.map +1 -1
  21. package/dist/index.d.mts +1 -1
  22. package/dist/index.d.mts.map +1 -1
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/multi-chain-accounts-service/api-balance-fetcher.cjs +13 -2
  25. package/dist/multi-chain-accounts-service/api-balance-fetcher.cjs.map +1 -1
  26. package/dist/multi-chain-accounts-service/api-balance-fetcher.d.cts.map +1 -1
  27. package/dist/multi-chain-accounts-service/api-balance-fetcher.d.mts.map +1 -1
  28. package/dist/multi-chain-accounts-service/api-balance-fetcher.mjs +13 -2
  29. package/dist/multi-chain-accounts-service/api-balance-fetcher.mjs.map +1 -1
  30. package/dist/multi-chain-accounts-service/types.cjs.map +1 -1
  31. package/dist/multi-chain-accounts-service/types.d.cts +2 -1
  32. package/dist/multi-chain-accounts-service/types.d.cts.map +1 -1
  33. package/dist/multi-chain-accounts-service/types.d.mts +2 -1
  34. package/dist/multi-chain-accounts-service/types.d.mts.map +1 -1
  35. package/dist/multi-chain-accounts-service/types.mjs.map +1 -1
  36. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [94.0.0]
11
+
10
12
  ### Added
11
13
 
12
14
  - Add `firstPageOnly` and `signal` options to `NftDetectionController.detectNfts()` method to allow fetching only the first page of NFTs and aborting detection operations ([#7436](https://github.com/MetaMask/core/pull/7436))
@@ -14,6 +16,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
16
 
15
17
  ### Changed
16
18
 
19
+ - Bump `@metamask/transaction-controller` from `^62.4.0` to `^62.5.0` ([#7325](https://github.com/MetaMask/core/pull/7325))
20
+ - **BREAKING:** Replace Account API v2 with Account API v4 for token auto-detection ([#7408](https://github.com/MetaMask/core/pull/7408))
21
+ - `TokenDetectionController` now delegates token detection for Account API v4 supported chains to `TokenBalancesController`
22
+ - RPC-based detection continues to be used for chains not supported by Account API v4
23
+ - Added `forceRpc` parameter to `TokenDetectionController.detectTokens()` to force RPC-based detection
24
+ - `TokenDetectionController:detectTokens` action is now registered for cross-controller communication
25
+ - `TokenBalancesController` now triggers RPC-based token detection as fallback when Account API v4 fails or returns unprocessed chains ([#7408](https://github.com/MetaMask/core/pull/7408))
26
+ - Calls `TokenDetectionController:detectTokens` with `forceRpc: true` when fetcher fails
27
+ - Calls `TokenDetectionController:detectTokens` with `forceRpc: true` for any unprocessed chain IDs returned by the API
28
+ - Refactored `TokenBalancesController` for improved code organization and maintainability ([#7408](https://github.com/MetaMask/core/pull/7408))
17
29
  - Remove warning logs for failed chain balance fetches in RPC balance fetcher ([#7429](https://github.com/MetaMask/core/pull/7429))
18
30
  - Reduce severity of ERC721 metadata interface log from `console.error` to `console.warn` ([#7412](https://github.com/MetaMask/core/pull/7412))
19
31
  - Fixes [#24988](https://github.com/MetaMask/metamask-extension/issues/24988)
@@ -2403,7 +2415,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2403
2415
 
2404
2416
  - Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
2405
2417
 
2406
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@93.1.0...HEAD
2418
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@94.0.0...HEAD
2419
+ [94.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@93.1.0...@metamask/assets-controllers@94.0.0
2407
2420
  [93.1.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@93.0.0...@metamask/assets-controllers@93.1.0
2408
2421
  [93.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@92.0.0...@metamask/assets-controllers@93.0.0
2409
2422
  [92.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@91.0.0...@metamask/assets-controllers@92.0.0