@exodus/assets-feature 9.7.0 → 9.7.1
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 +4 -0
- package/client/asset-client-interface.js +1 -20
- package/client/index.js +0 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.1](https://github.com/ExodusMovement/exodus/compare/@exodus/assets-feature@9.7.0...@exodus/assets-feature@9.7.1) (2026-11-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/assets-feature
|
|
9
|
+
|
|
6
10
|
## [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
11
|
|
|
8
12
|
### Features
|
|
@@ -17,7 +17,6 @@ class AssetClientInterface {
|
|
|
17
17
|
#walletAccountsAtom
|
|
18
18
|
#multisigAtom
|
|
19
19
|
#featureFlagAtoms
|
|
20
|
-
#resolvedMonitorNetworksByWalletAccountAtom
|
|
21
20
|
#freshlyCreated = false
|
|
22
21
|
|
|
23
22
|
constructor({
|
|
@@ -36,7 +35,6 @@ class AssetClientInterface {
|
|
|
36
35
|
walletAccountsAtom,
|
|
37
36
|
multisigAtom,
|
|
38
37
|
featureFlagAtoms,
|
|
39
|
-
resolvedMonitorNetworksByWalletAccountAtom,
|
|
40
38
|
}) {
|
|
41
39
|
this.#addressProvider = addressProvider
|
|
42
40
|
this.#assetsModule = assetsModule
|
|
@@ -53,7 +51,6 @@ class AssetClientInterface {
|
|
|
53
51
|
this.#walletAccountsAtom = walletAccountsAtom
|
|
54
52
|
this.#multisigAtom = multisigAtom
|
|
55
53
|
this.#featureFlagAtoms = featureFlagAtoms
|
|
56
|
-
this.#resolvedMonitorNetworksByWalletAccountAtom = resolvedMonitorNetworksByWalletAccountAtom
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
setFreshlyCreated = (value) => {
|
|
@@ -159,12 +156,8 @@ class AssetClientInterface {
|
|
|
159
156
|
const supportedWalletAccounts = Object.keys(enabledWalletAccounts).filter((walletAccount) =>
|
|
160
157
|
availableAssetNamesByWalletAccount[walletAccount]?.includes(assetName)
|
|
161
158
|
)
|
|
162
|
-
const monitoredWalletAccounts = await this.#filterMonitoredWalletAccounts({
|
|
163
|
-
walletAccounts: supportedWalletAccounts,
|
|
164
|
-
baseAssetName: asset.baseAsset.name,
|
|
165
|
-
})
|
|
166
159
|
|
|
167
|
-
return filterAsync(
|
|
160
|
+
return filterAsync(supportedWalletAccounts, async (walletAccount) => {
|
|
168
161
|
try {
|
|
169
162
|
// hardware wallet account may not support coin, to check this get address
|
|
170
163
|
await this.getReceiveAddress({ assetName, walletAccount, useCache: true })
|
|
@@ -402,18 +395,6 @@ class AssetClientInterface {
|
|
|
402
395
|
const walletAccount = await this.#getWalletAccount(walletAccountName)
|
|
403
396
|
return this.#transactionSigner.signTransaction({ baseAssetName, unsignedTx, walletAccount })
|
|
404
397
|
}
|
|
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
|
-
}
|
|
417
398
|
}
|
|
418
399
|
|
|
419
400
|
const createAssetClientInterface = (args) => new AssetClientInterface(args)
|
package/client/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.1",
|
|
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": "
|
|
85
|
+
"gitHead": "a3f267f28138e24579a92cbda76c8ecd4d418bcf"
|
|
86
86
|
}
|