@ledgerhq/coin-vechain 2.13.0-nightly.20251209144712 → 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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +41 -11
- package/lib/signer/signMessage.js +1 -1
- package/lib/signer/signMessage.js.map +1 -1
- package/lib-es/signer/signMessage.js +1 -1
- package/lib-es/signer/signMessage.js.map +1 -1
- package/package.json +10 -10
- package/src/signer/signMessage.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-vechain@2.
|
|
2
|
+
> @ledgerhq/coin-vechain@2.13.1 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-vechain
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,54 @@
|
|
|
1
1
|
# @ledgerhq/coin-evm
|
|
2
2
|
|
|
3
|
-
## 2.13.
|
|
3
|
+
## 2.13.1
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`b68b749`](https://github.com/LedgerHQ/ledger-live/commit/b68b749b53c9583dd983ab057faa89fced1e541e)]:
|
|
8
|
+
- @ledgerhq/errors@6.27.1
|
|
9
|
+
- @ledgerhq/coin-framework@6.10.1
|
|
10
|
+
- @ledgerhq/cryptoassets@13.34.1
|
|
11
|
+
- @ledgerhq/devices@8.7.1
|
|
12
|
+
- @ledgerhq/live-network@2.1.3
|
|
13
|
+
|
|
14
|
+
## 2.13.1-hotfix.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`b68b749`](https://github.com/LedgerHQ/ledger-live/commit/b68b749b53c9583dd983ab057faa89fced1e541e)]:
|
|
19
|
+
- @ledgerhq/errors@6.27.1-hotfix.0
|
|
20
|
+
- @ledgerhq/coin-framework@6.10.1-hotfix.0
|
|
21
|
+
- @ledgerhq/cryptoassets@13.34.1-hotfix.0
|
|
22
|
+
- @ledgerhq/devices@8.7.1-hotfix.0
|
|
23
|
+
- @ledgerhq/live-network@2.1.3-hotfix.0
|
|
24
|
+
|
|
25
|
+
## 2.13.0
|
|
6
26
|
|
|
7
|
-
|
|
27
|
+
### Minor Changes
|
|
8
28
|
|
|
9
|
-
- [#
|
|
29
|
+
- [#12840](https://github.com/LedgerHQ/ledger-live/pull/12840) [`ed580b3`](https://github.com/LedgerHQ/ledger-live/commit/ed580b3b8bee2ad492e40788adb29f90f175bce5) Thanks [@alevito](https://github.com/alevito)! - improve accuracy of gas estimation by setting the transaction caller to origin's address, rather than the recipient's address
|
|
10
30
|
|
|
11
31
|
### Patch Changes
|
|
12
32
|
|
|
33
|
+
- Updated dependencies [[`50aeea1`](https://github.com/LedgerHQ/ledger-live/commit/50aeea1233056e9abff9568eb928927f39e76cff), [`a2ecb55`](https://github.com/LedgerHQ/ledger-live/commit/a2ecb55df9d383dc282f5fe489cb14386208215e), [`fe81926`](https://github.com/LedgerHQ/ledger-live/commit/fe81926afeb2df8e917e6bd1e4cbab13f09647fd), [`67137eb`](https://github.com/LedgerHQ/ledger-live/commit/67137eb5d7f04dd5f3610fdaa4e463d292654105), [`49ef24c`](https://github.com/LedgerHQ/ledger-live/commit/49ef24cbd1948bfd146af0b20f2128951b2dc170), [`b4a4e16`](https://github.com/LedgerHQ/ledger-live/commit/b4a4e160aae6fd64f944ab25633f6931dc4358d3), [`903ea9c`](https://github.com/LedgerHQ/ledger-live/commit/903ea9cdacf704a0119de2803a4f409b775391a5), [`9251b77`](https://github.com/LedgerHQ/ledger-live/commit/9251b77fcb01709723842f19220a2a41a6fc8f3b), [`02ef98f`](https://github.com/LedgerHQ/ledger-live/commit/02ef98faeb13c182ef255e06a43c39abeb55ecc7), [`6d0c6b2`](https://github.com/LedgerHQ/ledger-live/commit/6d0c6b2eda60049d8eebda5de2c54e8f0be7d009), [`b113920`](https://github.com/LedgerHQ/ledger-live/commit/b11392056bc334fc1813c473569ad3ae7be08045), [`9659a34`](https://github.com/LedgerHQ/ledger-live/commit/9659a34d9998d5c4dff8618bf6cef7d16403680d)]:
|
|
34
|
+
- @ledgerhq/cryptoassets@13.34.0
|
|
35
|
+
- @ledgerhq/coin-framework@6.10.0
|
|
36
|
+
- @ledgerhq/live-env@2.22.0
|
|
37
|
+
- @ledgerhq/live-network@2.1.2
|
|
38
|
+
|
|
39
|
+
## 2.13.0-next.0
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
13
43
|
- [#12840](https://github.com/LedgerHQ/ledger-live/pull/12840) [`ed580b3`](https://github.com/LedgerHQ/ledger-live/commit/ed580b3b8bee2ad492e40788adb29f90f175bce5) Thanks [@alevito](https://github.com/alevito)! - improve accuracy of gas estimation by setting the transaction caller to origin's address, rather than the recipient's address
|
|
14
44
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- @ledgerhq/
|
|
19
|
-
- @ledgerhq/
|
|
20
|
-
- @ledgerhq/
|
|
21
|
-
- @ledgerhq/live-network@2.1.2-
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies [[`50aeea1`](https://github.com/LedgerHQ/ledger-live/commit/50aeea1233056e9abff9568eb928927f39e76cff), [`a2ecb55`](https://github.com/LedgerHQ/ledger-live/commit/a2ecb55df9d383dc282f5fe489cb14386208215e), [`fe81926`](https://github.com/LedgerHQ/ledger-live/commit/fe81926afeb2df8e917e6bd1e4cbab13f09647fd), [`67137eb`](https://github.com/LedgerHQ/ledger-live/commit/67137eb5d7f04dd5f3610fdaa4e463d292654105), [`49ef24c`](https://github.com/LedgerHQ/ledger-live/commit/49ef24cbd1948bfd146af0b20f2128951b2dc170), [`b4a4e16`](https://github.com/LedgerHQ/ledger-live/commit/b4a4e160aae6fd64f944ab25633f6931dc4358d3), [`903ea9c`](https://github.com/LedgerHQ/ledger-live/commit/903ea9cdacf704a0119de2803a4f409b775391a5), [`9251b77`](https://github.com/LedgerHQ/ledger-live/commit/9251b77fcb01709723842f19220a2a41a6fc8f3b), [`02ef98f`](https://github.com/LedgerHQ/ledger-live/commit/02ef98faeb13c182ef255e06a43c39abeb55ecc7), [`6d0c6b2`](https://github.com/LedgerHQ/ledger-live/commit/6d0c6b2eda60049d8eebda5de2c54e8f0be7d009), [`b113920`](https://github.com/LedgerHQ/ledger-live/commit/b11392056bc334fc1813c473569ad3ae7be08045), [`9659a34`](https://github.com/LedgerHQ/ledger-live/commit/9659a34d9998d5c4dff8618bf6cef7d16403680d)]:
|
|
48
|
+
- @ledgerhq/cryptoassets@13.34.0-next.0
|
|
49
|
+
- @ledgerhq/coin-framework@6.10.0-next.0
|
|
50
|
+
- @ledgerhq/live-env@2.22.0-next.0
|
|
51
|
+
- @ledgerhq/live-network@2.1.2-next.0
|
|
22
52
|
|
|
23
53
|
## 2.12.1
|
|
24
54
|
|
|
@@ -12,7 +12,7 @@ const signMessage = (signerContext) => async (deviceId, path, message, rawMessag
|
|
|
12
12
|
messageObj = JSON.parse(rawMessage);
|
|
13
13
|
unsigned = types_1.VechainSDKTransaction.of(messageObj);
|
|
14
14
|
}
|
|
15
|
-
catch {
|
|
15
|
+
catch (e) {
|
|
16
16
|
throw new Error("Message is not a valid JSON object");
|
|
17
17
|
}
|
|
18
18
|
const result = await signerContext(deviceId, signer => signer.signTransaction(path, Buffer.from(unsigned.encoded).toString("hex")));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../src/signer/signMessage.ts"],"names":[],"mappings":";;;AACA,oCAAgE;AAEzD,MAAM,WAAW,GACtB,CAAC,aAA2C,EAAE,EAAE,CAChD,KAAK,EAAE,QAAgB,EAAE,IAAY,EAAE,OAAe,EAAE,UAAkB,EAAE,EAAE;IAC5E,IAAI,UAAU,CAAC;IACf,IAAI,QAA+B,CAAC;IACpC,IAAI,CAAC;QACH,IAAI,OAAO;YAAE,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;;YACzC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACzC,QAAQ,GAAG,6BAAqB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../src/signer/signMessage.ts"],"names":[],"mappings":";;;AACA,oCAAgE;AAEzD,MAAM,WAAW,GACtB,CAAC,aAA2C,EAAE,EAAE,CAChD,KAAK,EAAE,QAAgB,EAAE,IAAY,EAAE,OAAe,EAAE,UAAkB,EAAE,EAAE;IAC5E,IAAI,UAAU,CAAC;IACf,IAAI,QAA+B,CAAC;IACpC,IAAI,CAAC;QACH,IAAI,OAAO;YAAE,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;;YACzC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACzC,QAAQ,GAAG,6BAAqB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,CACpD,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAC5E,CAAC;IAEF,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC,CAAC;AAjBS,QAAA,WAAW,eAiBpB"}
|
|
@@ -9,7 +9,7 @@ export const signMessage = (signerContext) => async (deviceId, path, message, ra
|
|
|
9
9
|
messageObj = JSON.parse(rawMessage);
|
|
10
10
|
unsigned = VechainSDKTransaction.of(messageObj);
|
|
11
11
|
}
|
|
12
|
-
catch {
|
|
12
|
+
catch (e) {
|
|
13
13
|
throw new Error("Message is not a valid JSON object");
|
|
14
14
|
}
|
|
15
15
|
const result = await signerContext(deviceId, signer => signer.signTransaction(path, Buffer.from(unsigned.encoded).toString("hex")));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../src/signer/signMessage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAiB,MAAM,UAAU,CAAC;AAEhE,MAAM,CAAC,MAAM,WAAW,GACtB,CAAC,aAA2C,EAAE,EAAE,CAChD,KAAK,EAAE,QAAgB,EAAE,IAAY,EAAE,OAAe,EAAE,UAAkB,EAAE,EAAE;IAC5E,IAAI,UAAU,CAAC;IACf,IAAI,QAA+B,CAAC;IACpC,IAAI,CAAC;QACH,IAAI,OAAO;YAAE,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;;YACzC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACzC,QAAQ,GAAG,qBAAqB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../src/signer/signMessage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAiB,MAAM,UAAU,CAAC;AAEhE,MAAM,CAAC,MAAM,WAAW,GACtB,CAAC,aAA2C,EAAE,EAAE,CAChD,KAAK,EAAE,QAAgB,EAAE,IAAY,EAAE,OAAe,EAAE,UAAkB,EAAE,EAAE;IAC5E,IAAI,UAAU,CAAC;IACf,IAAI,QAA+B,CAAC;IACpC,IAAI,CAAC;QACH,IAAI,OAAO;YAAE,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;;YACzC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACzC,QAAQ,GAAG,qBAAqB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,CACpD,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAC5E,CAAC;IAEF,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-vechain",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.1",
|
|
4
4
|
"description": "Ledger VeChain Coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -83,15 +83,15 @@
|
|
|
83
83
|
"eip55": "^2.1.1",
|
|
84
84
|
"invariant": "^2.2.2",
|
|
85
85
|
"lodash": "^4.17.21",
|
|
86
|
-
"rxjs": "7.8.
|
|
86
|
+
"rxjs": "^7.8.1",
|
|
87
87
|
"@vechain/sdk-core": "2.0.0",
|
|
88
88
|
"@vechain/sdk-network": "2.0.0",
|
|
89
|
-
"@ledgerhq/
|
|
90
|
-
"@ledgerhq/
|
|
91
|
-
"@ledgerhq/
|
|
92
|
-
"@ledgerhq/errors": "^6.
|
|
93
|
-
"@ledgerhq/live-env": "^2.22.0
|
|
94
|
-
"@ledgerhq/live-network": "^2.1.
|
|
89
|
+
"@ledgerhq/coin-framework": "^6.10.1",
|
|
90
|
+
"@ledgerhq/cryptoassets": "^13.34.1",
|
|
91
|
+
"@ledgerhq/devices": "8.7.1",
|
|
92
|
+
"@ledgerhq/errors": "^6.27.1",
|
|
93
|
+
"@ledgerhq/live-env": "^2.22.0",
|
|
94
|
+
"@ledgerhq/live-network": "^2.1.3"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@faker-js/faker": "^9.6.0",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"jest": "^29.7.0",
|
|
103
103
|
"msw": "^2.2.13",
|
|
104
104
|
"ts-jest": "^29.1.1",
|
|
105
|
-
"@ledgerhq/types-cryptoassets": "^7.
|
|
106
|
-
"@ledgerhq/types-live": "^6.90.0
|
|
105
|
+
"@ledgerhq/types-cryptoassets": "^7.30.0",
|
|
106
|
+
"@ledgerhq/types-live": "^6.90.0",
|
|
107
107
|
"@ledgerhq/disable-network-setup": "^0.1.0"
|
|
108
108
|
},
|
|
109
109
|
"scripts": {
|
|
@@ -10,7 +10,7 @@ export const signMessage =
|
|
|
10
10
|
if (message) messageObj = JSON.parse(message);
|
|
11
11
|
else messageObj = JSON.parse(rawMessage);
|
|
12
12
|
unsigned = VechainSDKTransaction.of(messageObj);
|
|
13
|
-
} catch {
|
|
13
|
+
} catch (e) {
|
|
14
14
|
throw new Error("Message is not a valid JSON object");
|
|
15
15
|
}
|
|
16
16
|
const result = await signerContext(deviceId, signer =>
|