@ledgerhq/live-cli 24.18.8-nightly.1 → 24.19.0-next.0

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 +9 -19
  2. package/package.json +3 -3
package/lib/cli.js CHANGED
@@ -523353,7 +523353,7 @@ var require_package8 = __commonJS({
523353
523353
  module2.exports = {
523354
523354
  name: "@ledgerhq/live-common",
523355
523355
  description: "Common ground for the Ledger Live apps",
523356
- version: "34.38.0-nightly.1",
523356
+ version: "34.38.0-next.0",
523357
523357
  repository: {
523358
523358
  type: "git",
523359
523359
  url: "https://github.com/LedgerHQ/ledger-live.git"
@@ -530154,7 +530154,7 @@ var require_package9 = __commonJS({
530154
530154
  "package.json"(exports2, module2) {
530155
530155
  module2.exports = {
530156
530156
  name: "@ledgerhq/live-cli",
530157
- version: "24.18.8-nightly.1",
530157
+ version: "24.19.0-next.0",
530158
530158
  description: "ledger-live CLI version",
530159
530159
  repository: {
530160
530160
  type: "git",
@@ -602626,7 +602626,7 @@ var cosmosConfig = {
602626
602626
  config_currency_osmo: {
602627
602627
  type: "object",
602628
602628
  default: {
602629
- lcd: "https://osmo.coin.ledger.com",
602629
+ lcd: "https://lcd.osmosis.zone",
602630
602630
  minGasPrice: 0.025,
602631
602631
  ledgerValidator: "osmovaloper17cp6fxccqxrpj4zc00w2c7u6y0umc2jajsyc5t",
602632
602632
  status: {
@@ -769110,15 +769110,7 @@ var deriveTokenTransferCommandDescriptor = async (mainAccount, tx, model, api7)
769110
769110
  }
769111
769111
  const { fee, spendable: spendableSol } = await estimateFeeAndSpendable(api7, mainAccount, tx);
769112
769112
  if (spendableSol.lt(assocAccRentExempt) || spendableSol.isZero()) {
769113
- const query3 = new URLSearchParams({
769114
- ...mainAccount?.id ? { account: mainAccount.id } : {}
769115
- });
769116
- errors.gasPrice = new NotEnoughGas(void 0, {
769117
- fees: formatCurrencyUnit(getFeesUnit(mainAccount.currency), new import_bignumber236.default(fee)),
769118
- ticker: mainAccount.currency.ticker,
769119
- cryptoName: mainAccount.currency.name,
769120
- links: [`ledgerlive://buy?${query3.toString()}`]
769121
- });
769113
+ errors.fee = new NotEnoughBalance();
769122
769114
  }
769123
769115
  if (!tx.useAllAmount && tx.amount.lte(0)) {
769124
769116
  errors.amount = new AmountRequired();
@@ -799677,7 +799669,6 @@ var getTonEstimatedFees = async (account3, needsInit, tx) => {
799677
799669
  if (pubKey.length !== 64)
799678
799670
  throw Error("[ton] pubKey can't be found");
799679
799671
  let body;
799680
- let isJetton = false;
799681
799672
  if (tx.payload) {
799682
799673
  switch (tx.payload.type) {
799683
799674
  case "comment":
@@ -799685,7 +799676,6 @@ var getTonEstimatedFees = async (account3, needsInit, tx) => {
799685
799676
  break;
799686
799677
  case "jetton-transfer":
799687
799678
  body = buildTokenTransferBody(tx.payload);
799688
- isJetton = true;
799689
799679
  break;
799690
799680
  }
799691
799681
  }
@@ -799707,7 +799697,7 @@ var getTonEstimatedFees = async (account3, needsInit, tx) => {
799707
799697
  const initCode = needsInit ? contract.init.code.toBoc().toString("base64") : void 0;
799708
799698
  const initData = needsInit ? contract.init.data.toBoc().toString("base64") : void 0;
799709
799699
  const fee = await estimateFee(account3.freshAddress, transfer2.toBoc().toString("base64"), initCode, initData);
799710
- return isJetton ? (0, import_bignumber272.default)((0, import_ton2.toNano)(TOKEN_TRANSFER_MAX_FEE).toString()) : (0, import_bignumber272.default)(fee.fwd_fee + fee.gas_fee + fee.in_fwd_fee + fee.storage_fee);
799700
+ return (0, import_bignumber272.default)(fee.fwd_fee + fee.gas_fee + fee.in_fwd_fee + fee.storage_fee);
799711
799701
  };
799712
799702
  var getLedgerTonPath = (path4) => {
799713
799703
  const numPath = [];
@@ -833454,7 +833444,7 @@ var import_bignumber399 = __toESM(require("bignumber.js"));
833454
833444
  var import_expect20 = __toESM(require_build20());
833455
833445
 
833456
833446
  // ../../libs/coin-modules/coin-mina/lib-es/test/bot-deviceActions.js
833457
- var import_formatCurrencyUnit5 = __toESM(require_formatCurrencyUnit());
833447
+ var import_formatCurrencyUnit4 = __toESM(require_formatCurrencyUnit());
833458
833448
  var acceptTransaction19 = deviceActionFlow({
833459
833449
  steps: [
833460
833450
  {
@@ -833479,7 +833469,7 @@ var acceptTransaction19 = deviceActionFlow({
833479
833469
  {
833480
833470
  title: "Amount",
833481
833471
  button: SpeculosButton2.RIGHT,
833482
- expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit5.formatCurrencyUnit)(account3.currency.units[0], transaction.amount, {
833472
+ expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit4.formatCurrencyUnit)(account3.currency.units[0], transaction.amount, {
833483
833473
  dynamicSignificantDigits: 11,
833484
833474
  staticSignificantDigits: 11
833485
833475
  })}`
@@ -833487,7 +833477,7 @@ var acceptTransaction19 = deviceActionFlow({
833487
833477
  {
833488
833478
  title: "Fee",
833489
833479
  button: SpeculosButton2.RIGHT,
833490
- expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit5.formatCurrencyUnit)(account3.currency.units[0], transaction.fees.fee, {
833480
+ expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit4.formatCurrencyUnit)(account3.currency.units[0], transaction.fees.fee, {
833491
833481
  dynamicSignificantDigits: 11,
833492
833482
  staticSignificantDigits: 11
833493
833483
  })}`
@@ -833495,7 +833485,7 @@ var acceptTransaction19 = deviceActionFlow({
833495
833485
  {
833496
833486
  title: "Total",
833497
833487
  button: SpeculosButton2.RIGHT,
833498
- expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit5.formatCurrencyUnit)(account3.currency.units[0], transaction.fees.fee.plus(transaction.amount), {
833488
+ expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit4.formatCurrencyUnit)(account3.currency.units[0], transaction.fees.fee.plus(transaction.amount), {
833499
833489
  dynamicSignificantDigits: 11,
833500
833490
  staticSignificantDigits: 11
833501
833491
  })}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/live-cli",
3
- "version": "24.18.8-nightly.1",
3
+ "version": "24.19.0-next.0",
4
4
  "description": "ledger-live CLI version",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,8 +57,8 @@
57
57
  "@types/ws": "8.5.10",
58
58
  "ts-node": "10.9.2",
59
59
  "tsup": "7.3.0",
60
- "@ledgerhq/types-live": "^6.74.0-nightly.0",
61
- "@ledgerhq/types-cryptoassets": "^7.23.0"
60
+ "@ledgerhq/types-cryptoassets": "^7.23.0",
61
+ "@ledgerhq/types-live": "^6.74.0-next.0"
62
62
  },
63
63
  "publishConfig": {
64
64
  "directory": "dist"