@exodus/hw-ledger 1.3.1 → 1.3.3

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/README.md CHANGED
@@ -59,29 +59,40 @@ If you're on Linux then it's highly likely that you'll want to setup your udev r
59
59
 
60
60
  ### Installing Ledger Emulator (Recommended)
61
61
 
62
- Get the Docker images
62
+ Clone the speculos repository & change your current working directory
63
63
 
64
64
  ```bash
65
- docker pull ghcr.io/ledgerhq/speculos
66
- docker image tag ghcr.io/ledgerhq/speculos speculos
65
+ git clone https://github.com/LedgerHQ/speculos.git --branch v0.3.5 --single-branch --depth 1 speculos-0.3.5
66
+ cd speculos-0.3.5
67
67
  ```
68
68
 
69
- Clone the speculos repository & change your current working directory
69
+ Get the Docker image
70
+
71
+ ```bash
72
+ docker image pull ghcr.io/ledgerhq/speculos:sha-8241dc2 # v0.3.5
73
+ docker image tag ghcr.io/ledgerhq/speculos:sha-8241dc2 speculos
74
+ ```
75
+
76
+ Get the Docker image for ARM (M1/M2)
70
77
 
71
78
  ```bash
72
- git clone https://github.com/LedgerHQ/speculos.git
73
- cd speculos
79
+ docker image build -t ghcr.io/ledgerhq/speculos-builder:latest -f build.Dockerfile .
80
+ docker image build -t speculos:latest .
74
81
  ```
75
82
 
76
83
  Launch the emulator while within the `speculos` directory
77
84
 
78
85
  ```bash
79
- docker run --rm -it -v "$(pwd)"/apps:/speculos/apps \
80
- -p 1234:1234 -p 5000:5000 -p 40000:40000 -p 41000:41000 speculos \
81
- --model nanos ./apps/btc.elf --sdk 2.0 --seed "secret" --display headless --apdu-port 40000 --vnc-port 41000
86
+ docker container run --rm -it -v "$(pwd)"/apps:/speculos/apps:ro \
87
+ -p 127.0.0.1:4000:4000 -p 127.0.0.1:40000:40000 speculos \
88
+ --display headless --api-port 4000 --apdu-port 40000 --seed "secret" --model nanos --sdk 2.0 ./apps/btc.elf
82
89
  ```
83
90
 
84
- Now visit http://127.0.0.1:5000 to interact with the emulator.
91
+ Now visit http://127.0.0.1:4000 to interact with the emulator.
92
+
93
+ ### MacOS launch issues:
94
+
95
+ - `port XXXX is already in use`: re-map any available host port ([doc](https://docs.docker.com/network/#published-ports))
85
96
 
86
97
  ### Install udev rules for real devices (Linux only)
87
98
 
@@ -1,5 +1,5 @@
1
1
  import bs58 from 'bs58';
2
- import { AppClient, DefaultWalletPolicy, PsbtV2 } from 'ledger-bitcoin';
2
+ import { AppClient, DefaultWalletPolicy, PsbtV2 } from '@exodus/ledger-bitcoin';
3
3
  import { splitBip44DerivationPath } from './utils';
4
4
  import assert from 'minimalistic-assert';
5
5
  async function createHandler(transport) {
@@ -44,7 +44,7 @@ async function createHandler(transport) {
44
44
  }
45
45
  const metadata = {
46
46
  applicationName: 'Bitcoin',
47
- supportedVersions: '^2.1.0',
47
+ supportedVersions: '^2.1.2',
48
48
  handler: createHandler,
49
49
  };
50
50
  export default metadata;
@@ -1,6 +1,6 @@
1
1
  import secp256k1 from '@exodus/secp256k1';
2
2
  import * as ethers from '@exodus/ethersproject-transactions';
3
- import AppEth, { ledgerService } from '@ledgerhq/hw-app-eth';
3
+ import AppEth, { ledgerService } from '@exodus/ledgerhq-hw-app-eth';
4
4
  import { TypedDataUtils, SignTypedDataVersion, } from '@metamask/eth-sig-util';
5
5
  import assert from 'minimalistic-assert';
6
6
  import { buildFauxXPUB } from './utils';
@@ -1,11 +1,11 @@
1
1
  import bitcoin from './bitcoin';
2
2
  import ethereum from './ethereum';
3
- import polygon from './polygon';
3
+ import matic from './matic';
4
4
  import solana from './solana';
5
5
  export const assetApplications = {
6
6
  bitcoin,
7
7
  ethereum,
8
- polygon,
8
+ matic,
9
9
  solana,
10
10
  };
11
11
  export const supportedBaseAssetNames = Object.keys(assetApplications);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/hw-ledger",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "The ledger module",
5
5
  "author": "Exodus Movement Inc.",
6
6
  "repository": {
@@ -32,19 +32,20 @@
32
32
  "@exodus/ethersproject-abi": "^5.4.2-exodus.2",
33
33
  "@exodus/ethersproject-transactions": "^5.4.2-exodus.0",
34
34
  "@exodus/hw-common": "^1.2.1",
35
+ "@exodus/ledger-bitcoin": "^0.2.3-exodus.0",
36
+ "@exodus/ledgerhq-hw-app-eth": "^6.33.7-exodus.3",
35
37
  "@exodus/secp256k1": "^4.0.2-exodus.0",
36
- "@ledgerhq/hw-app-eth": "^6.33.6",
37
38
  "@ledgerhq/hw-app-solana": "^7.0.10",
38
39
  "@ledgerhq/hw-transport": "^6.28.5",
39
40
  "@metamask/eth-sig-util": "^4.0.1",
40
41
  "bs58": "^4.0.0",
41
42
  "bs58check": "^2.1.2",
42
- "ledger-bitcoin": "^0.2.2",
43
43
  "minimalistic-assert": "^1.0.1",
44
44
  "semver": "^7.3.5"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@exodus/bip32": "^2.0.0",
48
+ "@exodus/ledgerhq-devices": "^8.1.0-exodus.0",
48
49
  "@exodus/module": "^1.2.2",
49
50
  "@ledgerhq/hw-transport-node-hid": "^6.27.17",
50
51
  "@ledgerhq/hw-transport-node-speculos": "^6.27.16",
@@ -61,6 +62,5 @@
61
62
  "jest-when": "^3.5.2",
62
63
  "ts-jest": "^29.0.3",
63
64
  "typescript": "^4.7.3"
64
- },
65
- "gitHead": "a07b4ec2734de8c4985975aafcd854b76718eb99"
65
+ }
66
66
  }
package/CHANGELOG.md DELETED
@@ -1,47 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [1.3.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@1.3.0...@exodus/hw-ledger@1.3.1) (2023-11-28)
7
-
8
- ### Bug Fixes
9
-
10
- - ledger removed isEIP712Message export ([#4911](https://github.com/ExodusMovement/exodus-hydra/issues/4911)) ([dccbd2f](https://github.com/ExodusMovement/exodus-hydra/commit/dccbd2f7e53050e6132e2537f87571f70d445946))
11
-
12
- ## [1.3.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@1.2.0...@exodus/hw-ledger@1.3.0) (2023-11-28)
13
-
14
- ### Features
15
-
16
- - add ability to retrieve supported, installed and useable assets ([#4901](https://github.com/ExodusMovement/exodus-hydra/issues/4901)) ([d821590](https://github.com/ExodusMovement/exodus-hydra/commit/d82159062aa497c1ae5bbe4362cce8a2aff0cc9c))
17
- - add generic `Message` type in `SignMessageParams` ([#4895](https://github.com/ExodusMovement/exodus-hydra/issues/4895)) ([fb688ea](https://github.com/ExodusMovement/exodus-hydra/commit/fb688ea071c18a1a041bbd53869f7afdce2c0b1d))
18
- - add ledger `getFirstDevice` helper ([#4897](https://github.com/ExodusMovement/exodus-hydra/issues/4897)) ([6a2b362](https://github.com/ExodusMovement/exodus-hydra/commit/6a2b362e69b46e0d19be80394ff6f5533f6139ba))
19
-
20
- ## [1.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@1.1.0...@exodus/hw-ledger@1.2.0) (2023-11-27)
21
-
22
- ### Features
23
-
24
- - make hw-ledger a feature ([#4882](https://github.com/ExodusMovement/exodus-hydra/issues/4882)) ([33d93fb](https://github.com/ExodusMovement/exodus-hydra/commit/33d93fb0f4bb507e3788c0450a3e413e79815433))
25
-
26
- ## [1.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@1.0.0...@exodus/hw-ledger@1.1.0) (2023-08-21)
27
-
28
- ### Features
29
-
30
- - **hw-ledger:** add application management functions ([#2586](https://github.com/ExodusMovement/exodus-hydra/issues/2586)) ([125e9ef](https://github.com/ExodusMovement/exodus-hydra/commit/125e9efc835a56a66375e43f9072404af28f466d))
31
- - **hw-ledger:** add bitcoin transaction & message signing support ([#2530](https://github.com/ExodusMovement/exodus-hydra/issues/2530)) ([5d17826](https://github.com/ExodusMovement/exodus-hydra/commit/5d17826335f6e85ba3b9179bb7a2343f686751fb))
32
- - **hw-ledger:** add ethereum transaction signing ([#2315](https://github.com/ExodusMovement/exodus-hydra/issues/2315)) ([5b5c60e](https://github.com/ExodusMovement/exodus-hydra/commit/5b5c60e950948d24cea672e37dc171e1d7348343))
33
- - **hw-ledger:** add polygon support ([#2293](https://github.com/ExodusMovement/exodus-hydra/issues/2293)) ([fd66005](https://github.com/ExodusMovement/exodus-hydra/commit/fd660055b0813917dd4055c408f8731ea448ad4f))
34
- - **hw-ledger:** add prebuilt firmware ([#2212](https://github.com/ExodusMovement/exodus-hydra/issues/2212)) ([80667a4](https://github.com/ExodusMovement/exodus-hydra/commit/80667a4237a103c08e55dbf634a193dda0875ca0))
35
- - **hw-ledger:** add solana transaction & message signing ([#2357](https://github.com/ExodusMovement/exodus-hydra/issues/2357)) ([2ca2a4e](https://github.com/ExodusMovement/exodus-hydra/commit/2ca2a4e93f813b1777953355c4d271033e7d98d0))
36
- - **hw-ledger:** add Taproot address support ([#2442](https://github.com/ExodusMovement/exodus-hydra/issues/2442)) ([4d8350e](https://github.com/ExodusMovement/exodus-hydra/commit/4d8350ecbdca500e6b69a36ce83c7b4c63bb0e8f))
37
- - **hw-ledger:** automatically open the application ([#2801](https://github.com/ExodusMovement/exodus-hydra/issues/2801)) ([80e04b4](https://github.com/ExodusMovement/exodus-hydra/commit/80e04b49ee886cc3ca9b65695a567d06b0909928))
38
- - **hw-ledger:** bitcoin address derivation ([#2181](https://github.com/ExodusMovement/exodus-hydra/issues/2181)) ([19b77ec](https://github.com/ExodusMovement/exodus-hydra/commit/19b77ec223d998454843d82c4c47a4350e77299e))
39
- - **hw-ledger:** ethereum address generation ([#2213](https://github.com/ExodusMovement/exodus-hydra/issues/2213)) ([1c5b326](https://github.com/ExodusMovement/exodus-hydra/commit/1c5b326d7fbbcf66ff6cb820c35c1e1d1d127821))
40
- - **hw-ledger:** ethereum message signing ([#3058](https://github.com/ExodusMovement/exodus-hydra/issues/3058)) ([df07d2d](https://github.com/ExodusMovement/exodus-hydra/commit/df07d2d861cc20c1db366b47dc98802dd8e73f9c))
41
- - **hw-ledger:** solana address derivation ([#2211](https://github.com/ExodusMovement/exodus-hydra/issues/2211)) ([1c73d28](https://github.com/ExodusMovement/exodus-hydra/commit/1c73d28798801016966a8034a3538b9abc4cbf16))
42
- - **ledger:** add ethereum xpub support ([#3403](https://github.com/ExodusMovement/exodus-hydra/issues/3403)) ([7de98d2](https://github.com/ExodusMovement/exodus-hydra/commit/7de98d22080bcb46a9fe88e30d631a5ace3a923d))
43
-
44
- ### Bug Fixes
45
-
46
- - **hw-ledger:** support NFT transactions on Nano S ([#2961](https://github.com/ExodusMovement/exodus-hydra/issues/2961)) ([1161a80](https://github.com/ExodusMovement/exodus-hydra/commit/1161a807c581211132d56ec2912bc27b683207d1))
47
- - missing dependencies ([#2408](https://github.com/ExodusMovement/exodus-hydra/issues/2408)) ([7791f2a](https://github.com/ExodusMovement/exodus-hydra/commit/7791f2aa10f318b0a3c8f932ec686fbe0cf16617))
File without changes
File without changes