@ledgerhq/live-cli 24.30.0 → 24.30.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.
Files changed (2) hide show
  1. package/lib/cli.js +12 -13
  2. package/package.json +3 -3
package/lib/cli.js CHANGED
@@ -543744,7 +543744,7 @@ var require_package8 = __commonJS({
543744
543744
  module2.exports = {
543745
543745
  name: "@ledgerhq/live-common",
543746
543746
  description: "Common ground for the Ledger Live apps",
543747
- version: "34.55.0",
543747
+ version: "34.55.1",
543748
543748
  repository: {
543749
543749
  type: "git",
543750
543750
  url: "https://github.com/LedgerHQ/ledger-live.git"
@@ -544085,7 +544085,7 @@ var require_package9 = __commonJS({
544085
544085
  "package.json"(exports2, module2) {
544086
544086
  module2.exports = {
544087
544087
  name: "@ledgerhq/live-cli",
544088
- version: "24.30.0",
544088
+ version: "24.30.1",
544089
544089
  description: "ledger-live CLI version",
544090
544090
  repository: {
544091
544091
  type: "git",
@@ -684967,24 +684967,23 @@ function combine4(tx, signature5, publicKey4) {
684967
684967
  // ../../libs/coin-modules/coin-hedera/lib-es/logic/craftTransaction.js
684968
684968
  var import_bignumber199 = __toESM(require("bignumber.js"));
684969
684969
  var import_invariant33 = __toESM(require("invariant"));
684970
- var nodeAccountIds = [new y11(3)];
684971
684970
  async function buildUnsignedCoinTransaction({ account: account3, transaction }) {
684972
684971
  const accountId2 = account3.accountId;
684973
684972
  const hbarAmount = e11.fromTinybars(transaction.amount);
684974
- const tx = new T13().setNodeAccountIds(nodeAccountIds).setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo).addHbarTransfer(accountId2, hbarAmount.negated()).addHbarTransfer(transaction.recipient, hbarAmount);
684973
+ const tx = new T13().setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo).addHbarTransfer(accountId2, hbarAmount.negated()).addHbarTransfer(transaction.recipient, hbarAmount);
684975
684974
  if (transaction.maxFee) {
684976
684975
  tx.setMaxTransactionFee(e11.fromTinybars(transaction.maxFee.toNumber()));
684977
684976
  }
684978
- return tx.freeze();
684977
+ return tx.freezeWith(rpcClient.getInstance());
684979
684978
  }
684980
684979
  async function buildUnsignedHTSTokenTransaction({ account: account3, transaction }) {
684981
684980
  const accountId2 = account3.accountId;
684982
684981
  const tokenId = transaction.tokenAddress;
684983
- const tx = new T13().setNodeAccountIds(nodeAccountIds).setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo).addTokenTransfer(tokenId, accountId2, transaction.amount.negated().toNumber()).addTokenTransfer(tokenId, transaction.recipient, transaction.amount.toNumber());
684982
+ const tx = new T13().setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo).addTokenTransfer(tokenId, accountId2, transaction.amount.negated().toNumber()).addTokenTransfer(tokenId, transaction.recipient, transaction.amount.toNumber());
684984
684983
  if (transaction.maxFee) {
684985
684984
  tx.setMaxTransactionFee(e11.fromTinybars(transaction.maxFee.toNumber()));
684986
684985
  }
684987
- return tx.freeze();
684986
+ return tx.freezeWith(rpcClient.getInstance());
684988
684987
  }
684989
684988
  async function buildUnsignedERC20TokenTransaction({ account: account3, transaction }) {
684990
684989
  const accountId2 = y11.fromString(account3.accountId);
@@ -684992,23 +684991,23 @@ async function buildUnsignedERC20TokenTransaction({ account: account3, transacti
684992
684991
  const recipientEvmAddress = y11.fromString(transaction.recipient).toSolidityAddress();
684993
684992
  const gas = transaction.gasLimit.toNumber();
684994
684993
  const functionParameters = new _8().addAddress(recipientEvmAddress).addUint256(transaction.amount.toNumber());
684995
- const tx = new i31().setNodeAccountIds(nodeAccountIds).setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo ?? "").setContractId(contractId).setGas(gas).setFunction("transfer", functionParameters);
684994
+ const tx = new i31().setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo ?? "").setContractId(contractId).setGas(gas).setFunction("transfer", functionParameters);
684996
684995
  if (transaction.maxFee) {
684997
684996
  tx.setMaxTransactionFee(e11.fromTinybars(transaction.maxFee.toNumber()));
684998
684997
  }
684999
- return tx.freeze();
684998
+ return tx.freezeWith(rpcClient.getInstance());
685000
684999
  }
685001
685000
  async function buildTokenAssociateTransaction({ account: account3, transaction }) {
685002
685001
  const accountId2 = account3.accountId;
685003
- const tx = new r36().setNodeAccountIds(nodeAccountIds).setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo).setAccountId(accountId2).setTokenIds([transaction.tokenId]);
685002
+ const tx = new r36().setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo).setAccountId(accountId2).setTokenIds([transaction.tokenId]);
685004
685003
  if (transaction.maxFee) {
685005
685004
  tx.setMaxTransactionFee(e11.fromTinybars(transaction.maxFee.toNumber()));
685006
685005
  }
685007
- return tx.freeze();
685006
+ return tx.freezeWith(rpcClient.getInstance());
685008
685007
  }
685009
685008
  async function buildUnsignedUpdateAccountTransaction({ account: account3, transaction }) {
685010
685009
  const accountId2 = account3.accountId;
685011
- const tx = new s19().setNodeAccountIds([new y11(3)]).setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo ?? "").setAccountId(accountId2);
685010
+ const tx = new s19().setTransactionId(i27.generate(accountId2)).setTransactionMemo(transaction.memo ?? "").setAccountId(accountId2);
685012
685011
  if (transaction.maxFee) {
685013
685012
  tx.setMaxTransactionFee(e11.fromTinybars(transaction.maxFee.toNumber()));
685014
685013
  }
@@ -685018,7 +685017,7 @@ async function buildUnsignedUpdateAccountTransaction({ account: account3, transa
685018
685017
  if (transaction.stakingNodeId === null) {
685019
685018
  tx.clearStakedNodeId();
685020
685019
  }
685021
- return tx.freeze();
685020
+ return tx.freezeWith(rpcClient.getInstance());
685022
685021
  }
685023
685022
  async function craftTransaction3(txIntent, customFees) {
685024
685023
  const account3 = { accountId: txIntent.sender };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/live-cli",
3
- "version": "24.30.0",
3
+ "version": "24.30.1",
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-live": "^6.91.0",
62
- "@ledgerhq/types-cryptoassets": "^7.31.0"
61
+ "@ledgerhq/types-cryptoassets": "^7.31.0",
62
+ "@ledgerhq/types-live": "^6.91.1"
63
63
  },
64
64
  "publishConfig": {
65
65
  "directory": "dist"