@metamask-previews/assets-controller 10.1.0-preview-d52465c2b → 10.1.0-preview-34f2bcbf7

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
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Changed
11
+
12
+ - Bump `@metamask/transaction-controller` from `^68.2.2` to `^68.3.0` ([#9421](https://github.com/MetaMask/core/pull/9421))
13
+ - Bump `@metamask/keyring-api` from `^23.3.0` to `^23.5.0` ([#9390](https://github.com/MetaMask/core/pull/9390))
14
+ - Bump `@metamask/keyring-snap-client` from `^9.0.2` to `^9.2.0` ([#9390](https://github.com/MetaMask/core/pull/9390))
15
+
10
16
  ## [10.1.0]
11
17
 
12
18
  ### Added
@@ -2107,25 +2107,19 @@ async function _AssetsController_executeMiddlewares(sources, request, initialRes
2107
2107
  // EVENT HANDLERS
2108
2108
  // ============================================================================
2109
2109
  async function _AssetsController_handleAccountGroupChanged() {
2110
- const gutoStart = Date.now();
2111
- console.log('[GUTO PERFORMANCE LOG] AssetsController.#handleAccountGroupChanged START');
2112
2110
  const accounts = __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_getSelectedAccounts).call(this);
2113
2111
  log('Account group changed', {
2114
2112
  accountCount: accounts.length,
2115
2113
  accountIds: accounts.map((a) => a.id),
2116
2114
  });
2117
2115
  __classPrivateFieldSet(this, _AssetsController_lastKnownAccountIds, new Set(accounts.map((a) => a.id)), "f");
2118
- const gutoMutexStart = Date.now();
2119
2116
  const releaseLock = await __classPrivateFieldGet(this, _AssetsController_accountRefreshMutex, "f").acquire();
2120
- console.log(`[GUTO PERFORMANCE LOG] AssetsController accountRefreshMutex wait took ${Date.now() - gutoMutexStart}ms`);
2121
2117
  try {
2122
2118
  if (accounts.length > 0) {
2123
- const gutoGetAssetsStart = Date.now();
2124
2119
  await this.getAssets(accounts, {
2125
2120
  chainIds: [...__classPrivateFieldGet(this, _AssetsController_enabledChains, "f")],
2126
2121
  forceUpdate: true,
2127
2122
  });
2128
- console.log(`[GUTO PERFORMANCE LOG] AssetsController.getAssets (accounts=${accounts.length}, chains=${__classPrivateFieldGet(this, _AssetsController_enabledChains, "f").size}) took ${Date.now() - gutoGetAssetsStart}ms`);
2129
2123
  }
2130
2124
  // Subscribe after fetch so WS notifications can recover state
2131
2125
  __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_subscribeAssets).call(this);
@@ -2135,7 +2129,6 @@ async function _AssetsController_handleAccountGroupChanged() {
2135
2129
  finally {
2136
2130
  releaseLock();
2137
2131
  }
2138
- console.log(`[GUTO PERFORMANCE LOG] AssetsController.#handleAccountGroupChanged END (total) took ${Date.now() - gutoStart}ms`);
2139
2132
  }, _AssetsController_handleEnabledNetworksChanged = async function _AssetsController_handleEnabledNetworksChanged(enabledNetworkMap) {
2140
2133
  const previousChains = __classPrivateFieldGet(this, _AssetsController_enabledChains, "f");
2141
2134
  __classPrivateFieldSet(this, _AssetsController_enabledChains, __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_extractEnabledChains).call(this, enabledNetworkMap), "f");