@exodus/assets-feature 8.1.1 → 8.1.3

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,16 @@
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.1.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.1.2...@exodus/assets-feature@8.1.3) (2025-07-02)
7
+
8
+ ### Bug Fixes
9
+
10
+ - fix: remove gradientCoords (#13023)
11
+
12
+ ## [8.1.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.1.1...@exodus/assets-feature@8.1.2) (2025-05-30)
13
+
14
+ **Note:** Version bump only for package @exodus/assets-feature
15
+
6
16
  ## [8.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.1.0...@exodus/assets-feature@8.1.1) (2025-05-20)
7
17
 
8
18
  ### Bug Fixes
@@ -18,6 +18,7 @@ import { getAssetFromAssetId, getFetchErrorMessage, isDisabledCustomToken } from
18
18
  import createFetchival from '@exodus/fetch/create-fetchival'
19
19
  import { validateCustomToken, isValidCustomToken } from '@exodus/asset-schema-validation'
20
20
  import makeConcurrent from 'make-concurrent'
21
+ import oldToNewStyleTokenNames from '@exodus/asset-legacy-token-name-mapping'
21
22
 
22
23
  const { get, isEmpty, once, uniq } = lodash
23
24
 
@@ -27,7 +28,6 @@ const FILTERED_FIELDS = [
27
28
  'displayName',
28
29
  'displayTicker',
29
30
  'gradientColors',
30
- 'gradientCoords',
31
31
  'icon', // there is no icon field in built in assets, but there may be for custom tokens (TODO?)
32
32
  'isBuiltIn',
33
33
  'isCustomToken',
@@ -89,6 +89,7 @@ export class AssetsModule {
89
89
  #assetsAtom
90
90
  #fetchival
91
91
  #logger
92
+ #invalidTokenNames
92
93
 
93
94
  constructor({
94
95
  storage,
@@ -122,6 +123,7 @@ export class AssetsModule {
122
123
  this.#fetchCacheExpiry = config.fetchCacheExpiry ?? CT_FETCH_CACHE_EXPIRY
123
124
  this.#fetchival = createFetchival({ fetch })
124
125
  this.#logger = logger
126
+ this.#invalidTokenNames = new Set(Object.keys(oldToNewStyleTokenNames))
125
127
  }
126
128
 
127
129
  #setRegistry = (registry) => {
@@ -599,7 +601,11 @@ export class AssetsModule {
599
601
  if (!this.#storage) return []
600
602
 
601
603
  const tokens = await this.#storage.get(this.#storageDataKey)
602
- return mapValues(tokens, normalizeToken)
604
+ const normalizedTokens = mapValues(tokens, normalizeToken)
605
+ return pickBy(
606
+ normalizedTokens,
607
+ ({ name }) => !this.#invalidTokenNames.has(name) || name === oldToNewStyleTokenNames[name]
608
+ )
603
609
  }
604
610
 
605
611
  #updateStoredCustomTokens = async (tokens) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "8.1.1",
3
+ "version": "8.1.3",
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",
@@ -35,6 +35,7 @@
35
35
  "url": "git+https://github.com/ExodusMovement/exodus-hydra.git"
36
36
  },
37
37
  "dependencies": {
38
+ "@exodus/asset-legacy-token-name-mapping": "^1.4.0",
38
39
  "@exodus/asset-lib": "^5.3.0",
39
40
  "@exodus/asset-schema-validation": "^1.0.1",
40
41
  "@exodus/assets": "^11.3.0",
@@ -51,13 +52,14 @@
51
52
  },
52
53
  "devDependencies": {
53
54
  "@exodus/available-assets": "^8.7.0",
55
+ "@exodus/bip39": "^1.0.3",
54
56
  "@exodus/bip44-constants": "^195.0.0",
55
57
  "@exodus/bitcoin-meta": "^2.0.0",
56
58
  "@exodus/bitcoin-plugin": "^1.29.1",
57
59
  "@exodus/bitcoinregtest-plugin": "^1.11.0",
58
60
  "@exodus/bitcointestnet-plugin": "^1.13.1",
59
- "@exodus/blockchain-metadata": "^15.10.1",
60
- "@exodus/cardano-lib": "^2.2.0",
61
+ "@exodus/blockchain-metadata": "^15.12.0",
62
+ "@exodus/cardano-lib": "^3.4.1",
61
63
  "@exodus/combined-assets-meta": "^3.0.0",
62
64
  "@exodus/cosmos-plugin": "^1.3.3",
63
65
  "@exodus/ethereum-lib": "^5.0.0",
@@ -66,14 +68,13 @@
66
68
  "@exodus/fusion-local": "^2.1.0",
67
69
  "@exodus/keychain": "^7.3.0",
68
70
  "@exodus/logger": "^1.2.3",
69
- "@exodus/models": "^12.12.0",
71
+ "@exodus/models": "^12.14.0",
70
72
  "@exodus/osmosis-plugin": "^1.3.3",
71
- "@exodus/public-key-provider": "^4.1.1",
73
+ "@exodus/public-key-provider": "^4.2.0",
72
74
  "@exodus/redux-dependency-injection": "^4.1.1",
73
75
  "@exodus/storage-memory": "^2.2.2",
74
- "@exodus/wallet-accounts": "^17.5.2",
76
+ "@exodus/wallet-accounts": "^17.6.1",
75
77
  "@exodus/wild-emitter": "^1.0.0",
76
- "bip39": "^3.1.0",
77
78
  "events": "^3.3.0",
78
79
  "msw": "^2.0.0",
79
80
  "redux": "^4.0.0"
@@ -81,5 +82,5 @@
81
82
  "publishConfig": {
82
83
  "access": "public"
83
84
  },
84
- "gitHead": "d0cc19c45e1ddaaeb9dec288cf94595d89fdf62c"
85
+ "gitHead": "c557b881c9c696fff090c233121160d689f2bc95"
85
86
  }