@exodus/hw-ledger 2.12.0 → 2.13.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 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
+ ## [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
+
8
+ **Note:** Version bump only for package @exodus/hw-ledger
9
+
10
+ ## [2.13.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.12.0...@exodus/hw-ledger@2.13.0) (2024-10-03)
11
+
12
+ ### Features
13
+
14
+ - update bip32 to 3.3.0 ([#9721](https://github.com/ExodusMovement/exodus-hydra/issues/9721)) ([eb08369](https://github.com/ExodusMovement/exodus-hydra/commit/eb08369df93ed7239cb106e095b143da0032e174))
15
+
6
16
  ## [2.11.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.11.0...@exodus/hw-ledger@2.11.1) (2024-10-01)
7
17
 
8
18
  ### Features
package/lib/index.d.ts CHANGED
@@ -5,7 +5,7 @@ declare const hardwareWalletLedger: ({ bluetoothScannerTimeout, }?: Partial<HwLe
5
5
  readonly definition: {
6
6
  readonly id: "bluetoothStatusAtom";
7
7
  readonly type: "atom";
8
- readonly factory: () => import("@exodus/atoms").Atom<import("./atoms").BluetoothStatus>;
8
+ readonly factory: () => import("libraries/atoms/lib").Atom<import("./atoms").BluetoothStatus>;
9
9
  readonly dependencies: readonly [];
10
10
  readonly public: true;
11
11
  };
@@ -13,7 +13,7 @@ declare const hardwareWalletLedger: ({ bluetoothScannerTimeout, }?: Partial<HwLe
13
13
  readonly definition: {
14
14
  readonly id: "bluetoothScanningAtom";
15
15
  readonly type: "atom";
16
- readonly factory: () => import("@exodus/atoms").Atom<boolean>;
16
+ readonly factory: () => import("libraries/atoms/lib").Atom<boolean>;
17
17
  readonly dependencies: readonly [];
18
18
  readonly public: true;
19
19
  };
@@ -23,7 +23,7 @@ declare const hardwareWalletLedger: ({ bluetoothScannerTimeout, }?: Partial<HwLe
23
23
  readonly type: "atom";
24
24
  readonly factory: ({ storage }: {
25
25
  storage: import("adapters/storage-interface").Storage<Record<string, Buffer>>;
26
- }) => import("@exodus/atoms").Atom<Record<string, Buffer> | {}>;
26
+ }) => import("libraries/atoms/lib").Atom<Record<string, Buffer> | {}>;
27
27
  readonly dependencies: readonly ["storage"];
28
28
  readonly public: true;
29
29
  };
@@ -32,8 +32,8 @@ declare const hardwareWalletLedger: ({ bluetoothScannerTimeout, }?: Partial<HwLe
32
32
  readonly id: "hardwareWalletLedgerPlugin";
33
33
  readonly type: "plugin";
34
34
  readonly factory: ({ bluetoothStatusAtom, bluetoothScanningAtom, ledgerDiscovery, port, }: {
35
- bluetoothStatusAtom: import("@exodus/atoms").Atom<import("./atoms").BluetoothStatus>;
36
- bluetoothScanningAtom: import("@exodus/atoms").Atom<boolean>;
35
+ bluetoothStatusAtom: import("libraries/atoms/lib").Atom<import("./atoms").BluetoothStatus>;
36
+ bluetoothScanningAtom: import("libraries/atoms/lib").Atom<boolean>;
37
37
  ledgerDiscovery: import("./module").LedgerDiscovery;
38
38
  port: import("./shared/types").Port;
39
39
  }) => {
@@ -1,7 +1,7 @@
1
1
  import semver from 'semver';
2
2
  import { AssetUnsupportedError, DeviceLockedError, DeviceConnectionError, UserRefusedError, } from '@exodus/hw-common';
3
3
  import { applicationNameToBaseAssetNames, assetApplications, supportedBaseAssetNames, } from './assets';
4
- import applicationFactory from './management/application';
4
+ import { createApplicationManager as applicationFactory } from './management/application';
5
5
  import { UnsupportedVersionError, ApplicationNotFoundError } from './errors';
6
6
  export class LedgerDevice {
7
7
  #transportFactory;
@@ -1,7 +1,8 @@
1
1
  import { getInfosForServiceUuid, identifyUSBProductId } from '@exodus/ledgerhq-devices';
2
+ import { NoDeviceFoundError } from '@exodus/hw-common';
2
3
  import { APDU_PORT } from './constants';
3
4
  import { LedgerDevice } from './device';
4
- import { NoDeviceFoundError, UnknownTransportError } from './errors';
5
+ import { UnknownTransportError } from './errors';
5
6
  const MODULE_ID = 'ledgerDiscovery';
6
7
  export class LedgerDiscovery {
7
8
  #logger;
@@ -3,10 +3,6 @@ export declare class UnknownTransportError extends HardwareWalletError {
3
3
  name: string;
4
4
  constructor(transportName?: string);
5
5
  }
6
- export declare class NoDeviceFoundError extends HardwareWalletError {
7
- name: string;
8
- constructor();
9
- }
10
6
  export declare class ApplicationNotFoundError extends HardwareWalletError {
11
7
  name: string;
12
8
  supportedApplications: string[];
@@ -5,12 +5,6 @@ export class UnknownTransportError extends HardwareWalletError {
5
5
  super(`unknown transport type ${transportName || ''}`);
6
6
  }
7
7
  }
8
- export class NoDeviceFoundError extends HardwareWalletError {
9
- name = 'NoDeviceFoundError';
10
- constructor() {
11
- super(`unable to find a connected device`);
12
- }
13
- }
14
8
  export class ApplicationNotFoundError extends HardwareWalletError {
15
9
  name = 'ApplicationNotFoundError';
16
10
  supportedApplications;
@@ -11,7 +11,7 @@ export type ListAppResponse = {
11
11
  blocks?: number;
12
12
  flags?: number;
13
13
  }[];
14
- export default function createApplicationManager(transport: Transport): Promise<{
14
+ export declare function createApplicationManager(transport: Transport): Promise<{
15
15
  getInformation: () => Promise<GetInformationResponse>;
16
16
  listApplications: () => Promise<ListAppResponse>;
17
17
  openApplication: (name: string) => Promise<void>;
@@ -1,4 +1,4 @@
1
- export default async function createApplicationManager(transport) {
1
+ export async function createApplicationManager(transport) {
2
2
  return {
3
3
  getInformation: async () => {
4
4
  const r = await transport.send(0xb0, 0x01, 0x00, 0x00);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/hw-ledger",
3
- "version": "2.12.0",
3
+ "version": "2.13.1",
4
4
  "description": "The ledger module",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -24,17 +24,17 @@
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",
27
- "test:integration": "yarn zemu:install && run -T jest --runInBand",
27
+ "test:integration": "yarn zemu:install && run -T exodus-test --jest --esbuild",
28
28
  "lint": "run -T eslint .",
29
29
  "lint:fix": "yarn lint --fix",
30
30
  "prepublishOnly": "yarn run -T build --scope @exodus/hw-ledger"
31
31
  },
32
32
  "dependencies": {
33
- "@exodus/atoms": "^8.0.0",
33
+ "@exodus/atoms": "^9.0.0",
34
34
  "@exodus/bip322-js": "^1.1.0-exodus.4",
35
35
  "@exodus/bitcoinjs-lib": "^6.1.5-exodus.0",
36
36
  "@exodus/ethersproject-transactions": "^5.4.2-exodus.0",
37
- "@exodus/hw-common": "^2.5.0",
37
+ "@exodus/hw-common": "^2.5.1",
38
38
  "@exodus/ledger-bitcoin": "^0.2.3-exodus.3",
39
39
  "@exodus/ledgerhq-devices": "^8.1.0-exodus.3",
40
40
  "@exodus/ledgerhq-hw-app-eth": "^6.33.7-exodus.8",
@@ -49,7 +49,8 @@
49
49
  "semver": "^7.3.5"
50
50
  },
51
51
  "devDependencies": {
52
- "@exodus/bip32": "^2.0.0",
52
+ "@exodus/bip32": "^3.3.0",
53
+ "@exodus/dependency-types": "^2.1.0",
53
54
  "@exodus/ethersproject-abi": "^5.4.2-exodus.3",
54
55
  "@ledgerhq/hw-transport-node-hid": "^6.27.17",
55
56
  "@ledgerhq/hw-transport-node-speculos": "^6.27.16",
@@ -71,5 +72,5 @@
71
72
  "tiny-secp256k1": "^2.2.3",
72
73
  "ts-jest": "^29.0.3"
73
74
  },
74
- "gitHead": "d4838cd68554c8a09b6d2815a6c77dd6187234a0"
75
+ "gitHead": "4b80481d5accabf8676bac0b18ccbcf95d89faa4"
75
76
  }