@metamask/assets-controllers 29.0.0 → 31.0.0
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 +105 -1
- package/README.md +29 -0
- package/dist/AccountTrackerController.js +2 -2
- package/dist/AccountTrackerController.mjs +1 -1
- package/dist/AssetsContractController.js +6 -6
- package/dist/AssetsContractController.mjs +5 -5
- package/dist/CurrencyRateController.js +4 -3
- package/dist/CurrencyRateController.mjs +3 -2
- package/dist/NftController.js +3 -3
- package/dist/NftController.mjs +4 -4
- package/dist/NftDetectionController.js +2 -2
- package/dist/NftDetectionController.mjs +1 -1
- package/dist/RatesController/RatesController.js +14 -0
- package/dist/RatesController/RatesController.mjs +14 -0
- package/dist/RatesController/index.js +13 -0
- package/dist/RatesController/index.js.map +1 -0
- package/dist/RatesController/index.mjs +13 -0
- package/dist/RatesController/index.mjs.map +1 -0
- package/dist/RatesController/types.js +1 -0
- package/dist/RatesController/types.js.map +1 -0
- package/dist/RatesController/types.mjs +1 -0
- package/dist/RatesController/types.mjs.map +1 -0
- package/dist/Standards/ERC20Standard.js +3 -3
- package/dist/Standards/ERC20Standard.mjs +2 -2
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.js +3 -3
- package/dist/Standards/NftStandards/ERC1155/ERC1155Standard.mjs +2 -2
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.js +3 -3
- package/dist/Standards/NftStandards/ERC721/ERC721Standard.mjs +2 -2
- package/dist/TokenBalancesController.js +2 -2
- package/dist/TokenBalancesController.mjs +1 -1
- package/dist/TokenDetectionController.js +3 -3
- package/dist/TokenDetectionController.mjs +2 -2
- package/dist/TokenListController.js +4 -4
- package/dist/TokenListController.mjs +3 -3
- package/dist/TokenRatesController.js +6 -4
- package/dist/TokenRatesController.mjs +5 -3
- package/dist/TokensController.js +6 -6
- package/dist/TokensController.mjs +5 -5
- package/dist/assetsUtil.js +2 -2
- package/dist/assetsUtil.mjs +1 -1
- package/dist/chunk-4AC3X2U5.js +771 -0
- package/dist/chunk-4AC3X2U5.js.map +1 -0
- package/dist/chunk-543CC74T.mjs +253 -0
- package/dist/chunk-543CC74T.mjs.map +1 -0
- package/dist/{chunk-NXGX7LZJ.mjs → chunk-5W5OO2Q5.mjs} +17 -6
- package/dist/chunk-5W5OO2Q5.mjs.map +1 -0
- package/dist/chunk-62T7RKU3.mjs +1265 -0
- package/dist/chunk-62T7RKU3.mjs.map +1 -0
- package/dist/{chunk-PAJTKWEC.mjs → chunk-65PB33TE.mjs} +1 -1
- package/dist/chunk-65PB33TE.mjs.map +1 -0
- package/dist/{chunk-6XOM7KOQ.mjs → chunk-73F3SN5O.mjs} +337 -270
- package/dist/chunk-73F3SN5O.mjs.map +1 -0
- package/dist/chunk-7K6PSEAA.js +1 -0
- package/dist/chunk-7K6PSEAA.js.map +1 -0
- package/dist/{chunk-RUE635TV.mjs → chunk-A2DDWXMS.mjs} +3 -3
- package/dist/{chunk-V46CHMOU.mjs → chunk-ASA5RLBY.mjs} +2 -2
- package/dist/chunk-B5YVX5IO.mjs +202 -0
- package/dist/chunk-B5YVX5IO.mjs.map +1 -0
- package/dist/{chunk-BO2WZDUM.js → chunk-B5YY22QQ.js} +3 -3
- package/dist/{chunk-QWACHXRH.mjs → chunk-B6W4CQOR.mjs} +2 -2
- package/dist/chunk-B6W4CQOR.mjs.map +1 -0
- package/dist/{chunk-3ZHN4GFT.js → chunk-BOTVAG4A.js} +5 -5
- package/dist/chunk-CGLUTXI7.js +1265 -0
- package/dist/chunk-CGLUTXI7.js.map +1 -0
- package/dist/chunk-CNKVITJO.mjs +66 -0
- package/dist/chunk-CNKVITJO.mjs.map +1 -0
- package/dist/{chunk-LLYYJY7H.mjs → chunk-D3K5MPMW.mjs} +2 -2
- package/dist/{chunk-OWTCG2N3.mjs → chunk-E4ECCGJV.mjs} +53 -39
- package/dist/chunk-E4ECCGJV.mjs.map +1 -0
- package/dist/{chunk-LRKDZWS6.js → chunk-ELSMS5S7.js} +3 -3
- package/dist/chunk-ELSMS5S7.js.map +1 -0
- package/dist/{chunk-V4ZO3F2S.js → chunk-GU53EI7A.js} +1 -1
- package/dist/chunk-GU53EI7A.js.map +1 -0
- package/dist/{chunk-I53XGBU3.js → chunk-HDI4L2DD.js} +5 -5
- package/dist/{chunk-5MRF7YPD.mjs → chunk-HLCGZGPA.mjs} +6 -6
- package/dist/chunk-HLCGZGPA.mjs.map +1 -0
- package/dist/{chunk-LD4GC7OR.js → chunk-IBK6AXPP.js} +8 -9
- package/dist/chunk-IBK6AXPP.js.map +1 -0
- package/dist/{chunk-DEQZ35QE.js → chunk-JUI3XNEF.js} +7 -7
- package/dist/chunk-JYHAAA6W.mjs +1 -0
- package/dist/chunk-JYHAAA6W.mjs.map +1 -0
- package/dist/{chunk-S7UA2DU7.mjs → chunk-LZ5ZGQEX.mjs} +2 -2
- package/dist/{chunk-D3PCUDTX.mjs → chunk-MR6EF4B7.mjs} +2 -2
- package/dist/{chunk-LS6R3HQL.js → chunk-NEXY7SE2.js} +2 -2
- package/dist/chunk-NEXY7SE2.js.map +1 -0
- package/dist/{chunk-OHSQRYVL.js → chunk-PYMUBJQX.js} +17 -6
- package/dist/chunk-PYMUBJQX.js.map +1 -0
- package/dist/{chunk-X5PLVMOQ.mjs → chunk-Q5JRBGWO.mjs} +2 -2
- package/dist/chunk-Q5JRBGWO.mjs.map +1 -0
- package/dist/chunk-QFDTOEYR.js +253 -0
- package/dist/chunk-QFDTOEYR.js.map +1 -0
- package/dist/{chunk-QHU4H6HP.js → chunk-QHWKLZUC.js} +7 -7
- package/dist/chunk-QHWKLZUC.js.map +1 -0
- package/dist/chunk-TTH3ES66.mjs +1 -0
- package/dist/chunk-TTH3ES66.mjs.map +1 -0
- package/dist/{chunk-OBOWNEJU.js → chunk-U3DJJN4X.js} +4 -4
- package/dist/{chunk-IOQX3VTD.js → chunk-UEDNQBJN.js} +56 -42
- package/dist/chunk-UEDNQBJN.js.map +1 -0
- package/dist/chunk-WB6KJX4N.js +66 -0
- package/dist/chunk-WB6KJX4N.js.map +1 -0
- package/dist/{chunk-4LY47RPI.mjs → chunk-WCCLSUOI.mjs} +8 -9
- package/dist/{chunk-4LY47RPI.mjs.map → chunk-WCCLSUOI.mjs.map} +1 -1
- package/dist/chunk-XC3SOOGC.js +1 -0
- package/dist/chunk-XC3SOOGC.js.map +1 -0
- package/dist/{chunk-OSEZFHQ3.mjs → chunk-Y35SM7TO.mjs} +19 -14
- package/dist/chunk-Y35SM7TO.mjs.map +1 -0
- package/dist/chunk-YIFA2HXH.js +202 -0
- package/dist/chunk-YIFA2HXH.js.map +1 -0
- package/dist/{chunk-4FMVFW2T.js → chunk-Z6TBQQE5.js} +20 -15
- package/dist/chunk-Z6TBQQE5.js.map +1 -0
- package/dist/crypto-compare-service/crypto-compare.js +10 -0
- package/dist/crypto-compare-service/crypto-compare.js.map +1 -0
- package/dist/crypto-compare-service/crypto-compare.mjs +10 -0
- package/dist/crypto-compare-service/crypto-compare.mjs.map +1 -0
- package/dist/crypto-compare-service/index.js +11 -0
- package/dist/crypto-compare-service/index.js.map +1 -0
- package/dist/crypto-compare-service/index.mjs +11 -0
- package/dist/crypto-compare-service/index.mjs.map +1 -0
- package/dist/index.js +24 -18
- package/dist/index.mjs +29 -23
- package/dist/token-prices-service/codefi-v2.js +4 -2
- package/dist/token-prices-service/codefi-v2.mjs +5 -3
- package/dist/token-prices-service/index.js +2 -2
- package/dist/token-prices-service/index.mjs +1 -1
- package/dist/token-service.js +3 -3
- package/dist/token-service.mjs +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/AccountTrackerController.d.ts +1 -1
- package/dist/types/AccountTrackerController.d.ts.map +1 -1
- package/dist/types/AssetsContractController.d.ts +1 -1
- package/dist/types/AssetsContractController.d.ts.map +1 -1
- package/dist/types/CurrencyRateController.d.ts +1 -1
- package/dist/types/CurrencyRateController.d.ts.map +1 -1
- package/dist/types/NftController.d.ts +65 -184
- package/dist/types/NftController.d.ts.map +1 -1
- package/dist/types/NftDetectionController.d.ts +34 -75
- package/dist/types/NftDetectionController.d.ts.map +1 -1
- package/dist/types/RatesController/RatesController.d.ts +44 -0
- package/dist/types/RatesController/RatesController.d.ts.map +1 -0
- package/dist/types/RatesController/index.d.ts +3 -0
- package/dist/types/RatesController/index.d.ts.map +1 -0
- package/dist/types/RatesController/types.d.ts +100 -0
- package/dist/types/RatesController/types.d.ts.map +1 -0
- package/dist/types/TokenRatesController.d.ts +32 -10
- package/dist/types/TokenRatesController.d.ts.map +1 -1
- package/dist/types/TokensController.d.ts +27 -131
- package/dist/types/TokensController.d.ts.map +1 -1
- package/dist/types/crypto-compare-service/crypto-compare.d.ts +22 -0
- package/dist/types/crypto-compare-service/crypto-compare.d.ts.map +1 -0
- package/dist/types/crypto-compare-service/index.d.ts +2 -0
- package/dist/types/crypto-compare-service/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/token-prices-service/abstract-token-prices-service.d.ts +18 -0
- package/dist/types/token-prices-service/abstract-token-prices-service.d.ts.map +1 -1
- package/dist/types/token-prices-service/codefi-v2.d.ts +7 -0
- package/dist/types/token-prices-service/codefi-v2.d.ts.map +1 -1
- package/dist/types/token-service.d.ts +1 -1
- package/dist/types/token-service.d.ts.map +1 -1
- package/package.json +14 -14
- package/dist/chunk-4FMVFW2T.js.map +0 -1
- package/dist/chunk-5MRF7YPD.mjs.map +0 -1
- package/dist/chunk-6XOM7KOQ.mjs.map +0 -1
- package/dist/chunk-ASFD56OL.mjs +0 -235
- package/dist/chunk-ASFD56OL.mjs.map +0 -1
- package/dist/chunk-DYH5P3VY.js +0 -35
- package/dist/chunk-DYH5P3VY.js.map +0 -1
- package/dist/chunk-IOQX3VTD.js.map +0 -1
- package/dist/chunk-KM3J4DO6.js +0 -1182
- package/dist/chunk-KM3J4DO6.js.map +0 -1
- package/dist/chunk-LD4GC7OR.js.map +0 -1
- package/dist/chunk-LRKDZWS6.js.map +0 -1
- package/dist/chunk-LS6R3HQL.js.map +0 -1
- package/dist/chunk-NXGX7LZJ.mjs.map +0 -1
- package/dist/chunk-OHSQRYVL.js.map +0 -1
- package/dist/chunk-OSEZFHQ3.mjs.map +0 -1
- package/dist/chunk-OWTCG2N3.mjs.map +0 -1
- package/dist/chunk-PAJTKWEC.mjs.map +0 -1
- package/dist/chunk-PWZE6KJV.mjs +0 -35
- package/dist/chunk-PWZE6KJV.mjs.map +0 -1
- package/dist/chunk-QHU4H6HP.js.map +0 -1
- package/dist/chunk-QWACHXRH.mjs.map +0 -1
- package/dist/chunk-S6CZP74C.mjs +0 -1182
- package/dist/chunk-S6CZP74C.mjs.map +0 -1
- package/dist/chunk-SOK5YX7I.js +0 -704
- package/dist/chunk-SOK5YX7I.js.map +0 -1
- package/dist/chunk-V4ZO3F2S.js.map +0 -1
- package/dist/chunk-X2MMIBYW.js +0 -235
- package/dist/chunk-X2MMIBYW.js.map +0 -1
- package/dist/chunk-X5PLVMOQ.mjs.map +0 -1
- package/dist/crypto-compare.js +0 -8
- package/dist/crypto-compare.mjs +0 -8
- package/dist/types/crypto-compare.d.ts +0 -13
- package/dist/types/crypto-compare.d.ts.map +0 -1
- /package/dist/{crypto-compare.js.map → RatesController/RatesController.js.map} +0 -0
- /package/dist/{crypto-compare.mjs.map → RatesController/RatesController.mjs.map} +0 -0
- /package/dist/{chunk-RUE635TV.mjs.map → chunk-A2DDWXMS.mjs.map} +0 -0
- /package/dist/{chunk-V46CHMOU.mjs.map → chunk-ASA5RLBY.mjs.map} +0 -0
- /package/dist/{chunk-BO2WZDUM.js.map → chunk-B5YY22QQ.js.map} +0 -0
- /package/dist/{chunk-3ZHN4GFT.js.map → chunk-BOTVAG4A.js.map} +0 -0
- /package/dist/{chunk-LLYYJY7H.mjs.map → chunk-D3K5MPMW.mjs.map} +0 -0
- /package/dist/{chunk-I53XGBU3.js.map → chunk-HDI4L2DD.js.map} +0 -0
- /package/dist/{chunk-DEQZ35QE.js.map → chunk-JUI3XNEF.js.map} +0 -0
- /package/dist/{chunk-S7UA2DU7.mjs.map → chunk-LZ5ZGQEX.mjs.map} +0 -0
- /package/dist/{chunk-D3PCUDTX.mjs.map → chunk-MR6EF4B7.mjs.map} +0 -0
- /package/dist/{chunk-OBOWNEJU.js.map → chunk-U3DJJN4X.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,108 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [31.0.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **BREAKING:** The `NftDetectionController` now takes a `messenger`, which can be used for communication ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
15
|
+
- This messenger must allow the following actions `ApprovalController:addRequest`, `NetworkController:getState`, `NetworkController:getNetworkClientById`, and `PreferencesController:getState`, and must allow the events `PreferencesController:stateChange` and `NetworkController:stateChange`
|
|
16
|
+
- Add `NftDetectionControllerMessenger` type ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
17
|
+
- Add `NftControllerGetStateAction`, `NftControllerActions`, `NftControllerStateChangeEvent`, and `NftControllerEvents` types ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
18
|
+
- Add `NftController:getState` and `NftController:stateChange` as an available action and event to the `NftController` messenger ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **BREAKING:** Change `TokensController` to inherit from `BaseController` rather than `BaseControllerV1` ([#4304](https://github.com/MetaMask/core/pull/4304))
|
|
23
|
+
- The constructor now takes a single options object rather than three arguments, and all properties in `config` are now part of options.
|
|
24
|
+
- **BREAKING:** Rename `TokensState` type to `TokensControllerState` ([#4304](https://github.com/MetaMask/core/pull/4304))
|
|
25
|
+
- **BREAKING:** Make all `TokensController` methods and properties starting with `_` private ([#4304](https://github.com/MetaMask/core/pull/4304))
|
|
26
|
+
- **BREAKING:** Convert `Token` from `interface` to `type` ([#4304](https://github.com/MetaMask/core/pull/4304))
|
|
27
|
+
- **BREAKING:** Replace `balanceError` property in `Token` with `hasBalanceError`; update `TokenBalancesController` so that it no longer captures the error resulting from getting the balance of an ERC-20 token ([#4304](https://github.com/MetaMask/core/pull/4304))
|
|
28
|
+
- **BREAKING:** Change `NftDetectionController` to inherit from `StaticIntervalPollingController` rather than `StaticIntervalPollingControllerV1` ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
29
|
+
- The constructor now takes a single options object rather than three arguments, and all properties in `config` are now part of options.
|
|
30
|
+
- **BREAKING:** Convert `ApiNft`, `ApiNftContract`, `ApiNftLastSale`, and `ApiNftCreator` from `interface` to `type` ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
31
|
+
- **BREAKING:** Change `NftController` to inherit from `BaseController` rather than `BaseControllerV1` ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
32
|
+
- The constructor now takes a single options object rather than three arguments, and all properties in `config` are now part of options.
|
|
33
|
+
- **BREAKING:** Convert `Nft`, `NftContract`, and `NftMetadata` from `interface` to `type` ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
34
|
+
- **BREAKING:** Rename `NftState` to `NftControllerState`, and convert to `type` ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
35
|
+
- **BREAKING:** Rename `getDefaultNftState` to `getDefaultNftControllerState` ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
36
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/accounts-controller` to `^15.0.0` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
37
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/approval-controller` to `^6.0.2` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
38
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/keyring-controller` to `^16.1.0` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
39
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/network-controller` to `^18.1.3` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
40
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/preferences-controller` to `^12.0.0` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
41
|
+
- Change `NftDetectionController` method `detectNfts` so that `userAddress` option is optional ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
42
|
+
- This will default to the currently selected address as kept by PreferencesController.
|
|
43
|
+
- Bump `async-mutex` to `^0.5.0` ([#4335](https://github.com/MetaMask/core/pull/4335))
|
|
44
|
+
- Bump `@metamask/polling-controller` to `^7.0.0` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
45
|
+
|
|
46
|
+
### Removed
|
|
47
|
+
|
|
48
|
+
- **BREAKING:** Remove `config` property and `configure` method from `TokensController` ([#4304](https://github.com/MetaMask/core/pull/4304))
|
|
49
|
+
- The `TokensController` now takes a single options object which can be used for configuration, and configuration is now kept internally.
|
|
50
|
+
- **BREAKING:** Remove `notify`, `subscribe`, and `unsubscribe` methods from `TokensController` ([#4304](https://github.com/MetaMask/core/pull/4304))
|
|
51
|
+
- Use the controller messenger for subscribing to and publishing events instead.
|
|
52
|
+
- **BREAKING:** Remove `TokensConfig` type ([#4304](https://github.com/MetaMask/core/pull/4304))
|
|
53
|
+
- These properties have been merged into the options that `TokensController` takes.
|
|
54
|
+
- **BREAKING:** Remove `config` property and `configure` method from `TokensController` ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
55
|
+
- `TokensController` now takes a single options object which can be used for configuration, and configuration is now kept internally.
|
|
56
|
+
- **BREAKING:** Remove `notify`, `subscribe`, and `unsubscribe` methods from `NftDetectionController` ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
57
|
+
- Use the controller messenger for subscribing to and publishing events instead.
|
|
58
|
+
- **BREAKING:** Remove `chainId` as a `NftDetectionController` constructor argument ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
59
|
+
- The controller will now read the `networkClientId` from the NetworkController state through the messenger when needed.
|
|
60
|
+
- **BREAKING:** Remove `getNetworkClientById` as a `NftDetectionController` constructor argument ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
61
|
+
- The controller will now call `NetworkController:getNetworkClientId` through the messenger object.
|
|
62
|
+
- **BREAKING:** Remove `onPreferencesStateChange` as a `NftDetectionController` constructor argument ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
63
|
+
- The controller will now call `PreferencesController:stateChange` through the messenger object.
|
|
64
|
+
- **BREAKING:** Remove `onNetworkStateChange` as a `NftDetectionController` constructor argument ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
65
|
+
- The controller will now read the `networkClientId` from the NetworkController state through the messenger when needed.
|
|
66
|
+
- **BREAKING:** Remove `getOpenSeaApiKey` as a `NftDetectionController` constructor argument ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
67
|
+
- This was never used.
|
|
68
|
+
- **BREAKING:** Remove `getNftApi` as a `NftDetectionController` constructor argument ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
69
|
+
- This was never used.
|
|
70
|
+
- **BREAKING:** Remove `NftDetectionConfig` type ([#4312](https://github.com/MetaMask/core/pull/4312))
|
|
71
|
+
- These properties have been merged into the options that `NftDetectionController` takes.
|
|
72
|
+
- **BREAKING:** Remove `config` property and `configure` method from `NftController` ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
73
|
+
- `NftController` now takes a single options object which can be used for configuration, and configuration is now kept internally.
|
|
74
|
+
- **BREAKING:** Remove `notify`, `subscribe`, and `unsubscribe` methods from `NftController` ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
75
|
+
- Use the controller messenger for subscribing to and publishing events instead.
|
|
76
|
+
- **BREAKING:** Remove `onPreferencesStateChange` as a `NftController` constructor argument ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
77
|
+
- The controller will now call `PreferencesController:stateChange` through the messenger object.
|
|
78
|
+
- **BREAKING:** Remove `onNetworkStateChange` as a `NftController` constructor argument ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
79
|
+
- The controller will now call `NetworkController:stateChange` through the messenger object.
|
|
80
|
+
- **BREAKING:** Remove `NftConfig` type ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
81
|
+
- These properties have been merged into the options that `NftController` takes.
|
|
82
|
+
- **BREAKING:** Remove `config` property and `configure` method from `NftController` ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
83
|
+
- `NftController` now takes a single options object which can be used for configuration, and configuration is now kept internally.
|
|
84
|
+
- **BREAKING:** Remove `hub` property from `NftController` ([#4310](https://github.com/MetaMask/core/pull/4310))
|
|
85
|
+
- Use the controller messenger for subscribing to and publishing events instead.
|
|
86
|
+
- **BREAKING:** Modify `TokenListController` so that tokens fetched from the API and stored in state will no longer have `storage` and `erc20` properties ([#4235](https://github.com/MetaMask/core/pull/4235))
|
|
87
|
+
- These properties were never officially supported, but they were present in state anyway.
|
|
88
|
+
|
|
89
|
+
## [30.0.0]
|
|
90
|
+
|
|
91
|
+
### Added
|
|
92
|
+
|
|
93
|
+
- Adds a new field `marketData` to the state of `TokenRatesController` ([#4206](https://github.com/MetaMask/core/pull/4206))
|
|
94
|
+
- Adds a new `RatesController` to manage prices for non-EVM blockchains ([#4242](https://github.com/MetaMask/core/pull/4242))
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
|
|
98
|
+
- **BREAKING:** Changed price and token API endpoints from `*.metafi.codefi.network` to `*.api.cx.metamask.io` ([#4301](https://github.com/MetaMask/core/pull/4301))
|
|
99
|
+
- When fetching token list for Linea Mainnet, use `occurrenceFloor` parameter of 1 instead of 3, and filter tokens to those with a `lineaTeam` aggregator or more than 3 aggregators ([#4253](https://github.com/MetaMask/core/pull/4253))
|
|
100
|
+
- **BREAKING:** The NftController messenger must now allow the `NetworkController:getNetworkClientById` action ([#4305](https://github.com/MetaMask/core/pull/4305))
|
|
101
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/network-controller` to `^18.1.2` ([#4332](https://github.com/MetaMask/core/pull/4332))
|
|
102
|
+
- Bump `@metamask/keyring-api` to `^6.1.1` ([#4262](https://github.com/MetaMask/core/pull/4262))
|
|
103
|
+
|
|
104
|
+
### Removed
|
|
105
|
+
|
|
106
|
+
- **BREAKING:** Removed `contractExchangeRates` and `contractExchangeRatesByChainId` from the state of `TokenRatesController` ([#4206](https://github.com/MetaMask/core/pull/4206))
|
|
107
|
+
|
|
108
|
+
### Fixed
|
|
109
|
+
|
|
110
|
+
- Only update NFT state when metadata actually changes ([#4143](https://github.com/MetaMask/core/pull/4143))
|
|
111
|
+
|
|
10
112
|
## [29.0.0]
|
|
11
113
|
|
|
12
114
|
### Added
|
|
@@ -773,7 +875,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
773
875
|
|
|
774
876
|
- Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
|
|
775
877
|
|
|
776
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@
|
|
878
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@31.0.0...HEAD
|
|
879
|
+
[31.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@30.0.0...@metamask/assets-controllers@31.0.0
|
|
880
|
+
[30.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@29.0.0...@metamask/assets-controllers@30.0.0
|
|
777
881
|
[29.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@28.0.0...@metamask/assets-controllers@29.0.0
|
|
778
882
|
[28.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@27.2.0...@metamask/assets-controllers@28.0.0
|
|
779
883
|
[27.2.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@27.1.0...@metamask/assets-controllers@27.2.0
|
package/README.md
CHANGED
|
@@ -19,12 +19,41 @@ 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
|
+
- [**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.
|
|
22
23
|
- [**TokenBalancesController**](src/TokenBalancesController.ts) keeps a periodically updated set of balances for the current set of ERC-20 tokens.
|
|
23
24
|
- [**TokenDetectionController**](src/TokenDetectionController.ts) keeps a periodically updated list of ERC-20 tokens assigned to the currently selected address.
|
|
24
25
|
- [**TokenListController**](src/TokenListController.ts) uses the MetaSwap API to keep a periodically updated list of known ERC-20 tokens along with their metadata.
|
|
25
26
|
- [**TokenRatesController**](src/TokenRatesController.ts) keeps a periodically updated list of exchange rates for known ERC-20 tokens relative to the currently selected native currency.
|
|
26
27
|
- [**TokensController**](src/TokensController.ts) stores the ERC-20 and ERC-721 tokens, along with their metadata, that are listed in the wallet under the currently selected address on the currently selected chain.
|
|
27
28
|
|
|
29
|
+
### `RatesController`
|
|
30
|
+
|
|
31
|
+
The `RatesController` is responsible for managing the state related to cryptocurrency exchange rates and periodically updating these rates by fetching new data from an external API.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
// Initialize the RatesController
|
|
35
|
+
const ratesController = new RatesController({
|
|
36
|
+
interval: 180000,
|
|
37
|
+
includeUsdRate: true,
|
|
38
|
+
state: {
|
|
39
|
+
fiatCurrency: 'eur',
|
|
40
|
+
cryptocurrencies: [Cryptocurrency.Btc],
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// Start the polling process
|
|
45
|
+
ratesController.start().then(() => {
|
|
46
|
+
console.log('Polling for exchange rates has started.');
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// Stop the polling process after some time
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
ratesController.stop().then(() => {
|
|
52
|
+
console.log('Polling for exchange rates has stopped.');
|
|
53
|
+
});
|
|
54
|
+
}, 300000);
|
|
55
|
+
```
|
|
56
|
+
|
|
28
57
|
## Contributing
|
|
29
58
|
|
|
30
59
|
This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/core#readme).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGU53EI7Ajs = require('./chunk-GU53EI7A.js');
|
|
5
5
|
require('./chunk-Z4BLTVTB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.AccountTrackerController =
|
|
9
|
+
exports.AccountTrackerController = _chunkGU53EI7Ajs.AccountTrackerController; exports.default = _chunkGU53EI7Ajs.AccountTrackerController_default;
|
|
10
10
|
//# sourceMappingURL=AccountTrackerController.js.map
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
6
|
+
var _chunkQHWKLZUCjs = require('./chunk-QHWKLZUC.js');
|
|
7
|
+
require('./chunk-U3DJJN4X.js');
|
|
8
|
+
require('./chunk-B5YY22QQ.js');
|
|
9
|
+
require('./chunk-BOTVAG4A.js');
|
|
10
|
+
require('./chunk-NEXY7SE2.js');
|
|
11
11
|
require('./chunk-Z4BLTVTB.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.AssetsContractController =
|
|
17
|
+
exports.AssetsContractController = _chunkQHWKLZUCjs.AssetsContractController; exports.MISSING_PROVIDER_ERROR = _chunkQHWKLZUCjs.MISSING_PROVIDER_ERROR; exports.SINGLE_CALL_BALANCES_ADDRESS_BY_CHAINID = _chunkQHWKLZUCjs.SINGLE_CALL_BALANCES_ADDRESS_BY_CHAINID; exports.default = _chunkQHWKLZUCjs.AssetsContractController_default;
|
|
18
18
|
//# sourceMappingURL=AssetsContractController.js.map
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
AssetsContractController_default,
|
|
4
4
|
MISSING_PROVIDER_ERROR,
|
|
5
5
|
SINGLE_CALL_BALANCES_ADDRESS_BY_CHAINID
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-HLCGZGPA.mjs";
|
|
7
|
+
import "./chunk-ASA5RLBY.mjs";
|
|
8
|
+
import "./chunk-D3K5MPMW.mjs";
|
|
9
|
+
import "./chunk-LZ5ZGQEX.mjs";
|
|
10
|
+
import "./chunk-Q5JRBGWO.mjs";
|
|
11
11
|
import "./chunk-XUI43LEZ.mjs";
|
|
12
12
|
export {
|
|
13
13
|
AssetsContractController,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkELSMS5S7js = require('./chunk-ELSMS5S7.js');
|
|
5
|
+
require('./chunk-7K6PSEAA.js');
|
|
6
|
+
require('./chunk-WB6KJX4N.js');
|
|
6
7
|
require('./chunk-Z4BLTVTB.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
exports.CurrencyRateController =
|
|
11
|
+
exports.CurrencyRateController = _chunkELSMS5S7js.CurrencyRateController; exports.default = _chunkELSMS5S7js.CurrencyRateController_default;
|
|
11
12
|
//# sourceMappingURL=CurrencyRateController.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CurrencyRateController,
|
|
3
3
|
CurrencyRateController_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-B6W4CQOR.mjs";
|
|
5
|
+
import "./chunk-TTH3ES66.mjs";
|
|
6
|
+
import "./chunk-CNKVITJO.mjs";
|
|
6
7
|
import "./chunk-XUI43LEZ.mjs";
|
|
7
8
|
export {
|
|
8
9
|
CurrencyRateController,
|
package/dist/NftController.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkCGLUTXI7js = require('./chunk-CGLUTXI7.js');
|
|
6
6
|
require('./chunk-RGHTNZQ6.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-NEXY7SE2.js');
|
|
8
8
|
require('./chunk-Z4BLTVTB.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.NftController =
|
|
13
|
+
exports.NftController = _chunkCGLUTXI7js.NftController; exports.default = _chunkCGLUTXI7js.NftController_default; exports.getDefaultNftControllerState = _chunkCGLUTXI7js.getDefaultNftControllerState;
|
|
14
14
|
//# sourceMappingURL=NftController.js.map
|
package/dist/NftController.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NftController,
|
|
3
3
|
NftController_default,
|
|
4
|
-
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
getDefaultNftControllerState
|
|
5
|
+
} from "./chunk-62T7RKU3.mjs";
|
|
6
6
|
import "./chunk-CP3HC7AQ.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-Q5JRBGWO.mjs";
|
|
8
8
|
import "./chunk-XUI43LEZ.mjs";
|
|
9
9
|
export {
|
|
10
10
|
NftController,
|
|
11
11
|
NftController_default as default,
|
|
12
|
-
|
|
12
|
+
getDefaultNftControllerState
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=NftController.mjs.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkQFDTOEYRjs = require('./chunk-QFDTOEYR.js');
|
|
6
6
|
require('./chunk-RGHTNZQ6.js');
|
|
7
7
|
require('./chunk-Z4BLTVTB.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.BlockaidResultType =
|
|
12
|
+
exports.BlockaidResultType = _chunkQFDTOEYRjs.BlockaidResultType; exports.NftDetectionController = _chunkQFDTOEYRjs.NftDetectionController; exports.default = _chunkQFDTOEYRjs.NftDetectionController_default;
|
|
13
13
|
//# sourceMappingURL=NftDetectionController.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkYIFA2HXHjs = require('../chunk-YIFA2HXH.js');
|
|
6
|
+
require('../chunk-7K6PSEAA.js');
|
|
7
|
+
require('../chunk-WB6KJX4N.js');
|
|
8
|
+
require('../chunk-Z4BLTVTB.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.Cryptocurrency = _chunkYIFA2HXHjs.Cryptocurrency; exports.RatesController = _chunkYIFA2HXHjs.RatesController; exports.name = _chunkYIFA2HXHjs.name;
|
|
14
|
+
//# sourceMappingURL=RatesController.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Cryptocurrency,
|
|
3
|
+
RatesController,
|
|
4
|
+
name
|
|
5
|
+
} from "../chunk-B5YVX5IO.mjs";
|
|
6
|
+
import "../chunk-TTH3ES66.mjs";
|
|
7
|
+
import "../chunk-CNKVITJO.mjs";
|
|
8
|
+
import "../chunk-XUI43LEZ.mjs";
|
|
9
|
+
export {
|
|
10
|
+
Cryptocurrency,
|
|
11
|
+
RatesController,
|
|
12
|
+
name
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=RatesController.mjs.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-XC3SOOGC.js');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkYIFA2HXHjs = require('../chunk-YIFA2HXH.js');
|
|
6
|
+
require('../chunk-7K6PSEAA.js');
|
|
7
|
+
require('../chunk-WB6KJX4N.js');
|
|
8
|
+
require('../chunk-Z4BLTVTB.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.Cryptocurrency = _chunkYIFA2HXHjs.Cryptocurrency; exports.RatesController = _chunkYIFA2HXHjs.RatesController;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "../chunk-JYHAAA6W.mjs";
|
|
2
|
+
import {
|
|
3
|
+
Cryptocurrency,
|
|
4
|
+
RatesController
|
|
5
|
+
} from "../chunk-B5YVX5IO.mjs";
|
|
6
|
+
import "../chunk-TTH3ES66.mjs";
|
|
7
|
+
import "../chunk-CNKVITJO.mjs";
|
|
8
|
+
import "../chunk-XUI43LEZ.mjs";
|
|
9
|
+
export {
|
|
10
|
+
Cryptocurrency,
|
|
11
|
+
RatesController
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkB5YY22QQjs = require('../chunk-B5YY22QQ.js');
|
|
4
|
+
require('../chunk-NEXY7SE2.js');
|
|
5
5
|
require('../chunk-Z4BLTVTB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.ERC20Standard =
|
|
8
|
+
exports.ERC20Standard = _chunkB5YY22QQjs.ERC20Standard;
|
|
9
9
|
//# sourceMappingURL=ERC20Standard.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkBOTVAG4Ajs = require('../../../chunk-BOTVAG4A.js');
|
|
4
|
+
require('../../../chunk-NEXY7SE2.js');
|
|
5
5
|
require('../../../chunk-Z4BLTVTB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.ERC1155Standard =
|
|
8
|
+
exports.ERC1155Standard = _chunkBOTVAG4Ajs.ERC1155Standard;
|
|
9
9
|
//# sourceMappingURL=ERC1155Standard.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkU3DJJN4Xjs = require('../../../chunk-U3DJJN4X.js');
|
|
4
|
+
require('../../../chunk-NEXY7SE2.js');
|
|
5
5
|
require('../../../chunk-Z4BLTVTB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.ERC721Standard =
|
|
8
|
+
exports.ERC721Standard = _chunkU3DJJN4Xjs.ERC721Standard;
|
|
9
9
|
//# sourceMappingURL=ERC721Standard.js.map
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIBK6AXPPjs = require('./chunk-IBK6AXPP.js');
|
|
6
6
|
require('./chunk-Z4BLTVTB.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.TokenBalancesController =
|
|
11
|
+
exports.TokenBalancesController = _chunkIBK6AXPPjs.TokenBalancesController; exports.default = _chunkIBK6AXPPjs.TokenBalancesController_default; exports.getDefaultTokenBalancesState = _chunkIBK6AXPPjs.getDefaultTokenBalancesState;
|
|
12
12
|
//# sourceMappingURL=TokenBalancesController.js.map
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkHDI4L2DDjs = require('./chunk-HDI4L2DD.js');
|
|
8
|
+
require('./chunk-NEXY7SE2.js');
|
|
9
9
|
require('./chunk-Z4BLTVTB.js');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,5 +13,5 @@ require('./chunk-Z4BLTVTB.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.STATIC_MAINNET_TOKEN_LIST =
|
|
16
|
+
exports.STATIC_MAINNET_TOKEN_LIST = _chunkHDI4L2DDjs.STATIC_MAINNET_TOKEN_LIST; exports.TokenDetectionController = _chunkHDI4L2DDjs.TokenDetectionController; exports.controllerName = _chunkHDI4L2DDjs.controllerName; exports.default = _chunkHDI4L2DDjs.TokenDetectionController_default; exports.isEqualCaseInsensitive = _chunkHDI4L2DDjs.isEqualCaseInsensitive;
|
|
17
17
|
//# sourceMappingURL=TokenDetectionController.js.map
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
TokenDetectionController_default,
|
|
5
5
|
controllerName,
|
|
6
6
|
isEqualCaseInsensitive
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-MR6EF4B7.mjs";
|
|
8
|
+
import "./chunk-Q5JRBGWO.mjs";
|
|
9
9
|
import "./chunk-XUI43LEZ.mjs";
|
|
10
10
|
export {
|
|
11
11
|
STATIC_MAINNET_TOKEN_LIST,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var _chunkJUI3XNEFjs = require('./chunk-JUI3XNEF.js');
|
|
6
|
+
require('./chunk-PYMUBJQX.js');
|
|
7
|
+
require('./chunk-NEXY7SE2.js');
|
|
8
8
|
require('./chunk-Z4BLTVTB.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.TokenListController =
|
|
13
|
+
exports.TokenListController = _chunkJUI3XNEFjs.TokenListController; exports.default = _chunkJUI3XNEFjs.TokenListController_default; exports.getDefaultTokenListState = _chunkJUI3XNEFjs.getDefaultTokenListState;
|
|
14
14
|
//# sourceMappingURL=TokenListController.js.map
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
TokenListController,
|
|
3
3
|
TokenListController_default,
|
|
4
4
|
getDefaultTokenListState
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-A2DDWXMS.mjs";
|
|
6
|
+
import "./chunk-5W5OO2Q5.mjs";
|
|
7
|
+
import "./chunk-Q5JRBGWO.mjs";
|
|
8
8
|
import "./chunk-XUI43LEZ.mjs";
|
|
9
9
|
export {
|
|
10
10
|
TokenListController,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkUEDNQBJNjs = require('./chunk-UEDNQBJN.js');
|
|
5
|
+
require('./chunk-Z6TBQQE5.js');
|
|
6
|
+
require('./chunk-7K6PSEAA.js');
|
|
7
|
+
require('./chunk-WB6KJX4N.js');
|
|
8
|
+
require('./chunk-NEXY7SE2.js');
|
|
7
9
|
require('./chunk-Z4BLTVTB.js');
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
exports.TokenRatesController =
|
|
13
|
+
exports.TokenRatesController = _chunkUEDNQBJNjs.TokenRatesController; exports.default = _chunkUEDNQBJNjs.TokenRatesController_default;
|
|
12
14
|
//# sourceMappingURL=TokenRatesController.js.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TokenRatesController,
|
|
3
3
|
TokenRatesController_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-E4ECCGJV.mjs";
|
|
5
|
+
import "./chunk-Y35SM7TO.mjs";
|
|
6
|
+
import "./chunk-TTH3ES66.mjs";
|
|
7
|
+
import "./chunk-CNKVITJO.mjs";
|
|
8
|
+
import "./chunk-Q5JRBGWO.mjs";
|
|
7
9
|
import "./chunk-XUI43LEZ.mjs";
|
|
8
10
|
export {
|
|
9
11
|
TokenRatesController,
|