@ledgerhq/live-cli 22.4.9-nightly.3 → 22.5.0-next.0
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.
|
@@ -49,16 +49,16 @@ var network_1 = __importDefault(require("@ledgerhq/live-common/network"));
|
|
|
49
49
|
var Ledger_1 = require("@ledgerhq/live-common/api/Ledger");
|
|
50
50
|
var cryptoassets_1 = require("@ledgerhq/cryptoassets");
|
|
51
51
|
var command = function (transport, currencyId, hash) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var
|
|
52
|
+
var currency, bitcoinLikeInfo, btc, ledgerExplorer, endpoint, version, id, res, hex, hasExtraData, tx, outHash, ouHash, finalOut;
|
|
53
53
|
return __generator(this, function (_a) {
|
|
54
54
|
switch (_a.label) {
|
|
55
55
|
case 0:
|
|
56
|
-
btc = new hw_app_btc_1["default"](transport);
|
|
57
56
|
currency = (0, cryptoassets_1.findCryptoCurrencyById)(currencyId);
|
|
58
57
|
(0, invariant_1["default"])(currency, "currency not found");
|
|
59
58
|
if (!currency)
|
|
60
59
|
throw new Error("currency not found");
|
|
61
60
|
bitcoinLikeInfo = currency.bitcoinLikeInfo;
|
|
61
|
+
btc = new hw_app_btc_1["default"]({ transport: transport, currency: currency === null || currency === void 0 ? void 0 : currency.id });
|
|
62
62
|
(0, invariant_1["default"])(currency.family === "bitcoin" && bitcoinLikeInfo, "currency of bitcoin family only");
|
|
63
63
|
ledgerExplorer = (0, Ledger_1.findCurrencyExplorer)(currency);
|
|
64
64
|
(0, invariant_1["default"])(ledgerExplorer, "ledgerExplorer not found");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testGetTrustedInputFromTxHash.js","sourceRoot":"","sources":["../../src/commands/testGetTrustedInputFromTxHash.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,sEAAmE;AACnE,gCAAoC;AACpC,6B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KACH,CAAC;AAEF,qBAAe;IACb,IAAI,EAAE;QACJ,gBAAS;QACT;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,GAAG;YACV,IAAI,EAAE,MAAM;SACb;QACD;YACE,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,GAAG;YACV,IAAI,EAAE,MAAM;SACb;KACF;IACD,GAAG,EAAE,UAAC,EAQJ;YAPA,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,IAAI,UAAA;QAMJ,OAAA,IAAA,yBAAU,EAAC,MAAM,IAAI,EAAE,CAAC,CAAC,UAAC,SAAS;YACjC,OAAA,IAAA,WAAI,EAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;QAAxC,CAAwC,CACzC;IAFD,CAEC;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.5.0-next.0",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"lib"
|
|
18
18
|
],
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@ledgerhq/hw-transport-node-ble": "^6.27.8
|
|
20
|
+
"@ledgerhq/hw-transport-node-ble": "^6.27.8"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@ledgerhq/hw-transport-node-ble": "^6.27.8
|
|
23
|
+
"@ledgerhq/hw-transport-node-ble": "^6.27.8"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@walletconnect/client": "^1.7.1",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"rxjs": "^6.6.7",
|
|
43
43
|
"winston": "^3.5.1",
|
|
44
44
|
"ws": "^8.6.0",
|
|
45
|
-
"@ledgerhq/cryptoassets": "^7.0.0-
|
|
46
|
-
"@ledgerhq/errors": "^6.12.1
|
|
47
|
-
"@ledgerhq/hw-app-btc": "^9.0
|
|
48
|
-
"@ledgerhq/hw-transport": "^6.27.8
|
|
49
|
-
"@ledgerhq/hw-transport-http": "^6.27.8
|
|
50
|
-
"@ledgerhq/hw-transport-mocker": "^6.27.8
|
|
51
|
-
"@ledgerhq/hw-transport-node-hid": "^6.27.8
|
|
52
|
-
"@ledgerhq/hw-transport-node-speculos": "^6.27.8
|
|
53
|
-
"@ledgerhq/live-common": "^27.
|
|
45
|
+
"@ledgerhq/cryptoassets": "^7.0.0-next.0",
|
|
46
|
+
"@ledgerhq/errors": "^6.12.1",
|
|
47
|
+
"@ledgerhq/hw-app-btc": "^9.1.0-next.0",
|
|
48
|
+
"@ledgerhq/hw-transport": "^6.27.8",
|
|
49
|
+
"@ledgerhq/hw-transport-http": "^6.27.8",
|
|
50
|
+
"@ledgerhq/hw-transport-mocker": "^6.27.8",
|
|
51
|
+
"@ledgerhq/hw-transport-node-hid": "^6.27.8",
|
|
52
|
+
"@ledgerhq/hw-transport-node-speculos": "^6.27.8",
|
|
53
|
+
"@ledgerhq/live-common": "^27.9.0-next.0",
|
|
54
54
|
"@ledgerhq/logs": "^6.10.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"ts-node": "^10.4.0",
|
|
62
62
|
"typescript": "^4.8.3",
|
|
63
63
|
"@ledgerhq/types-cryptoassets": "^6.23.3",
|
|
64
|
-
"@ledgerhq/types-live": "^6.27.
|
|
64
|
+
"@ledgerhq/types-live": "^6.27.1-next.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"prebuild": "zx ./scripts/gen.mjs",
|