@exodus/hw-ledger 2.0.0 → 2.1.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 +13 -0
- package/lib/module/assets/ethereum.js +7 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.1.0...@exodus/hw-ledger@2.1.1) (2024-01-11)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- missing dependencies ([#5322](https://github.com/ExodusMovement/exodus-hydra/issues/5322)) ([01efedc](https://github.com/ExodusMovement/exodus-hydra/commit/01efedc7508fb14925277fdcd388afb721ac3dd1))
|
|
11
|
+
- skip ethereum parity v normalization ([#5330](https://github.com/ExodusMovement/exodus-hydra/issues/5330)) ([7408190](https://github.com/ExodusMovement/exodus-hydra/commit/740819013c486a67302298fa6e3e9c981f42014c))
|
|
12
|
+
|
|
13
|
+
## [2.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.0.0...@exodus/hw-ledger@2.1.0) (2023-12-25)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- add matic support ([#5172](https://github.com/ExodusMovement/exodus-hydra/issues/5172)) ([c8817c2](https://github.com/ExodusMovement/exodus-hydra/commit/c8817c250d42459b9583990bd6d0460d90f9a17a))
|
|
18
|
+
|
|
6
19
|
## [2.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@1.3.2...@exodus/hw-ledger@2.0.0) (2023-12-19)
|
|
7
20
|
|
|
8
21
|
### ⚠ BREAKING CHANGES
|
|
@@ -46,6 +46,12 @@ async function createHandler(transport) {
|
|
|
46
46
|
assert(Array.isArray(params.derivationPaths) && params.derivationPaths.length === 1, 'derivationsPath array must be one element long');
|
|
47
47
|
assert(Buffer.isBuffer(params.signableTransaction), 'signableTransaction must be Buffer');
|
|
48
48
|
const deserializedTransaction = ethers.parse(params.signableTransaction);
|
|
49
|
+
if (params.assetName === 'ethereum') {
|
|
50
|
+
deserializedTransaction.chainId = 1;
|
|
51
|
+
}
|
|
52
|
+
else if (params.assetName === 'matic') {
|
|
53
|
+
deserializedTransaction.chainId = 137;
|
|
54
|
+
}
|
|
49
55
|
delete deserializedTransaction.r;
|
|
50
56
|
delete deserializedTransaction.s;
|
|
51
57
|
delete deserializedTransaction.v;
|
|
@@ -112,7 +118,7 @@ async function createHandler(transport) {
|
|
|
112
118
|
assert(false, 'rawMessage or EIP712Message must be specified');
|
|
113
119
|
}
|
|
114
120
|
const { r, s, v } = await signingPromise;
|
|
115
|
-
const vNorm =
|
|
121
|
+
const vNorm = v.toString(16);
|
|
116
122
|
const vHex = vNorm.length < 2 ? '0' + vNorm : vNorm;
|
|
117
123
|
return Buffer.from(`${r}${s}${vHex}`, 'hex');
|
|
118
124
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/hw-ledger",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "The ledger module",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@exodus/hw-common": "^2.0.0",
|
|
37
37
|
"@exodus/ledger-bitcoin": "^0.2.3-exodus.0",
|
|
38
38
|
"@exodus/ledgerhq-hw-app-eth": "^6.33.7-exodus.3",
|
|
39
|
+
"@exodus/module": "^1.2.2",
|
|
39
40
|
"@exodus/secp256k1": "^4.0.2-exodus.0",
|
|
40
41
|
"@ledgerhq/hw-app-solana": "^7.0.10",
|
|
41
42
|
"@ledgerhq/hw-transport": "^6.28.5",
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@exodus/bip32": "^2.0.0",
|
|
50
51
|
"@exodus/ledgerhq-devices": "^8.1.0-exodus.0",
|
|
51
|
-
"@exodus/module": "^1.2.2",
|
|
52
52
|
"@ledgerhq/hw-transport-node-hid": "^6.27.17",
|
|
53
53
|
"@ledgerhq/hw-transport-node-speculos": "^6.27.16",
|
|
54
54
|
"@types/bs58": "^4.0.1",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"ts-jest": "^29.0.3",
|
|
68
68
|
"typescript": "^4.7.3"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "fb16ccc337a5c2b15e6321c757b454d66ff4acb2"
|
|
71
71
|
}
|