@ledgerhq/live-cli 24.18.8-nightly.0 → 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.
- package/lib/cli.js +7 -15
- package/package.json +2 -2
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-
|
|
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.
|
|
530157
|
+
version: "24.19.0-next.0",
|
|
530158
530158
|
description: "ledger-live CLI version",
|
|
530159
530159
|
repository: {
|
|
530160
530160
|
type: "git",
|
|
@@ -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
|
-
|
|
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();
|
|
@@ -833452,7 +833444,7 @@ var import_bignumber399 = __toESM(require("bignumber.js"));
|
|
|
833452
833444
|
var import_expect20 = __toESM(require_build20());
|
|
833453
833445
|
|
|
833454
833446
|
// ../../libs/coin-modules/coin-mina/lib-es/test/bot-deviceActions.js
|
|
833455
|
-
var
|
|
833447
|
+
var import_formatCurrencyUnit4 = __toESM(require_formatCurrencyUnit());
|
|
833456
833448
|
var acceptTransaction19 = deviceActionFlow({
|
|
833457
833449
|
steps: [
|
|
833458
833450
|
{
|
|
@@ -833477,7 +833469,7 @@ var acceptTransaction19 = deviceActionFlow({
|
|
|
833477
833469
|
{
|
|
833478
833470
|
title: "Amount",
|
|
833479
833471
|
button: SpeculosButton2.RIGHT,
|
|
833480
|
-
expectedValue: ({ transaction, account: account3 }) => `MINA ${(0,
|
|
833472
|
+
expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit4.formatCurrencyUnit)(account3.currency.units[0], transaction.amount, {
|
|
833481
833473
|
dynamicSignificantDigits: 11,
|
|
833482
833474
|
staticSignificantDigits: 11
|
|
833483
833475
|
})}`
|
|
@@ -833485,7 +833477,7 @@ var acceptTransaction19 = deviceActionFlow({
|
|
|
833485
833477
|
{
|
|
833486
833478
|
title: "Fee",
|
|
833487
833479
|
button: SpeculosButton2.RIGHT,
|
|
833488
|
-
expectedValue: ({ transaction, account: account3 }) => `MINA ${(0,
|
|
833480
|
+
expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit4.formatCurrencyUnit)(account3.currency.units[0], transaction.fees.fee, {
|
|
833489
833481
|
dynamicSignificantDigits: 11,
|
|
833490
833482
|
staticSignificantDigits: 11
|
|
833491
833483
|
})}`
|
|
@@ -833493,7 +833485,7 @@ var acceptTransaction19 = deviceActionFlow({
|
|
|
833493
833485
|
{
|
|
833494
833486
|
title: "Total",
|
|
833495
833487
|
button: SpeculosButton2.RIGHT,
|
|
833496
|
-
expectedValue: ({ transaction, account: account3 }) => `MINA ${(0,
|
|
833488
|
+
expectedValue: ({ transaction, account: account3 }) => `MINA ${(0, import_formatCurrencyUnit4.formatCurrencyUnit)(account3.currency.units[0], transaction.fees.fee.plus(transaction.amount), {
|
|
833497
833489
|
dynamicSignificantDigits: 11,
|
|
833498
833490
|
staticSignificantDigits: 11
|
|
833499
833491
|
})}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.19.0-next.0",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"ts-node": "10.9.2",
|
|
59
59
|
"tsup": "7.3.0",
|
|
60
60
|
"@ledgerhq/types-cryptoassets": "^7.23.0",
|
|
61
|
-
"@ledgerhq/types-live": "^6.74.0-
|
|
61
|
+
"@ledgerhq/types-live": "^6.74.0-next.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"directory": "dist"
|