@exodus/hw-ledger 2.13.1 → 3.0.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,16 @@
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.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.13.1...@exodus/hw-ledger@3.0.0) (2024-10-15)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - remove `getFirstDevice` from hardware wallet discovery (#9821)
11
+
12
+ ### Features
13
+
14
+ - remove `getFirstDevice` from hardware wallet discovery ([#9821](https://github.com/ExodusMovement/exodus-hydra/issues/9821)) ([ad3e902](https://github.com/ExodusMovement/exodus-hydra/commit/ad3e902fd9e27dfccd8311089b6d966767cc6d0a))
15
+
6
16
  ## [2.13.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.13.0...@exodus/hw-ledger@2.13.1) (2024-10-09)
7
17
 
8
18
  **Note:** Version bump only for package @exodus/hw-ledger
@@ -7,6 +7,10 @@ export interface BitcoinMessage {
7
7
  address: string;
8
8
  message: Bytes;
9
9
  };
10
+ bip137Message?: {
11
+ address: string;
12
+ message: Bytes;
13
+ };
10
14
  }
11
15
  declare function createHandler(transport: Transport, walletPolicyAtom?: Atom<Record<string, Buffer>>): Promise<HardwareWalletAssetHandler<BitcoinMessage>>;
12
16
  declare const metadata: {
@@ -18,7 +18,6 @@ export declare class LedgerDiscovery implements HardwareWalletDiscovery {
18
18
  scan: () => Promise<void>;
19
19
  stopScan: (clearDevices?: boolean) => void;
20
20
  list: () => Promise<HardwareWalletDescriptor[]>;
21
- getFirstDevice: () => Promise<import("@exodus/hw-common").HardwareWalletDevice<import("@exodus/hw-common").Message>>;
22
21
  stop: () => Promise<void>;
23
22
  }
24
23
  declare const _default: {
@@ -1,5 +1,4 @@
1
1
  import { getInfosForServiceUuid, identifyUSBProductId } from '@exodus/ledgerhq-devices';
2
- import { NoDeviceFoundError } from '@exodus/hw-common';
3
2
  import { APDU_PORT } from './constants';
4
3
  import { LedgerDevice } from './device';
5
4
  import { UnknownTransportError } from './errors';
@@ -115,8 +114,7 @@ export class LedgerDiscovery {
115
114
  break;
116
115
  case 'bluetooth':
117
116
  const bluetoothDeviceList = Object.values(this.#discoveredBluetoothDevices).map((bluetoothDevice) => {
118
- const deviceModel = getInfosForServiceUuid(bluetoothDevice.serviceUUIDs?.[0] ?? '')
119
- ?.deviceModel;
117
+ const deviceModel = getInfosForServiceUuid(bluetoothDevice.serviceUUIDs?.[0] ?? '')?.deviceModel;
120
118
  return {
121
119
  name: bluetoothDevice.localName ?? deviceModel?.productName,
122
120
  manufacturer: 'ledger',
@@ -150,13 +148,6 @@ export class LedgerDiscovery {
150
148
  }
151
149
  return descriptors;
152
150
  };
153
- getFirstDevice = async () => {
154
- const devices = await this.list();
155
- if (devices[0]) {
156
- return devices[0].get();
157
- }
158
- throw new NoDeviceFoundError();
159
- };
160
151
  stop = async () => {
161
152
  this.#statusBluetooth?.unsubscribe();
162
153
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/hw-ledger",
3
- "version": "2.13.1",
3
+ "version": "3.0.0",
4
4
  "description": "The ledger module",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "build": "run -T tsc --build tsconfig.build.json",
23
- "build:watch": "run -T tsc --build tsconfig.build.json && (concurrently 'run -T tsc --build -w tsconfig.build.json')",
23
+ "build:watch": "run -T tsc --build tsconfig.build.json && run -T tsc --build -w tsconfig.build.json",
24
24
  "clean": "run -T tsc --build --clean",
25
25
  "test": "run -T jest --testMatch='**/*.unit.test.js' --coverageDirectory coverage/unit",
26
26
  "zemu:install": "docker pull zondax/builder-zemu:speculos-745fe46f81cfc18114b94a37beaefb58a09c0fcd",
@@ -51,26 +51,19 @@
51
51
  "devDependencies": {
52
52
  "@exodus/bip32": "^3.3.0",
53
53
  "@exodus/dependency-types": "^2.1.0",
54
- "@exodus/ethersproject-abi": "^5.4.2-exodus.3",
55
54
  "@ledgerhq/hw-transport-node-hid": "^6.27.17",
56
- "@ledgerhq/hw-transport-node-speculos": "^6.27.16",
57
55
  "@solana/web3.js": "^1.78.0",
58
56
  "@types/bs58": "^4.0.1",
59
57
  "@types/bs58check": "^2.1.0",
60
- "@types/create-hash": "^1.2.6",
61
- "@types/jest-when": "^3.5.2",
62
58
  "@types/minimalistic-assert": "^1.0.1",
63
59
  "@types/secp256k1": "^4.0.3",
64
60
  "@types/semver": "^7.3.5",
65
61
  "@zondax/zemu": "^0.43.1",
66
62
  "bitcoinjs-lib": "^6.1.3",
67
- "concurrently": "^7.6.0",
68
63
  "ecpair": "^2.1.0",
69
- "istanbul-combine": "^0.3.0",
70
- "jest-when": "^3.5.2",
71
64
  "redux": "^4.2.1",
72
65
  "tiny-secp256k1": "^2.2.3",
73
66
  "ts-jest": "^29.0.3"
74
67
  },
75
- "gitHead": "4b80481d5accabf8676bac0b18ccbcf95d89faa4"
68
+ "gitHead": "50ae8273c930389d0054db9207c7f1d9b0f6ed77"
76
69
  }