@ledgerhq/live-cli 22.9.1 → 22.9.2-next.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/lib/cli.js +9 -10
- package/lib/cli.js.map +1 -1
- package/lib/commands/app.d.ts.map +1 -1
- package/lib/commands/app.js +20 -29
- package/lib/commands/app.js.map +1 -1
- package/lib/commands/appUninstallAll.d.ts +1 -1
- package/lib/commands/appUninstallAll.d.ts.map +1 -1
- package/lib/commands/appUninstallAll.js +17 -9
- package/lib/commands/appUninstallAll.js.map +1 -1
- package/lib/commands/appsCheckAllAppVersions.d.ts.map +1 -1
- package/lib/commands/appsCheckAllAppVersions.js +36 -49
- package/lib/commands/appsCheckAllAppVersions.js.map +1 -1
- package/lib/commands/appsInstallAll.js +5 -5
- package/lib/commands/appsInstallAll.js.map +1 -1
- package/lib/commands/appsUpdateTestAll.d.ts.map +1 -1
- package/lib/commands/appsUpdateTestAll.js +10 -15
- package/lib/commands/appsUpdateTestAll.js.map +1 -1
- package/lib/commands/balanceHistory.d.ts.map +1 -1
- package/lib/commands/balanceHistory.js +13 -15
- package/lib/commands/balanceHistory.js.map +1 -1
- package/lib/commands/bot.js +4 -4
- package/lib/commands/bot.js.map +1 -1
- package/lib/commands/botPortfolio.d.ts.map +1 -1
- package/lib/commands/botPortfolio.js +7 -9
- package/lib/commands/botPortfolio.js.map +1 -1
- package/lib/commands/botTransfer.d.ts.map +1 -1
- package/lib/commands/botTransfer.js +19 -20
- package/lib/commands/botTransfer.js.map +1 -1
- package/lib/commands/broadcast.d.ts.map +1 -1
- package/lib/commands/broadcast.js +4 -4
- package/lib/commands/broadcast.js.map +1 -1
- package/lib/commands/cleanSpeculos.js +3 -3
- package/lib/commands/cleanSpeculos.js.map +1 -1
- package/lib/commands/confirmOp.d.ts.map +1 -1
- package/lib/commands/confirmOp.js +7 -9
- package/lib/commands/confirmOp.js.map +1 -1
- package/lib/commands/countervalues.d.ts.map +1 -1
- package/lib/commands/countervalues.js +30 -33
- package/lib/commands/countervalues.js.map +1 -1
- package/lib/commands/derivation.js +6 -6
- package/lib/commands/derivation.js.map +1 -1
- package/lib/commands/devDeviceAppsScenario.d.ts.map +1 -1
- package/lib/commands/devDeviceAppsScenario.js +11 -33
- package/lib/commands/devDeviceAppsScenario.js.map +1 -1
- package/lib/commands/deviceAppVersion.js +4 -4
- package/lib/commands/deviceAppVersion.js.map +1 -1
- package/lib/commands/deviceInfo.js +4 -4
- package/lib/commands/deviceInfo.js.map +1 -1
- package/lib/commands/deviceSDKFirmwareUpdate.d.ts.map +1 -1
- package/lib/commands/deviceSDKFirmwareUpdate.js +50 -58
- package/lib/commands/deviceSDKFirmwareUpdate.js.map +1 -1
- package/lib/commands/deviceSDKGetDeviceInfo.js +4 -4
- package/lib/commands/deviceSDKGetDeviceInfo.js.map +1 -1
- package/lib/commands/deviceSDKToggleOnboardingEarlyCheck.d.ts +1 -1
- package/lib/commands/deviceSDKToggleOnboardingEarlyCheck.d.ts.map +1 -1
- package/lib/commands/deviceSDKToggleOnboardingEarlyCheck.js +7 -6
- package/lib/commands/deviceSDKToggleOnboardingEarlyCheck.js.map +1 -1
- package/lib/commands/deviceVersion.js +4 -4
- package/lib/commands/deviceVersion.js.map +1 -1
- package/lib/commands/discoverDevices.d.ts.map +1 -1
- package/lib/commands/discoverDevices.js +7 -13
- package/lib/commands/discoverDevices.js.map +1 -1
- package/lib/commands/envs.d.ts.map +1 -1
- package/lib/commands/envs.js +4 -6
- package/lib/commands/envs.js.map +1 -1
- package/lib/commands/estimateMaxSpendable.d.ts.map +1 -1
- package/lib/commands/estimateMaxSpendable.js +6 -6
- package/lib/commands/estimateMaxSpendable.js.map +1 -1
- package/lib/commands/exportAccounts.d.ts +1 -1
- package/lib/commands/exportAccounts.d.ts.map +1 -1
- package/lib/commands/exportAccounts.js +8 -11
- package/lib/commands/exportAccounts.js.map +1 -1
- package/lib/commands/firmwareRepair.js +5 -5
- package/lib/commands/firmwareRepair.js.map +1 -1
- package/lib/commands/firmwareUpdate.d.ts.map +1 -1
- package/lib/commands/firmwareUpdate.js +20 -24
- package/lib/commands/firmwareUpdate.js.map +1 -1
- package/lib/commands/generateTestScanAccounts.js +4 -4
- package/lib/commands/generateTestScanAccounts.js.map +1 -1
- package/lib/commands/generateTestTransaction.d.ts.map +1 -1
- package/lib/commands/generateTestTransaction.js +4 -4
- package/lib/commands/generateTestTransaction.js.map +1 -1
- package/lib/commands/genuineCheck.d.ts.map +1 -1
- package/lib/commands/genuineCheck.js +4 -4
- package/lib/commands/genuineCheck.js.map +1 -1
- package/lib/commands/getAddress.d.ts.map +1 -1
- package/lib/commands/getAddress.js +8 -8
- package/lib/commands/getAddress.js.map +1 -1
- package/lib/commands/getBatteryStatus.d.ts.map +1 -1
- package/lib/commands/getBatteryStatus.js +5 -5
- package/lib/commands/getBatteryStatus.js.map +1 -1
- package/lib/commands/getDeviceRunningMode.d.ts.map +1 -1
- package/lib/commands/getDeviceRunningMode.js +6 -6
- package/lib/commands/getDeviceRunningMode.js.map +1 -1
- package/lib/commands/getTransactionStatus.d.ts.map +1 -1
- package/lib/commands/getTransactionStatus.js +9 -12
- package/lib/commands/getTransactionStatus.js.map +1 -1
- package/lib/commands/i18n.d.ts.map +1 -1
- package/lib/commands/i18n.js +7 -7
- package/lib/commands/i18n.js.map +1 -1
- package/lib/commands/liveData.d.ts.map +1 -1
- package/lib/commands/liveData.js +10 -10
- package/lib/commands/liveData.js.map +1 -1
- package/lib/commands/managerListApps.d.ts +8 -1
- package/lib/commands/managerListApps.d.ts.map +1 -1
- package/lib/commands/managerListApps.js +14 -8
- package/lib/commands/managerListApps.js.map +1 -1
- package/lib/commands/portfolio.d.ts.map +1 -1
- package/lib/commands/portfolio.js +19 -23
- package/lib/commands/portfolio.js.map +1 -1
- package/lib/commands/proxy.d.ts +1 -1
- package/lib/commands/proxy.d.ts.map +1 -1
- package/lib/commands/proxy.js +29 -29
- package/lib/commands/proxy.js.map +1 -1
- package/lib/commands/receive.d.ts.map +1 -1
- package/lib/commands/receive.js +7 -8
- package/lib/commands/receive.js.map +1 -1
- package/lib/commands/repl.js +4 -4
- package/lib/commands/repl.js.map +1 -1
- package/lib/commands/satstack.d.ts.map +1 -1
- package/lib/commands/satstack.js +18 -21
- package/lib/commands/satstack.js.map +1 -1
- package/lib/commands/satstackStatus.js +4 -4
- package/lib/commands/satstackStatus.js.map +1 -1
- package/lib/commands/scanDescriptors.js +3 -3
- package/lib/commands/scanDescriptors.js.map +1 -1
- package/lib/commands/send.d.ts.map +1 -1
- package/lib/commands/send.js +11 -14
- package/lib/commands/send.js.map +1 -1
- package/lib/commands/signMessage.d.ts.map +1 -1
- package/lib/commands/signMessage.js +9 -11
- package/lib/commands/signMessage.js.map +1 -1
- package/lib/commands/speculosList.js +4 -4
- package/lib/commands/speculosList.js.map +1 -1
- package/lib/commands/staxFetchAndRestoreDemo.d.ts.map +1 -1
- package/lib/commands/staxFetchAndRestoreDemo.js +16 -16
- package/lib/commands/staxFetchAndRestoreDemo.js.map +1 -1
- package/lib/commands/staxFetchImage.js +6 -6
- package/lib/commands/staxFetchImage.js.map +1 -1
- package/lib/commands/staxFetchImageHash.d.ts.map +1 -1
- package/lib/commands/staxFetchImageHash.js +4 -8
- package/lib/commands/staxFetchImageHash.js.map +1 -1
- package/lib/commands/staxLoadImage.d.ts.map +1 -1
- package/lib/commands/staxLoadImage.js +7 -7
- package/lib/commands/staxLoadImage.js.map +1 -1
- package/lib/commands/staxRemoveImage.d.ts.map +1 -1
- package/lib/commands/staxRemoveImage.js +4 -6
- package/lib/commands/staxRemoveImage.js.map +1 -1
- package/lib/commands/swap.d.ts.map +1 -1
- package/lib/commands/swap.js +37 -39
- package/lib/commands/swap.js.map +1 -1
- package/lib/commands/sync.d.ts.map +1 -1
- package/lib/commands/sync.js +9 -11
- package/lib/commands/sync.js.map +1 -1
- package/lib/commands/synchronousOnboarding.js +5 -5
- package/lib/commands/synchronousOnboarding.js.map +1 -1
- package/lib/commands/testDetectOpCollision.js +5 -5
- package/lib/commands/testDetectOpCollision.js.map +1 -1
- package/lib/commands/testGetTrustedInputFromTxHash.d.ts.map +1 -1
- package/lib/commands/testGetTrustedInputFromTxHash.js +16 -23
- package/lib/commands/testGetTrustedInputFromTxHash.js.map +1 -1
- package/lib/commands/user.js +3 -3
- package/lib/commands/user.js.map +1 -1
- package/lib/commands/version.d.ts.map +1 -1
- package/lib/commands/version.js +4 -5
- package/lib/commands/version.js.map +1 -1
- package/lib/commands/walletconnect.d.ts.map +1 -1
- package/lib/commands/walletconnect.js +19 -21
- package/lib/commands/walletconnect.js.map +1 -1
- package/lib/commands-index.d.ts +12 -5
- package/lib/commands-index.d.ts.map +1 -1
- package/lib/commands-index.js +62 -62
- package/lib/commands-index.js.map +1 -1
- package/lib/live-common-setup-base.js +13 -16
- package/lib/live-common-setup-base.js.map +1 -1
- package/lib/live-common-setup.d.ts.map +1 -1
- package/lib/live-common-setup.js +20 -21
- package/lib/live-common-setup.js.map +1 -1
- package/lib/qr.js +2 -2
- package/lib/qr.js.map +1 -1
- package/lib/scan.d.ts.map +1 -1
- package/lib/scan.js +28 -33
- package/lib/scan.js.map +1 -1
- package/lib/signedOperation.js +7 -7
- package/lib/signedOperation.js.map +1 -1
- package/lib/stream.js +3 -3
- package/lib/stream.js.map +1 -1
- package/lib/transaction.d.ts.map +1 -1
- package/lib/transaction.js +16 -18
- package/lib/transaction.js.map +1 -1
- package/package.json +18 -16
package/lib/commands/receive.js
CHANGED
|
@@ -24,32 +24,31 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
24
24
|
}
|
|
25
25
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
26
|
};
|
|
27
|
-
exports
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var rxjs_1 = require("rxjs");
|
|
29
29
|
var operators_1 = require("rxjs/operators");
|
|
30
30
|
var index_1 = require("@ledgerhq/live-common/bridge/index");
|
|
31
31
|
var scan_1 = require("../scan");
|
|
32
32
|
var qr_1 = require("../qr");
|
|
33
33
|
var errors_1 = require("@ledgerhq/live-common/errors");
|
|
34
|
-
exports
|
|
34
|
+
exports.default = {
|
|
35
35
|
description: "Receive crypto-assets (verify on device)",
|
|
36
36
|
args: __spreadArray(__spreadArray([], __read(scan_1.scanCommonOpts), false), [
|
|
37
37
|
{
|
|
38
38
|
name: "qr",
|
|
39
39
|
type: Boolean,
|
|
40
|
-
desc: "also display a QR Code"
|
|
40
|
+
desc: "also display a QR Code",
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
name: "freshAddressIndex",
|
|
44
44
|
type: Number,
|
|
45
|
-
desc: "Change fresh address index"
|
|
45
|
+
desc: "Change fresh address index",
|
|
46
46
|
},
|
|
47
47
|
], false),
|
|
48
48
|
job: function (opts) {
|
|
49
49
|
return (0, scan_1.scan)(opts).pipe((0, operators_1.concatMap)(function (account) {
|
|
50
50
|
var _a;
|
|
51
|
-
return (0, rxjs_1.concat)((0, rxjs_1.of)(opts.freshAddressIndex !== undefined &&
|
|
52
|
-
opts.freshAddressIndex !== null
|
|
51
|
+
return (0, rxjs_1.concat)((0, rxjs_1.of)(opts.freshAddressIndex !== undefined && opts.freshAddressIndex !== null
|
|
53
52
|
? (_a = account.freshAddresses[opts.freshAddressIndex]) === null || _a === void 0 ? void 0 : _a.address
|
|
54
53
|
: account.freshAddress).pipe((0, operators_1.map)(function (address) {
|
|
55
54
|
if (!address)
|
|
@@ -59,10 +58,10 @@ exports["default"] = {
|
|
|
59
58
|
.receive(account, {
|
|
60
59
|
deviceId: opts.device || "",
|
|
61
60
|
verify: true,
|
|
62
|
-
freshAddressIndex: opts.freshAddressIndex
|
|
61
|
+
freshAddressIndex: opts.freshAddressIndex,
|
|
63
62
|
})
|
|
64
63
|
.pipe((0, operators_1.ignoreElements)()));
|
|
65
64
|
}));
|
|
66
|
-
}
|
|
65
|
+
},
|
|
67
66
|
};
|
|
68
67
|
//# sourceMappingURL=receive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receive.js","sourceRoot":"","sources":["../../src/commands/receive.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAAyC;AACzC,4CAAgE;AAChE,4DAAsE;AACtE,gCAA+C;AAE/C,4BAA6B;AAC7B,uDAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"receive.js","sourceRoot":"","sources":["../../src/commands/receive.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAAyC;AACzC,4CAAgE;AAChE,4DAAsE;AACtE,gCAA+C;AAE/C,4BAA6B;AAC7B,uDAAwE;AACxE,kBAAe;IACb,WAAW,EAAE,0CAA0C;IACvD,IAAI,yCACC,qBAAc;QACjB;YACE,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,wBAAwB;SAC/B;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,4BAA4B;SACnC;aACF;IACD,GAAG,EAAE,UACH,IAGC;QAED,OAAA,IAAA,WAAI,EAAC,IAAI,CAAC,CAAC,IAAI,CACb,IAAA,qBAAS,EAAC,UAAA,OAAO;;YACf,OAAA,IAAA,aAAM,EACJ,IAAA,SAAE,EACA,IAAI,CAAC,iBAAiB,KAAK,SAAS,IAAI,IAAI,CAAC,iBAAiB,KAAK,IAAI;gBACrE,CAAC,CAAC,MAAA,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,CAAC,0CAAE,OAAO;gBACzD,CAAC,CAAC,OAAO,CAAC,YAAY,CACzB,CAAC,IAAI,CACJ,IAAA,eAAG,EAAC,UAAA,OAAO;gBACT,IAAI,CAAC,OAAO;oBAAE,MAAM,IAAI,iCAAwB,EAAE,CAAC;gBACnD,OAAO,OAAO,CAAC;YACjB,CAAC,CAAC,CACH,EACD,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAA,SAAI,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAK,EAC5C,IAAA,wBAAgB,EAAC,OAAO,CAAC;iBACtB,OAAO,CAAC,OAAO,EAAE;gBAChB,QAAQ,EAAE,IAAI,CAAC,MAAM,IAAI,EAAE;gBAC3B,MAAM,EAAE,IAAI;gBACZ,iBAAiB,EAAE,IAAI,CAAC,iBAA2B;aACpD,CAAC;iBACD,IAAI,CAAC,IAAA,0BAAc,GAAE,CAAC,CAC1B,CAAA;SAAA,CACF,CACF;IAvBD,CAuBC;CACJ,CAAC"}
|
package/lib/commands/repl.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var operators_1 = require("rxjs/operators");
|
|
4
4
|
var deviceAccess_1 = require("@ledgerhq/live-common/hw/deviceAccess");
|
|
5
5
|
var scan_1 = require("../scan");
|
|
6
6
|
var stream_1 = require("../stream");
|
|
7
|
-
exports
|
|
7
|
+
exports.default = {
|
|
8
8
|
description: "Low level exchange with the device. Send APDUs from stdin.",
|
|
9
9
|
args: [
|
|
10
10
|
scan_1.deviceOpt,
|
|
@@ -13,7 +13,7 @@ exports["default"] = {
|
|
|
13
13
|
alias: "f",
|
|
14
14
|
type: String,
|
|
15
15
|
typeDesc: "filename",
|
|
16
|
-
desc: "A file can also be provided. By default stdin is used."
|
|
16
|
+
desc: "A file can also be provided. By default stdin is used.",
|
|
17
17
|
},
|
|
18
18
|
],
|
|
19
19
|
job: function (_a) {
|
|
@@ -21,6 +21,6 @@ exports["default"] = {
|
|
|
21
21
|
return (0, deviceAccess_1.withDevice)(device || "")(function (t) {
|
|
22
22
|
return (0, stream_1.apdusFromFile)(file || "-").pipe((0, operators_1.concatMap)(function (apdu) { return t.exchange(apdu); }));
|
|
23
23
|
}).pipe((0, operators_1.map)(function (res) { return res.toString("hex"); }));
|
|
24
|
-
}
|
|
24
|
+
},
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=repl.js.map
|
package/lib/commands/repl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl.js","sourceRoot":"","sources":["../../src/commands/repl.ts"],"names":[],"mappings":";;AAAA,4CAAgD;AAChD,sEAAmE;AACnE,gCAAoC;AACpC,oCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"repl.js","sourceRoot":"","sources":["../../src/commands/repl.ts"],"names":[],"mappings":";;AAAA,4CAAgD;AAChD,sEAAmE;AACnE,gCAAoC;AACpC,oCAA0C;AAC1C,kBAAe;IACb,WAAW,EAAE,4DAA4D;IACzE,IAAI,EAAE;QACJ,gBAAS;QACT;YACE,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,GAAG;YACV,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,wDAAwD;SAC/D;KACF;IACD,GAAG,EAAE,UAAC,EAAkD;YAAhD,MAAM,YAAA,EAAE,IAAI,UAAA;QAClB,OAAA,IAAA,yBAAU,EAAC,MAAM,IAAI,EAAE,CAAC,CAAC,UAAA,CAAC;YACxB,OAAA,IAAA,sBAAa,EAAC,IAAI,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAA,qBAAS,EAAC,UAAA,IAAI,IAAI,OAAA,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAhB,CAAgB,CAAC,CAAC;QAApE,CAAoE,CACrE,CAAC,IAAI,CAAC,IAAA,eAAG,EAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAnB,CAAmB,CAAC,CAAC;IAFvC,CAEuC;CAC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"satstack.d.ts","sourceRoot":"","sources":["../../src/commands/satstack.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"satstack.d.ts","sourceRoot":"","sources":["../../src/commands/satstack.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;qBAmFiB,OAAO;mBACT,OAAO;gBACV,MAAM;aACT,MAAM;iBACF,MAAM;iBACN,MAAM;qBACF,MAAM;gBACX,OAAO;;;AA1DnB,wBA8GE"}
|
package/lib/commands/satstack.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
|
-
exports
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var fs_1 = __importDefault(require("fs"));
|
|
7
7
|
var invariant_1 = __importDefault(require("invariant"));
|
|
8
8
|
var rxjs_1 = require("rxjs");
|
|
@@ -15,52 +15,52 @@ var scan_1 = require("../scan");
|
|
|
15
15
|
var stream_1 = require("../stream");
|
|
16
16
|
var bitcoin = (0, index_1.getCryptoCurrencyById)("bitcoin");
|
|
17
17
|
function requiredNodeConfig(nodeConfig) {
|
|
18
|
-
(0, invariant_1
|
|
18
|
+
(0, invariant_1.default)(nodeConfig, "--rpcHOST,--rpcUSER,--rpcPASSWORD config required");
|
|
19
19
|
var errors = (0, satstack_1.validateRPCNodeConfig)(nodeConfig);
|
|
20
20
|
if (errors.length) {
|
|
21
21
|
throw new Error(errors.map(function (e) { return e.field + ": " + e.error.message; }).join(", "));
|
|
22
22
|
}
|
|
23
23
|
return nodeConfig;
|
|
24
24
|
}
|
|
25
|
-
exports
|
|
25
|
+
exports.default = {
|
|
26
26
|
description: "SatStack: Generate and manage lss.json file",
|
|
27
27
|
args: [
|
|
28
28
|
scan_1.deviceOpt,
|
|
29
29
|
{
|
|
30
30
|
name: "no-device",
|
|
31
31
|
type: Boolean,
|
|
32
|
-
desc: "disable the scanning of device descriptors"
|
|
32
|
+
desc: "disable the scanning of device descriptors",
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
name: "no-save",
|
|
36
36
|
type: Boolean,
|
|
37
|
-
desc: "disable the save of the lss file"
|
|
37
|
+
desc: "disable the save of the lss file",
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
name: "lss",
|
|
41
41
|
type: String,
|
|
42
42
|
typeDesc: "filename",
|
|
43
|
-
desc: "A file to save the sats stack state"
|
|
43
|
+
desc: "A file to save the sats stack state",
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
name: "rpcHOST",
|
|
47
47
|
type: String,
|
|
48
|
-
desc: "host to rpc full node (e.g. 127.0.0.1:8332)"
|
|
48
|
+
desc: "host to rpc full node (e.g. 127.0.0.1:8332)",
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
name: "rpcUSER",
|
|
52
52
|
type: String,
|
|
53
|
-
desc: "username of full node"
|
|
53
|
+
desc: "username of full node",
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
name: "rpcPASSWORD",
|
|
57
57
|
type: String,
|
|
58
|
-
desc: "password of full node"
|
|
58
|
+
desc: "password of full node",
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
name: "rpcTLS",
|
|
62
62
|
type: Boolean,
|
|
63
|
-
desc: "use tls in full node"
|
|
63
|
+
desc: "use tls in full node",
|
|
64
64
|
},
|
|
65
65
|
],
|
|
66
66
|
job: function (_a) {
|
|
@@ -77,7 +77,7 @@ exports["default"] = {
|
|
|
77
77
|
host: rpcHOST,
|
|
78
78
|
username: rpcUSER,
|
|
79
79
|
password: rpcPASSWORD,
|
|
80
|
-
tls: !!rpcTLS
|
|
80
|
+
tls: !!rpcTLS,
|
|
81
81
|
})
|
|
82
82
|
: null;
|
|
83
83
|
return (0, rxjs_1.forkJoin)({
|
|
@@ -85,26 +85,23 @@ exports["default"] = {
|
|
|
85
85
|
descriptors: maybeDescriptorsO,
|
|
86
86
|
checkedRPCNodeConfig: maybeNodeConfigOverride
|
|
87
87
|
? (0, rxjs_1.from)((0, satstack_1.checkRPCNodeConfig)(maybeNodeConfigOverride))
|
|
88
|
-
: (0, rxjs_1.of)(null)
|
|
88
|
+
: (0, rxjs_1.of)(null),
|
|
89
89
|
}).pipe((0, operators_1.map)(function (a) {
|
|
90
90
|
var initialConfig = a.initialConfig, descriptors = a.descriptors;
|
|
91
91
|
var patch = {
|
|
92
|
-
node: requiredNodeConfig(maybeNodeConfigOverride ||
|
|
93
|
-
(initialConfig ? initialConfig.node : null)),
|
|
92
|
+
node: requiredNodeConfig(maybeNodeConfigOverride || (initialConfig ? initialConfig.node : null)),
|
|
94
93
|
accounts: descriptors.map(function (descriptor) { return ({
|
|
95
|
-
descriptor: descriptor
|
|
96
|
-
}); })
|
|
94
|
+
descriptor: descriptor,
|
|
95
|
+
}); }),
|
|
97
96
|
};
|
|
98
|
-
var config = initialConfig
|
|
99
|
-
? (0, satstack_1.editSatStackConfig)(initialConfig, patch)
|
|
100
|
-
: patch;
|
|
97
|
+
var config = initialConfig ? (0, satstack_1.editSatStackConfig)(initialConfig, patch) : patch;
|
|
101
98
|
var str = (0, satstack_1.stringifySatStackConfig)(config);
|
|
102
99
|
if (lss && !noSave) {
|
|
103
|
-
fs_1
|
|
100
|
+
fs_1.default.writeFileSync(lss, str);
|
|
104
101
|
return lss + " saved!";
|
|
105
102
|
}
|
|
106
103
|
return str;
|
|
107
104
|
}));
|
|
108
|
-
}
|
|
105
|
+
},
|
|
109
106
|
};
|
|
110
107
|
//# sourceMappingURL=satstack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"satstack.js","sourceRoot":"","sources":["../../src/commands/satstack.ts"],"names":[],"mappings":";;;;;AAAA,0CAAoB;AACpB,wDAAkC;AAClC,6BAA0C;AAC1C,4CAAgE;AAChE,iDAAmD;AACnD,gEAA+E;AAC/E,gFAG2D;AAC3D,4EAMyD;AACzD,gCAAoC;AACpC,oCAAyC;AACzC,IAAM,OAAO,GAAG,IAAA,6BAAq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
2
|
-
exports
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var operators_1 = require("rxjs/operators");
|
|
4
4
|
var satstack_1 = require("@ledgerhq/live-common/families/bitcoin/satstack");
|
|
5
5
|
var env_1 = require("@ledgerhq/live-common/env");
|
|
6
|
-
exports
|
|
6
|
+
exports.default = {
|
|
7
7
|
description: "Check StackSats status",
|
|
8
8
|
args: [
|
|
9
9
|
{
|
|
10
10
|
name: "continuous",
|
|
11
11
|
type: Boolean,
|
|
12
|
-
desc: "enable status polling"
|
|
12
|
+
desc: "enable status polling",
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
15
|
job: function (_a) {
|
|
@@ -19,6 +19,6 @@ exports["default"] = {
|
|
|
19
19
|
return satstack_1.statusObservable.pipe((0, operators_1.first)());
|
|
20
20
|
}
|
|
21
21
|
return satstack_1.statusObservable;
|
|
22
|
-
}
|
|
22
|
+
},
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=satstackStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"satstackStatus.js","sourceRoot":"","sources":["../../src/commands/satstackStatus.ts"],"names":[],"mappings":";;AAAA,4CAAuC;AACvC,4EAAmF;AACnF,iDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"satstackStatus.js","sourceRoot":"","sources":["../../src/commands/satstackStatus.ts"],"names":[],"mappings":";;AAAA,4CAAuC;AACvC,4EAAmF;AACnF,iDAAmD;AACnD,kBAAe;IACb,WAAW,EAAE,wBAAwB;IACrC,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,uBAAuB;SAC9B;KACF;IACD,GAAG,EAAE,UAAC,EAAwC;YAAtC,UAAU,gBAAA;QAChB,IAAA,YAAM,EAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAEzB,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,2BAAgB,CAAC,IAAI,CAAC,IAAA,iBAAK,GAAE,CAAC,CAAC;SACvC;QAED,OAAO,2BAAgB,CAAC;IAC1B,CAAC;CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var scan_1 = require("../scan");
|
|
4
4
|
var index_1 = require("@ledgerhq/live-common/currencies/index");
|
|
5
5
|
var descriptor_1 = require("@ledgerhq/live-common/families/bitcoin/descriptor");
|
|
@@ -8,11 +8,11 @@ function requiredCurrency(c) {
|
|
|
8
8
|
throw new Error("could not find currency");
|
|
9
9
|
return c;
|
|
10
10
|
}
|
|
11
|
-
exports
|
|
11
|
+
exports.default = {
|
|
12
12
|
description: "Synchronize accounts with blockchain",
|
|
13
13
|
args: [scan_1.deviceOpt, scan_1.currencyOpt],
|
|
14
14
|
job: function (opts) {
|
|
15
15
|
return (0, descriptor_1.scanDescriptors)(opts.device || "", requiredCurrency((0, index_1.findCryptoCurrencyByKeyword)(opts.currency || "bitcoin")));
|
|
16
|
-
}
|
|
16
|
+
},
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=scanDescriptors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanDescriptors.js","sourceRoot":"","sources":["../../src/commands/scanDescriptors.ts"],"names":[],"mappings":";;AAAA,gCAAiD;AACjD,gEAAqF;AACrF,gFAAoF;AAEpF,SAAS,gBAAgB,CAAC,CAAC;IACzB,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,OAAO,CAAC,CAAC;AACX,CAAC;AAED,
|
|
1
|
+
{"version":3,"file":"scanDescriptors.js","sourceRoot":"","sources":["../../src/commands/scanDescriptors.ts"],"names":[],"mappings":";;AAAA,gCAAiD;AACjD,gEAAqF;AACrF,gFAAoF;AAEpF,SAAS,gBAAgB,CAAC,CAAC;IACzB,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACnD,OAAO,CAAC,CAAC;AACX,CAAC;AAED,kBAAe;IACb,WAAW,EAAE,sCAAsC;IACnD,IAAI,EAAE,CAAC,gBAAS,EAAE,kBAAW,CAAC;IAC9B,GAAG,EAAE,UACH,IAGE;QAEF,OAAA,IAAA,4BAAe,EACb,IAAI,CAAC,MAAM,IAAI,EAAE,EACjB,gBAAgB,CAAC,IAAA,mCAA2B,EAAC,IAAI,CAAC,QAAQ,IAAI,SAAS,CAAC,CAAC,CAC1E;IAHD,CAGC;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/commands/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/commands/send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,UAAU,EAAE,MAAM,MAAM,CAAC;AAelE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAwBlD,cAAc,GAClB,qBAAqB,GAAG;QACtB,eAAe,EAAE,OAAO,CAAC;QACzB,mBAAmB,EAAE,OAAO,CAAC;QAC7B,MAAM,EAAE,MAAM,CAAC;KAChB;;AA3BP,wBA8GE"}
|
package/lib/commands/send.js
CHANGED
|
@@ -24,7 +24,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
24
24
|
}
|
|
25
25
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
26
|
};
|
|
27
|
-
exports
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var rxjs_1 = require("rxjs");
|
|
29
29
|
var operators_1 = require("rxjs/operators");
|
|
30
30
|
var env_1 = require("@ledgerhq/live-common/env");
|
|
@@ -33,23 +33,23 @@ var index_2 = require("@ledgerhq/live-common/account/index");
|
|
|
33
33
|
var index_3 = require("@ledgerhq/live-common/transaction/index");
|
|
34
34
|
var scan_1 = require("../scan");
|
|
35
35
|
var transaction_1 = require("../transaction");
|
|
36
|
-
exports
|
|
36
|
+
exports.default = {
|
|
37
37
|
description: "Send crypto-assets",
|
|
38
38
|
args: __spreadArray(__spreadArray(__spreadArray([], __read(scan_1.scanCommonOpts), false), __read(transaction_1.inferTransactionsOpts), false), [
|
|
39
39
|
{
|
|
40
40
|
name: "ignore-errors",
|
|
41
41
|
type: Boolean,
|
|
42
|
-
desc: "when using multiple transactions, an error won't stop the flow"
|
|
42
|
+
desc: "when using multiple transactions, an error won't stop the flow",
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
name: "disable-broadcast",
|
|
46
46
|
type: Boolean,
|
|
47
|
-
desc: "do not broadcast the transaction"
|
|
47
|
+
desc: "do not broadcast the transaction",
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
name: "format",
|
|
51
51
|
type: String,
|
|
52
|
-
desc: "default | json | silent"
|
|
52
|
+
desc: "default | json | silent",
|
|
53
53
|
},
|
|
54
54
|
], false),
|
|
55
55
|
job: function (opts) {
|
|
@@ -71,10 +71,9 @@ exports["default"] = {
|
|
|
71
71
|
.signOperation({
|
|
72
72
|
account: account,
|
|
73
73
|
transaction: t,
|
|
74
|
-
deviceId: opts.device || ""
|
|
74
|
+
deviceId: opts.device || "",
|
|
75
75
|
}))
|
|
76
|
-
.pipe.apply(_a, __spreadArray(__spreadArray([(0, operators_1.map)(index_3.toSignOperationEventRaw)], __read((opts["disable-broadcast"] ||
|
|
77
|
-
(0, env_1.getEnv)("DISABLE_TRANSACTION_BROADCAST")
|
|
76
|
+
.pipe.apply(_a, __spreadArray(__spreadArray([(0, operators_1.map)(index_3.toSignOperationEventRaw)], __read((opts["disable-broadcast"] || (0, env_1.getEnv)("DISABLE_TRANSACTION_BROADCAST")
|
|
78
77
|
? []
|
|
79
78
|
: [
|
|
80
79
|
(0, operators_1.concatMap)(function (e) {
|
|
@@ -83,7 +82,7 @@ exports["default"] = {
|
|
|
83
82
|
return (0, rxjs_1.from)(bridge
|
|
84
83
|
.broadcast({
|
|
85
84
|
account: account,
|
|
86
|
-
signedOperation: e.signedOperation
|
|
85
|
+
signedOperation: e.signedOperation,
|
|
87
86
|
})
|
|
88
87
|
.then(function (op) {
|
|
89
88
|
l("\u2714\uFE0F broadcasted! optimistic operation: ".concat((0, index_2.formatOperation)(account)(
|
|
@@ -100,17 +99,15 @@ exports["default"] = {
|
|
|
100
99
|
return (0, rxjs_1.of)({
|
|
101
100
|
type: "error",
|
|
102
101
|
error: e,
|
|
103
|
-
transaction: t
|
|
102
|
+
transaction: t,
|
|
104
103
|
});
|
|
105
104
|
}),
|
|
106
105
|
]
|
|
107
106
|
: [])), false));
|
|
108
107
|
})));
|
|
109
108
|
}, rxjs_1.EMPTY);
|
|
110
|
-
}), (0, operators_1.mergeMap)(function (obj) {
|
|
111
|
-
return opts.format !== "json" ? rxjs_1.EMPTY : (0, rxjs_1.of)(JSON.stringify(obj));
|
|
112
|
-
}));
|
|
109
|
+
}), (0, operators_1.mergeMap)(function (obj) { return (opts.format !== "json" ? rxjs_1.EMPTY : (0, rxjs_1.of)(JSON.stringify(obj))); }));
|
|
113
110
|
}));
|
|
114
|
-
}
|
|
111
|
+
},
|
|
115
112
|
};
|
|
116
113
|
//# sourceMappingURL=send.js.map
|
package/lib/commands/send.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send.js","sourceRoot":"","sources":["../../src/commands/send.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"send.js","sourceRoot":"","sources":["../../src/commands/send.ts"],"names":[],"mappings":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,IAAA,SAAE,EAAC,CAAC,CAAC,CAAC;gCACf,CAAC,CAAC;6BACH,CAAC,kBACH,CAAC,IAAI,CAAC,eAAe,CAAC;4BACvB,CAAC,CAAC;gCACE,IAAA,sBAAU,EAAC,UAAA,CAAC;oCACV,OAAO,IAAA,SAAE,EAAC;wCACR,IAAI,EAAE,OAAO;wCACb,KAAK,EAAE,CAAC;wCACR,WAAW,EAAE,CAAC;qCACf,CAAC,CAAC;gCACL,CAAC,CAAC;6BACH;4BACH,CAAC,CAAC,EAAE,CAAC,WACP;oBACN,CAAC,CAAC,CACH,CACF;gBA3DD,CA2DC,EACH,YAAwB,CACzB;YA/DD,CA+DC,CACF,EACD,IAAA,oBAAQ,EAAC,UAAA,GAAG,IAAI,OAAA,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,YAAK,CAAC,CAAC,CAAC,IAAA,SAAE,EAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAA1D,CAA0D,CAAC,CAC5E;QApED,CAoEC,CACF,CACF,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../src/commands/signMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../src/commands/signMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;eAgCa,GAAG;;AA1BhB,wBAyDE"}
|
|
@@ -13,37 +13,37 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
|
-
exports
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var fs_1 = __importDefault(require("fs"));
|
|
18
18
|
var rxjs_1 = require("rxjs");
|
|
19
19
|
var operators_1 = require("rxjs/operators");
|
|
20
20
|
var deviceAccess_1 = require("@ledgerhq/live-common/hw/deviceAccess");
|
|
21
21
|
var index_1 = __importDefault(require("@ledgerhq/live-common/hw/signMessage/index"));
|
|
22
22
|
var scan_1 = require("../scan");
|
|
23
|
-
exports
|
|
23
|
+
exports.default = {
|
|
24
24
|
description: "Sign a message with the device on specific derivations (advanced)",
|
|
25
25
|
args: [
|
|
26
26
|
scan_1.currencyOpt,
|
|
27
27
|
{
|
|
28
28
|
name: "path",
|
|
29
29
|
type: String,
|
|
30
|
-
desc: "HDD derivation path"
|
|
30
|
+
desc: "HDD derivation path",
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
name: "message",
|
|
34
34
|
type: String,
|
|
35
|
-
desc: "the message to sign"
|
|
35
|
+
desc: "the message to sign",
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
name: "rawMessage",
|
|
39
39
|
type: String,
|
|
40
|
-
desc: "raw message to sign (used by walletconnect)"
|
|
40
|
+
desc: "raw message to sign (used by walletconnect)",
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
name: "parser",
|
|
44
44
|
type: String,
|
|
45
45
|
desc: "parser used for the message. Default: String",
|
|
46
|
-
|
|
46
|
+
default: "String",
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
49
|
job: function (arg) {
|
|
@@ -62,17 +62,15 @@ exports["default"] = {
|
|
|
62
62
|
arg.message = JSON.parse(arg.message);
|
|
63
63
|
break;
|
|
64
64
|
case "file":
|
|
65
|
-
arg.message = JSON.parse(fs_1
|
|
65
|
+
arg.message = JSON.parse(fs_1.default.readFileSync(arg.message, "utf8"));
|
|
66
66
|
break;
|
|
67
67
|
case "string":
|
|
68
68
|
default:
|
|
69
69
|
arg.message = (_b = arg.message) === null || _b === void 0 ? void 0 : _b.toString();
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
|
-
return (0, deviceAccess_1.withDevice)(arg.device || "")(function (t) {
|
|
73
|
-
return (0, rxjs_1.from)((0, index_1["default"])(t, __assign(__assign({}, arg), { currency: currency })));
|
|
74
|
-
});
|
|
72
|
+
return (0, deviceAccess_1.withDevice)(arg.device || "")(function (t) { return (0, rxjs_1.from)((0, index_1.default)(t, __assign(__assign({}, arg), { currency: currency }))); });
|
|
75
73
|
}));
|
|
76
|
-
}
|
|
74
|
+
},
|
|
77
75
|
};
|
|
78
76
|
//# sourceMappingURL=signMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../src/commands/signMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAoB;AACpB,6BAA4B;AAC5B,4CAA0C;AAC1C,sEAAmE;AACnE,qFAAqE;AACrE,gCAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../src/commands/signMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAoB;AACpB,6BAA4B;AAC5B,4CAA0C;AAC1C,sEAAmE;AACnE,qFAAqE;AACrE,gCAAqD;AACrD,kBAAe;IACb,WAAW,EAAE,mEAAmE;IAChF,IAAI,EAAE;QACJ,kBAAW;QACX;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,qBAAqB;SAC5B;QACD;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,qBAAqB;SAC5B;QACD;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,6CAA6C;SACpD;QACD;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,8CAA8C;YACpD,OAAO,EAAE,QAAQ;SAClB;KACF;IACD,GAAG,EAAE,UAAC,GAAQ;QACZ,OAAA,IAAA,oBAAa,EAAC,GAAG,CAAC,CAAC,IAAI,CACrB,IAAA,oBAAQ,EAAC,UAAA,QAAQ;;YACf,IAAI,CAAC,QAAQ,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;aACzC;YAED,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;aACvC;YAED,QAAQ,MAAA,GAAG,CAAC,MAAM,0CAAE,WAAW,EAAE,EAAE;gBACjC,KAAK,QAAQ,CAAC;gBACd,KAAK,MAAM,CAAC;gBACZ,KAAK,YAAY;oBACf,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;oBACtC,MAAM;gBAER,KAAK,MAAM;oBACT,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,YAAE,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;oBAC/D,MAAM;gBAER,KAAK,QAAQ,CAAC;gBACd;oBACE,GAAG,CAAC,OAAO,GAAG,MAAA,GAAG,CAAC,OAAO,0CAAE,QAAQ,EAAE,CAAC;oBACtC,MAAM;aACT;YAED,OAAO,IAAA,yBAAU,EAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,UAAA,CAAC,IAAI,OAAA,IAAA,WAAI,EAAC,IAAA,eAAW,EAAC,CAAC,wBAAO,GAAG,KAAE,QAAQ,UAAA,IAAG,CAAC,EAA1C,CAA0C,CAAC,CAAC;QACvF,CAAC,CAAC,CACH;IA7BD,CA6BC;CACJ,CAAC"}
|
|
@@ -38,14 +38,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
|
-
exports
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
var rxjs_1 = require("rxjs");
|
|
43
43
|
var env_1 = require("@ledgerhq/live-common/env");
|
|
44
44
|
var speculos_1 = require("@ledgerhq/live-common/load/speculos");
|
|
45
45
|
var formatters_1 = require("@ledgerhq/live-common/bot/formatters");
|
|
46
46
|
var invariant_1 = __importDefault(require("invariant"));
|
|
47
47
|
var operators_1 = require("rxjs/operators");
|
|
48
|
-
exports
|
|
48
|
+
exports.default = {
|
|
49
49
|
description: "list apps available for speculos",
|
|
50
50
|
args: [],
|
|
51
51
|
job: function () {
|
|
@@ -56,7 +56,7 @@ exports["default"] = {
|
|
|
56
56
|
switch (_a.label) {
|
|
57
57
|
case 0:
|
|
58
58
|
coinapps = (0, env_1.getEnv)("COINAPPS");
|
|
59
|
-
(0, invariant_1
|
|
59
|
+
(0, invariant_1.default)(coinapps, "COINAPPS is not set");
|
|
60
60
|
return [4 /*yield*/, (0, speculos_1.listAppCandidates)(coinapps)];
|
|
61
61
|
case 1:
|
|
62
62
|
candidates = _a.sent();
|
|
@@ -66,6 +66,6 @@ exports["default"] = {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
return (0, rxjs_1.from)(main()).pipe((0, operators_1.mergeAll)());
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
70
|
};
|
|
71
71
|
//# sourceMappingURL=speculosList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speculosList.js","sourceRoot":"","sources":["../../src/commands/speculosList.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA4B;AAC5B,iDAAmD;AACnD,gEAAwE;AACxE,mEAA0E;AAC1E,wDAAkC;AAClC,4CAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"speculosList.js","sourceRoot":"","sources":["../../src/commands/speculosList.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA4B;AAC5B,iDAAmD;AACnD,gEAAwE;AACxE,mEAA0E;AAC1E,wDAAkC;AAClC,4CAA0C;AAE1C,kBAAe;IACb,WAAW,EAAE,kCAAkC;IAC/C,IAAI,EAAE,EAAE;IACR,GAAG,EAAE;QACH,SAAe,IAAI;;;;;;4BACX,QAAQ,GAAG,IAAA,YAAM,EAAC,UAAU,CAAC,CAAC;4BACpC,IAAA,mBAAS,EAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;4BACxB,qBAAM,IAAA,4BAAiB,EAAC,QAAQ,CAAC,EAAA;;4BAA9C,UAAU,GAAG,SAAiC;4BACpD,sBAAO,UAAU,CAAC,GAAG,CAAC,+BAAkB,CAAC,EAAC;;;;SAC3C;QACD,OAAO,IAAA,WAAI,EAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAA,oBAAQ,GAAE,CAAC,CAAC;IACvC,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staxFetchAndRestoreDemo.d.ts","sourceRoot":"","sources":["../../src/commands/staxFetchAndRestoreDemo.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"staxFetchAndRestoreDemo.d.ts","sourceRoot":"","sources":["../../src/commands/staxFetchAndRestoreDemo.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAO9C;;;;;GAKG;AAEH,KAAK,0BAA0B,GAAG,cAAc,GAAG;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;gBAqDY,0BAA0B,KAAG,GAAG;;AAX9C,wBAYE"}
|
|
@@ -61,7 +61,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
61
61
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
62
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
63
63
|
};
|
|
64
|
-
exports
|
|
64
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
65
|
/* eslint-disable no-console */
|
|
66
66
|
var rxjs_1 = require("rxjs");
|
|
67
67
|
var fs_1 = __importDefault(require("fs"));
|
|
@@ -76,22 +76,22 @@ var exec = function (opts) { return __awaiter(void 0, void 0, void 0, function (
|
|
|
76
76
|
switch (_b.label) {
|
|
77
77
|
case 0:
|
|
78
78
|
fileInput = opts.fileInput, _a = opts.device, deviceId = _a === void 0 ? "" : _a;
|
|
79
|
-
hexImageWithoutHeader = fs_1
|
|
79
|
+
hexImageWithoutHeader = fs_1.default.readFileSync(fileInput, "utf-8");
|
|
80
80
|
return [4 /*yield*/, (0, staxLoadImage_1.generateStaxImageFormat)(hexImageWithoutHeader, true, true)];
|
|
81
81
|
case 1:
|
|
82
82
|
hexImage = _b.sent();
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
// TODO: rework without double resolving promise
|
|
84
|
+
// eslint-disable-next-line
|
|
85
|
+
return [4 /*yield*/, new Promise(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
86
|
+
var hash, currentHash;
|
|
85
87
|
return __generator(this, function (_a) {
|
|
86
88
|
switch (_a.label) {
|
|
87
89
|
case 0:
|
|
88
|
-
hash = crypto_1
|
|
90
|
+
hash = crypto_1.default.createHash("sha256").update(hexImage).digest("hex");
|
|
89
91
|
console.log("Computing hash for input file");
|
|
90
92
|
console.log(hash);
|
|
91
93
|
console.log("Extracting hash from device");
|
|
92
|
-
return [4 /*yield*/, (0, deviceAccess_1.withDevice)(deviceId)(function (t) {
|
|
93
|
-
return (0, rxjs_1.from)((0, staxFetchImageHash_1["default"])(t));
|
|
94
|
-
}).toPromise()];
|
|
94
|
+
return [4 /*yield*/, (0, deviceAccess_1.withDevice)(deviceId)(function (t) { return (0, rxjs_1.from)((0, staxFetchImageHash_1.default)(t)); }).toPromise()];
|
|
95
95
|
case 1:
|
|
96
96
|
currentHash = _a.sent();
|
|
97
97
|
if (currentHash === hash) {
|
|
@@ -101,14 +101,12 @@ var exec = function (opts) { return __awaiter(void 0, void 0, void 0, function (
|
|
|
101
101
|
console.log("Hashes don't match, fetch image before updating");
|
|
102
102
|
}
|
|
103
103
|
console.log("Delete the current image (simulate the wipe from fw update)");
|
|
104
|
-
return [4 /*yield*/, (0, deviceAccess_1.withDevice)(deviceId)(function (t) {
|
|
105
|
-
return (0, rxjs_1.from)(t.exchange(Buffer.from("e063000000", "hex")));
|
|
106
|
-
}).toPromise()];
|
|
104
|
+
return [4 /*yield*/, (0, deviceAccess_1.withDevice)(deviceId)(function (t) { return (0, rxjs_1.from)(t.exchange(Buffer.from("e063000000", "hex"))); }).toPromise()];
|
|
107
105
|
case 2:
|
|
108
|
-
|
|
106
|
+
_a.sent();
|
|
109
107
|
console.log("Restoring the image we backedup");
|
|
110
108
|
return [4 /*yield*/, new Promise(function (resolve) {
|
|
111
|
-
return (0, staxLoadImage_1
|
|
109
|
+
return (0, staxLoadImage_1.default)({ deviceId: deviceId, request: { hexImage: hexImageWithoutHeader } }).subscribe(function (x) { return console.log(x); }, function (e) {
|
|
112
110
|
console.error(e);
|
|
113
111
|
resolve();
|
|
114
112
|
}, function () {
|
|
@@ -123,12 +121,14 @@ var exec = function (opts) { return __awaiter(void 0, void 0, void 0, function (
|
|
|
123
121
|
});
|
|
124
122
|
}); })];
|
|
125
123
|
case 2:
|
|
124
|
+
// TODO: rework without double resolving promise
|
|
125
|
+
// eslint-disable-next-line
|
|
126
126
|
_b.sent();
|
|
127
127
|
return [2 /*return*/];
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
}); };
|
|
131
|
-
exports
|
|
131
|
+
exports.default = {
|
|
132
132
|
description: "Conditionally backup, delete, and restore a custom image on Stax",
|
|
133
133
|
args: [
|
|
134
134
|
scan_1.deviceOpt,
|
|
@@ -136,9 +136,9 @@ exports["default"] = {
|
|
|
136
136
|
name: "fileInput",
|
|
137
137
|
alias: "i",
|
|
138
138
|
type: String,
|
|
139
|
-
desc: "Text file containing the hex data of the image to load on Stax"
|
|
139
|
+
desc: "Text file containing the hex data of the image to load on Stax",
|
|
140
140
|
},
|
|
141
141
|
],
|
|
142
|
-
job: function (opts) { return (0, rxjs_1.from)(exec(opts)); }
|
|
142
|
+
job: function (opts) { return (0, rxjs_1.from)(exec(opts)); },
|
|
143
143
|
};
|
|
144
144
|
//# sourceMappingURL=staxFetchAndRestoreDemo.js.map
|