@exodus/assets-feature 7.0.1 → 7.0.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 +12 -0
- package/client/asset-client-interface.js +4 -4
- package/client/index.js +8 -7
- package/package.json +7 -7
- package/report/index.js +2 -6
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.0.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@7.0.2...@exodus/assets-feature@7.0.3) (2025-03-28)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix: `asset.info` updates (#11902)
|
|
11
|
+
|
|
12
|
+
## [7.0.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@7.0.1...@exodus/assets-feature@7.0.2) (2025-02-21)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- fix: skip exporting most reports if wallet doesn't exist (#11553)
|
|
17
|
+
|
|
6
18
|
## [7.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@7.0.0...@exodus/assets-feature@7.0.1) (2025-02-18)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
|
@@ -7,6 +7,7 @@ const { isEmpty } = lodash
|
|
|
7
7
|
class AssetClientInterface {
|
|
8
8
|
#addressProvider
|
|
9
9
|
#assetsModule
|
|
10
|
+
#assetSources
|
|
10
11
|
#availableAssetNamesAtom
|
|
11
12
|
#blockchainMetadata
|
|
12
13
|
#config
|
|
@@ -20,6 +21,7 @@ class AssetClientInterface {
|
|
|
20
21
|
constructor({
|
|
21
22
|
addressProvider,
|
|
22
23
|
assetsModule,
|
|
24
|
+
assetSources,
|
|
23
25
|
availableAssetNamesAtom,
|
|
24
26
|
blockchainMetadata,
|
|
25
27
|
createLogger,
|
|
@@ -32,6 +34,7 @@ class AssetClientInterface {
|
|
|
32
34
|
}) {
|
|
33
35
|
this.#addressProvider = addressProvider
|
|
34
36
|
this.#assetsModule = assetsModule
|
|
37
|
+
this.#assetSources = assetSources
|
|
35
38
|
this.#availableAssetNamesAtom = availableAssetNamesAtom
|
|
36
39
|
this.#blockchainMetadata = blockchainMetadata
|
|
37
40
|
this.#config = config
|
|
@@ -308,10 +311,7 @@ class AssetClientInterface {
|
|
|
308
311
|
}
|
|
309
312
|
|
|
310
313
|
getSupportedPurposes = async ({ assetName, walletAccount }) => {
|
|
311
|
-
return this.#
|
|
312
|
-
assetName,
|
|
313
|
-
walletAccount: await this.#getWalletAccount(walletAccount),
|
|
314
|
-
})
|
|
314
|
+
return this.#assetSources.getSupportedPurposes({ assetName, walletAccount })
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
getUnusedAddressIndexes = async ({ assetName, walletAccount, highestUnusedIndexes }) => {
|
package/client/index.js
CHANGED
|
@@ -5,18 +5,19 @@ const assetsClientInterfaceDefinition = {
|
|
|
5
5
|
type: 'module',
|
|
6
6
|
factory: createAssetClientInterface,
|
|
7
7
|
dependencies: [
|
|
8
|
+
'addressProvider',
|
|
9
|
+
'assetsModule',
|
|
10
|
+
'assetSources',
|
|
11
|
+
'availableAssetNamesAtom',
|
|
8
12
|
'blockchainMetadata',
|
|
13
|
+
'config?',
|
|
9
14
|
'createLogger',
|
|
10
|
-
'wallet',
|
|
11
|
-
'walletAccountsAtom',
|
|
12
15
|
'enabledWalletAccountsAtom',
|
|
13
|
-
'assetsModule',
|
|
14
|
-
'availableAssetNamesAtom',
|
|
15
|
-
'addressProvider',
|
|
16
16
|
'feeMonitors',
|
|
17
|
-
'transactionSigner',
|
|
18
17
|
'publicKeyProvider',
|
|
19
|
-
'
|
|
18
|
+
'transactionSigner',
|
|
19
|
+
'wallet',
|
|
20
|
+
'walletAccountsAtom',
|
|
20
21
|
],
|
|
21
22
|
public: true,
|
|
22
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.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",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@exodus/assets": "^11.0.0",
|
|
39
39
|
"@exodus/atoms": "^9.0.0",
|
|
40
|
-
"@exodus/basic-utils": "^
|
|
40
|
+
"@exodus/basic-utils": "^4.0.0",
|
|
41
41
|
"@exodus/fetch": "^1.3.0",
|
|
42
42
|
"@exodus/fusion-atoms": "^1.4.0",
|
|
43
43
|
"@exodus/timer": "^1.1.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@exodus/bitcoin-plugin": "^1.29.1",
|
|
54
54
|
"@exodus/bitcoinregtest-plugin": "^1.11.0",
|
|
55
55
|
"@exodus/bitcointestnet-plugin": "^1.13.1",
|
|
56
|
-
"@exodus/blockchain-metadata": "^15.
|
|
56
|
+
"@exodus/blockchain-metadata": "^15.9.2",
|
|
57
57
|
"@exodus/cardano-lib": "^2.2.0",
|
|
58
58
|
"@exodus/combined-assets-meta": "^3.0.0",
|
|
59
59
|
"@exodus/cosmos-plugin": "^1.3.3",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"@exodus/fusion-local": "^2.1.0",
|
|
63
63
|
"@exodus/keychain": "^7.3.0",
|
|
64
64
|
"@exodus/logger": "^1.2.3",
|
|
65
|
-
"@exodus/models": "^12.
|
|
65
|
+
"@exodus/models": "^12.8.2",
|
|
66
66
|
"@exodus/osmosis-plugin": "^1.3.3",
|
|
67
|
-
"@exodus/public-key-provider": "^4.1.
|
|
67
|
+
"@exodus/public-key-provider": "^4.1.1",
|
|
68
68
|
"@exodus/redux-dependency-injection": "^4.1.1",
|
|
69
69
|
"@exodus/storage-memory": "^2.2.2",
|
|
70
|
-
"@exodus/wallet-accounts": "^17.
|
|
70
|
+
"@exodus/wallet-accounts": "^17.5.0",
|
|
71
71
|
"@exodus/wild-emitter": "^1.0.0",
|
|
72
72
|
"bip39": "^3.1.0",
|
|
73
73
|
"events": "^3.3.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "a3b0514b3c42646d18054de770a7631abec0418b"
|
|
81
81
|
}
|
package/report/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const createAssetsReport = ({
|
|
2
|
-
wallet,
|
|
3
2
|
assetsModule,
|
|
4
3
|
assetPreferences,
|
|
5
4
|
disabledPurposesAtom,
|
|
@@ -8,10 +7,8 @@ const createAssetsReport = ({
|
|
|
8
7
|
taprootAddressModeAtom,
|
|
9
8
|
}) => ({
|
|
10
9
|
namespace: 'assets',
|
|
11
|
-
export: async () => {
|
|
12
|
-
if (!
|
|
13
|
-
return {}
|
|
14
|
-
}
|
|
10
|
+
export: async ({ walletExists } = Object.create(null)) => {
|
|
11
|
+
if (!walletExists) return null
|
|
15
12
|
|
|
16
13
|
const [disabledBipPurposes, multiAddressMode, legacyAddressMode, taprootAddressMode] =
|
|
17
14
|
Promise.all([
|
|
@@ -43,7 +40,6 @@ const assetsReportDefinition = {
|
|
|
43
40
|
'multiAddressModeAtom',
|
|
44
41
|
'legacyAddressModeAtom',
|
|
45
42
|
'taprootAddressModeAtom',
|
|
46
|
-
'wallet',
|
|
47
43
|
],
|
|
48
44
|
}
|
|
49
45
|
|