@ledgerhq/live-cli 22.4.2-nightly.3 → 22.4.2
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/commands-index.d.ts +0 -20
- package/lib/commands-index.d.ts.map +1 -1
- package/lib/commands-index.js +0 -2
- package/lib/commands-index.js.map +1 -1
- package/package.json +4 -4
- package/lib/commands/confirmOp.d.ts +0 -22
- package/lib/commands/confirmOp.d.ts.map +0 -1
- package/lib/commands/confirmOp.js +0 -79
- package/lib/commands/confirmOp.js.map +0 -1
package/lib/commands-index.d.ts
CHANGED
|
@@ -246,26 +246,6 @@ declare const _default: {
|
|
|
246
246
|
args: never[];
|
|
247
247
|
job: () => import("rxjs").Observable<string>;
|
|
248
248
|
};
|
|
249
|
-
confirmOp: {
|
|
250
|
-
description: string;
|
|
251
|
-
args: ({
|
|
252
|
-
name: string;
|
|
253
|
-
type: StringConstructor;
|
|
254
|
-
desc: string;
|
|
255
|
-
alias?: undefined;
|
|
256
|
-
typeDesc?: undefined;
|
|
257
|
-
} | {
|
|
258
|
-
name: string;
|
|
259
|
-
alias: string;
|
|
260
|
-
type: StringConstructor;
|
|
261
|
-
typeDesc: string;
|
|
262
|
-
desc: string;
|
|
263
|
-
})[];
|
|
264
|
-
job: ({ id, format }: {
|
|
265
|
-
id?: string | undefined;
|
|
266
|
-
format?: "json" | "text" | undefined;
|
|
267
|
-
}) => import("rxjs").Observable<string | import("@ledgerhq/types-live").OperationRaw>;
|
|
268
|
-
};
|
|
269
249
|
countervalues: {
|
|
270
250
|
description: string;
|
|
271
251
|
args: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands-index.d.ts","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands-index.d.ts","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,wBAmDE"}
|
package/lib/commands-index.js
CHANGED
|
@@ -14,7 +14,6 @@ var botPortfolio_1 = __importDefault(require("./commands/botPortfolio"));
|
|
|
14
14
|
var botTransfer_1 = __importDefault(require("./commands/botTransfer"));
|
|
15
15
|
var broadcast_1 = __importDefault(require("./commands/broadcast"));
|
|
16
16
|
var cleanSpeculos_1 = __importDefault(require("./commands/cleanSpeculos"));
|
|
17
|
-
var confirmOp_1 = __importDefault(require("./commands/confirmOp"));
|
|
18
17
|
var countervalues_1 = __importDefault(require("./commands/countervalues"));
|
|
19
18
|
var derivation_1 = __importDefault(require("./commands/derivation"));
|
|
20
19
|
var devDeviceAppsScenario_1 = __importDefault(require("./commands/devDeviceAppsScenario"));
|
|
@@ -66,7 +65,6 @@ exports["default"] = {
|
|
|
66
65
|
botTransfer: botTransfer_1["default"],
|
|
67
66
|
broadcast: broadcast_1["default"],
|
|
68
67
|
cleanSpeculos: cleanSpeculos_1["default"],
|
|
69
|
-
confirmOp: confirmOp_1["default"],
|
|
70
68
|
countervalues: countervalues_1["default"],
|
|
71
69
|
derivation: derivation_1["default"],
|
|
72
70
|
devDeviceAppsScenario: devDeviceAppsScenario_1["default"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands-index.js","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":";;;;;AAAA,uDAAiC;AACjC,+EAAyD;AACzD,+FAAyE;AACzE,6EAAuD;AACvD,mFAA6D;AAC7D,6EAAuD;AACvD,uDAAiC;AACjC,yEAAmD;AACnD,uEAAiD;AACjD,mEAA6C;AAC7C,2EAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"commands-index.js","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":";;;;;AAAA,uDAAiC;AACjC,+EAAyD;AACzD,+FAAyE;AACzE,6EAAuD;AACvD,mFAA6D;AAC7D,6EAAuD;AACvD,uDAAiC;AACjC,yEAAmD;AACnD,uEAAiD;AACjD,mEAA6C;AAC7C,2EAAqD;AACrD,2EAAqD;AACrD,qEAA+C;AAC/C,2FAAqE;AACrE,iFAA2D;AAC3D,qEAA+C;AAC/C,2EAAqD;AACrD,+EAAyD;AACzD,yDAAmC;AACnC,yFAAmE;AACnE,6EAAuD;AACvD,6EAAuD;AACvD,6EAAuD;AACvD,iGAA2E;AAC3E,+FAAyE;AACzE,yEAAmD;AACnD,qEAA+C;AAC/C,yFAAmE;AACnE,yDAAmC;AACnC,iEAA2C;AAC3C,uFAAiE;AACjE,+EAAyD;AACzD,mEAA6C;AAC7C,2DAAqC;AACrC,+DAAyC;AACzC,yDAAmC;AACnC,iEAA2C;AAC3C,6EAAuD;AACvD,+EAAyD;AACzD,yDAAmC;AACnC,uEAAiD;AACjD,yEAAmD;AACnD,yDAAmC;AACnC,yDAAmC;AACnC,2FAAqE;AACrE,2FAAqE;AACrE,2GAAqF;AACrF,yDAAmC;AACnC,+DAAyC;AACzC,2EAAqD;AAErD,qBAAe;IACb,GAAG,kBAAA;IACH,eAAe,8BAAA;IACf,uBAAuB,sCAAA;IACvB,cAAc,6BAAA;IACd,iBAAiB,gCAAA;IACjB,cAAc,6BAAA;IACd,GAAG,kBAAA;IACH,YAAY,2BAAA;IACZ,WAAW,0BAAA;IACX,SAAS,wBAAA;IACT,aAAa,4BAAA;IACb,aAAa,4BAAA;IACb,UAAU,yBAAA;IACV,qBAAqB,oCAAA;IACrB,gBAAgB,+BAAA;IAChB,UAAU,yBAAA;IACV,aAAa,4BAAA;IACb,eAAe,8BAAA;IACf,IAAI,mBAAA;IACJ,oBAAoB,mCAAA;IACpB,cAAc,6BAAA;IACd,cAAc,6BAAA;IACd,cAAc,6BAAA;IACd,wBAAwB,uCAAA;IACxB,uBAAuB,sCAAA;IACvB,YAAY,2BAAA;IACZ,UAAU,yBAAA;IACV,oBAAoB,mCAAA;IACpB,IAAI,mBAAA;IACJ,QAAQ,uBAAA;IACR,mBAAmB,kCAAA;IACnB,eAAe,8BAAA;IACf,SAAS,wBAAA;IACT,KAAK,oBAAA;IACL,OAAO,sBAAA;IACP,IAAI,mBAAA;IACJ,QAAQ,uBAAA;IACR,cAAc,6BAAA;IACd,eAAe,8BAAA;IACf,IAAI,mBAAA;IACJ,WAAW,0BAAA;IACX,YAAY,2BAAA;IACZ,IAAI,mBAAA;IACJ,IAAI,mBAAA;IACJ,qBAAqB,oCAAA;IACrB,qBAAqB,oCAAA;IACrB,6BAA6B,4CAAA;IAC7B,IAAI,mBAAA;IACJ,OAAO,sBAAA;IACP,aAAa,4BAAA;CACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "22.4.2
|
|
3
|
+
"version": "22.4.2",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@ledgerhq/hw-transport-node-ble": "^6.27.6"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ledgerhq/cryptoassets": "^6.
|
|
26
|
+
"@ledgerhq/cryptoassets": "^6.35.1",
|
|
27
27
|
"@ledgerhq/errors": "^6.11.1",
|
|
28
28
|
"@ledgerhq/hw-app-btc": "^8.1.1",
|
|
29
29
|
"@ledgerhq/hw-transport": "^6.27.6",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@ledgerhq/hw-transport-mocker": "^6.27.6",
|
|
32
32
|
"@ledgerhq/hw-transport-node-hid": "^6.27.6",
|
|
33
33
|
"@ledgerhq/hw-transport-node-speculos": "^6.27.6",
|
|
34
|
-
"@ledgerhq/live-common": "^27.
|
|
34
|
+
"@ledgerhq/live-common": "^27.3.2",
|
|
35
35
|
"@ledgerhq/logs": "^6.10.1",
|
|
36
36
|
"@walletconnect/client": "^1.7.1",
|
|
37
37
|
"asciichart": "^1.5.25",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"ws": "^8.6.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@ledgerhq/types-live": "^6.24.
|
|
57
|
+
"@ledgerhq/types-live": "^6.24.2",
|
|
58
58
|
"@ledgerhq/types-cryptoassets": "^6.23.2",
|
|
59
59
|
"@types/command-line-args": "^5.2.0",
|
|
60
60
|
"@types/lodash": "^4.14.177",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
description: string;
|
|
3
|
-
args: ({
|
|
4
|
-
name: string;
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
desc: string;
|
|
7
|
-
alias?: undefined;
|
|
8
|
-
typeDesc?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
name: string;
|
|
11
|
-
alias: string;
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
typeDesc: string;
|
|
14
|
-
desc: string;
|
|
15
|
-
})[];
|
|
16
|
-
job: ({ id, format }: {
|
|
17
|
-
id?: string | undefined;
|
|
18
|
-
format?: "json" | "text" | undefined;
|
|
19
|
-
}) => import("rxjs").Observable<string | import("@ledgerhq/types-live").OperationRaw>;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
22
|
-
//# sourceMappingURL=confirmOp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmOp.d.ts","sourceRoot":"","sources":["../../src/commands/confirmOp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAWA,wBAiCE"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.__esModule = true;
|
|
39
|
-
var operators_1 = require("rxjs/operators");
|
|
40
|
-
var index_1 = require("@ledgerhq/live-common/account/index");
|
|
41
|
-
var operation_1 = require("@ledgerhq/live-common/operation");
|
|
42
|
-
var scan_1 = require("../scan");
|
|
43
|
-
exports["default"] = {
|
|
44
|
-
description: "Quickly verify if an operation id exists with our explorers (by synchronising the parent account)",
|
|
45
|
-
args: [
|
|
46
|
-
{
|
|
47
|
-
name: "id",
|
|
48
|
-
type: String,
|
|
49
|
-
desc: "operation id to search"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "format",
|
|
53
|
-
alias: "f",
|
|
54
|
-
type: String,
|
|
55
|
-
typeDesc: "json | text",
|
|
56
|
-
desc: "how to display the data"
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
job: function (_a) {
|
|
60
|
-
var id = _a.id, format = _a.format;
|
|
61
|
-
if (!id)
|
|
62
|
-
throw new Error("--id is required");
|
|
63
|
-
var accountId = (0, operation_1.decodeOperationId)(id).accountId;
|
|
64
|
-
return (0, scan_1.scan)({
|
|
65
|
-
id: [accountId]
|
|
66
|
-
}).pipe((0, operators_1.switchMap)(function (account) { return __awaiter(void 0, void 0, void 0, function () {
|
|
67
|
-
var op;
|
|
68
|
-
return __generator(this, function (_a) {
|
|
69
|
-
op = (0, operation_1.findOperationInAccount)(account, id);
|
|
70
|
-
if (!op)
|
|
71
|
-
throw new Error("operation was not found in account " + account.id);
|
|
72
|
-
return [2 /*return*/, format === "text"
|
|
73
|
-
? (0, index_1.formatOperation)(account)(op)
|
|
74
|
-
: (0, index_1.toOperationRaw)(op)];
|
|
75
|
-
});
|
|
76
|
-
}); }));
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=confirmOp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmOp.js","sourceRoot":"","sources":["../../src/commands/confirmOp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA2C;AAC3C,6DAG6C;AAC7C,6DAGyC;AACzC,gCAA+B;AAE/B,qBAAe;IACb,WAAW,EACT,mGAAmG;IACrG,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,wBAAwB;SAC/B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,GAAG;YACV,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,yBAAyB;SAChC;KACF;IACD,GAAG,EAAE,UAAC,EAAyD;YAAvD,EAAE,QAAA,EAAE,MAAM,YAAA;QAChB,IAAI,CAAC,EAAE;YAAE,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