@exodus/assets-feature 8.1.1 → 8.1.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 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
+ ## [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)
7
+
8
+ **Note:** Version bump only for package @exodus/assets-feature
9
+
6
10
  ## [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
11
 
8
12
  ### 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
 
@@ -89,6 +90,7 @@ export class AssetsModule {
89
90
  #assetsAtom
90
91
  #fetchival
91
92
  #logger
93
+ #invalidTokenNames
92
94
 
93
95
  constructor({
94
96
  storage,
@@ -122,6 +124,7 @@ export class AssetsModule {
122
124
  this.#fetchCacheExpiry = config.fetchCacheExpiry ?? CT_FETCH_CACHE_EXPIRY
123
125
  this.#fetchival = createFetchival({ fetch })
124
126
  this.#logger = logger
127
+ this.#invalidTokenNames = new Set(Object.keys(oldToNewStyleTokenNames))
125
128
  }
126
129
 
127
130
  #setRegistry = (registry) => {
@@ -599,7 +602,11 @@ export class AssetsModule {
599
602
  if (!this.#storage) return []
600
603
 
601
604
  const tokens = await this.#storage.get(this.#storageDataKey)
602
- return mapValues(tokens, normalizeToken)
605
+ const normalizedTokens = mapValues(tokens, normalizeToken)
606
+ return pickBy(
607
+ normalizedTokens,
608
+ ({ name }) => !this.#invalidTokenNames.has(name) || name === oldToNewStyleTokenNames[name]
609
+ )
603
610
  }
604
611
 
605
612
  #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.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",
@@ -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",
@@ -66,7 +67,7 @@
66
67
  "@exodus/fusion-local": "^2.1.0",
67
68
  "@exodus/keychain": "^7.3.0",
68
69
  "@exodus/logger": "^1.2.3",
69
- "@exodus/models": "^12.12.0",
70
+ "@exodus/models": "^12.12.1",
70
71
  "@exodus/osmosis-plugin": "^1.3.3",
71
72
  "@exodus/public-key-provider": "^4.1.1",
72
73
  "@exodus/redux-dependency-injection": "^4.1.1",
@@ -81,5 +82,5 @@
81
82
  "publishConfig": {
82
83
  "access": "public"
83
84
  },
84
- "gitHead": "d0cc19c45e1ddaaeb9dec288cf94595d89fdf62c"
85
+ "gitHead": "e757127fda298e8694cf7e696c1dbf79d561401d"
85
86
  }