@exodus/assets-feature 9.6.0 → 9.7.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 CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.7.0](https://github.com/ExodusMovement/exodus/compare/@exodus/assets-feature@9.6.0...@exodus/assets-feature@9.7.0) (2026-11-06)
7
+
8
+ ### Features
9
+
10
+ - **assets-feature:** tick only the wallet accounts that monitor a network ([#48644](https://github.com/ExodusMovement/exodus/issues/48644)) ([677c0ce](https://github.com/ExodusMovement/exodus/commit/677c0cef246b6f5a01d77ee00e72815e9c89e512))
11
+
6
12
  ## [9.6.0](https://github.com/ExodusMovement/exodus/compare/@exodus/assets-feature@9.5.0...@exodus/assets-feature@9.6.0) (2026-10-28)
7
13
 
8
14
  ### Features
@@ -17,6 +17,7 @@ class AssetClientInterface {
17
17
  #walletAccountsAtom
18
18
  #multisigAtom
19
19
  #featureFlagAtoms
20
+ #resolvedMonitorNetworksByWalletAccountAtom
20
21
  #freshlyCreated = false
21
22
 
22
23
  constructor({
@@ -35,6 +36,7 @@ class AssetClientInterface {
35
36
  walletAccountsAtom,
36
37
  multisigAtom,
37
38
  featureFlagAtoms,
39
+ resolvedMonitorNetworksByWalletAccountAtom,
38
40
  }) {
39
41
  this.#addressProvider = addressProvider
40
42
  this.#assetsModule = assetsModule
@@ -51,6 +53,7 @@ class AssetClientInterface {
51
53
  this.#walletAccountsAtom = walletAccountsAtom
52
54
  this.#multisigAtom = multisigAtom
53
55
  this.#featureFlagAtoms = featureFlagAtoms
56
+ this.#resolvedMonitorNetworksByWalletAccountAtom = resolvedMonitorNetworksByWalletAccountAtom
54
57
  }
55
58
 
56
59
  setFreshlyCreated = (value) => {
@@ -156,8 +159,12 @@ class AssetClientInterface {
156
159
  const supportedWalletAccounts = Object.keys(enabledWalletAccounts).filter((walletAccount) =>
157
160
  availableAssetNamesByWalletAccount[walletAccount]?.includes(assetName)
158
161
  )
162
+ const monitoredWalletAccounts = await this.#filterMonitoredWalletAccounts({
163
+ walletAccounts: supportedWalletAccounts,
164
+ baseAssetName: asset.baseAsset.name,
165
+ })
159
166
 
160
- return filterAsync(supportedWalletAccounts, async (walletAccount) => {
167
+ return filterAsync(monitoredWalletAccounts, async (walletAccount) => {
161
168
  try {
162
169
  // hardware wallet account may not support coin, to check this get address
163
170
  await this.getReceiveAddress({ assetName, walletAccount, useCache: true })
@@ -395,6 +402,18 @@ class AssetClientInterface {
395
402
  const walletAccount = await this.#getWalletAccount(walletAccountName)
396
403
  return this.#transactionSigner.signTransaction({ baseAssetName, unsignedTx, walletAccount })
397
404
  }
405
+
406
+ // a wallet account syncs only the networks headless resolved for it; one it doesn't list syncs as before
407
+ #filterMonitoredWalletAccounts = async ({ walletAccounts, baseAssetName }) => {
408
+ if (!this.#resolvedMonitorNetworksByWalletAccountAtom) return walletAccounts
409
+
410
+ const networksByWalletAccount = await this.#resolvedMonitorNetworksByWalletAccountAtom.get()
411
+ return walletAccounts.filter(
412
+ (walletAccount) =>
413
+ !networksByWalletAccount[walletAccount] ||
414
+ networksByWalletAccount[walletAccount].includes(baseAssetName)
415
+ )
416
+ }
398
417
  }
399
418
 
400
419
  const createAssetClientInterface = (args) => new AssetClientInterface(args)
package/client/index.js CHANGED
@@ -21,6 +21,7 @@ const assetsClientInterfaceDefinition = {
21
21
  'walletAccountsAtom',
22
22
  'multisigAtom?',
23
23
  'featureFlagAtoms?',
24
+ 'resolvedMonitorNetworksByWalletAccountAtom?',
24
25
  ],
25
26
  public: true,
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "9.6.0",
3
+ "version": "9.7.0",
4
4
  "license": "MIT",
5
5
  "description": "This Exodus SDK feature provides access to instances of all blockchain asset adapters supported by the wallet, and enables you to search for and add custom tokens at runtime.",
6
6
  "type": "module",
@@ -82,5 +82,5 @@
82
82
  "access": "public",
83
83
  "provenance": false
84
84
  },
85
- "gitHead": "dc6d4bfa087c6aaf5bf26a6fbe7f8ebebeb23670"
85
+ "gitHead": "b85bfa3efae23683d672b98d7ab6ff5cfb952c7c"
86
86
  }