@metamask-previews/assets-controller 2.2.0-preview-685dbf46b → 2.2.0-preview-bc00f2c
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.
- package/CHANGELOG.md +6 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
- Add `getStateForTransactionPay()` method and `AssetsController:getStateForTransactionPay` messenger action. Returns state in the legacy format expected by transaction-pay-controller (TokenBalancesController, AccountTrackerController, TokensController, TokenRatesController, CurrencyRateController shapes) so that when `useAssetsController` is true the transaction-pay-controller can use a single action instead of five separate getState calls. Also export `formatStateForTransactionPay` and types `TransactionPayLegacyFormat`, `AccountForLegacyFormat`, `LegacyToken` from utils ([#8094](https://github.com/MetaMask/core/pull/8094))
|
|
13
13
|
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Bump `@metamask/assets-controllers` from `^100.0.3` to `^100.1.0` ([#8107](https://github.com/MetaMask/core/pull/8107))
|
|
17
|
+
- Bump `@metamask/network-enablement-controller` from `^4.1.2` to `^4.2.0` ([#8107](https://github.com/MetaMask/core/pull/8107))
|
|
18
|
+
- Bump `@metamask/transaction-controller` from `^62.19.0` to `^62.20.0` ([#8104](https://github.com/MetaMask/core/pull/8104))
|
|
19
|
+
|
|
14
20
|
### Fixed
|
|
15
21
|
|
|
16
22
|
- `getStateForTransactionPay()` and `formatStateForTransactionPay()` now accept optional `usdToSelectedCurrencyRate` (rate: 1 USD = N units of selected currency). When `selectedCurrency` is not USD, passing this rate ensures `currencyRates` and `marketData` use correct user-currency vs USD values; previously they incorrectly used USD price for both
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/assets-controller",
|
|
3
|
-
"version": "2.2.0-preview-
|
|
3
|
+
"version": "2.2.0-preview-bc00f2c",
|
|
4
4
|
"description": "Tracks assets balances/prices and handles token detection across all digital assets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@ethersproject/abi": "^5.7.0",
|
|
53
53
|
"@ethersproject/providers": "^5.7.0",
|
|
54
54
|
"@metamask/account-tree-controller": "^4.1.1",
|
|
55
|
-
"@metamask/assets-controllers": "^100.0
|
|
55
|
+
"@metamask/assets-controllers": "^100.1.0",
|
|
56
56
|
"@metamask/base-controller": "^9.0.0",
|
|
57
57
|
"@metamask/client-controller": "^1.0.0",
|
|
58
58
|
"@metamask/controller-utils": "^11.19.0",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
"@metamask/keyring-snap-client": "^8.2.0",
|
|
64
64
|
"@metamask/messenger": "^0.3.0",
|
|
65
65
|
"@metamask/network-controller": "^30.0.0",
|
|
66
|
-
"@metamask/network-enablement-controller": "^4.
|
|
66
|
+
"@metamask/network-enablement-controller": "^4.2.0",
|
|
67
67
|
"@metamask/permission-controller": "^12.2.0",
|
|
68
68
|
"@metamask/polling-controller": "^16.0.3",
|
|
69
69
|
"@metamask/preferences-controller": "^22.1.0",
|
|
70
70
|
"@metamask/snaps-controllers": "^17.2.0",
|
|
71
71
|
"@metamask/snaps-utils": "^11.7.0",
|
|
72
|
-
"@metamask/transaction-controller": "^62.
|
|
72
|
+
"@metamask/transaction-controller": "^62.20.0",
|
|
73
73
|
"@metamask/utils": "^11.9.0",
|
|
74
74
|
"async-mutex": "^0.5.0",
|
|
75
75
|
"bignumber.js": "^9.1.2",
|