@exodus/hw-ledger 3.8.1 → 3.9.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 CHANGED
@@ -3,6 +3,20 @@
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
+ ## [3.9.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@3.8.2...@exodus/hw-ledger@3.9.0) (2026-01-21)
7
+
8
+ ### Features
9
+
10
+ - feat(bip322-js): export Verifier for BIP-322 signature verification (#14641)
11
+
12
+ - feat: trezor passphrase support (#14965)
13
+
14
+ ## [3.8.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@3.8.1...@exodus/hw-ledger@3.8.2) (2025-12-17)
15
+
16
+ ### Bug Fixes
17
+
18
+ - fix(hw-ledger): ripple app supported versions (#14684)
19
+
6
20
  ## [3.8.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@3.8.0...@exodus/hw-ledger@3.8.1) (2025-12-16)
7
21
 
8
22
  **Note:** Version bump only for package @exodus/hw-ledger
@@ -25,7 +25,7 @@ const Tron = {
25
25
  };
26
26
  const XRP = {
27
27
  applicationName: 'XRP',
28
- supportedVersions: '^1.0.0',
28
+ supportedVersions: '^2.4.0',
29
29
  primaryAssetName: 'ripple',
30
30
  };
31
31
  const applications = {
@@ -1,4 +1,4 @@
1
- import type { GetAddressParams, GetPublicKeyParams, GetXPubParams, HardwareWalletDescriptor, HardwareWalletDevice, SignMessageParams, SignTransactionParams } from '@exodus/hw-common';
1
+ import type { EnsureDeviceReadyParams, GetAddressParams, GetPublicKeyParams, GetXPubParams, HardwareWalletDescriptor, HardwareWalletDevice, SignMessageParams, SignTransactionParams } from '@exodus/hw-common';
2
2
  import type { TransportFactory } from './types';
3
3
  import type { Atom } from '@exodus/atoms';
4
4
  export type Dependencies = {
@@ -12,6 +12,7 @@ export declare class LedgerDevice implements HardwareWalletDevice {
12
12
  get descriptor(): HardwareWalletDescriptor;
13
13
  cancelAction: () => Promise<void>;
14
14
  ensureApplicationIsOpened: (baseAssetName: string) => Promise<void>;
15
+ ensureDeviceReady: ({ baseAssetName }: EnsureDeviceReadyParams) => Promise<void>;
15
16
  listSupportedAssetNames: () => Promise<string[]>;
16
17
  listInstalledAssetNames: () => Promise<string[]>;
17
18
  listUseableAssetNames: () => Promise<string[]>;
@@ -73,7 +73,7 @@ export class LedgerDevice {
73
73
  await this.#quitApplication();
74
74
  }
75
75
  };
76
- ensureApplicationIsOpened = async (baseAssetName) => {
76
+ #ensureApplicationIsOpened = async (baseAssetName) => {
77
77
  const { applications } = this.#getAssetApplication(baseAssetName);
78
78
  const supportedApplicationNames = applications.map(({ applicationName }) => applicationName);
79
79
  const currentApplicationInfo = await this.#getInformation();
@@ -108,6 +108,12 @@ export class LedgerDevice {
108
108
  throw new UnsupportedVersionError(baseAssetName, desiredApplicationInfo.name, desiredApplicationInfo.version, supportedVersions);
109
109
  }
110
110
  };
111
+ ensureApplicationIsOpened = async (baseAssetName) => {
112
+ await this.#ensureApplicationIsOpened(baseAssetName);
113
+ };
114
+ ensureDeviceReady = async ({ baseAssetName }) => {
115
+ await this.#ensureApplicationIsOpened(baseAssetName);
116
+ };
111
117
  listSupportedAssetNames = async () => {
112
118
  return supportedBaseAssetNames;
113
119
  };
@@ -130,35 +136,35 @@ export class LedgerDevice {
130
136
  return assetNames || [];
131
137
  };
132
138
  getAddress = async (params) => {
133
- await this.ensureApplicationIsOpened(params.assetName);
139
+ await this.#ensureApplicationIsOpened(params.assetName);
134
140
  return this.#runInSession(async (transport) => {
135
141
  const handler = await this.#getAssetApplication(params.assetName).handler(transport, this.#walletPolicyAtom);
136
142
  return handler.getAddress(params);
137
143
  });
138
144
  };
139
145
  getXPub = async (params) => {
140
- await this.ensureApplicationIsOpened(params.assetName);
146
+ await this.#ensureApplicationIsOpened(params.assetName);
141
147
  return this.#runInSession(async (transport) => {
142
148
  const handler = await this.#getAssetApplication(params.assetName).handler(transport);
143
149
  return handler.getXPub(params);
144
150
  });
145
151
  };
146
152
  getPublicKey = async (params) => {
147
- await this.ensureApplicationIsOpened(params.assetName);
153
+ await this.#ensureApplicationIsOpened(params.assetName);
148
154
  return this.#runInSession(async (transport) => {
149
155
  const handler = await this.#getAssetApplication(params.assetName).handler(transport);
150
156
  return handler.getPublicKey(params);
151
157
  });
152
158
  };
153
159
  signTransaction = async (params) => {
154
- await this.ensureApplicationIsOpened(params.assetName);
160
+ await this.#ensureApplicationIsOpened(params.assetName);
155
161
  return this.#runInSession(async (transport) => {
156
162
  const handler = await this.#getAssetApplication(params.assetName).handler(transport, this.#walletPolicyAtom);
157
163
  return handler.signTransaction(params);
158
164
  });
159
165
  };
160
166
  signMessage = async (params) => {
161
- await this.ensureApplicationIsOpened(params.assetName);
167
+ await this.#ensureApplicationIsOpened(params.assetName);
162
168
  return this.#runInSession(async (transport) => {
163
169
  const handler = await this.#getAssetApplication(params.assetName).handler(transport);
164
170
  return handler.signMessage(params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/hw-ledger",
3
- "version": "3.8.1",
3
+ "version": "3.9.0",
4
4
  "description": "The ledger module",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "@exodus/crypto": "^1.0.0-rc.29",
38
38
  "@exodus/ethereumjs": "^1.5.0",
39
39
  "@exodus/ethersproject-transactions": "^5.4.2-exodus.0",
40
- "@exodus/hw-common": "^3.1.0",
40
+ "@exodus/hw-common": "^3.4.0",
41
41
  "@exodus/ledger-bitcoin": "^0.2.3-exodus.6",
42
42
  "@exodus/ledgerhq-devices": "^8.1.0-exodus.3",
43
43
  "@exodus/ledgerhq-hw-app-eth": "^6.33.7-exodus.8",
@@ -65,5 +65,5 @@
65
65
  "access": "public",
66
66
  "provenance": false
67
67
  },
68
- "gitHead": "4edda992663795fb90a1c31923241ef9ddd477d3"
68
+ "gitHead": "43e7fa9467acd5e681d99473eb54d9e790130e04"
69
69
  }