@exodus/assets-feature 5.7.0 → 5.8.0
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 +6 -0
- package/client/asset-client-interface.js +25 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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
|
+
## [5.8.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.7.0...@exodus/assets-feature@5.8.0) (2024-07-16)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add getExtendedPublicKey method to AssetsClientInterface ([#7869](https://github.com/ExodusMovement/exodus-hydra/issues/7869)) ([ebcd705](https://github.com/ExodusMovement/exodus-hydra/commit/ebcd7050a0197a58808f105886ddedcbfceae36b))
|
|
11
|
+
|
|
6
12
|
## [5.7.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.6.2...@exodus/assets-feature@5.7.0) (2024-07-11)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -231,6 +231,31 @@ class AssetClientInterface {
|
|
|
231
231
|
})
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
getExtendedPublicKey = async ({ assetName, walletAccount, purpose }) => {
|
|
235
|
+
const asset = this.assetsModule.getAsset(assetName)
|
|
236
|
+
const [walletAccountInstance, purposes] = await Promise.all([
|
|
237
|
+
this.#getWalletAccount(walletAccount),
|
|
238
|
+
purpose === undefined
|
|
239
|
+
? await this.getSupportedPurposes({ assetName, walletAccount })
|
|
240
|
+
: undefined,
|
|
241
|
+
])
|
|
242
|
+
|
|
243
|
+
if (purpose === undefined) {
|
|
244
|
+
;[purpose] = purposes
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const keyIdentifier = asset.baseAsset.api.getKeyIdentifier({
|
|
248
|
+
purpose,
|
|
249
|
+
accountIndex: walletAccountInstance.index,
|
|
250
|
+
compatibilityMode: walletAccountInstance.compatibilityMode,
|
|
251
|
+
})
|
|
252
|
+
|
|
253
|
+
return this.#publicKeyProvider.getExtendedPublicKey({
|
|
254
|
+
walletAccount,
|
|
255
|
+
keyIdentifier,
|
|
256
|
+
})
|
|
257
|
+
}
|
|
258
|
+
|
|
234
259
|
getAddress = async (opts) => {
|
|
235
260
|
return this.addressProvider.getAddress({
|
|
236
261
|
...opts,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "Assets module, clients and apis",
|
|
6
6
|
"main": "index.js",
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
"@exodus/keychain": "^6.4.0",
|
|
60
60
|
"@exodus/models": "^9.1.1",
|
|
61
61
|
"@exodus/osmosis-plugin": "^1.0.0",
|
|
62
|
-
"@exodus/public-key-provider": "^2.3.
|
|
62
|
+
"@exodus/public-key-provider": "^2.3.1",
|
|
63
63
|
"@exodus/public-key-store": "^1.2.1",
|
|
64
64
|
"@exodus/redux-dependency-injection": "^3.2.3",
|
|
65
65
|
"@exodus/storage-memory": "^2.1.1",
|
|
66
|
-
"@exodus/wallet-accounts": "^16.
|
|
66
|
+
"@exodus/wallet-accounts": "^16.8.0",
|
|
67
67
|
"@exodus/wild-emitter": "^1.0.0",
|
|
68
68
|
"bip39": "^3.1.0",
|
|
69
69
|
"events": "^3.3.0",
|
|
70
70
|
"msw": "^2.0.0",
|
|
71
71
|
"redux": "^4.0.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "e046e8f7bc9eed638458ebd071e5d07c2d8ee66d"
|
|
74
74
|
}
|