@ledgerhq/live-cli 24.29.0-nightly.20251209144712 → 24.30.0-nightly.20251210114107
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 +26 -21
- package/package.json +3 -3
package/lib/cli.js
CHANGED
|
@@ -543580,7 +543580,7 @@ var require_package8 = __commonJS({
|
|
|
543580
543580
|
module2.exports = {
|
|
543581
543581
|
name: "@ledgerhq/live-common",
|
|
543582
543582
|
description: "Common ground for the Ledger Live apps",
|
|
543583
|
-
version: "34.
|
|
543583
|
+
version: "34.55.0-nightly.20251210114107",
|
|
543584
543584
|
repository: {
|
|
543585
543585
|
type: "git",
|
|
543586
543586
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -543917,7 +543917,7 @@ var require_package9 = __commonJS({
|
|
|
543917
543917
|
"package.json"(exports2, module2) {
|
|
543918
543918
|
module2.exports = {
|
|
543919
543919
|
name: "@ledgerhq/live-cli",
|
|
543920
|
-
version: "24.
|
|
543920
|
+
version: "24.30.0-nightly.20251210114107",
|
|
543921
543921
|
description: "ledger-live CLI version",
|
|
543922
543922
|
repository: {
|
|
543923
543923
|
type: "git",
|
|
@@ -551540,8 +551540,7 @@ var cryptocurrenciesById = {
|
|
|
551540
551540
|
{
|
|
551541
551541
|
name: "KAS",
|
|
551542
551542
|
code: "KAS",
|
|
551543
|
-
magnitude: 8
|
|
551544
|
-
showAllDigits: true
|
|
551543
|
+
magnitude: 8
|
|
551545
551544
|
},
|
|
551546
551545
|
{
|
|
551547
551546
|
name: "Sompis",
|
|
@@ -762215,13 +762214,17 @@ function getResolution(transaction, deviceModelId, certificateSignatureKind) {
|
|
|
762215
762214
|
if (!transaction.subAccountId || !transaction.model.commandDescriptor) {
|
|
762216
762215
|
return;
|
|
762217
762216
|
}
|
|
762217
|
+
const baseResolution = {
|
|
762218
|
+
deviceModelId,
|
|
762219
|
+
certificateSignatureKind,
|
|
762220
|
+
...transaction.templateId && { templateId: transaction.templateId }
|
|
762221
|
+
};
|
|
762218
762222
|
const { command: command4 } = transaction.model.commandDescriptor;
|
|
762219
762223
|
switch (command4.kind) {
|
|
762220
762224
|
case "token.transfer": {
|
|
762221
762225
|
if (command4.recipientDescriptor.shouldCreateAsAssociatedTokenAccount) {
|
|
762222
762226
|
return {
|
|
762223
|
-
|
|
762224
|
-
certificateSignatureKind,
|
|
762227
|
+
...baseResolution,
|
|
762225
762228
|
tokenInternalId: command4.tokenId,
|
|
762226
762229
|
createATA: {
|
|
762227
762230
|
address: command4.recipientDescriptor.walletAddress,
|
|
@@ -762231,8 +762234,7 @@ function getResolution(transaction, deviceModelId, certificateSignatureKind) {
|
|
|
762231
762234
|
};
|
|
762232
762235
|
}
|
|
762233
762236
|
return {
|
|
762234
|
-
|
|
762235
|
-
certificateSignatureKind,
|
|
762237
|
+
...baseResolution,
|
|
762236
762238
|
tokenInternalId: command4.tokenId,
|
|
762237
762239
|
tokenAddress: command4.recipientDescriptor.tokenAccAddress,
|
|
762238
762240
|
userInputType: command4.recipientDescriptor.userInputType
|
|
@@ -762240,8 +762242,7 @@ function getResolution(transaction, deviceModelId, certificateSignatureKind) {
|
|
|
762240
762242
|
}
|
|
762241
762243
|
case "token.createATA": {
|
|
762242
762244
|
return {
|
|
762243
|
-
|
|
762244
|
-
certificateSignatureKind,
|
|
762245
|
+
...baseResolution,
|
|
762245
762246
|
createATA: {
|
|
762246
762247
|
address: command4.owner,
|
|
762247
762248
|
mintAddress: command4.mint
|
|
@@ -816397,7 +816398,7 @@ var import_invariant66 = __toESM(require("invariant"));
|
|
|
816397
816398
|
var getEstimatedFees12 = makeLRUCache(async (currency24) => {
|
|
816398
816399
|
const baseURL2 = blockchainBaseURL(currency24);
|
|
816399
816400
|
(0, import_invariant66.default)(baseURL2, `Fees for ${currency24.id} are not supported`);
|
|
816400
|
-
const { data: data6, status } = await
|
|
816401
|
+
const { data: data6, status } = await lib_es_default({
|
|
816401
816402
|
method: "GET",
|
|
816402
816403
|
url: `${baseURL2}/fees`
|
|
816403
816404
|
});
|
|
@@ -846563,6 +846564,10 @@ function mergeSubAccounts5(oldSubAccounts, newSubAccounts) {
|
|
|
846563
846564
|
function isNftCoreOp(operation) {
|
|
846564
846565
|
return typeof operation.details?.ledgerOpType === "string" && ["NFT_IN", "NFT_OUT"].includes(operation.details?.ledgerOpType);
|
|
846565
846566
|
}
|
|
846567
|
+
function isIncomingCoreOp(operation) {
|
|
846568
|
+
const type4 = typeof operation.details?.ledgerOpType === "string" ? operation.details.ledgerOpType : operation.type;
|
|
846569
|
+
return type4 === "IN";
|
|
846570
|
+
}
|
|
846566
846571
|
function isInternalLiveOp(operation) {
|
|
846567
846572
|
return !!operation.extra?.internal;
|
|
846568
846573
|
}
|
|
@@ -846599,7 +846604,7 @@ function genericGetAccountShape(network, kind) {
|
|
|
846599
846604
|
paginationParams.lastPagingToken = lastPagingToken;
|
|
846600
846605
|
}
|
|
846601
846606
|
const [newCoreOps] = await alpacaApi.listOperations(address3, paginationParams);
|
|
846602
|
-
const newOps = newCoreOps.filter((op) => !isNftCoreOp(op)).map((op) => adaptCoreOperationToLiveOperation(accountId2, op));
|
|
846607
|
+
const newOps = newCoreOps.filter((op) => !isNftCoreOp(op) && (!isIncomingCoreOp(op) || !op.tx.failed)).map((op) => adaptCoreOperationToLiveOperation(accountId2, op));
|
|
846603
846608
|
const newAssetOperations = newOps.filter((operation) => operation?.extra?.assetReference && operation?.extra?.assetOwner && !["OPT_IN", "OPT_OUT"].includes(operation.type));
|
|
846604
846609
|
const newInternalOperations = newOps.filter(isInternalLiveOp);
|
|
846605
846610
|
const newSubAccounts = await buildSubAccounts4({
|
|
@@ -850228,13 +850233,13 @@ var y50 = class {
|
|
|
850228
850233
|
};
|
|
850229
850234
|
var A46 = (p95 = "http://127.0.0.1:5000", e79 = false) => ({ config: t90, loggerServiceFactory: n177 }) => new y50(n177, t90, p95, e79);
|
|
850230
850235
|
|
|
850231
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850236
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/internal/config/defaultScreens.js
|
|
850232
850237
|
var o78 = { [t52.FLEX]: { width: 480, height: 600 }, [t52.STAX]: { width: 400, height: 672 } };
|
|
850233
850238
|
|
|
850234
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850239
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/internal/core/types.js
|
|
850235
850240
|
var t89 = ((e79) => (e79.PRESS = "press", e79.RELEASE = "release", e79.PRESS_AND_RELEASE = "press-and-release", e79))(t89 || {});
|
|
850236
850241
|
|
|
850237
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850242
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/internal/adapters/DefaultButtonController.js
|
|
850238
850243
|
var r78 = class {
|
|
850239
850244
|
constructor(t90) {
|
|
850240
850245
|
this.client = t90;
|
|
@@ -850244,7 +850249,7 @@ var r78 = class {
|
|
|
850244
850249
|
}
|
|
850245
850250
|
};
|
|
850246
850251
|
|
|
850247
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850252
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/internal/adapters/DefaultTouchController.js
|
|
850248
850253
|
var a102 = class {
|
|
850249
850254
|
constructor(e79, t90) {
|
|
850250
850255
|
this.client = e79;
|
|
@@ -850277,7 +850282,7 @@ var a102 = class {
|
|
|
850277
850282
|
}
|
|
850278
850283
|
};
|
|
850279
850284
|
|
|
850280
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850285
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/internal/utils/axisClamp.js
|
|
850281
850286
|
var c85 = (e79) => Math.max(0, Math.min(100, e79)) / 100;
|
|
850282
850287
|
var s90 = (e79) => (t90) => Math.floor(e79 * c85(t90));
|
|
850283
850288
|
var o79 = (e79, t90) => ({ vw: s90(e79), vh: s90(t90), xy: (r79, n177) => ({ x: s90(e79)(r79), y: s90(t90)(n177) }) });
|
|
@@ -850290,13 +850295,13 @@ var p93 = (e79) => {
|
|
|
850290
850295
|
return t90;
|
|
850291
850296
|
};
|
|
850292
850297
|
|
|
850293
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850298
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/internal/di.js
|
|
850294
850299
|
function f62(r79, o80) {
|
|
850295
850300
|
const t90 = axios_default2.create({ baseURL: r79, timeout: o80.timeoutMs ?? 1500, headers: { "X-Ledger-Client-Version": o80.clientHeader ?? "ldmk-transport-speculos" }, transitional: { clarifyTimeoutError: true } }), e79 = p93(o80.screens), n177 = new r78(t90), l98 = new a102(t90, e79);
|
|
850296
850301
|
return { buttons: n177, touch: l98 };
|
|
850297
850302
|
}
|
|
850298
850303
|
|
|
850299
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850304
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/internal/use-cases/buttonUseCases.js
|
|
850300
850305
|
async function i83(t90, e79, o80 = 200) {
|
|
850301
850306
|
for (const r79 of e79)
|
|
850302
850307
|
await t90.press(r79), o80 > 0 && await new Promise((n177) => setTimeout(n177, o80));
|
|
@@ -850305,7 +850310,7 @@ function s91(t90) {
|
|
|
850305
850310
|
return { left: async () => await t90.press("left"), right: async () => await t90.press("right"), both: async () => await t90.press("both") };
|
|
850306
850311
|
}
|
|
850307
850312
|
|
|
850308
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850313
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/internal/use-cases/touchUseCases.js
|
|
850309
850314
|
var s92 = 5e3;
|
|
850310
850315
|
var c86 = (t90, e79) => async (o80, r79 = s92) => {
|
|
850311
850316
|
await t90.tap(e79, o80), await new Promise((a103) => setTimeout(a103, r79)), await t90.release(e79, o80);
|
|
@@ -850318,7 +850323,7 @@ var l97 = (t90, e79) => async () => await n176(t90, e79)({ x: 45, y: 90 });
|
|
|
850318
850323
|
var y51 = (t90, e79) => async () => await n176(t90, e79)({ x: 50, y: 80 });
|
|
850319
850324
|
var p94 = (t90, e79) => async () => await n176(t90, e79)({ x: 50, y: 90 });
|
|
850320
850325
|
|
|
850321
|
-
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.
|
|
850326
|
+
// ../../node_modules/.pnpm/@ledgerhq+speculos-device-controller@0.2.0_rxjs@7.8.2/node_modules/@ledgerhq/speculos-device-controller/lib/esm/src/api/DeviceController.js
|
|
850322
850327
|
var x21 = (i85, o80 = {}) => {
|
|
850323
850328
|
const s93 = { screens: o80.screens ?? o78, timeoutMs: o80.timeoutMs, clientHeader: o80.clientHeader }, { buttons: r79, touch: t90 } = f62(i85, s93), n177 = s91(r79);
|
|
850324
850329
|
return { buttonFactory: () => ({ press: (e79) => r79.press(e79), left: () => n177.left(), right: () => n177.right(), both: () => n177.both(), pressSequence: (e79, c87) => i83(r79, e79, c87) }), tapFactory: (e79) => ({ tapQuick: n176(t90, e79), tapLong: c86(t90, e79), sign: i84(t90, e79), reject: x20(t90, e79), navigateNext: K10(t90, e79), navigatePrevious: l97(t90, e79), mainButton: y51(t90, e79), secondaryButton: p94(t90, e79) }) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.30.0-nightly.20251210114107",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"ts-node": "10.9.2",
|
|
59
59
|
"tsup": "7.3.0",
|
|
60
60
|
"yaml": "2.8.1",
|
|
61
|
-
"@ledgerhq/types-cryptoassets": "^7.31.0-nightly.
|
|
62
|
-
"@ledgerhq/types-live": "^6.
|
|
61
|
+
"@ledgerhq/types-cryptoassets": "^7.31.0-nightly.20251210114107",
|
|
62
|
+
"@ledgerhq/types-live": "^6.91.0-nightly.20251210114107"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"directory": "dist"
|