@ledgerhq/live-cli 24.19.3-nightly.4 → 24.19.4-nightly.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 +12 -7
  2. 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.40.0-nightly.4",
523356
+ version: "34.41.0-nightly.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.19.3-nightly.4",
530157
+ version: "24.19.4-nightly.0",
530158
530158
  description: "ledger-live CLI version",
530159
530159
  repository: {
530160
530160
  type: "git",
@@ -799734,6 +799734,10 @@ var getTransactionStatus18 = async (account3, transaction) => {
799734
799734
  resetTotalSpent = true;
799735
799735
  errors.amount = new NotEnoughBalance();
799736
799736
  }
799737
+ if (!errors.amount && transaction.mode === "delegate" && account3.balance.lte(estimatedFees)) {
799738
+ resetTotalSpent = true;
799739
+ errors.amount = new NotEnoughBalance();
799740
+ }
799737
799741
  if (!errors.amount && transaction.mode === "send" && transaction.amount.lt(EXISTENTIAL_DEPOSIT3) && (await tzkt_default.getAccountByAddress(transaction.recipient)).type === "empty") {
799738
799742
  resetTotalSpent = true;
799739
799743
  errors.amount = new NotEnoughBalanceBecauseDestinationNotCreated("", {
@@ -850386,14 +850390,15 @@ var extractOnboardingState = (flagsBytes, charonState) => {
850386
850390
  throw new DeviceExtractOnboardingStateError("Incorrect onboarding bits for the current onboarding step");
850387
850391
  }
850388
850392
  const currentSeedWordIndex = flagsBytes[2] & currentSeedWordIndexMask;
850389
- if (isOnboarded && [OnboardingStep.Ready, OnboardingStep.WelcomeScreen1].includes(currentOnboardingStep) && charonState !== void 0) {
850390
- currentOnboardingStep = fromBitsToOnboardingStep.get(charonState[0] + CHARON_STEP_BIT_MASK);
850393
+ const charonSupported = charonState !== void 0 && charonState.length > 0;
850394
+ const charonOnboardingBits = charonSupported ? charonState[0] & 15 : 0;
850395
+ const charonStatus = charonSupported && fromBitsToCharonStatusMap.has(charonOnboardingBits) ? fromBitsToCharonStatusMap.get(charonOnboardingBits) : null;
850396
+ if (isOnboarded && [OnboardingStep.Ready, OnboardingStep.WelcomeScreen1].includes(currentOnboardingStep) && charonSupported) {
850397
+ currentOnboardingStep = fromBitsToOnboardingStep.get(charonOnboardingBits + CHARON_STEP_BIT_MASK);
850391
850398
  if (!currentOnboardingStep) {
850392
850399
  throw new DeviceExtractOnboardingStateError("Incorrect onboarding bits for the current charon step");
850393
850400
  }
850394
850401
  }
850395
- const charonSupported = charonState !== void 0 && charonState.length > 0;
850396
- const charonStatus = charonSupported && fromBitsToCharonStatusMap.has(charonState[0]) ? fromBitsToCharonStatusMap.get(charonState[0]) : null;
850397
850402
  return {
850398
850403
  isOnboarded,
850399
850404
  isInRecoveryMode,
@@ -850477,7 +850482,7 @@ var getOnboardingStatePolling = ({
850477
850482
  };
850478
850483
  var isAllowedOnboardingStatePollingError = (error) => {
850479
850484
  if (error && // Timeout error is thrown by rxjs's timeout
850480
- (error instanceof import_rxjs262.TimeoutError || error instanceof TransportExchangeTimeoutError || error instanceof DisconnectedDevice || error instanceof DisconnectedDeviceDuringOperation || error instanceof CantOpenDevice || error instanceof TransportRaceCondition || error instanceof TransportStatusError || // A locked device is handled as an allowed error
850485
+ (error instanceof import_rxjs262.TimeoutError || error instanceof TransportExchangeTimeoutError || error instanceof DisconnectedDevice || error instanceof DisconnectedDeviceDuringOperation || error instanceof g13 || error instanceof CantOpenDevice || error instanceof TransportRaceCondition || error instanceof TransportStatusError || // A locked device is handled as an allowed error
850481
850486
  error instanceof LockedDeviceError)) {
850482
850487
  return true;
850483
850488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/live-cli",
3
- "version": "24.19.3-nightly.4",
3
+ "version": "24.19.4-nightly.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.76.0-nightly.0"
61
+ "@ledgerhq/types-live": "^6.77.0-nightly.0"
62
62
  },
63
63
  "publishConfig": {
64
64
  "directory": "dist"