@exodus/hw-ledger 2.8.0 → 2.8.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,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
+ ## [2.8.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.8.0...@exodus/hw-ledger@2.8.1) (2024-07-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **ledger:** fix selectors ([#7744](https://github.com/ExodusMovement/exodus-hydra/issues/7744)) ([11ad709](https://github.com/ExodusMovement/exodus-hydra/commit/11ad7098314c1a7dee014765bfc0500d9636b4df))
11
+
6
12
  ## [2.8.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.7.0...@exodus/hw-ledger@2.8.0) (2024-07-10)
7
13
 
8
14
  ### Features
@@ -15,15 +15,15 @@ declare const exchangeReduxDefinition: {
15
15
  };
16
16
  readonly selectorDefinitions: ({
17
17
  readonly id: "bluetoothEnabled";
18
- readonly resultFunction: (bluetoothEnabled: LedgerHardwareWalletState) => LedgerHardwareWalletState;
18
+ readonly resultFunction: (state: LedgerHardwareWalletState) => boolean;
19
19
  readonly dependencies: readonly [{
20
- readonly selector: "bluetoothEnabled";
20
+ readonly selector: string;
21
21
  }];
22
22
  } | {
23
23
  readonly id: "bluetoothScanning";
24
- readonly resultFunction: (bluetoothScanning: LedgerHardwareWalletState) => LedgerHardwareWalletState;
24
+ readonly resultFunction: (state: LedgerHardwareWalletState) => boolean;
25
25
  readonly dependencies: readonly [{
26
- readonly selector: "bluetoothScanning";
26
+ readonly selector: string;
27
27
  }];
28
28
  })[];
29
29
  };
@@ -1,9 +1,9 @@
1
1
  import type { LedgerHardwareWalletState } from '../initial-state';
2
2
  declare const bluetoothEnabledSelectorDefinition: {
3
3
  readonly id: "bluetoothEnabled";
4
- readonly resultFunction: (bluetoothEnabled: LedgerHardwareWalletState) => LedgerHardwareWalletState;
4
+ readonly resultFunction: (state: LedgerHardwareWalletState) => boolean;
5
5
  readonly dependencies: readonly [{
6
- readonly selector: "bluetoothEnabled";
6
+ readonly selector: string;
7
7
  }];
8
8
  };
9
9
  export default bluetoothEnabledSelectorDefinition;
@@ -1,7 +1,8 @@
1
- const resultFunction = (bluetoothEnabled) => bluetoothEnabled;
1
+ import { MY_STATE } from '@exodus/redux-dependency-injection';
2
+ const resultFunction = (state) => state.bluetoothEnabled;
2
3
  const bluetoothEnabledSelectorDefinition = {
3
4
  id: 'bluetoothEnabled',
4
5
  resultFunction,
5
- dependencies: [{ selector: 'bluetoothEnabled' }],
6
+ dependencies: [{ selector: MY_STATE }],
6
7
  };
7
8
  export default bluetoothEnabledSelectorDefinition;
@@ -1,9 +1,9 @@
1
1
  import type { LedgerHardwareWalletState } from '../initial-state';
2
2
  declare const bluetoothScanningSelectorDefinition: {
3
3
  readonly id: "bluetoothScanning";
4
- readonly resultFunction: (bluetoothScanning: LedgerHardwareWalletState) => LedgerHardwareWalletState;
4
+ readonly resultFunction: (state: LedgerHardwareWalletState) => boolean;
5
5
  readonly dependencies: readonly [{
6
- readonly selector: "bluetoothScanning";
6
+ readonly selector: string;
7
7
  }];
8
8
  };
9
9
  export default bluetoothScanningSelectorDefinition;
@@ -1,7 +1,8 @@
1
- const resultFunction = (bluetoothScanning) => bluetoothScanning;
1
+ import { MY_STATE } from '@exodus/redux-dependency-injection';
2
+ const resultFunction = (state) => state.bluetoothScanning;
2
3
  const bluetoothScanningSelectorDefinition = {
3
4
  id: 'bluetoothScanning',
4
5
  resultFunction,
5
- dependencies: [{ selector: 'bluetoothScanning' }],
6
+ dependencies: [{ selector: MY_STATE }],
6
7
  };
7
8
  export default bluetoothScanningSelectorDefinition;
@@ -1,14 +1,14 @@
1
1
  declare const ledgerSelectors: ({
2
2
  readonly id: "bluetoothEnabled";
3
- readonly resultFunction: (bluetoothEnabled: import("../initial-state").LedgerHardwareWalletState) => import("../initial-state").LedgerHardwareWalletState;
3
+ readonly resultFunction: (state: import("../initial-state").LedgerHardwareWalletState) => boolean;
4
4
  readonly dependencies: readonly [{
5
- readonly selector: "bluetoothEnabled";
5
+ readonly selector: string;
6
6
  }];
7
7
  } | {
8
8
  readonly id: "bluetoothScanning";
9
- readonly resultFunction: (bluetoothScanning: import("../initial-state").LedgerHardwareWalletState) => import("../initial-state").LedgerHardwareWalletState;
9
+ readonly resultFunction: (state: import("../initial-state").LedgerHardwareWalletState) => boolean;
10
10
  readonly dependencies: readonly [{
11
- readonly selector: "bluetoothScanning";
11
+ readonly selector: string;
12
12
  }];
13
13
  })[];
14
14
  export default ledgerSelectors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/hw-ledger",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "The ledger module",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -39,6 +39,7 @@
39
39
  "@exodus/ledgerhq-devices": "^8.1.0-exodus.3",
40
40
  "@exodus/ledgerhq-hw-app-eth": "^6.33.7-exodus.8",
41
41
  "@exodus/module": "^1.2.2",
42
+ "@exodus/redux-dependency-injection": "^3.0.0",
42
43
  "@exodus/secp256k1": "^4.0.2-exodus.0",
43
44
  "@ledgerhq/hw-app-solana": "^7.0.10",
44
45
  "@ledgerhq/hw-transport": "^6.28.5",
@@ -66,9 +67,10 @@
66
67
  "ecpair": "^2.1.0",
67
68
  "istanbul-combine": "^0.3.0",
68
69
  "jest-when": "^3.5.2",
70
+ "redux": "^4.2.1",
69
71
  "tiny-secp256k1": "^2.2.3",
70
72
  "ts-jest": "^29.0.3",
71
73
  "typescript": "^4.7.3"
72
74
  },
73
- "gitHead": "7c0905f9185d9c00a8f3d4897991f596e226867a"
75
+ "gitHead": "53b2dc8a2362537c92f3be5b23c6f71e13980d81"
74
76
  }