@exodus/assets-feature 8.7.1 → 8.7.2
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 +6 -0
- package/module/assets-module.js +18 -12
- package/package.json +9 -8
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
|
+
## [8.7.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.7.1...@exodus/assets-feature@8.7.2) (2025-12-04)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix: consistenly handle storeIcons errors (#14556)
|
|
11
|
+
|
|
6
12
|
## [8.7.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.7.0...@exodus/assets-feature@8.7.1) (2025-10-03)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/module/assets-module.js
CHANGED
|
@@ -234,11 +234,7 @@ export class AssetsModule {
|
|
|
234
234
|
|
|
235
235
|
const token = normalizeToken(_token)
|
|
236
236
|
|
|
237
|
-
|
|
238
|
-
await this.#iconsStorage.storeIcons([token])
|
|
239
|
-
} catch (err) {
|
|
240
|
-
this.#logger.warn(`An error occurred while decoding icon for ${assetId}`, err.message)
|
|
241
|
-
}
|
|
237
|
+
await this.#storeIcons([token])
|
|
242
238
|
|
|
243
239
|
this.#setCache(key, token)
|
|
244
240
|
return this.#getCache(key)
|
|
@@ -284,11 +280,7 @@ export class AssetsModule {
|
|
|
284
280
|
|
|
285
281
|
const tokens = validTokens.map((token) => normalizeToken(token))
|
|
286
282
|
|
|
287
|
-
|
|
288
|
-
await this.#iconsStorage.storeIcons(tokens)
|
|
289
|
-
} catch (err) {
|
|
290
|
-
this.#logger.warn(`An error occurred while decoding icons`, err.message)
|
|
291
|
-
}
|
|
283
|
+
await this.#storeIcons(tokens)
|
|
292
284
|
|
|
293
285
|
for (const token of tokens) {
|
|
294
286
|
const key = getFetchCacheKey(token.baseAssetName, token.assetId)
|
|
@@ -428,7 +420,7 @@ export class AssetsModule {
|
|
|
428
420
|
|
|
429
421
|
if (fetchedAndHandledTokens.length > 0) {
|
|
430
422
|
await this.#storeCustomTokens(fetchedAndHandledTokens)
|
|
431
|
-
await this.#
|
|
423
|
+
await this.#storeIcons(fetchedAndHandledTokens)
|
|
432
424
|
}
|
|
433
425
|
|
|
434
426
|
this.#flushChanges({ added, updated })
|
|
@@ -531,7 +523,8 @@ export class AssetsModule {
|
|
|
531
523
|
this.#logger.warn('Invalid Custom Token schema')
|
|
532
524
|
}
|
|
533
525
|
|
|
534
|
-
await this.#
|
|
526
|
+
await this.#storeIcons(validatedTokens)
|
|
527
|
+
|
|
535
528
|
return validatedTokens
|
|
536
529
|
}
|
|
537
530
|
|
|
@@ -680,6 +673,19 @@ export class AssetsModule {
|
|
|
680
673
|
}
|
|
681
674
|
}
|
|
682
675
|
|
|
676
|
+
#storeIcons = async (tokens) => {
|
|
677
|
+
try {
|
|
678
|
+
if (tokens.length > 0) {
|
|
679
|
+
await this.#iconsStorage.storeIcons(tokens)
|
|
680
|
+
}
|
|
681
|
+
} catch (err) {
|
|
682
|
+
this.#logger.warn(
|
|
683
|
+
`An error occurred while storing icons ${tokens.map((t) => t.name).join(',')}`,
|
|
684
|
+
err
|
|
685
|
+
)
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
683
689
|
#assertSupportsCustomTokens = (baseAssetName) => {
|
|
684
690
|
const baseAsset = this.getAsset(baseAssetName)
|
|
685
691
|
if (!baseAsset?.api?.hasFeature('customTokens')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.2",
|
|
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",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@exodus/available-assets": "^8.8.0",
|
|
55
|
-
"@exodus/bip39": "^1.0.
|
|
55
|
+
"@exodus/bip39": "^1.0.4",
|
|
56
56
|
"@exodus/bip44-constants": "^195.0.0",
|
|
57
57
|
"@exodus/bitcoin-meta": "^2.0.0",
|
|
58
58
|
"@exodus/bitcoin-plugin": "^1.29.1",
|
|
59
59
|
"@exodus/bitcoinregtest-plugin": "^1.11.0",
|
|
60
60
|
"@exodus/bitcointestnet-plugin": "^1.13.1",
|
|
61
|
-
"@exodus/blockchain-metadata": "^
|
|
61
|
+
"@exodus/blockchain-metadata": "^17.1.0",
|
|
62
62
|
"@exodus/cardano-lib": "^3.4.1",
|
|
63
63
|
"@exodus/combined-assets-meta": "^3.0.0",
|
|
64
64
|
"@exodus/cosmos-plugin": "^1.3.3",
|
|
@@ -68,19 +68,20 @@
|
|
|
68
68
|
"@exodus/fusion-local": "^2.1.0",
|
|
69
69
|
"@exodus/keychain": "^7.3.0",
|
|
70
70
|
"@exodus/logger": "^1.2.3",
|
|
71
|
-
"@exodus/models": "^12.
|
|
71
|
+
"@exodus/models": "^12.18.0",
|
|
72
72
|
"@exodus/osmosis-plugin": "^1.3.3",
|
|
73
|
-
"@exodus/public-key-provider": "^4.2.
|
|
73
|
+
"@exodus/public-key-provider": "^4.2.1",
|
|
74
74
|
"@exodus/redux-dependency-injection": "^4.1.2",
|
|
75
75
|
"@exodus/storage-memory": "^2.3.0",
|
|
76
|
-
"@exodus/wallet-accounts": "^20.
|
|
76
|
+
"@exodus/wallet-accounts": "^20.2.1",
|
|
77
77
|
"@exodus/wild-emitter": "^1.0.0",
|
|
78
78
|
"events": "^3.3.0",
|
|
79
79
|
"msw": "^2.0.0",
|
|
80
80
|
"redux": "^4.0.0"
|
|
81
81
|
},
|
|
82
82
|
"publishConfig": {
|
|
83
|
-
"access": "public"
|
|
83
|
+
"access": "public",
|
|
84
|
+
"provenance": false
|
|
84
85
|
},
|
|
85
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "653e974357049abfb5b4b6389b89cf49a81e8e95"
|
|
86
87
|
}
|