@exodus/assets-feature 7.2.0 → 7.2.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 +12 -0
- package/api/index.d.ts +2 -0
- package/module/assets-module.js +14 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [7.2.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@7.2.1...@exodus/assets-feature@7.2.2) (2025-04-14)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix: provide pageNumber and pageSize to searchTokens (#12006)
|
|
11
|
+
|
|
12
|
+
## [7.2.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@7.2.0...@exodus/assets-feature@7.2.1) (2025-04-02)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- fix: provide lifecycleStatus when loading icons (#11931)
|
|
17
|
+
|
|
6
18
|
## [7.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@7.1.0...@exodus/assets-feature@7.2.0) (2025-04-01)
|
|
7
19
|
|
|
8
20
|
### Features
|
package/api/index.d.ts
CHANGED
package/module/assets-module.js
CHANGED
|
@@ -369,7 +369,14 @@ export class AssetsModule {
|
|
|
369
369
|
this.#flushChanges({ updated: updatedAssets, disabled })
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
searchTokens = async ({
|
|
372
|
+
searchTokens = async ({
|
|
373
|
+
baseAssetName,
|
|
374
|
+
lifecycleStatus,
|
|
375
|
+
query,
|
|
376
|
+
excludeTags = ['offensive'],
|
|
377
|
+
pageNumber,
|
|
378
|
+
pageSize,
|
|
379
|
+
}) => {
|
|
373
380
|
assert(
|
|
374
381
|
!baseAssetName || typeof baseAssetName === 'string' || Array.isArray(baseAssetName),
|
|
375
382
|
'searchTokens(): baseAssetName must be a string or an array if supplied'
|
|
@@ -388,7 +395,7 @@ export class AssetsModule {
|
|
|
388
395
|
|
|
389
396
|
const tokens = await this.#fetch(
|
|
390
397
|
'search',
|
|
391
|
-
{ baseAssetName: baseAssetNames, lifecycleStatus, query, excludeTags },
|
|
398
|
+
{ baseAssetName: baseAssetNames, lifecycleStatus, query, excludeTags, pageNumber, pageSize },
|
|
392
399
|
'tokens'
|
|
393
400
|
)
|
|
394
401
|
const validTokens = tokens.filter(this.#validateCustomToken)
|
|
@@ -495,7 +502,11 @@ export class AssetsModule {
|
|
|
495
502
|
async (assetName) => {
|
|
496
503
|
const tokenNames = [assetName]
|
|
497
504
|
|
|
498
|
-
const tokens = await this.#fetch(
|
|
505
|
+
const tokens = await this.#fetch(
|
|
506
|
+
'tokens',
|
|
507
|
+
{ tokenNames, lifecycleStatus: ['c', 'v', 'u'] },
|
|
508
|
+
'tokens'
|
|
509
|
+
)
|
|
499
510
|
const token = tokens[0]
|
|
500
511
|
if (token?.icon) {
|
|
501
512
|
return this.#iconsStorage.unzipIcon(token.icon)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@exodus/bitcoin-plugin": "^1.29.1",
|
|
55
55
|
"@exodus/bitcoinregtest-plugin": "^1.11.0",
|
|
56
56
|
"@exodus/bitcointestnet-plugin": "^1.13.1",
|
|
57
|
-
"@exodus/blockchain-metadata": "^15.
|
|
57
|
+
"@exodus/blockchain-metadata": "^15.10.0",
|
|
58
58
|
"@exodus/cardano-lib": "^2.2.0",
|
|
59
59
|
"@exodus/combined-assets-meta": "^3.0.0",
|
|
60
60
|
"@exodus/cosmos-plugin": "^1.3.3",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "f34be287dba62ba8e3872c90bf6f0973b07ea2d6"
|
|
82
82
|
}
|