You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/assets-controllers/CHANGELOG.md
+73-4
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,72 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
- Updated `NftController` and `NftDetectionController` to eliminate the dependency on the current chain.
13
13
- All functions that previously accepted networkClientId as an optional parameter now require it as a mandatory parameter
14
+
- Refactor `TokensController` to remove reliance on a single selected network ([#5659](https://github.com/MetaMask/core/pull/5659))
15
+
-`TokensController` methods now require `networkClientId` as an explicit parameter.
16
+
- Token management logic is fully parameterized by `chainId`, allowing multi-chain token handling and improving reliability across network changes.
17
+
- Internal state updates and token metadata fetching are scoped to the corresponding `chainId`
18
+
19
+
### Removed
20
+
21
+
-**BREAKING:** Remove deprecated `chainId` instance property from `TokensController` ([#5659](https://github.com/MetaMask/core/pull/5659))
22
+
- All chain context is now derived from `networkClientId` at the method level.
23
+
24
+
## [59.0.0]
25
+
26
+
### Added
27
+
28
+
- Add support for 'Sonic Mainnet' chainId in the list of SUPPORTED_CHAIN_IDS. ([#5711](https://github.com/MetaMask/core/pull/5711))
29
+
- Add `SEI` network support ([#5610](https://github.com/MetaMask/core/pull/5610))
30
+
- Add token detection support
31
+
- Add NFT detection support
32
+
33
+
### Changed
34
+
35
+
- Refactor `TokenRatesController` to support processing multiple chains simultaneously ([#5645](https://github.com/MetaMask/core/pull/5645))
36
+
- The controller now supports an array of chain IDs rather than a single value, simplifying the polling process by allowing iteration over all chains in a single loop
37
+
- Refactor `AccountTrackerController` to support processing multiple chains simultaneously ([#5680](https://github.com/MetaMask/core/pull/5680))
38
+
- The controller now accepts an array of chain IDs instead of a single value, streamlining the polling process by iterating over all chains in one loop
39
+
40
+
### Removed
41
+
42
+
-**BREAKING:** Eliminate legacy network dependency handling in `TokenRatesController` ([#5645](https://github.com/MetaMask/core/pull/5645))
43
+
- We're no longer relying on the currently selected network.
44
+
-**BREAKING:** Eliminate legacy network dependency handling in `AccountTrackerController` ([#5680](https://github.com/MetaMask/core/pull/5680))
45
+
- We're no longer relying on the currently selected network.
46
+
47
+
## [58.0.0]
48
+
49
+
### Added
50
+
51
+
- Added `includeMarketData` to the params of the `OnAssetsConversion` handler ([#5639](https://github.com/MetaMask/core/pull/5639))
52
+
- Added `fetchHistoricalPricesForAsset` method to `MultichainAssetsRatesController` ([#5639](https://github.com/MetaMask/core/pull/5639))
53
+
- Added `getSelectedMultichainAccount` action to `multichainAssetsRatesController` ([#5639](https://github.com/MetaMask/core/pull/5639))
54
+
- Added new state field `historicalPrices` to `MultichainAssetsRatesController` ([#5639](https://github.com/MetaMask/core/pull/5639))
55
+
56
+
### Changed
57
+
58
+
-**BREAKING:** Bump `@metamask/snaps-controllers` peer dependency from ^9.19.0 to ^11.0.0 ([#5639](https://github.com/MetaMask/core/pull/5639))
59
+
-**BREAKING:** Bump `@metamask/providers` peer dependency from ^18.1.0 to ^21.0.0 ([#5639](https://github.com/MetaMask/core/pull/5639))
60
+
- Bump `@metamask/snaps-utils` from ^8.10.0 to ^9.2.0 ([#5639](https://github.com/MetaMask/core/pull/5639))
61
+
62
+
## [57.0.0]
63
+
64
+
### Added
65
+
66
+
- Add a new `DeFiPositionsController` that maintains an updated list of DeFi positions for EVM accounts ([#5400](https://github.com/MetaMask/core/pull/5400))
67
+
- Export `DeFiPositionsController`
68
+
- Export the following types
69
+
-`DeFiPositionsControllerState`
70
+
-`DeFiPositionsControllerActions`
71
+
-`DeFiPositionsControllerEvents`
72
+
-`DeFiPositionsControllerGetStateAction`
73
+
-`DeFiPositionsControllerStateChangeEvent`
74
+
-`DeFiPositionsControllerMessenger`
75
+
-`GroupedDeFiPositions`
76
+
77
+
### Changed
78
+
79
+
-**BREAKING** Add `@metamask/transaction-controller` as a peer dependency at `^54.0.0` ([#5400](https://github.com/MetaMask/core/pull/5400))
14
80
15
81
## [56.0.0]
16
82
@@ -26,9 +92,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
92
-**BREAKING:** Remove deprecated state fields scoped to the current chain ([#5310](https://github.com/MetaMask/core/pull/5310))
27
93
- This change removes the following state fields from the following controllers:
28
94
-`TokensControllerState`
29
-
-`detectedTokens` (replaced by `detectedTokensByChainId`)
30
-
-`ignoredTokens` (replaced by `ignoredTokensByChainId`)
31
-
-`tokens` (replaced by `tokensByChainId`)
95
+
-`detectedTokens` (replaced by `allDetectedTokens`)
96
+
-`ignoredTokens` (replaced by `allIgnoredTokens`)
97
+
-`tokens` (replaced by `allTokens`)
32
98
-`TokenListControllerState`
33
99
-`tokenList` (replaced by `tokensChainsCache`)
34
100
-`AccountTrackerControllerState`
@@ -1525,7 +1591,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1525
1591
1526
1592
- Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
Copy file name to clipboardExpand all lines: packages/assets-controllers/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ This package features the following controllers:
19
19
-[**CollectibleDetectionController**](src/CollectibleDetectionController.ts) keeps a periodically updated list of ERC-721 tokens assigned to the currently selected address.
20
20
-[**CollectiblesController**](src/CollectiblesController.ts) tracks ERC-721 and ERC-1155 tokens assigned to the currently selected address, using OpenSea to retrieve token information.
21
21
-[**CurrencyRateController**](src/CurrencyRateController.ts) keeps a periodically updated value of the exchange rate from the currently selected "native" currency to another (handling testnet tokens specially).
22
+
-[**DeFiPositionsController**](src/DeFiPositionsController/DeFiPositionsController.ts.ts) keeps a periodically updated value of the DeFi positions for the owner EVM addresses.
22
23
-[**RatesController**](src/RatesController/RatesController.ts) keeps a periodically updated value for the exchange rates for different cryptocurrencies. The difference between the `RatesController` and `CurrencyRateController` is that the second one is coupled to the `NetworksController` and is EVM specific, whilst the first one can handle different blockchain currencies like BTC and SOL.
23
24
-[**TokenBalancesController**](src/TokenBalancesController.ts) keeps a periodically updated set of balances for the current set of ERC-20 tokens.
24
25
-[**TokenDetectionController**](src/TokenDetectionController.ts) keeps a periodically updated list of ERC-20 tokens assigned to the currently selected address.
0 commit comments