@metamask-previews/assets-controller 6.2.0-preview-1614749c0 → 6.2.1-preview-d8ff44d

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 CHANGED
@@ -9,7 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Changed
11
11
 
12
+ - Bump `@metamask/keyring-internal-api` from `^10.1.1` to `^11.0.0` ([#8584](https://github.com/MetaMask/core/pull/8584))
13
+ - Bump `@metamask/messenger` from `^1.1.1` to `^1.2.0` ([#8632](https://github.com/MetaMask/core/pull/8632))
14
+ - Bump `@metamask/keyring-controller` from `^25.2.0` to `^25.3.0` ([#8634](https://github.com/MetaMask/core/pull/8634))
15
+ - Bump `@metamask/network-controller` from `^30.0.1` to `^30.1.0` ([#8636](https://github.com/MetaMask/core/pull/8636))
16
+ - Update `RpcDataSource` to prevent native `getEthBalance` fetching for Tempo chains ([#8638](https://github.com/MetaMask/core/pull/8638))
17
+
18
+ ## [6.2.1]
19
+
20
+ ### Changed
21
+
12
22
  - Bump `@metamask/transaction-controller` from `^64.4.0` to `^65.0.0` ([#8613](https://github.com/MetaMask/core/pull/8613))
23
+ - Bump `@metamask/assets-controllers` from `^104.3.0` to `^105.0.0` ([#8622](https://github.com/MetaMask/core/pull/8622))
13
24
 
14
25
  ## [6.2.0]
15
26
 
@@ -377,7 +388,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
377
388
  - Refactor `RpcDataSource` to delegate polling to `BalanceFetcher` and `TokenDetector` services ([#7709](https://github.com/MetaMask/core/pull/7709))
378
389
  - Refactor `BalanceFetcher` and `TokenDetector` to extend `StaticIntervalPollingControllerOnly` for independent polling management ([#7709](https://github.com/MetaMask/core/pull/7709))
379
390
 
380
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@6.2.0...HEAD
391
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@6.2.1...HEAD
392
+ [6.2.1]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@6.2.0...@metamask/assets-controller@6.2.1
381
393
  [6.2.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@6.1.0...@metamask/assets-controller@6.2.0
382
394
  [6.1.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@6.0.0...@metamask/assets-controller@6.1.0
383
395
  [6.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controller@5.0.1...@metamask/assets-controller@6.0.0
@@ -18,13 +18,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.AssetsController = exports.getDefaultAssetsControllerState = void 0;
19
19
  const base_controller_1 = require("@metamask/base-controller");
20
20
  const client_controller_1 = require("@metamask/client-controller");
21
- const controller_utils_1 = require("@metamask/controller-utils");
22
21
  const utils_1 = require("@metamask/utils");
23
22
  const async_mutex_1 = require("async-mutex");
24
23
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
25
24
  const lodash_1 = require("lodash");
26
25
  const AccountsApiDataSource_1 = require("./data-sources/AccountsApiDataSource.cjs");
27
26
  const BackendWebsocketDataSource_1 = require("./data-sources/BackendWebsocketDataSource.cjs");
27
+ const assets_1 = require("./data-sources/evm-rpc-services/utils/assets.cjs");
28
28
  const PriceDataSource_1 = require("./data-sources/PriceDataSource.cjs");
29
29
  const RpcDataSource_1 = require("./data-sources/RpcDataSource.cjs");
30
30
  const SnapDataSource_1 = require("./data-sources/SnapDataSource.cjs");
@@ -1505,7 +1505,7 @@ async function _AssetsController_executeMiddlewares(sources, request, initialRes
1505
1505
  return result;
1506
1506
  }, _AssetsController_shouldHideNativeToken = function _AssetsController_shouldHideNativeToken(chainId, metadata) {
1507
1507
  // Check if it's a chain that should skip native tokens
1508
- if (!controller_utils_1.CHAIN_IDS_WITH_NO_NATIVE_TOKEN.includes(chainId)) {
1508
+ if (!(0, assets_1.shouldSkipNativeForCaipChainId)(chainId)) {
1509
1509
  return false;
1510
1510
  }
1511
1511
  return metadata.type === 'native';