@ledgerhq/live-cli 24.21.3-nightly.3 → 24.21.3-nightly.4
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 +7 -11
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -527196,7 +527196,7 @@ var require_package7 = __commonJS({
|
|
|
527196
527196
|
module2.exports = {
|
|
527197
527197
|
name: "@ledgerhq/live-common",
|
|
527198
527198
|
description: "Common ground for the Ledger Live apps",
|
|
527199
|
-
version: "34.47.0-nightly.
|
|
527199
|
+
version: "34.47.0-nightly.4",
|
|
527200
527200
|
repository: {
|
|
527201
527201
|
type: "git",
|
|
527202
527202
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -527276,7 +527276,7 @@ var require_package7 = __commonJS({
|
|
|
527276
527276
|
"test-bridge-update": "UPDATE_BACKEND_MOCKS=1 env-cmd -f .ci.integration.env pnpm jest --ci --updateSnapshot --passWithNoTests",
|
|
527277
527277
|
"test-account-migration": "tsx src/__tests__/migration/account-migration.ts",
|
|
527278
527278
|
unimported: "unimported",
|
|
527279
|
-
coverage: "env-cmd -f .ci.unit.env pnpm jest --coverage --ci
|
|
527279
|
+
coverage: "env-cmd -f .ci.unit.env pnpm jest --coverage --ci"
|
|
527280
527280
|
},
|
|
527281
527281
|
files: [
|
|
527282
527282
|
"lib",
|
|
@@ -527942,7 +527942,7 @@ var require_package8 = __commonJS({
|
|
|
527942
527942
|
"package.json"(exports2, module2) {
|
|
527943
527943
|
module2.exports = {
|
|
527944
527944
|
name: "@ledgerhq/live-cli",
|
|
527945
|
-
version: "24.21.3-nightly.
|
|
527945
|
+
version: "24.21.3-nightly.4",
|
|
527946
527946
|
description: "ledger-live CLI version",
|
|
527947
527947
|
repository: {
|
|
527948
527948
|
type: "git",
|
|
@@ -816071,13 +816071,8 @@ async function listOperations5(address4, { limit, minHeight, token, order }) {
|
|
|
816071
816071
|
var convertToCoreOperation = (address4) => (operation) => {
|
|
816072
816072
|
const { ledger_hash, hash: hash10, close_time_iso, meta: { delivered_amount }, tx_json: { TransactionType: TransactionType3, Fee: Fee2, date, Account: Account2, Destination, DestinationTag, Memos, ledger_index, Sequence, SigningPubKey } } = operation;
|
|
816073
816073
|
const type4 = Account2 === address4 ? "OUT" : "IN";
|
|
816074
|
-
|
|
816074
|
+
const value5 = delivered_amount && typeof delivered_amount === "string" ? BigInt(delivered_amount) : BigInt(0);
|
|
816075
816075
|
const fees2 = BigInt(Fee2);
|
|
816076
|
-
if (type4 === "OUT") {
|
|
816077
|
-
if (!Number.isNaN(fees2)) {
|
|
816078
|
-
value5 = value5 + fees2;
|
|
816079
|
-
}
|
|
816080
|
-
}
|
|
816081
816076
|
const toEpochDate = (RIPPLE_EPOCH + date) * 1e3;
|
|
816082
816077
|
let details = {};
|
|
816083
816078
|
if (DestinationTag) {
|
|
@@ -817455,13 +817450,14 @@ function adaptCoreOperationToLiveOperation(accountId2, op) {
|
|
|
817455
817450
|
if (op.details?.memo) {
|
|
817456
817451
|
extra.memo = op.details.memo;
|
|
817457
817452
|
}
|
|
817453
|
+
const bnFees = new import_bignumber359.default(op.tx.fees.toString());
|
|
817458
817454
|
const res = {
|
|
817459
817455
|
id: extra.ledgerOpType ? encodeOperationId(accountId2, op.tx.hash, extra.ledgerOpType) : encodeOperationId(accountId2, op.tx.hash, op.type),
|
|
817460
817456
|
hash: op.tx.hash,
|
|
817461
817457
|
accountId: accountId2,
|
|
817462
817458
|
type: opType,
|
|
817463
|
-
value: new import_bignumber359.default(op.value.toString()),
|
|
817464
|
-
fee:
|
|
817459
|
+
value: ["OUT", "FEES"].includes(opType) ? new import_bignumber359.default(op.value.toString()).plus(bnFees) : new import_bignumber359.default(op.value.toString()),
|
|
817460
|
+
fee: bnFees,
|
|
817465
817461
|
blockHash: op.tx.block.hash,
|
|
817466
817462
|
blockHeight: op.tx.block.height,
|
|
817467
817463
|
senders: op.senders,
|