@exodus/assets-feature 9.0.0-alpha.0 → 9.0.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 +13 -0
- package/client/asset-client-interface.js +9 -0
- package/package.json +4 -4
- package/plugin/index.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@9.0.0...@exodus/assets-feature@9.0.1) (2026-02-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix(assets-feature): skip gap limit scanning for freshly created wallets (#15311)
|
|
11
|
+
|
|
12
|
+
## [9.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.8.0...@exodus/assets-feature@9.0.0) (2026-02-16)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **assets-feature:** add remote config support for asset initialization ([#15016](https://github.com/ExodusMovement/exodus-hydra/issues/15016)) ([15c5857](https://github.com/ExodusMovement/exodus-hydra/commit/15c5857a5e8229c7f25fad4b532718791a503d84))
|
|
17
|
+
- **assets-feature:** call start on plugin startup ([#15042](https://github.com/ExodusMovement/exodus-hydra/issues/15042)) ([81759e5](https://github.com/ExodusMovement/exodus-hydra/commit/81759e5640c57100a343448a0104f90ce558fa6b))
|
|
18
|
+
|
|
6
19
|
## [8.8.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@8.7.1...@exodus/assets-feature@8.8.0) (2026-01-21)
|
|
7
20
|
|
|
8
21
|
### Features
|
|
@@ -19,6 +19,7 @@ class AssetClientInterface {
|
|
|
19
19
|
#transactionSigner
|
|
20
20
|
#walletAccountsAtom
|
|
21
21
|
#multisigAtom
|
|
22
|
+
#freshlyCreated = false
|
|
22
23
|
|
|
23
24
|
constructor({
|
|
24
25
|
addressProvider,
|
|
@@ -50,6 +51,10 @@ class AssetClientInterface {
|
|
|
50
51
|
this.#multisigAtom = multisigAtom
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
setFreshlyCreated = (value) => {
|
|
55
|
+
this.#freshlyCreated = value
|
|
56
|
+
}
|
|
57
|
+
|
|
53
58
|
createLogger = (namespace) => {
|
|
54
59
|
return this.#createLogger(namespace)
|
|
55
60
|
}
|
|
@@ -176,6 +181,10 @@ class AssetClientInterface {
|
|
|
176
181
|
const confirmationsNumber = await this.getConfirmationsNumber({ assetName })
|
|
177
182
|
const out = { confirmationsNumber }
|
|
178
183
|
|
|
184
|
+
if (this.#freshlyCreated) {
|
|
185
|
+
out.gapLimit = 0
|
|
186
|
+
}
|
|
187
|
+
|
|
179
188
|
const gapLimit =
|
|
180
189
|
this.#config?.compatibilityModeGapLimits?.[walletAccountInstance.compatibilityMode]
|
|
181
190
|
if (typeof gapLimit === 'number') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.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",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"reselect": "^3.0.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@exodus/available-assets": "^8.
|
|
54
|
+
"@exodus/available-assets": "^8.11.0",
|
|
55
55
|
"@exodus/bip39": "^1.1.0",
|
|
56
56
|
"@exodus/bip44-constants": "^195.0.0",
|
|
57
57
|
"@exodus/bitcoin-meta": "^2.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@exodus/ethereum-meta": "^2.0.0",
|
|
67
67
|
"@exodus/ethereum-plugin": "^2.7.4",
|
|
68
68
|
"@exodus/fusion-local": "^2.1.0",
|
|
69
|
-
"@exodus/keychain": "^9.0.
|
|
69
|
+
"@exodus/keychain": "^9.0.3",
|
|
70
70
|
"@exodus/logger": "^1.2.3",
|
|
71
71
|
"@exodus/models": "^12.19.0",
|
|
72
72
|
"@exodus/osmosis-plugin": "^1.3.3",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"access": "public",
|
|
84
84
|
"provenance": false
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "6dc89086935fcd111dfd71ac8d05c7f40861de72"
|
|
87
87
|
}
|
package/plugin/index.js
CHANGED
|
@@ -43,7 +43,12 @@ const createAssetsPlugin = ({
|
|
|
43
43
|
return result?.config?.assets
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
const onCreate = () => {
|
|
47
|
+
assetClientInterface.setFreshlyCreated(true)
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
const onImport = async () => {
|
|
51
|
+
assetClientInterface.setFreshlyCreated(false)
|
|
47
52
|
const assetsConfig = await getRemoteAssetsConfig()
|
|
48
53
|
assetsModule.initialize({ assetClientInterface, assetsConfig })
|
|
49
54
|
}
|
|
@@ -103,6 +108,7 @@ const createAssetsPlugin = ({
|
|
|
103
108
|
}
|
|
104
109
|
|
|
105
110
|
return {
|
|
111
|
+
onCreate,
|
|
106
112
|
onImport: Object.defineProperty(onImport, 'priority', { value: 1, writable: false }),
|
|
107
113
|
onStart: Object.defineProperty(onStart, 'priority', { value: 1, writable: false }),
|
|
108
114
|
onLoad,
|