@ledgerhq/live-cli 24.29.0-nightly.20251127023715 → 24.29.0-nightly.20251127130943

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.
Files changed (2) hide show
  1. package/lib/cli.js +83 -45
  2. package/package.json +2 -2
package/lib/cli.js CHANGED
@@ -543581,7 +543581,7 @@ var require_package8 = __commonJS({
543581
543581
  module2.exports = {
543582
543582
  name: "@ledgerhq/live-common",
543583
543583
  description: "Common ground for the Ledger Live apps",
543584
- version: "34.54.0-nightly.20251127023715",
543584
+ version: "34.54.0-nightly.20251127130943",
543585
543585
  repository: {
543586
543586
  type: "git",
543587
543587
  url: "https://github.com/LedgerHQ/ledger-live.git"
@@ -543934,7 +543934,7 @@ var require_package9 = __commonJS({
543934
543934
  "package.json"(exports2, module2) {
543935
543935
  module2.exports = {
543936
543936
  name: "@ledgerhq/live-cli",
543937
- version: "24.29.0-nightly.20251127023715",
543937
+ version: "24.29.0-nightly.20251127130943",
543938
543938
  description: "ledger-live CLI version",
543939
543939
  repository: {
543940
543940
  type: "git",
@@ -589064,9 +589064,8 @@ var getMaxSendBalance = (account3, parentAccount, gas, gasPrice) => {
589064
589064
  gas = gas ?? (0, import_bignumber58.default)(DEFAULT_GAS);
589065
589065
  gasPrice = gasPrice ?? (0, import_bignumber58.default)(DEFAULT_GAS_PRICE);
589066
589066
  const totalGas = gas.multipliedBy(gasPrice);
589067
- return parentAccount ? getMaxSendBalanceFromTokenAccount(account3, totalGas) : getMaxSendBalanceFromAccount(account3, totalGas);
589067
+ return parentAccount ? account3.spendableBalance : getMaxSendBalanceFromAccount(account3, totalGas);
589068
589068
  };
589069
- var getMaxSendBalanceFromTokenAccount = (tokenAccount, totalGas) => tokenAccount.spendableBalance.gt(totalGas) ? tokenAccount.spendableBalance.minus(totalGas) : new import_bignumber58.default(0);
589070
589069
  var getMaxSendBalanceFromAccount = (account3, totalGas) => account3.spendableBalance.gt(totalGas) ? account3.spendableBalance.minus(totalGas) : new import_bignumber58.default(0);
589071
589070
  var getBlankOperation = (tx, id5) => ({
589072
589071
  id: "",
@@ -602142,7 +602141,6 @@ var AptosAPI = class {
602142
602141
  return {
602143
602142
  value: BigInt(expectedGas.toString()),
602144
602143
  parameters: {
602145
- storageLimit: BigInt(0),
602146
602144
  gasLimit: BigInt(gasLimit.toString()),
602147
602145
  gasPrice: BigInt(gasPrice.toString())
602148
602146
  }
@@ -602385,17 +602383,12 @@ var getFee = async (account3, transaction, aptosClient2) => {
602385
602383
  };
602386
602384
  let gasLimit = DEFAULT_GAS;
602387
602385
  let gasPrice = DEFAULT_GAS_PRICE;
602388
- transaction.options = {
602389
- maxGasAmount: gasLimit.toString(),
602390
- gasUnitPrice: gasPrice.toString()
602391
- };
602392
602386
  if (account3.xpub) {
602393
602387
  try {
602394
602388
  const publicKeyEd = new f5(account3.xpub);
602395
602389
  const tx = await buildTransaction_default(account3, transaction, aptosClient2);
602396
602390
  const [completedTx] = await aptosClient2.simulateTransaction(publicKeyEd, tx);
602397
- const gasMultiplier = STAKING_TX_MODES.includes(transaction.mode) ? ESTIMATE_GAS_MUL_FOR_STAKING : ESTIMATE_GAS_MUL;
602398
- gasLimit = new import_bignumber62.default(completedTx.gas_used).multipliedBy(gasMultiplier).integerValue();
602391
+ gasLimit = new import_bignumber62.default(completedTx.gas_used).multipliedBy(getGasMultiplier(transaction)).integerValue();
602399
602392
  gasPrice = new import_bignumber62.default(completedTx.gas_unit_price);
602400
602393
  const expectedGas = gasPrice.multipliedBy(gasLimit);
602401
602394
  if (!completedTx.success) {
@@ -602408,6 +602401,10 @@ var getFee = async (account3, transaction, aptosClient2) => {
602408
602401
  res.fees = expectedGas;
602409
602402
  res.estimate.maxGasAmount = gasLimit.toString();
602410
602403
  res.estimate.gasUnitPrice = completedTx.gas_unit_price;
602404
+ transaction.options = {
602405
+ maxGasAmount: gasLimit.toString(),
602406
+ gasUnitPrice: completedTx.gas_unit_price
602407
+ };
602411
602408
  } catch (error) {
602412
602409
  log2(error.message);
602413
602410
  throw error;
@@ -602422,6 +602419,9 @@ var CACHE = makeLRUCache(getFee, (account3, transaction) => {
602422
602419
  var getEstimatedGas = async (account3, transaction, aptosClient2) => {
602423
602420
  return await CACHE(account3, transaction, aptosClient2);
602424
602421
  };
602422
+ var getGasMultiplier = (transaction) => {
602423
+ return STAKING_TX_MODES.includes(transaction.mode) ? ESTIMATE_GAS_MUL_FOR_STAKING : ESTIMATE_GAS_MUL;
602424
+ };
602425
602425
 
602426
602426
  // ../../libs/coin-modules/coin-aptos/lib-es/bridge/estimateMaxSpendable.js
602427
602427
  var estimateMaxSpendable2 = async ({ account: account3, parentAccount, transaction }) => {
@@ -602430,7 +602430,8 @@ var estimateMaxSpendable2 = async ({ account: account3, parentAccount, transacti
602430
602430
  let maxGasAmount = new import_bignumber63.BigNumber(DEFAULT_GAS);
602431
602431
  let gasUnitPrice = new import_bignumber63.BigNumber(DEFAULT_GAS_PRICE);
602432
602432
  if (transaction) {
602433
- const { estimate: estimate5 } = await getEstimatedGas(mainAccount, transaction, aptosClient2);
602433
+ const amount = transaction.amount.isZero() ? account3.spendableBalance : transaction.amount;
602434
+ const { estimate: estimate5 } = await getEstimatedGas(mainAccount, { ...transaction, amount }, aptosClient2);
602434
602435
  maxGasAmount = (0, import_bignumber63.BigNumber)(estimate5.maxGasAmount);
602435
602436
  gasUnitPrice = (0, import_bignumber63.BigNumber)(estimate5.gasUnitPrice);
602436
602437
  }
@@ -602470,16 +602471,19 @@ var prepareTransaction2 = async (account3, transaction) => {
602470
602471
  }
602471
602472
  const aptosClient2 = new AptosAPI(account3.currency.id);
602472
602473
  const tokenAccount = findSubAccountById(account3, transaction?.subAccountId ?? "");
602474
+ const { fees: fees2, estimate: estimate5, errors: errors2 } = await getEstimatedGas(account3, transaction, aptosClient2);
602475
+ const gas = (0, import_bignumber64.default)(estimate5.maxGasAmount);
602476
+ const gasPrice = (0, import_bignumber64.default)(estimate5.gasUnitPrice);
602473
602477
  if (transaction.useAllAmount) {
602478
+ const maxAmount = tokenAccount ? getMaxSendBalance(tokenAccount, account3, gas, gasPrice) : getMaxSendBalance(account3, void 0, gas, gasPrice);
602474
602479
  if (transaction.mode === "send") {
602475
- transaction.amount = getMaxSendBalance(tokenAccount || account3, account3);
602480
+ transaction.amount = maxAmount;
602476
602481
  } else if (transaction.mode === "restake" || transaction.mode === "unstake" || transaction.mode === "withdraw") {
602477
602482
  transaction.amount = getDelegationOpMaxAmount(account3, transaction.recipient, transaction.mode);
602478
602483
  } else if (transaction.mode === "stake") {
602479
- transaction.amount = getMaxSendBalance(tokenAccount || account3, account3).minus(APTOS_DELEGATION_RESERVE_IN_OCTAS);
602484
+ transaction.amount = maxAmount.minus(APTOS_DELEGATION_RESERVE_IN_OCTAS);
602480
602485
  }
602481
602486
  }
602482
- const { fees: fees2, estimate: estimate5, errors: errors2 } = await getEstimatedGas(account3, transaction, aptosClient2);
602483
602487
  transaction.fees = fees2;
602484
602488
  transaction.options = estimate5;
602485
602489
  transaction.errors = errors2;
@@ -615704,7 +615708,13 @@ function isAccountEmpty2(account3) {
615704
615708
  var txInfoToOperationAdapter = (accountId2, partyId) => (txInfo) => {
615705
615709
  const { transaction_hash, uid, block: { height, hash: hash9 }, senders, recipients, transaction_timestamp, fee: { value: fee }, transfers: [{ value: transferValue, details }] } = txInfo;
615706
615710
  let type4 = "UNKNOWN";
615707
- if (txInfo.type === "Send" && transferValue === "0") {
615711
+ if (details.operationType === "transfer-proposal") {
615712
+ type4 = "TRANSFER_PROPOSAL";
615713
+ } else if (details.operationType === "transfer-rejected") {
615714
+ type4 = "TRANSFER_REJECTED";
615715
+ } else if (details.operationType === "transfer-withdrawn") {
615716
+ type4 = "TRANSFER_WITHDRAWN";
615717
+ } else if (txInfo.type === "Send" && transferValue === "0") {
615708
615718
  type4 = "FEES";
615709
615719
  } else if (txInfo.type === "Send") {
615710
615720
  type4 = senders.includes(partyId) ? "OUT" : "IN";
@@ -615770,7 +615780,11 @@ function makeGetAccountShape3(signerContext4) {
615770
615780
  const balances = xpubOrAddress ? await getBalance2(currency24, xpubOrAddress) : [];
615771
615781
  const pendingTransferProposals = xpubOrAddress ? await getPendingTransferProposals(currency24, xpubOrAddress) : [];
615772
615782
  const balancesData = (balances || []).reduce((acc, balance2) => {
615773
- acc[balance2.instrumentId] = balance2;
615783
+ if (balance2.locked) {
615784
+ acc[`Locked${balance2.instrumentId}`] = balance2;
615785
+ } else {
615786
+ acc[balance2.instrumentId] = balance2;
615787
+ }
615774
615788
  return acc;
615775
615789
  }, {});
615776
615790
  const unlockedAmount = new import_bignumber118.default(balancesData[nativeInstrumentId]?.value.toString() || "0");
@@ -698544,6 +698558,26 @@ async function estimateContractCallGas(senderEvmAddress, recipientEvmAddress, co
698544
698558
  });
698545
698559
  return new import_bignumber191.default(res.data.result);
698546
698560
  }
698561
+ async function getTransactionsByTimestampRange(startTimestamp, endTimestamp) {
698562
+ const transactions3 = [];
698563
+ const params = new URLSearchParams({
698564
+ limit: "100",
698565
+ order: "desc"
698566
+ });
698567
+ params.append("timestamp", `gte:${startTimestamp}`);
698568
+ params.append("timestamp", `lt:${endTimestamp}`);
698569
+ let nextPath = `/api/v1/transactions?${params.toString()}`;
698570
+ while (nextPath) {
698571
+ const res = await lib_es_default({
698572
+ method: "GET",
698573
+ url: `${API_URL}${nextPath}`
698574
+ });
698575
+ const newTransactions = res.data.transactions;
698576
+ transactions3.push(...newTransactions);
698577
+ nextPath = res.data.links.next;
698578
+ }
698579
+ return transactions3;
698580
+ }
698547
698581
  var apiClient = {
698548
698582
  getAccountsForPublicKey,
698549
698583
  getAccount: getAccount3,
@@ -698554,7 +698588,8 @@ var apiClient = {
698554
698588
  getContractCallResult,
698555
698589
  findTransactionByContractCall,
698556
698590
  getERC20Balance,
698557
- estimateContractCallGas
698591
+ estimateContractCallGas,
698592
+ getTransactionsByTimestampRange
698558
698593
  };
698559
698594
 
698560
698595
  // ../../libs/coin-modules/coin-hedera/lib-es/logic/utils.js
@@ -698660,13 +698695,16 @@ var safeParseAccountId = (address3) => {
698660
698695
  return [new InvalidAddress("", { currencyName }), null];
698661
698696
  }
698662
698697
  };
698698
+ function getBlockHash(blockHeight) {
698699
+ return (0, import_crypto42.createHash)("sha256").update(blockHeight.toString()).digest("hex");
698700
+ }
698663
698701
  function getSyntheticBlock(consensusTimestamp, blockWindowSeconds = SYNTHETIC_BLOCK_WINDOW_SECONDS) {
698664
698702
  const seconds2 = Math.floor(Number(consensusTimestamp));
698665
698703
  if (Number.isNaN(seconds2) || seconds2 === 0) {
698666
698704
  throw new Error(`Invalid consensus timestamp: ${consensusTimestamp}`);
698667
698705
  }
698668
698706
  const blockHeight = Math.floor(seconds2 / blockWindowSeconds);
698669
- const blockHash = (0, import_crypto42.createHash)("sha256").update(blockHeight.toString()).digest("hex");
698707
+ const blockHash = getBlockHash(blockHeight);
698670
698708
  const blockTime = new Date(seconds2 * 1e3);
698671
698709
  return { blockHeight, blockHash, blockTime };
698672
698710
  }
@@ -709261,7 +709299,7 @@ init_lib_es();
709261
709299
  var getAddress7 = (a134) => ({ address: a134.freshAddress, derivationPath: a134.freshAddressPath });
709262
709300
 
709263
709301
  // ../../libs/coin-modules/coin-internet_computer/lib-es/bridge/getTransactionStatus.js
709264
- var import_utils263 = require("@zondax/ledger-live-icp/utils");
709302
+ var import_utils265 = require("@zondax/ledger-live-icp/utils");
709265
709303
 
709266
709304
  // ../../libs/coin-modules/coin-internet_computer/lib-es/errors.js
709267
709305
  init_lib_es();
@@ -709277,19 +709315,19 @@ var getTransactionStatus12 = async (account3, transaction) => {
709277
709315
  let { amount } = transaction;
709278
709316
  if (!recipient) {
709279
709317
  errors2.recipient = new RecipientRequired();
709280
- } else if (!(await (0, import_utils263.validateAddress)(recipient)).isValid) {
709318
+ } else if (!(await (0, import_utils265.validateAddress)(recipient)).isValid) {
709281
709319
  errors2.recipient = new InvalidAddress("", {
709282
709320
  currencyName: account3.currency.name
709283
709321
  });
709284
709322
  } else if (recipient.toLowerCase() === address3.toLowerCase()) {
709285
709323
  errors2.recipient = new InvalidAddressBecauseDestinationIsAlsoSource();
709286
709324
  }
709287
- if (!(await (0, import_utils263.validateAddress)(address3)).isValid) {
709325
+ if (!(await (0, import_utils265.validateAddress)(address3)).isValid) {
709288
709326
  errors2.sender = new InvalidAddress("", {
709289
709327
  currencyName: account3.currency.name
709290
709328
  });
709291
709329
  }
709292
- if (!(0, import_utils263.validateMemo)(transaction.memo).isValid) {
709330
+ if (!(0, import_utils265.validateMemo)(transaction.memo).isValid) {
709293
709331
  errors2.transaction = new InvalidMemoICP();
709294
709332
  }
709295
709333
  const estimatedFees = transaction.fees;
@@ -709378,7 +709416,7 @@ var createTransaction14 = () => {
709378
709416
  init_lib_es2();
709379
709417
  var import_ledger_live_icp2 = require("@zondax/ledger-live-icp");
709380
709418
  var import_bignumber214 = __toESM(require("bignumber.js"));
709381
- var import_utils264 = require("@zondax/ledger-live-icp/utils");
709419
+ var import_utils266 = require("@zondax/ledger-live-icp/utils");
709382
709420
  var import_agent = require("@zondax/ledger-live-icp/agent");
709383
709421
  var import_invariant37 = __toESM(require("invariant"));
709384
709422
  var fetchBlockHeight3 = async () => {
@@ -709396,7 +709434,7 @@ var fetchBlockHeight3 = async () => {
709396
709434
  });
709397
709435
  (0, import_invariant37.default)(blockHeightRes.status === "replied", "[ICP](fetchBlockHeight) Query failed");
709398
709436
  const decodedIdl = (0, import_ledger_live_icp2.decodeCanisterIdlFunc)(queryBlocksIdlFunc, blockHeightRes.reply.arg);
709399
- const decoded = (0, import_utils264.fromNullable)(decodedIdl);
709437
+ const decoded = (0, import_utils266.fromNullable)(decodedIdl);
709400
709438
  (0, import_invariant37.default)(decoded, "[ICP](fetchBlockHeight) Decoding failed");
709401
709439
  return (0, import_bignumber214.default)(decoded.chain_length.toString());
709402
709440
  };
@@ -709428,7 +709466,7 @@ var fetchBalance2 = async (address3) => {
709428
709466
  return (0, import_bignumber214.default)(0);
709429
709467
  }
709430
709468
  const decodedBalance = (0, import_ledger_live_icp2.decodeCanisterIdlFunc)(getBalanceIdlFunc, balanceRes.reply.arg);
709431
- const balance2 = (0, import_utils264.fromNullable)(decodedBalance);
709469
+ const balance2 = (0, import_utils266.fromNullable)(decodedBalance);
709432
709470
  if (!balance2) {
709433
709471
  return (0, import_bignumber214.default)(0);
709434
709472
  }
@@ -709455,7 +709493,7 @@ var fetchTxns = async (address3, startBlockHeight, stopBlockHeight = BigInt(0))
709455
709493
  });
709456
709494
  (0, import_invariant37.default)(transactionsRes.status === "replied", "[ICP](fetchTxns) Query failed");
709457
709495
  const decodedTransactions = (0, import_ledger_live_icp2.decodeCanisterIdlFunc)(getTransactionsIdlFunc, transactionsRes.reply.arg);
709458
- const response = (0, import_utils264.fromNullable)(decodedTransactions);
709496
+ const response = (0, import_utils266.fromNullable)(decodedTransactions);
709459
709497
  (0, import_invariant37.default)(response, "[ICP](fetchTxns) Decoding failed");
709460
709498
  if (response.Ok.transactions.length === 0) {
709461
709499
  return [];
@@ -709621,7 +709659,7 @@ var mapTxToOps3 = (accountId2, address3, fee = ICP_FEES) => {
709621
709659
 
709622
709660
  // ../../libs/coin-modules/coin-internet_computer/lib-es/bridge/signOperation.js
709623
709661
  var import_rxjs40 = require("rxjs");
709624
- var import_utils267 = require("@zondax/ledger-live-icp/utils");
709662
+ var import_utils269 = require("@zondax/ledger-live-icp/utils");
709625
709663
  var import_agent2 = require("@zondax/ledger-live-icp/agent");
709626
709664
 
709627
709665
  // ../../libs/coin-modules/coin-internet_computer/lib-es/bridge/buildOptimisticOperation.js
@@ -709660,7 +709698,7 @@ var signICPTransaction = async (unsignedTxn, derivationPath, signerContext4, acc
709660
709698
  signature: Buffer.from(signatures.signatureRS).toString("hex"),
709661
709699
  callBody: {
709662
709700
  content: unsignedTxn,
709663
- sender_pubkey: (0, import_utils267.pubkeyToDer)(account3.xpub),
709701
+ sender_pubkey: (0, import_utils269.pubkeyToDer)(account3.xpub),
709664
709702
  sender_sig: signatures.signatureRS
709665
709703
  }
709666
709704
  };
@@ -709672,7 +709710,7 @@ var buildSignOperation12 = (signerContext4) => ({ account: account3, transaction
709672
709710
  const { xpub } = account3;
709673
709711
  (0, import_invariant39.default)(xpub, "[ICP](signOperation) Account xpub is required");
709674
709712
  const { derivationPath } = getAddress7(account3);
709675
- const { unsignedTransaction, transferRawRequest } = (0, import_utils267.createUnsignedSendTransaction)(transaction, xpub);
709713
+ const { unsignedTransaction, transferRawRequest } = (0, import_utils269.createUnsignedSendTransaction)(transaction, xpub);
709676
709714
  o102.next({
709677
709715
  type: "device-signature-requested"
709678
709716
  });
@@ -709685,7 +709723,7 @@ var buildSignOperation12 = (signerContext4) => ({ account: account3, transaction
709685
709723
  o102.next({
709686
709724
  type: "device-signature-granted"
709687
709725
  });
709688
- const hash9 = (0, import_utils267.hashTransaction)({
709726
+ const hash9 = (0, import_utils269.hashTransaction)({
709689
709727
  from: account3.freshAddress,
709690
709728
  to: transaction.recipient,
709691
709729
  amount: transferRawRequest.amount.e8s,
@@ -714751,7 +714789,7 @@ function makeCliTools15() {
714751
714789
  }
714752
714790
 
714753
714791
  // ../../libs/ledgerjs/packages/hw-app-near/lib-es/Near.js
714754
- var import_utils270 = __toESM(require_utils38());
714792
+ var import_utils272 = __toESM(require_utils38());
714755
714793
  var import_key_pair = __toESM(require_key_pair2());
714756
714794
 
714757
714795
  // ../../libs/ledgerjs/packages/hw-app-near/lib-es/utils.js
@@ -714787,7 +714825,7 @@ var Near = class {
714787
714825
  await client.getAddress(path4);
714788
714826
  }
714789
714827
  const rawPublicKey = await client.getPublicKey(path4, false);
714790
- const publicKey4 = new import_utils270.PublicKey({
714828
+ const publicKey4 = new import_utils272.PublicKey({
714791
714829
  keyType: import_key_pair.KeyType.ED25519,
714792
714830
  data: rawPublicKey
714793
714831
  });
@@ -755853,7 +755891,7 @@ __export(chain_exports, {
755853
755891
  bestNumber: () => bestNumber,
755854
755892
  bestNumberFinalized: () => bestNumberFinalized,
755855
755893
  bestNumberLag: () => bestNumberLag,
755856
- getBlock: () => getBlock,
755894
+ getBlock: () => getBlock2,
755857
755895
  getBlockByNumber: () => getBlockByNumber,
755858
755896
  getHeader: () => getHeader,
755859
755897
  subscribeFinalizedBlocks: () => subscribeFinalizedBlocks,
@@ -756018,7 +756056,7 @@ function createSignedBlockExtended(registry, block2, events2, validators7, autho
756018
756056
  }
756019
756057
 
756020
756058
  // ../../node_modules/.pnpm/@polkadot+api-derive@11.2.1/node_modules/@polkadot/api-derive/chain/getBlock.js
756021
- function getBlock(instanceId, api7) {
756059
+ function getBlock2(instanceId, api7) {
756022
756060
  return memo2(instanceId, (blockHash) => (0, import_rxjs72.combineLatest)([
756023
756061
  api7.rpc.chain.getBlock(blockHash),
756024
756062
  api7.queryAt(blockHash)
@@ -797080,7 +797118,7 @@ async function getLastBlock2() {
797080
797118
  const data6 = await fetch11(`/wallet/getnowblock`);
797081
797119
  return toBlock(data6);
797082
797120
  }
797083
- async function getBlock2(blockNumber) {
797121
+ async function getBlock3(blockNumber) {
797084
797122
  const data6 = await fetch11(`/wallet/getblock?id_or_num=${encodeURIComponent(blockNumber)}`);
797085
797123
  const ret2 = toBlock(data6);
797086
797124
  if (!ret2.height) {
@@ -797973,7 +798011,7 @@ async function listOperations5(address3, options24) {
797973
798011
  const minHeight = options24?.minHeight ?? defaultOptions5.minHeight;
797974
798012
  const order = options24?.order ?? defaultOptions5.order;
797975
798013
  const softLimit = options24?.softLimit ?? defaultOptions5.softLimit;
797976
- const block2 = await getBlock2(minHeight);
798014
+ const block2 = await getBlock3(minHeight);
797977
798015
  const minTimestamp = block2.time?.getTime() ?? defaultFetchParams.minTimestamp;
797978
798016
  const fetchParams = {
797979
798017
  ...defaultFetchParams,
@@ -815030,11 +815068,11 @@ var filterOperations2 = (sendOps, receiveOps, order, shouldFilter = true) => {
815030
815068
  const result2 = [...sendOps.operations, ...receiveOps.operations].sort((a134, b27) => Number(b27.timestampMs) - Number(a134.timestampMs)).filter((op) => Number(op.timestampMs) >= filterTimestamp);
815031
815069
  return { operations: (0, import_unionBy.default)(result2, (tx) => tx.digest), cursor: nextCursor };
815032
815070
  };
815033
- var getBlockInfo = async (id5) => withApi2(async (api7) => {
815071
+ var getBlockInfo2 = async (id5) => withApi2(async (api7) => {
815034
815072
  const checkpoint = await api7.getCheckpoint({ id: id5 });
815035
815073
  return toBlockInfo(checkpoint);
815036
815074
  });
815037
- var getBlock3 = async (id5) => withApi2(async (api7) => {
815075
+ var getBlock4 = async (id5) => withApi2(async (api7) => {
815038
815076
  const checkpoint = await api7.getCheckpoint({ id: id5 });
815039
815077
  const rawTxs = await queryTransactionsByDigest({ api: api7, digests: checkpoint.transactions });
815040
815078
  return {
@@ -815256,8 +815294,8 @@ var network_default3 = {
815256
815294
  getAccountBalances,
815257
815295
  getAllBalancesCached,
815258
815296
  getOperations: getOperations6,
815259
- getBlock: getBlock3,
815260
- getBlockInfo,
815297
+ getBlock: getBlock4,
815298
+ getBlockInfo: getBlockInfo2,
815261
815299
  getStakesRaw,
815262
815300
  paymentInfo: paymentInfo3,
815263
815301
  createTransaction: createTransaction25,
@@ -816547,7 +816585,7 @@ var getAccount11 = async (address3) => {
816547
816585
  spendableBalance
816548
816586
  };
816549
816587
  };
816550
- var getBlockInfo3 = async (blockHeight) => {
816588
+ var getBlockInfo4 = async (blockHeight) => {
816551
816589
  const data6 = await rosettaGetBlockInfo(blockHeight);
816552
816590
  return data6;
816553
816591
  };
@@ -816605,7 +816643,7 @@ var mapRosettaTxnToOperation = async (accountId2, address3, txn) => {
816605
816643
  const hash9 = txn.transaction.transaction_identifier.hash;
816606
816644
  const blockHeight = txn.block_identifier.index;
816607
816645
  const blockHash = txn.block_identifier.hash;
816608
- const date = new Date(txn.timestamp ?? (await getBlockInfo3(blockHeight)).block.timestamp);
816646
+ const date = new Date(txn.timestamp ?? (await getBlockInfo4(blockHeight)).block.timestamp);
816609
816647
  const memo3 = txn.transaction.metadata?.memo || "";
816610
816648
  let value2 = new import_bignumber339.default(0);
816611
816649
  let fee = new import_bignumber339.default(0);
@@ -846102,7 +846140,7 @@ var InvalidAddressBecauseAlreadyDelegated = createCustomErrorClass("InvalidAddre
846102
846140
  var UnsupportedTransactionMode = createCustomErrorClass("UnsupportedTransactionMode");
846103
846141
 
846104
846142
  // ../../libs/coin-modules/coin-tezos/lib-es/utils.js
846105
- var import_utils386 = __toESM(require_utils47());
846143
+ var import_utils388 = __toESM(require_utils47());
846106
846144
  var DUST_MARGIN_MUTEZ = 500;
846107
846145
  var MIN_SUGGESTED_FEE_SMALL_TRANSFER = 489;
846108
846146
  var OP_SIZE_XTZ_TRANSFER = 154;
@@ -846147,7 +846185,7 @@ function normalizePublicKeyForAddress(maybeKey, address3) {
846147
846185
  }
846148
846186
  const compressedPubKeyLength = 33;
846149
846187
  if (keyBuf.length > compressedPubKeyLength) {
846150
- return b58Encode((0, import_utils386.compressPublicKey)(keyBuf, derivationType), prefix3);
846188
+ return b58Encode((0, import_utils388.compressPublicKey)(keyBuf, derivationType), prefix3);
846151
846189
  } else {
846152
846190
  return b58Encode(keyBuf, prefix3);
846153
846191
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/live-cli",
3
- "version": "24.29.0-nightly.20251127023715",
3
+ "version": "24.29.0-nightly.20251127130943",
4
4
  "description": "ledger-live CLI version",
5
5
  "repository": {
6
6
  "type": "git",
@@ -59,7 +59,7 @@
59
59
  "tsup": "7.3.0",
60
60
  "yaml": "2.8.1",
61
61
  "@ledgerhq/types-cryptoassets": "^7.30.0",
62
- "@ledgerhq/types-live": "^6.90.0-nightly.20251127023715"
62
+ "@ledgerhq/types-live": "^6.90.0-nightly.20251127130943"
63
63
  },
64
64
  "publishConfig": {
65
65
  "directory": "dist"