@ledgerhq/live-cli 24.29.0-nightly.20251202023925 → 24.29.0-nightly.20251203101856
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 +949 -612
- package/package.json +2 -2
package/lib/cli.js
CHANGED
|
@@ -327,11 +327,11 @@ var init_lib_es = __esm({
|
|
|
327
327
|
DBNotReset = createCustomErrorClass("DBNotReset");
|
|
328
328
|
SequenceNumberError = createCustomErrorClass("SequenceNumberError");
|
|
329
329
|
DisabledTransactionBroadcastError = createCustomErrorClass("DisabledTransactionBroadcastError");
|
|
330
|
-
(function(
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
330
|
+
(function(HwTransportErrorType4) {
|
|
331
|
+
HwTransportErrorType4["Unknown"] = "Unknown";
|
|
332
|
+
HwTransportErrorType4["LocationServicesDisabled"] = "LocationServicesDisabled";
|
|
333
|
+
HwTransportErrorType4["LocationServicesUnauthorized"] = "LocationServicesUnauthorized";
|
|
334
|
+
HwTransportErrorType4["BluetoothScanStartFailed"] = "BluetoothScanStartFailed";
|
|
335
335
|
})(HwTransportErrorType || (HwTransportErrorType = {}));
|
|
336
336
|
TransportError = class extends Error {
|
|
337
337
|
id;
|
|
@@ -33382,318 +33382,6 @@ var require_dist2 = __commonJS({
|
|
|
33382
33382
|
}
|
|
33383
33383
|
});
|
|
33384
33384
|
|
|
33385
|
-
// ../../node_modules/.pnpm/@ledgerhq+errors@6.27.0/node_modules/@ledgerhq/errors/lib-es/helpers.js
|
|
33386
|
-
function isObject4(value2) {
|
|
33387
|
-
return typeof value2 === "object";
|
|
33388
|
-
}
|
|
33389
|
-
var errorClasses2, deserializers2, addCustomErrorDeserializer2, createCustomErrorClass2;
|
|
33390
|
-
var init_helpers2 = __esm({
|
|
33391
|
-
"../../node_modules/.pnpm/@ledgerhq+errors@6.27.0/node_modules/@ledgerhq/errors/lib-es/helpers.js"() {
|
|
33392
|
-
"use strict";
|
|
33393
|
-
errorClasses2 = {};
|
|
33394
|
-
deserializers2 = {};
|
|
33395
|
-
addCustomErrorDeserializer2 = (name2, deserializer) => {
|
|
33396
|
-
deserializers2[name2] = deserializer;
|
|
33397
|
-
};
|
|
33398
|
-
createCustomErrorClass2 = (name2) => {
|
|
33399
|
-
class CustomErrorClass extends Error {
|
|
33400
|
-
cause;
|
|
33401
|
-
constructor(message2, fields, options24) {
|
|
33402
|
-
super(message2 || name2, options24);
|
|
33403
|
-
Object.setPrototypeOf(this, CustomErrorClass.prototype);
|
|
33404
|
-
this.name = name2;
|
|
33405
|
-
if (fields) {
|
|
33406
|
-
for (const k25 in fields) {
|
|
33407
|
-
this[k25] = fields[k25];
|
|
33408
|
-
}
|
|
33409
|
-
}
|
|
33410
|
-
if (options24 && isObject4(options24) && "cause" in options24 && !this.cause) {
|
|
33411
|
-
const cause = options24.cause;
|
|
33412
|
-
this.cause = cause;
|
|
33413
|
-
if ("stack" in cause) {
|
|
33414
|
-
this.stack = this.stack + "\nCAUSE: " + cause.stack;
|
|
33415
|
-
}
|
|
33416
|
-
}
|
|
33417
|
-
}
|
|
33418
|
-
}
|
|
33419
|
-
errorClasses2[name2] = CustomErrorClass;
|
|
33420
|
-
return CustomErrorClass;
|
|
33421
|
-
};
|
|
33422
|
-
}
|
|
33423
|
-
});
|
|
33424
|
-
|
|
33425
|
-
// ../../node_modules/.pnpm/@ledgerhq+errors@6.27.0/node_modules/@ledgerhq/errors/lib-es/index.js
|
|
33426
|
-
function getAltStatusMessage2(code) {
|
|
33427
|
-
switch (code) {
|
|
33428
|
-
case 26368:
|
|
33429
|
-
return "Incorrect length";
|
|
33430
|
-
case 26624:
|
|
33431
|
-
return "Missing critical parameter";
|
|
33432
|
-
case 27010:
|
|
33433
|
-
return "Security not satisfied (dongle locked or have invalid access rights)";
|
|
33434
|
-
case 27013:
|
|
33435
|
-
return "Condition of use not satisfied (denied by the user?)";
|
|
33436
|
-
case 27264:
|
|
33437
|
-
return "Invalid data received";
|
|
33438
|
-
case 27392:
|
|
33439
|
-
return "Invalid parameter received";
|
|
33440
|
-
case 21781:
|
|
33441
|
-
return "Locked device";
|
|
33442
|
-
}
|
|
33443
|
-
if (28416 <= code && code <= 28671) {
|
|
33444
|
-
return "Internal error, please report";
|
|
33445
|
-
}
|
|
33446
|
-
}
|
|
33447
|
-
var AccountNameRequiredError2, AccountNotSupported2, AccountAwaitingSendPendingOperations2, AmountRequired2, BluetoothRequired2, BtcUnmatchedApp2, CantOpenDevice2, CashAddrNotSupported2, ClaimRewardsFeesWarning2, CurrencyNotSupported2, DeviceAppVerifyNotSupported2, DeviceGenuineSocketEarlyClose2, DeviceNotGenuineError2, DeviceOnDashboardExpected2, DeviceOnDashboardUnexpected2, DeviceInOSUExpected2, DeviceHalted2, DeviceNameInvalid2, DeviceSocketFail2, DeviceSocketNoBulkStatus2, DeviceNeedsRestart2, UnresponsiveDeviceError2, DisconnectedDevice2, DisconnectedDeviceDuringOperation2, DeviceExtractOnboardingStateError2, DeviceOnboardingStatePollingError2, EnpointConfigError2, EthAppPleaseEnableContractData2, CeloAppPleaseEnableContractData2, FeeEstimationFailed2, FirmwareNotRecognized2, HardResetFail2, InvalidXRPTag2, InvalidAddress2, InvalidNonce2, InvalidAddressBecauseDestinationIsAlsoSource2, LatestMCUInstalledError2, LatestFirmwareVersionRequired2, UnknownMCU2, LedgerAPIError2, LedgerAPIErrorWithMessage2, LedgerAPINotAvailable2, ManagerAppAlreadyInstalledError2, ManagerAppRelyOnBTCError2, ManagerAppDepInstallRequired2, ManagerAppDepUninstallRequired2, ManagerDeviceLockedError2, ManagerFirmwareNotEnoughSpaceError2, ManagerNotEnoughSpaceError2, ManagerUninstallBTCDep2, NetworkDown2, NetworkError2, NoAddressesFound2, NotEnoughBalance2, NotEnoughBalanceFees2, NotEnoughBalanceSwap2, NotEnoughBalanceToDelegate2, UnstakeNotEnoughStakedBalanceLeft2, RestakeNotEnoughStakedBalanceLeft2, NotEnoughToRestake2, NotEnoughToUnstake2, NotEnoughBalanceInParentAccount2, NotEnoughSpendableBalance2, NotEnoughBalanceBecauseDestinationNotCreated2, NotEnoughToStake2, NoAccessToCamera2, NotEnoughGas2, NotEnoughGasSwap2, TronEmptyAccount2, MaybeKeepTronAccountAlive2, NotSupportedLegacyAddress2, GasLessThanEstimate2, PriorityFeeTooLow2, PriorityFeeTooHigh2, PriorityFeeHigherThanMaxFee2, MaxFeeTooLow2, PasswordsDontMatchError2, PasswordIncorrectError2, RecommendSubAccountsToEmpty2, RecommendUndelegation2, TimeoutTagged2, UnexpectedBootloader2, MCUNotGenuineToDashboard2, RecipientRequired2, UnavailableTezosOriginatedAccountReceive2, UnavailableTezosOriginatedAccountSend2, UpdateFetchFileFail2, UpdateIncorrectHash2, UpdateIncorrectSig2, UpdateYourApp2, UserRefusedDeviceNameChange2, UserRefusedAddress2, UserRefusedFirmwareUpdate2, UserRefusedAllowManager2, UserRefusedOnDevice2, PinNotSet2, ExpertModeRequired2, TransportOpenUserCancelled2, TransportInterfaceNotAvailable2, TransportRaceCondition2, TransportWebUSBGestureRequired2, TransactionHasBeenValidatedError2, TransportExchangeTimeoutError2, DeviceShouldStayInApp2, WebsocketConnectionError2, WebsocketConnectionFailed2, WrongDeviceForAccount2, WrongDeviceForAccountPayout2, MissingSwapPayloadParamaters2, WrongDeviceForAccountRefund2, WrongAppForCurrency2, ETHAddressNonEIP2, CantScanQRCode2, FeeNotLoaded2, FeeNotLoadedSwap2, FeeRequired2, FeeTooHigh2, PendingOperation2, SyncError2, PairingFailed2, PeerRemovedPairing2, GenuineCheckFailed2, LedgerAPI4xx2, LedgerAPI5xx2, FirmwareOrAppUpdateRequired2, ReplacementTransactionUnderpriced2, OpReturnDataSizeLimit2, DustLimit2, LanguageNotFound2, NoDBPathGiven2, DBWrongPassword2, DBNotReset2, SequenceNumberError2, DisabledTransactionBroadcastError2, HwTransportErrorType2, TransportError2, StatusCodes2, TransportStatusError2, LockedDeviceError2;
|
|
33448
|
-
var init_lib_es3 = __esm({
|
|
33449
|
-
"../../node_modules/.pnpm/@ledgerhq+errors@6.27.0/node_modules/@ledgerhq/errors/lib-es/index.js"() {
|
|
33450
|
-
"use strict";
|
|
33451
|
-
init_helpers2();
|
|
33452
|
-
AccountNameRequiredError2 = createCustomErrorClass2("AccountNameRequired");
|
|
33453
|
-
AccountNotSupported2 = createCustomErrorClass2("AccountNotSupported");
|
|
33454
|
-
AccountAwaitingSendPendingOperations2 = createCustomErrorClass2("AccountAwaitingSendPendingOperations");
|
|
33455
|
-
AmountRequired2 = createCustomErrorClass2("AmountRequired");
|
|
33456
|
-
BluetoothRequired2 = createCustomErrorClass2("BluetoothRequired");
|
|
33457
|
-
BtcUnmatchedApp2 = createCustomErrorClass2("BtcUnmatchedApp");
|
|
33458
|
-
CantOpenDevice2 = createCustomErrorClass2("CantOpenDevice");
|
|
33459
|
-
CashAddrNotSupported2 = createCustomErrorClass2("CashAddrNotSupported");
|
|
33460
|
-
ClaimRewardsFeesWarning2 = createCustomErrorClass2("ClaimRewardsFeesWarning");
|
|
33461
|
-
CurrencyNotSupported2 = createCustomErrorClass2("CurrencyNotSupported");
|
|
33462
|
-
DeviceAppVerifyNotSupported2 = createCustomErrorClass2("DeviceAppVerifyNotSupported");
|
|
33463
|
-
DeviceGenuineSocketEarlyClose2 = createCustomErrorClass2("DeviceGenuineSocketEarlyClose");
|
|
33464
|
-
DeviceNotGenuineError2 = createCustomErrorClass2("DeviceNotGenuine");
|
|
33465
|
-
DeviceOnDashboardExpected2 = createCustomErrorClass2("DeviceOnDashboardExpected");
|
|
33466
|
-
DeviceOnDashboardUnexpected2 = createCustomErrorClass2("DeviceOnDashboardUnexpected");
|
|
33467
|
-
DeviceInOSUExpected2 = createCustomErrorClass2("DeviceInOSUExpected");
|
|
33468
|
-
DeviceHalted2 = createCustomErrorClass2("DeviceHalted");
|
|
33469
|
-
DeviceNameInvalid2 = createCustomErrorClass2("DeviceNameInvalid");
|
|
33470
|
-
DeviceSocketFail2 = createCustomErrorClass2("DeviceSocketFail");
|
|
33471
|
-
DeviceSocketNoBulkStatus2 = createCustomErrorClass2("DeviceSocketNoBulkStatus");
|
|
33472
|
-
DeviceNeedsRestart2 = createCustomErrorClass2("DeviceSocketNoBulkStatus");
|
|
33473
|
-
UnresponsiveDeviceError2 = createCustomErrorClass2("UnresponsiveDeviceError");
|
|
33474
|
-
DisconnectedDevice2 = createCustomErrorClass2("DisconnectedDevice");
|
|
33475
|
-
DisconnectedDeviceDuringOperation2 = createCustomErrorClass2("DisconnectedDeviceDuringOperation");
|
|
33476
|
-
DeviceExtractOnboardingStateError2 = createCustomErrorClass2("DeviceExtractOnboardingStateError");
|
|
33477
|
-
DeviceOnboardingStatePollingError2 = createCustomErrorClass2("DeviceOnboardingStatePollingError");
|
|
33478
|
-
EnpointConfigError2 = createCustomErrorClass2("EnpointConfig");
|
|
33479
|
-
EthAppPleaseEnableContractData2 = createCustomErrorClass2("EthAppPleaseEnableContractData");
|
|
33480
|
-
CeloAppPleaseEnableContractData2 = createCustomErrorClass2("CeloAppPleaseEnableContractData");
|
|
33481
|
-
FeeEstimationFailed2 = createCustomErrorClass2("FeeEstimationFailed");
|
|
33482
|
-
FirmwareNotRecognized2 = createCustomErrorClass2("FirmwareNotRecognized");
|
|
33483
|
-
HardResetFail2 = createCustomErrorClass2("HardResetFail");
|
|
33484
|
-
InvalidXRPTag2 = createCustomErrorClass2("InvalidXRPTag");
|
|
33485
|
-
InvalidAddress2 = createCustomErrorClass2("InvalidAddress");
|
|
33486
|
-
InvalidNonce2 = createCustomErrorClass2("InvalidNonce");
|
|
33487
|
-
InvalidAddressBecauseDestinationIsAlsoSource2 = createCustomErrorClass2("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
33488
|
-
LatestMCUInstalledError2 = createCustomErrorClass2("LatestMCUInstalledError");
|
|
33489
|
-
LatestFirmwareVersionRequired2 = createCustomErrorClass2("LatestFirmwareVersionRequired");
|
|
33490
|
-
UnknownMCU2 = createCustomErrorClass2("UnknownMCU");
|
|
33491
|
-
LedgerAPIError2 = createCustomErrorClass2("LedgerAPIError");
|
|
33492
|
-
LedgerAPIErrorWithMessage2 = createCustomErrorClass2("LedgerAPIErrorWithMessage");
|
|
33493
|
-
LedgerAPINotAvailable2 = createCustomErrorClass2("LedgerAPINotAvailable");
|
|
33494
|
-
ManagerAppAlreadyInstalledError2 = createCustomErrorClass2("ManagerAppAlreadyInstalled");
|
|
33495
|
-
ManagerAppRelyOnBTCError2 = createCustomErrorClass2("ManagerAppRelyOnBTC");
|
|
33496
|
-
ManagerAppDepInstallRequired2 = createCustomErrorClass2("ManagerAppDepInstallRequired");
|
|
33497
|
-
ManagerAppDepUninstallRequired2 = createCustomErrorClass2("ManagerAppDepUninstallRequired");
|
|
33498
|
-
ManagerDeviceLockedError2 = createCustomErrorClass2("ManagerDeviceLocked");
|
|
33499
|
-
ManagerFirmwareNotEnoughSpaceError2 = createCustomErrorClass2("ManagerFirmwareNotEnoughSpace");
|
|
33500
|
-
ManagerNotEnoughSpaceError2 = createCustomErrorClass2("ManagerNotEnoughSpace");
|
|
33501
|
-
ManagerUninstallBTCDep2 = createCustomErrorClass2("ManagerUninstallBTCDep");
|
|
33502
|
-
NetworkDown2 = createCustomErrorClass2("NetworkDown");
|
|
33503
|
-
NetworkError2 = createCustomErrorClass2("NetworkError");
|
|
33504
|
-
NoAddressesFound2 = createCustomErrorClass2("NoAddressesFound");
|
|
33505
|
-
NotEnoughBalance2 = createCustomErrorClass2("NotEnoughBalance");
|
|
33506
|
-
NotEnoughBalanceFees2 = createCustomErrorClass2("NotEnoughBalanceFees");
|
|
33507
|
-
NotEnoughBalanceSwap2 = createCustomErrorClass2("NotEnoughBalanceSwap");
|
|
33508
|
-
NotEnoughBalanceToDelegate2 = createCustomErrorClass2("NotEnoughBalanceToDelegate");
|
|
33509
|
-
UnstakeNotEnoughStakedBalanceLeft2 = createCustomErrorClass2("UnstakeNotEnoughStakedBalanceLeft");
|
|
33510
|
-
RestakeNotEnoughStakedBalanceLeft2 = createCustomErrorClass2("RestakeNotEnoughStakedBalanceLeft");
|
|
33511
|
-
NotEnoughToRestake2 = createCustomErrorClass2("NotEnoughToRestake");
|
|
33512
|
-
NotEnoughToUnstake2 = createCustomErrorClass2("NotEnoughToUnstake");
|
|
33513
|
-
NotEnoughBalanceInParentAccount2 = createCustomErrorClass2("NotEnoughBalanceInParentAccount");
|
|
33514
|
-
NotEnoughSpendableBalance2 = createCustomErrorClass2("NotEnoughSpendableBalance");
|
|
33515
|
-
NotEnoughBalanceBecauseDestinationNotCreated2 = createCustomErrorClass2("NotEnoughBalanceBecauseDestinationNotCreated");
|
|
33516
|
-
NotEnoughToStake2 = createCustomErrorClass2("NotEnoughToStake");
|
|
33517
|
-
NoAccessToCamera2 = createCustomErrorClass2("NoAccessToCamera");
|
|
33518
|
-
NotEnoughGas2 = createCustomErrorClass2("NotEnoughGas");
|
|
33519
|
-
NotEnoughGasSwap2 = createCustomErrorClass2("NotEnoughGasSwap");
|
|
33520
|
-
TronEmptyAccount2 = createCustomErrorClass2("TronEmptyAccount");
|
|
33521
|
-
MaybeKeepTronAccountAlive2 = createCustomErrorClass2("MaybeKeepTronAccountAlive");
|
|
33522
|
-
NotSupportedLegacyAddress2 = createCustomErrorClass2("NotSupportedLegacyAddress");
|
|
33523
|
-
GasLessThanEstimate2 = createCustomErrorClass2("GasLessThanEstimate");
|
|
33524
|
-
PriorityFeeTooLow2 = createCustomErrorClass2("PriorityFeeTooLow");
|
|
33525
|
-
PriorityFeeTooHigh2 = createCustomErrorClass2("PriorityFeeTooHigh");
|
|
33526
|
-
PriorityFeeHigherThanMaxFee2 = createCustomErrorClass2("PriorityFeeHigherThanMaxFee");
|
|
33527
|
-
MaxFeeTooLow2 = createCustomErrorClass2("MaxFeeTooLow");
|
|
33528
|
-
PasswordsDontMatchError2 = createCustomErrorClass2("PasswordsDontMatch");
|
|
33529
|
-
PasswordIncorrectError2 = createCustomErrorClass2("PasswordIncorrect");
|
|
33530
|
-
RecommendSubAccountsToEmpty2 = createCustomErrorClass2("RecommendSubAccountsToEmpty");
|
|
33531
|
-
RecommendUndelegation2 = createCustomErrorClass2("RecommendUndelegation");
|
|
33532
|
-
TimeoutTagged2 = createCustomErrorClass2("TimeoutTagged");
|
|
33533
|
-
UnexpectedBootloader2 = createCustomErrorClass2("UnexpectedBootloader");
|
|
33534
|
-
MCUNotGenuineToDashboard2 = createCustomErrorClass2("MCUNotGenuineToDashboard");
|
|
33535
|
-
RecipientRequired2 = createCustomErrorClass2("RecipientRequired");
|
|
33536
|
-
UnavailableTezosOriginatedAccountReceive2 = createCustomErrorClass2("UnavailableTezosOriginatedAccountReceive");
|
|
33537
|
-
UnavailableTezosOriginatedAccountSend2 = createCustomErrorClass2("UnavailableTezosOriginatedAccountSend");
|
|
33538
|
-
UpdateFetchFileFail2 = createCustomErrorClass2("UpdateFetchFileFail");
|
|
33539
|
-
UpdateIncorrectHash2 = createCustomErrorClass2("UpdateIncorrectHash");
|
|
33540
|
-
UpdateIncorrectSig2 = createCustomErrorClass2("UpdateIncorrectSig");
|
|
33541
|
-
UpdateYourApp2 = createCustomErrorClass2("UpdateYourApp");
|
|
33542
|
-
UserRefusedDeviceNameChange2 = createCustomErrorClass2("UserRefusedDeviceNameChange");
|
|
33543
|
-
UserRefusedAddress2 = createCustomErrorClass2("UserRefusedAddress");
|
|
33544
|
-
UserRefusedFirmwareUpdate2 = createCustomErrorClass2("UserRefusedFirmwareUpdate");
|
|
33545
|
-
UserRefusedAllowManager2 = createCustomErrorClass2("UserRefusedAllowManager");
|
|
33546
|
-
UserRefusedOnDevice2 = createCustomErrorClass2("UserRefusedOnDevice");
|
|
33547
|
-
PinNotSet2 = createCustomErrorClass2("PinNotSet");
|
|
33548
|
-
ExpertModeRequired2 = createCustomErrorClass2("ExpertModeRequired");
|
|
33549
|
-
TransportOpenUserCancelled2 = createCustomErrorClass2("TransportOpenUserCancelled");
|
|
33550
|
-
TransportInterfaceNotAvailable2 = createCustomErrorClass2("TransportInterfaceNotAvailable");
|
|
33551
|
-
TransportRaceCondition2 = createCustomErrorClass2("TransportRaceCondition");
|
|
33552
|
-
TransportWebUSBGestureRequired2 = createCustomErrorClass2("TransportWebUSBGestureRequired");
|
|
33553
|
-
TransactionHasBeenValidatedError2 = createCustomErrorClass2("TransactionHasBeenValidatedError");
|
|
33554
|
-
TransportExchangeTimeoutError2 = createCustomErrorClass2("TransportExchangeTimeoutError");
|
|
33555
|
-
DeviceShouldStayInApp2 = createCustomErrorClass2("DeviceShouldStayInApp");
|
|
33556
|
-
WebsocketConnectionError2 = createCustomErrorClass2("WebsocketConnectionError");
|
|
33557
|
-
WebsocketConnectionFailed2 = createCustomErrorClass2("WebsocketConnectionFailed");
|
|
33558
|
-
WrongDeviceForAccount2 = createCustomErrorClass2("WrongDeviceForAccount");
|
|
33559
|
-
WrongDeviceForAccountPayout2 = createCustomErrorClass2("WrongDeviceForAccountPayout");
|
|
33560
|
-
MissingSwapPayloadParamaters2 = createCustomErrorClass2("MissingSwapPayloadParamaters");
|
|
33561
|
-
WrongDeviceForAccountRefund2 = createCustomErrorClass2("WrongDeviceForAccountRefund");
|
|
33562
|
-
WrongAppForCurrency2 = createCustomErrorClass2("WrongAppForCurrency");
|
|
33563
|
-
ETHAddressNonEIP2 = createCustomErrorClass2("ETHAddressNonEIP");
|
|
33564
|
-
CantScanQRCode2 = createCustomErrorClass2("CantScanQRCode");
|
|
33565
|
-
FeeNotLoaded2 = createCustomErrorClass2("FeeNotLoaded");
|
|
33566
|
-
FeeNotLoadedSwap2 = createCustomErrorClass2("FeeNotLoadedSwap");
|
|
33567
|
-
FeeRequired2 = createCustomErrorClass2("FeeRequired");
|
|
33568
|
-
FeeTooHigh2 = createCustomErrorClass2("FeeTooHigh");
|
|
33569
|
-
PendingOperation2 = createCustomErrorClass2("PendingOperation");
|
|
33570
|
-
SyncError2 = createCustomErrorClass2("SyncError");
|
|
33571
|
-
PairingFailed2 = createCustomErrorClass2("PairingFailed");
|
|
33572
|
-
PeerRemovedPairing2 = createCustomErrorClass2("PeerRemovedPairing");
|
|
33573
|
-
GenuineCheckFailed2 = createCustomErrorClass2("GenuineCheckFailed");
|
|
33574
|
-
LedgerAPI4xx2 = createCustomErrorClass2("LedgerAPI4xx");
|
|
33575
|
-
LedgerAPI5xx2 = createCustomErrorClass2("LedgerAPI5xx");
|
|
33576
|
-
FirmwareOrAppUpdateRequired2 = createCustomErrorClass2("FirmwareOrAppUpdateRequired");
|
|
33577
|
-
ReplacementTransactionUnderpriced2 = createCustomErrorClass2("ReplacementTransactionUnderpriced");
|
|
33578
|
-
OpReturnDataSizeLimit2 = createCustomErrorClass2("OpReturnSizeLimit");
|
|
33579
|
-
DustLimit2 = createCustomErrorClass2("DustLimit");
|
|
33580
|
-
LanguageNotFound2 = createCustomErrorClass2("LanguageNotFound");
|
|
33581
|
-
NoDBPathGiven2 = createCustomErrorClass2("NoDBPathGiven");
|
|
33582
|
-
DBWrongPassword2 = createCustomErrorClass2("DBWrongPassword");
|
|
33583
|
-
DBNotReset2 = createCustomErrorClass2("DBNotReset");
|
|
33584
|
-
SequenceNumberError2 = createCustomErrorClass2("SequenceNumberError");
|
|
33585
|
-
DisabledTransactionBroadcastError2 = createCustomErrorClass2("DisabledTransactionBroadcastError");
|
|
33586
|
-
(function(HwTransportErrorType3) {
|
|
33587
|
-
HwTransportErrorType3["Unknown"] = "Unknown";
|
|
33588
|
-
HwTransportErrorType3["LocationServicesDisabled"] = "LocationServicesDisabled";
|
|
33589
|
-
HwTransportErrorType3["LocationServicesUnauthorized"] = "LocationServicesUnauthorized";
|
|
33590
|
-
HwTransportErrorType3["BluetoothScanStartFailed"] = "BluetoothScanStartFailed";
|
|
33591
|
-
})(HwTransportErrorType2 || (HwTransportErrorType2 = {}));
|
|
33592
|
-
TransportError2 = class extends Error {
|
|
33593
|
-
id;
|
|
33594
|
-
constructor(message2, id5) {
|
|
33595
|
-
const name2 = "TransportError";
|
|
33596
|
-
super(message2 || name2);
|
|
33597
|
-
this.name = name2;
|
|
33598
|
-
this.message = message2;
|
|
33599
|
-
this.stack = new Error(message2).stack;
|
|
33600
|
-
this.id = id5;
|
|
33601
|
-
}
|
|
33602
|
-
};
|
|
33603
|
-
addCustomErrorDeserializer2("TransportError", (e96) => new TransportError2(e96.message, e96.id));
|
|
33604
|
-
StatusCodes2 = {
|
|
33605
|
-
ACCESS_CONDITION_NOT_FULFILLED: 38916,
|
|
33606
|
-
ALGORITHM_NOT_SUPPORTED: 38020,
|
|
33607
|
-
CLA_NOT_SUPPORTED: 28160,
|
|
33608
|
-
CODE_BLOCKED: 38976,
|
|
33609
|
-
CODE_NOT_INITIALIZED: 38914,
|
|
33610
|
-
COMMAND_INCOMPATIBLE_FILE_STRUCTURE: 27009,
|
|
33611
|
-
CONDITIONS_OF_USE_NOT_SATISFIED: 27013,
|
|
33612
|
-
CONTRADICTION_INVALIDATION: 38928,
|
|
33613
|
-
CONTRADICTION_SECRET_CODE_STATUS: 38920,
|
|
33614
|
-
DEVICE_IN_RECOVERY_MODE: 26159,
|
|
33615
|
-
CUSTOM_IMAGE_EMPTY: 26158,
|
|
33616
|
-
FILE_ALREADY_EXISTS: 27273,
|
|
33617
|
-
FILE_NOT_FOUND: 37892,
|
|
33618
|
-
GP_AUTH_FAILED: 25344,
|
|
33619
|
-
HALTED: 28586,
|
|
33620
|
-
INCONSISTENT_FILE: 37896,
|
|
33621
|
-
INCORRECT_DATA: 27264,
|
|
33622
|
-
INCORRECT_LENGTH: 26368,
|
|
33623
|
-
INCORRECT_P1_P2: 27392,
|
|
33624
|
-
INS_NOT_SUPPORTED: 27904,
|
|
33625
|
-
DEVICE_NOT_ONBOARDED: 27911,
|
|
33626
|
-
DEVICE_NOT_ONBOARDED_2: 26129,
|
|
33627
|
-
INVALID_KCV: 38021,
|
|
33628
|
-
INVALID_OFFSET: 37890,
|
|
33629
|
-
LICENSING: 28482,
|
|
33630
|
-
LOCKED_DEVICE: 21781,
|
|
33631
|
-
MAX_VALUE_REACHED: 38992,
|
|
33632
|
-
MEMORY_PROBLEM: 37440,
|
|
33633
|
-
MISSING_CRITICAL_PARAMETER: 26624,
|
|
33634
|
-
NO_EF_SELECTED: 37888,
|
|
33635
|
-
NOT_ENOUGH_MEMORY_SPACE: 27268,
|
|
33636
|
-
OK: 36864,
|
|
33637
|
-
PIN_REMAINING_ATTEMPTS: 25536,
|
|
33638
|
-
REFERENCED_DATA_NOT_FOUND: 27272,
|
|
33639
|
-
SECURITY_STATUS_NOT_SATISFIED: 27010,
|
|
33640
|
-
TECHNICAL_PROBLEM: 28416,
|
|
33641
|
-
UNKNOWN_APDU: 27906,
|
|
33642
|
-
USER_REFUSED_ON_DEVICE: 21761,
|
|
33643
|
-
NOT_ENOUGH_SPACE: 20738,
|
|
33644
|
-
APP_NOT_FOUND_OR_INVALID_CONTEXT: 20771,
|
|
33645
|
-
INVALID_APP_NAME_LENGTH: 26378,
|
|
33646
|
-
GEN_AES_KEY_FAILED: 21529,
|
|
33647
|
-
INTERNAL_CRYPTO_OPERATION_FAILED: 21530,
|
|
33648
|
-
INTERNAL_COMPUTE_AES_CMAC_FAILED: 21531,
|
|
33649
|
-
ENCRYPT_APP_STORAGE_FAILED: 21532,
|
|
33650
|
-
INVALID_BACKUP_STATE: 26178,
|
|
33651
|
-
PIN_NOT_SET: 21762,
|
|
33652
|
-
INVALID_BACKUP_LENGTH: 26419,
|
|
33653
|
-
INVALID_RESTORE_STATE: 26179,
|
|
33654
|
-
INVALID_CHUNK_LENGTH: 26420,
|
|
33655
|
-
INVALID_BACKUP_HEADER: 26698,
|
|
33656
|
-
// Not documented:
|
|
33657
|
-
TRUSTCHAIN_WRONG_SEED: 45063
|
|
33658
|
-
};
|
|
33659
|
-
TransportStatusError2 = class _TransportStatusError extends Error {
|
|
33660
|
-
statusCode;
|
|
33661
|
-
statusText;
|
|
33662
|
-
/**
|
|
33663
|
-
* @param statusCode The error status code coming from a Transport implementation
|
|
33664
|
-
* @param options containing:
|
|
33665
|
-
* - canBeMappedToChildError: enable the mapping of TransportStatusError to an error extending/inheriting from it
|
|
33666
|
-
* . Ex: LockedDeviceError. Default to true.
|
|
33667
|
-
*/
|
|
33668
|
-
constructor(statusCode, { canBeMappedToChildError = true } = {}) {
|
|
33669
|
-
const statusText = Object.keys(StatusCodes2).find((k25) => StatusCodes2[k25] === statusCode) || "UNKNOWN_ERROR";
|
|
33670
|
-
const smsg = getAltStatusMessage2(statusCode) || statusText;
|
|
33671
|
-
const statusCodeStr = statusCode.toString(16);
|
|
33672
|
-
const message2 = `Ledger device: ${smsg} (0x${statusCodeStr})`;
|
|
33673
|
-
super(message2);
|
|
33674
|
-
this.name = "TransportStatusError";
|
|
33675
|
-
this.statusCode = statusCode;
|
|
33676
|
-
this.statusText = statusText;
|
|
33677
|
-
Object.setPrototypeOf(this, _TransportStatusError.prototype);
|
|
33678
|
-
if (canBeMappedToChildError && statusCode === StatusCodes2.LOCKED_DEVICE) {
|
|
33679
|
-
return new LockedDeviceError2(message2);
|
|
33680
|
-
}
|
|
33681
|
-
}
|
|
33682
|
-
};
|
|
33683
|
-
LockedDeviceError2 = class _LockedDeviceError extends TransportStatusError2 {
|
|
33684
|
-
constructor(message2) {
|
|
33685
|
-
super(StatusCodes2.LOCKED_DEVICE, { canBeMappedToChildError: false });
|
|
33686
|
-
if (message2) {
|
|
33687
|
-
this.message = message2;
|
|
33688
|
-
}
|
|
33689
|
-
this.name = "LockedDeviceError";
|
|
33690
|
-
Object.setPrototypeOf(this, _LockedDeviceError.prototype);
|
|
33691
|
-
}
|
|
33692
|
-
};
|
|
33693
|
-
addCustomErrorDeserializer2("TransportStatusError", (e96) => new TransportStatusError2(e96.statusCode));
|
|
33694
|
-
}
|
|
33695
|
-
});
|
|
33696
|
-
|
|
33697
33385
|
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/rng.js
|
|
33698
33386
|
function rng() {
|
|
33699
33387
|
if (poolPtr > rnds8Pool.length - 16) {
|
|
@@ -52880,10 +52568,10 @@ var require_is_object = __commonJS({
|
|
|
52880
52568
|
}
|
|
52881
52569
|
return _typeof(obj2);
|
|
52882
52570
|
}
|
|
52883
|
-
function
|
|
52571
|
+
function isObject14(obj2) {
|
|
52884
52572
|
return obj2 !== null && _typeof(obj2) === "object";
|
|
52885
52573
|
}
|
|
52886
|
-
module2.exports =
|
|
52574
|
+
module2.exports = isObject14;
|
|
52887
52575
|
}
|
|
52888
52576
|
});
|
|
52889
52577
|
|
|
@@ -52904,7 +52592,7 @@ var require_request_base = __commonJS({
|
|
|
52904
52592
|
}
|
|
52905
52593
|
return _typeof(obj2);
|
|
52906
52594
|
}
|
|
52907
|
-
var
|
|
52595
|
+
var isObject14 = require_is_object();
|
|
52908
52596
|
module2.exports = RequestBase;
|
|
52909
52597
|
function RequestBase(object5) {
|
|
52910
52598
|
if (object5)
|
|
@@ -53074,7 +52762,7 @@ var require_request_base = __commonJS({
|
|
|
53074
52762
|
};
|
|
53075
52763
|
RequestBase.prototype.getHeader = RequestBase.prototype.get;
|
|
53076
52764
|
RequestBase.prototype.set = function(field, value2) {
|
|
53077
|
-
if (
|
|
52765
|
+
if (isObject14(field)) {
|
|
53078
52766
|
for (var key2 in field) {
|
|
53079
52767
|
if (Object.prototype.hasOwnProperty.call(field, key2))
|
|
53080
52768
|
this.set(key2, field[key2]);
|
|
@@ -53097,7 +52785,7 @@ var require_request_base = __commonJS({
|
|
|
53097
52785
|
if (this._data) {
|
|
53098
52786
|
throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");
|
|
53099
52787
|
}
|
|
53100
|
-
if (
|
|
52788
|
+
if (isObject14(name2)) {
|
|
53101
52789
|
for (var key2 in name2) {
|
|
53102
52790
|
if (Object.prototype.hasOwnProperty.call(name2, key2))
|
|
53103
52791
|
this.field(key2, name2[key2]);
|
|
@@ -53176,7 +52864,7 @@ var require_request_base = __commonJS({
|
|
|
53176
52864
|
};
|
|
53177
52865
|
};
|
|
53178
52866
|
RequestBase.prototype.send = function(data6) {
|
|
53179
|
-
var isObject_ =
|
|
52867
|
+
var isObject_ = isObject14(data6);
|
|
53180
52868
|
var type4 = this._header["content-type"];
|
|
53181
52869
|
if (this._formData) {
|
|
53182
52870
|
throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");
|
|
@@ -53190,7 +52878,7 @@ var require_request_base = __commonJS({
|
|
|
53190
52878
|
} else if (data6 && this._data && this._isHost(this._data)) {
|
|
53191
52879
|
throw new Error("Can't merge these send calls");
|
|
53192
52880
|
}
|
|
53193
|
-
if (isObject_ &&
|
|
52881
|
+
if (isObject_ && isObject14(this._data)) {
|
|
53194
52882
|
for (var key2 in data6) {
|
|
53195
52883
|
if (Object.prototype.hasOwnProperty.call(data6, key2))
|
|
53196
52884
|
this._data[key2] = data6[key2];
|
|
@@ -100724,7 +100412,7 @@ var require_axios = __commonJS({
|
|
|
100724
100412
|
var isString5 = typeOfTest3("string");
|
|
100725
100413
|
var isFunction$1 = typeOfTest3("function");
|
|
100726
100414
|
var isNumber4 = typeOfTest3("number");
|
|
100727
|
-
var
|
|
100415
|
+
var isObject14 = (thing) => thing !== null && typeof thing === "object";
|
|
100728
100416
|
var isBoolean5 = (thing) => thing === true || thing === false;
|
|
100729
100417
|
var isPlainObject6 = (val) => {
|
|
100730
100418
|
if (kindOf4(val) !== "object") {
|
|
@@ -100734,7 +100422,7 @@ var require_axios = __commonJS({
|
|
|
100734
100422
|
return (prototype7 === null || prototype7 === Object.prototype || Object.getPrototypeOf(prototype7) === null) && !(toStringTag2 in val) && !(iterator2 in val);
|
|
100735
100423
|
};
|
|
100736
100424
|
var isEmptyObject2 = (val) => {
|
|
100737
|
-
if (!
|
|
100425
|
+
if (!isObject14(val) || isBuffer6(val)) {
|
|
100738
100426
|
return false;
|
|
100739
100427
|
}
|
|
100740
100428
|
try {
|
|
@@ -100747,7 +100435,7 @@ var require_axios = __commonJS({
|
|
|
100747
100435
|
var isFile3 = kindOfTest3("File");
|
|
100748
100436
|
var isBlob7 = kindOfTest3("Blob");
|
|
100749
100437
|
var isFileList3 = kindOfTest3("FileList");
|
|
100750
|
-
var isStream3 = (val) =>
|
|
100438
|
+
var isStream3 = (val) => isObject14(val) && isFunction$1(val.pipe);
|
|
100751
100439
|
var isFormData3 = (thing) => {
|
|
100752
100440
|
let kind;
|
|
100753
100441
|
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf4(thing)) === "formdata" || // detect form-data instance
|
|
@@ -100978,7 +100666,7 @@ var require_axios = __commonJS({
|
|
|
100978
100666
|
var toJSONObject3 = (obj2) => {
|
|
100979
100667
|
const stack2 = new Array(10);
|
|
100980
100668
|
const visit2 = (source, i104) => {
|
|
100981
|
-
if (
|
|
100669
|
+
if (isObject14(source)) {
|
|
100982
100670
|
if (stack2.indexOf(source) >= 0) {
|
|
100983
100671
|
return;
|
|
100984
100672
|
}
|
|
@@ -101001,7 +100689,7 @@ var require_axios = __commonJS({
|
|
|
101001
100689
|
return visit2(obj2, 0);
|
|
101002
100690
|
};
|
|
101003
100691
|
var isAsyncFn3 = kindOfTest3("AsyncFunction");
|
|
101004
|
-
var isThenable4 = (thing) => thing && (
|
|
100692
|
+
var isThenable4 = (thing) => thing && (isObject14(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
101005
100693
|
var _setImmediate3 = ((setImmediateSupported, postMessageSupported) => {
|
|
101006
100694
|
if (setImmediateSupported) {
|
|
101007
100695
|
return setImmediate;
|
|
@@ -101032,7 +100720,7 @@ var require_axios = __commonJS({
|
|
|
101032
100720
|
isString: isString5,
|
|
101033
100721
|
isNumber: isNumber4,
|
|
101034
100722
|
isBoolean: isBoolean5,
|
|
101035
|
-
isObject:
|
|
100723
|
+
isObject: isObject14,
|
|
101036
100724
|
isPlainObject: isPlainObject6,
|
|
101037
100725
|
isEmptyObject: isEmptyObject2,
|
|
101038
100726
|
isReadableStream: isReadableStream4,
|
|
@@ -106373,7 +106061,7 @@ var init_type_descriptor = __esm({
|
|
|
106373
106061
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/type-descriptor.js"() {
|
|
106374
106062
|
"use strict";
|
|
106375
106063
|
init_tslib_es6();
|
|
106376
|
-
|
|
106064
|
+
init_helpers2();
|
|
106377
106065
|
TypeDescriptor = function() {
|
|
106378
106066
|
function TypeDescriptor2(ctor) {
|
|
106379
106067
|
this.ctor = ctor;
|
|
@@ -106537,7 +106225,7 @@ function identity2(arg) {
|
|
|
106537
106225
|
return arg;
|
|
106538
106226
|
}
|
|
106539
106227
|
var LAZY_TYPE_EXPLANATION, MISSING_REFLECT_CONF_MSG, isReflectMetadataSupported;
|
|
106540
|
-
var
|
|
106228
|
+
var init_helpers2 = __esm({
|
|
106541
106229
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/helpers.js"() {
|
|
106542
106230
|
"use strict";
|
|
106543
106231
|
init_tslib_es6();
|
|
@@ -106576,7 +106264,7 @@ var METADATA_FIELD_KEY, JsonObjectMetadata;
|
|
|
106576
106264
|
var init_metadata = __esm({
|
|
106577
106265
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/metadata.js"() {
|
|
106578
106266
|
"use strict";
|
|
106579
|
-
|
|
106267
|
+
init_helpers2();
|
|
106580
106268
|
METADATA_FIELD_KEY = "__typedJsonJsonObjectMetadataInformation__";
|
|
106581
106269
|
JsonObjectMetadata = function() {
|
|
106582
106270
|
function JsonObjectMetadata2(classType) {
|
|
@@ -106953,7 +106641,7 @@ var Deserializer;
|
|
|
106953
106641
|
var init_deserializer = __esm({
|
|
106954
106642
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/deserializer.js"() {
|
|
106955
106643
|
"use strict";
|
|
106956
|
-
|
|
106644
|
+
init_helpers2();
|
|
106957
106645
|
init_metadata();
|
|
106958
106646
|
init_options_base();
|
|
106959
106647
|
init_type_descriptor();
|
|
@@ -107112,7 +106800,7 @@ function createArrayType(elementType, dimensions) {
|
|
|
107112
106800
|
var init_json_array_member = __esm({
|
|
107113
106801
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/json-array-member.js"() {
|
|
107114
106802
|
"use strict";
|
|
107115
|
-
|
|
106803
|
+
init_helpers2();
|
|
107116
106804
|
init_metadata();
|
|
107117
106805
|
init_options_base();
|
|
107118
106806
|
init_type_descriptor();
|
|
@@ -107259,7 +106947,7 @@ var init_serializer = __esm({
|
|
|
107259
106947
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/serializer.js"() {
|
|
107260
106948
|
"use strict";
|
|
107261
106949
|
init_tslib_es6();
|
|
107262
|
-
|
|
106950
|
+
init_helpers2();
|
|
107263
106951
|
init_metadata();
|
|
107264
106952
|
init_options_base();
|
|
107265
106953
|
init_type_descriptor();
|
|
@@ -107354,7 +107042,7 @@ var init_parser = __esm({
|
|
|
107354
107042
|
"use strict";
|
|
107355
107043
|
init_tslib_es6();
|
|
107356
107044
|
init_deserializer();
|
|
107357
|
-
|
|
107045
|
+
init_helpers2();
|
|
107358
107046
|
init_json_array_member();
|
|
107359
107047
|
init_metadata();
|
|
107360
107048
|
init_options_base();
|
|
@@ -107755,7 +107443,7 @@ function isSpecialPropertyType(decoratorName, typeDescriptor) {
|
|
|
107755
107443
|
var init_json_member = __esm({
|
|
107756
107444
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/json-member.js"() {
|
|
107757
107445
|
"use strict";
|
|
107758
|
-
|
|
107446
|
+
init_helpers2();
|
|
107759
107447
|
init_metadata();
|
|
107760
107448
|
init_options_base();
|
|
107761
107449
|
init_type_descriptor();
|
|
@@ -107793,7 +107481,7 @@ function jsonSetMember(maybeTypeThunk, options24) {
|
|
|
107793
107481
|
var init_json_set_member = __esm({
|
|
107794
107482
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/json-set-member.js"() {
|
|
107795
107483
|
"use strict";
|
|
107796
|
-
|
|
107484
|
+
init_helpers2();
|
|
107797
107485
|
init_metadata();
|
|
107798
107486
|
init_options_base();
|
|
107799
107487
|
init_type_descriptor();
|
|
@@ -107832,7 +107520,7 @@ function jsonMapMember(maybeKeyThunk, maybeValueThunk, options24) {
|
|
|
107832
107520
|
var init_json_map_member = __esm({
|
|
107833
107521
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/json-map-member.js"() {
|
|
107834
107522
|
"use strict";
|
|
107835
|
-
|
|
107523
|
+
init_helpers2();
|
|
107836
107524
|
init_metadata();
|
|
107837
107525
|
init_options_base();
|
|
107838
107526
|
init_type_descriptor();
|
|
@@ -120456,7 +120144,7 @@ var require_minimal = __commonJS({
|
|
|
120456
120144
|
util10.isString = function isString5(value2) {
|
|
120457
120145
|
return typeof value2 === "string" || value2 instanceof String;
|
|
120458
120146
|
};
|
|
120459
|
-
util10.isObject = function
|
|
120147
|
+
util10.isObject = function isObject14(value2) {
|
|
120460
120148
|
return value2 && typeof value2 === "object";
|
|
120461
120149
|
};
|
|
120462
120150
|
util10.isset = /**
|
|
@@ -202443,9 +202131,9 @@ var require_thenables = __commonJS({
|
|
|
202443
202131
|
module2.exports = function(Promise2, INTERNAL3) {
|
|
202444
202132
|
var util10 = require_util7();
|
|
202445
202133
|
var errorObj2 = util10.errorObj;
|
|
202446
|
-
var
|
|
202134
|
+
var isObject14 = util10.isObject;
|
|
202447
202135
|
function tryConvertToPromise(obj2, context) {
|
|
202448
|
-
if (
|
|
202136
|
+
if (isObject14(obj2)) {
|
|
202449
202137
|
if (obj2 instanceof Promise2)
|
|
202450
202138
|
return obj2;
|
|
202451
202139
|
var then = getThen(obj2);
|
|
@@ -205340,7 +205028,7 @@ var require_props = __commonJS({
|
|
|
205340
205028
|
"use strict";
|
|
205341
205029
|
module2.exports = function(Promise2, PromiseArray, tryConvertToPromise, apiRejection) {
|
|
205342
205030
|
var util10 = require_util7();
|
|
205343
|
-
var
|
|
205031
|
+
var isObject14 = util10.isObject;
|
|
205344
205032
|
var es52 = require_es5();
|
|
205345
205033
|
var Es6Map;
|
|
205346
205034
|
if (typeof Map === "function")
|
|
@@ -205422,7 +205110,7 @@ var require_props = __commonJS({
|
|
|
205422
205110
|
function props(promises) {
|
|
205423
205111
|
var ret2;
|
|
205424
205112
|
var castValue = tryConvertToPromise(promises);
|
|
205425
|
-
if (!
|
|
205113
|
+
if (!isObject14(castValue)) {
|
|
205426
205114
|
return apiRejection("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n");
|
|
205427
205115
|
} else if (castValue instanceof Promise2) {
|
|
205428
205116
|
ret2 = castValue._then(
|
|
@@ -246203,7 +245891,7 @@ var require_minimal2 = __commonJS({
|
|
|
246203
245891
|
util10.isString = function isString5(value2) {
|
|
246204
245892
|
return typeof value2 === "string" || value2 instanceof String;
|
|
246205
245893
|
};
|
|
246206
|
-
util10.isObject = function
|
|
245894
|
+
util10.isObject = function isObject14(value2) {
|
|
246207
245895
|
return value2 && typeof value2 === "object";
|
|
246208
245896
|
};
|
|
246209
245897
|
util10.isset = /**
|
|
@@ -272711,7 +272399,7 @@ var require_utils23 = __commonJS({
|
|
|
272711
272399
|
function isNumber4(val) {
|
|
272712
272400
|
return typeof val === "number";
|
|
272713
272401
|
}
|
|
272714
|
-
function
|
|
272402
|
+
function isObject14(val) {
|
|
272715
272403
|
return val !== null && typeof val === "object";
|
|
272716
272404
|
}
|
|
272717
272405
|
function isPlainObject6(val) {
|
|
@@ -272734,7 +272422,7 @@ var require_utils23 = __commonJS({
|
|
|
272734
272422
|
return toString13.call(val) === "[object Function]";
|
|
272735
272423
|
}
|
|
272736
272424
|
function isStream3(val) {
|
|
272737
|
-
return
|
|
272425
|
+
return isObject14(val) && isFunction7(val.pipe);
|
|
272738
272426
|
}
|
|
272739
272427
|
function isURLSearchParams5(val) {
|
|
272740
272428
|
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
@@ -272809,7 +272497,7 @@ var require_utils23 = __commonJS({
|
|
|
272809
272497
|
isArrayBufferView: isArrayBufferView3,
|
|
272810
272498
|
isString: isString5,
|
|
272811
272499
|
isNumber: isNumber4,
|
|
272812
|
-
isObject:
|
|
272500
|
+
isObject: isObject14,
|
|
272813
272501
|
isPlainObject: isPlainObject6,
|
|
272814
272502
|
isUndefined: isUndefined6,
|
|
272815
272503
|
isDate: isDate4,
|
|
@@ -355326,7 +355014,7 @@ function dispatch2(log5) {
|
|
|
355326
355014
|
}
|
|
355327
355015
|
}
|
|
355328
355016
|
var id4, subscribers2, log4, trace2, LocalTracer2, listen2;
|
|
355329
|
-
var
|
|
355017
|
+
var init_lib_es3 = __esm({
|
|
355330
355018
|
"../../node_modules/.pnpm/@ledgerhq+logs@6.12.0/node_modules/@ledgerhq/logs/lib-es/index.js"() {
|
|
355331
355019
|
"use strict";
|
|
355332
355020
|
id4 = 0;
|
|
@@ -355484,7 +355172,7 @@ var require_utils27 = __commonJS({
|
|
|
355484
355172
|
function isNumber4(val) {
|
|
355485
355173
|
return typeof val === "number";
|
|
355486
355174
|
}
|
|
355487
|
-
function
|
|
355175
|
+
function isObject14(val) {
|
|
355488
355176
|
return val !== null && typeof val === "object";
|
|
355489
355177
|
}
|
|
355490
355178
|
function isPlainObject6(val) {
|
|
@@ -355507,7 +355195,7 @@ var require_utils27 = __commonJS({
|
|
|
355507
355195
|
return toString13.call(val) === "[object Function]";
|
|
355508
355196
|
}
|
|
355509
355197
|
function isStream3(val) {
|
|
355510
|
-
return
|
|
355198
|
+
return isObject14(val) && isFunction7(val.pipe);
|
|
355511
355199
|
}
|
|
355512
355200
|
function isURLSearchParams5(val) {
|
|
355513
355201
|
return toString13.call(val) === "[object URLSearchParams]";
|
|
@@ -355582,7 +355270,7 @@ var require_utils27 = __commonJS({
|
|
|
355582
355270
|
isArrayBufferView: isArrayBufferView3,
|
|
355583
355271
|
isString: isString5,
|
|
355584
355272
|
isNumber: isNumber4,
|
|
355585
|
-
isObject:
|
|
355273
|
+
isObject: isObject14,
|
|
355586
355274
|
isPlainObject: isPlainObject6,
|
|
355587
355275
|
isUndefined: isUndefined6,
|
|
355588
355276
|
isDate: isDate4,
|
|
@@ -357105,7 +356793,7 @@ var init_contracts = __esm({
|
|
|
357105
356793
|
"use strict";
|
|
357106
356794
|
import_axios31 = __toESM(require_axios5());
|
|
357107
356795
|
init_loadConfig();
|
|
357108
|
-
|
|
356796
|
+
init_lib_es3();
|
|
357109
356797
|
__assign4 = function() {
|
|
357110
356798
|
__assign4 = Object.assign || function(t107) {
|
|
357111
356799
|
for (var s112, i104 = 1, n193 = arguments.length; i104 < n193; i104++) {
|
|
@@ -357541,7 +357229,7 @@ var __awaiter4, __generator5, __values, ledgerService, ledger_default5;
|
|
|
357541
357229
|
var init_ledger = __esm({
|
|
357542
357230
|
"../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/index.js"() {
|
|
357543
357231
|
"use strict";
|
|
357544
|
-
|
|
357232
|
+
init_lib_es3();
|
|
357545
357233
|
init_lib11();
|
|
357546
357234
|
init_contracts();
|
|
357547
357235
|
init_erc20();
|
|
@@ -357829,14 +357517,320 @@ var init_ledger = __esm({
|
|
|
357829
357517
|
}
|
|
357830
357518
|
});
|
|
357831
357519
|
|
|
357520
|
+
// ../../node_modules/.pnpm/@ledgerhq+errors@6.22.0/node_modules/@ledgerhq/errors/lib-es/helpers.js
|
|
357521
|
+
function isObject8(value2) {
|
|
357522
|
+
return typeof value2 === "object";
|
|
357523
|
+
}
|
|
357524
|
+
var errorClasses3, deserializers3, addCustomErrorDeserializer3, createCustomErrorClass3;
|
|
357525
|
+
var init_helpers3 = __esm({
|
|
357526
|
+
"../../node_modules/.pnpm/@ledgerhq+errors@6.22.0/node_modules/@ledgerhq/errors/lib-es/helpers.js"() {
|
|
357527
|
+
"use strict";
|
|
357528
|
+
errorClasses3 = {};
|
|
357529
|
+
deserializers3 = {};
|
|
357530
|
+
addCustomErrorDeserializer3 = (name2, deserializer) => {
|
|
357531
|
+
deserializers3[name2] = deserializer;
|
|
357532
|
+
};
|
|
357533
|
+
createCustomErrorClass3 = (name2) => {
|
|
357534
|
+
class CustomErrorClass extends Error {
|
|
357535
|
+
cause;
|
|
357536
|
+
constructor(message2, fields, options24) {
|
|
357537
|
+
super(message2 || name2, options24);
|
|
357538
|
+
Object.setPrototypeOf(this, CustomErrorClass.prototype);
|
|
357539
|
+
this.name = name2;
|
|
357540
|
+
if (fields) {
|
|
357541
|
+
for (const k25 in fields) {
|
|
357542
|
+
this[k25] = fields[k25];
|
|
357543
|
+
}
|
|
357544
|
+
}
|
|
357545
|
+
if (options24 && isObject8(options24) && "cause" in options24 && !this.cause) {
|
|
357546
|
+
const cause = options24.cause;
|
|
357547
|
+
this.cause = cause;
|
|
357548
|
+
if ("stack" in cause) {
|
|
357549
|
+
this.stack = this.stack + "\nCAUSE: " + cause.stack;
|
|
357550
|
+
}
|
|
357551
|
+
}
|
|
357552
|
+
}
|
|
357553
|
+
}
|
|
357554
|
+
errorClasses3[name2] = CustomErrorClass;
|
|
357555
|
+
return CustomErrorClass;
|
|
357556
|
+
};
|
|
357557
|
+
}
|
|
357558
|
+
});
|
|
357559
|
+
|
|
357560
|
+
// ../../node_modules/.pnpm/@ledgerhq+errors@6.22.0/node_modules/@ledgerhq/errors/lib-es/index.js
|
|
357561
|
+
function getAltStatusMessage3(code) {
|
|
357562
|
+
switch (code) {
|
|
357563
|
+
case 26368:
|
|
357564
|
+
return "Incorrect length";
|
|
357565
|
+
case 26624:
|
|
357566
|
+
return "Missing critical parameter";
|
|
357567
|
+
case 27010:
|
|
357568
|
+
return "Security not satisfied (dongle locked or have invalid access rights)";
|
|
357569
|
+
case 27013:
|
|
357570
|
+
return "Condition of use not satisfied (denied by the user?)";
|
|
357571
|
+
case 27264:
|
|
357572
|
+
return "Invalid data received";
|
|
357573
|
+
case 27392:
|
|
357574
|
+
return "Invalid parameter received";
|
|
357575
|
+
case 21781:
|
|
357576
|
+
return "Locked device";
|
|
357577
|
+
}
|
|
357578
|
+
if (28416 <= code && code <= 28671) {
|
|
357579
|
+
return "Internal error, please report";
|
|
357580
|
+
}
|
|
357581
|
+
}
|
|
357582
|
+
var AccountNameRequiredError3, AccountNotSupported3, AccountAwaitingSendPendingOperations3, AmountRequired3, BluetoothRequired3, BtcUnmatchedApp3, CantOpenDevice3, CashAddrNotSupported3, ClaimRewardsFeesWarning4, CurrencyNotSupported3, DeviceAppVerifyNotSupported3, DeviceGenuineSocketEarlyClose3, DeviceNotGenuineError3, DeviceOnDashboardExpected3, DeviceOnDashboardUnexpected3, DeviceInOSUExpected3, DeviceHalted3, DeviceNameInvalid3, DeviceSocketFail3, DeviceSocketNoBulkStatus3, DeviceNeedsRestart3, UnresponsiveDeviceError3, DisconnectedDevice3, DisconnectedDeviceDuringOperation3, DeviceExtractOnboardingStateError3, DeviceOnboardingStatePollingError3, EnpointConfigError3, EthAppPleaseEnableContractData5, FeeEstimationFailed3, FirmwareNotRecognized3, HardResetFail3, InvalidXRPTag3, InvalidAddress3, InvalidNonce3, InvalidAddressBecauseDestinationIsAlsoSource3, LatestMCUInstalledError3, LatestFirmwareVersionRequired3, UnknownMCU3, LedgerAPIError3, LedgerAPIErrorWithMessage3, LedgerAPINotAvailable3, ManagerAppAlreadyInstalledError3, ManagerAppRelyOnBTCError3, ManagerAppDepInstallRequired3, ManagerAppDepUninstallRequired3, ManagerDeviceLockedError3, ManagerFirmwareNotEnoughSpaceError3, ManagerNotEnoughSpaceError3, ManagerUninstallBTCDep3, NetworkDown3, NetworkError3, NoAddressesFound3, NotEnoughBalance3, NotEnoughBalanceFees3, NotEnoughBalanceSwap3, NotEnoughBalanceToDelegate3, NotEnoughBalanceInParentAccount3, NotEnoughSpendableBalance3, NotEnoughBalanceBecauseDestinationNotCreated3, NoAccessToCamera3, NotEnoughGas3, NotEnoughGasSwap3, TronEmptyAccount3, MaybeKeepTronAccountAlive3, NotSupportedLegacyAddress3, GasLessThanEstimate3, PriorityFeeTooLow3, PriorityFeeTooHigh3, PriorityFeeHigherThanMaxFee3, MaxFeeTooLow3, PasswordsDontMatchError3, PasswordIncorrectError3, RecommendSubAccountsToEmpty3, RecommendUndelegation3, TimeoutTagged3, UnexpectedBootloader3, MCUNotGenuineToDashboard3, RecipientRequired3, UnavailableTezosOriginatedAccountReceive3, UnavailableTezosOriginatedAccountSend3, UpdateFetchFileFail3, UpdateIncorrectHash3, UpdateIncorrectSig3, UpdateYourApp3, UserRefusedDeviceNameChange3, UserRefusedAddress3, UserRefusedFirmwareUpdate3, UserRefusedAllowManager3, UserRefusedOnDevice3, PinNotSet3, ExpertModeRequired3, TransportOpenUserCancelled3, TransportInterfaceNotAvailable3, TransportRaceCondition3, TransportWebUSBGestureRequired3, TransactionHasBeenValidatedError3, TransportExchangeTimeoutError3, DeviceShouldStayInApp3, WebsocketConnectionError3, WebsocketConnectionFailed3, WrongDeviceForAccount3, WrongDeviceForAccountPayout3, MissingSwapPayloadParamaters3, WrongDeviceForAccountRefund3, WrongAppForCurrency3, ETHAddressNonEIP3, CantScanQRCode3, FeeNotLoaded3, FeeNotLoadedSwap3, FeeRequired3, FeeTooHigh3, PendingOperation3, SyncError3, PairingFailed3, PeerRemovedPairing3, GenuineCheckFailed3, LedgerAPI4xx3, LedgerAPI5xx3, FirmwareOrAppUpdateRequired3, ReplacementTransactionUnderpriced3, OpReturnDataSizeLimit3, DustLimit3, LanguageNotFound3, NoDBPathGiven3, DBWrongPassword3, DBNotReset3, SequenceNumberError3, DisabledTransactionBroadcastError3, HwTransportErrorType3, TransportError3, StatusCodes3, TransportStatusError3, LockedDeviceError3;
|
|
357583
|
+
var init_lib_es4 = __esm({
|
|
357584
|
+
"../../node_modules/.pnpm/@ledgerhq+errors@6.22.0/node_modules/@ledgerhq/errors/lib-es/index.js"() {
|
|
357585
|
+
"use strict";
|
|
357586
|
+
init_helpers3();
|
|
357587
|
+
AccountNameRequiredError3 = createCustomErrorClass3("AccountNameRequired");
|
|
357588
|
+
AccountNotSupported3 = createCustomErrorClass3("AccountNotSupported");
|
|
357589
|
+
AccountAwaitingSendPendingOperations3 = createCustomErrorClass3("AccountAwaitingSendPendingOperations");
|
|
357590
|
+
AmountRequired3 = createCustomErrorClass3("AmountRequired");
|
|
357591
|
+
BluetoothRequired3 = createCustomErrorClass3("BluetoothRequired");
|
|
357592
|
+
BtcUnmatchedApp3 = createCustomErrorClass3("BtcUnmatchedApp");
|
|
357593
|
+
CantOpenDevice3 = createCustomErrorClass3("CantOpenDevice");
|
|
357594
|
+
CashAddrNotSupported3 = createCustomErrorClass3("CashAddrNotSupported");
|
|
357595
|
+
ClaimRewardsFeesWarning4 = createCustomErrorClass3("ClaimRewardsFeesWarning");
|
|
357596
|
+
CurrencyNotSupported3 = createCustomErrorClass3("CurrencyNotSupported");
|
|
357597
|
+
DeviceAppVerifyNotSupported3 = createCustomErrorClass3("DeviceAppVerifyNotSupported");
|
|
357598
|
+
DeviceGenuineSocketEarlyClose3 = createCustomErrorClass3("DeviceGenuineSocketEarlyClose");
|
|
357599
|
+
DeviceNotGenuineError3 = createCustomErrorClass3("DeviceNotGenuine");
|
|
357600
|
+
DeviceOnDashboardExpected3 = createCustomErrorClass3("DeviceOnDashboardExpected");
|
|
357601
|
+
DeviceOnDashboardUnexpected3 = createCustomErrorClass3("DeviceOnDashboardUnexpected");
|
|
357602
|
+
DeviceInOSUExpected3 = createCustomErrorClass3("DeviceInOSUExpected");
|
|
357603
|
+
DeviceHalted3 = createCustomErrorClass3("DeviceHalted");
|
|
357604
|
+
DeviceNameInvalid3 = createCustomErrorClass3("DeviceNameInvalid");
|
|
357605
|
+
DeviceSocketFail3 = createCustomErrorClass3("DeviceSocketFail");
|
|
357606
|
+
DeviceSocketNoBulkStatus3 = createCustomErrorClass3("DeviceSocketNoBulkStatus");
|
|
357607
|
+
DeviceNeedsRestart3 = createCustomErrorClass3("DeviceSocketNoBulkStatus");
|
|
357608
|
+
UnresponsiveDeviceError3 = createCustomErrorClass3("UnresponsiveDeviceError");
|
|
357609
|
+
DisconnectedDevice3 = createCustomErrorClass3("DisconnectedDevice");
|
|
357610
|
+
DisconnectedDeviceDuringOperation3 = createCustomErrorClass3("DisconnectedDeviceDuringOperation");
|
|
357611
|
+
DeviceExtractOnboardingStateError3 = createCustomErrorClass3("DeviceExtractOnboardingStateError");
|
|
357612
|
+
DeviceOnboardingStatePollingError3 = createCustomErrorClass3("DeviceOnboardingStatePollingError");
|
|
357613
|
+
EnpointConfigError3 = createCustomErrorClass3("EnpointConfig");
|
|
357614
|
+
EthAppPleaseEnableContractData5 = createCustomErrorClass3("EthAppPleaseEnableContractData");
|
|
357615
|
+
FeeEstimationFailed3 = createCustomErrorClass3("FeeEstimationFailed");
|
|
357616
|
+
FirmwareNotRecognized3 = createCustomErrorClass3("FirmwareNotRecognized");
|
|
357617
|
+
HardResetFail3 = createCustomErrorClass3("HardResetFail");
|
|
357618
|
+
InvalidXRPTag3 = createCustomErrorClass3("InvalidXRPTag");
|
|
357619
|
+
InvalidAddress3 = createCustomErrorClass3("InvalidAddress");
|
|
357620
|
+
InvalidNonce3 = createCustomErrorClass3("InvalidNonce");
|
|
357621
|
+
InvalidAddressBecauseDestinationIsAlsoSource3 = createCustomErrorClass3("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
357622
|
+
LatestMCUInstalledError3 = createCustomErrorClass3("LatestMCUInstalledError");
|
|
357623
|
+
LatestFirmwareVersionRequired3 = createCustomErrorClass3("LatestFirmwareVersionRequired");
|
|
357624
|
+
UnknownMCU3 = createCustomErrorClass3("UnknownMCU");
|
|
357625
|
+
LedgerAPIError3 = createCustomErrorClass3("LedgerAPIError");
|
|
357626
|
+
LedgerAPIErrorWithMessage3 = createCustomErrorClass3("LedgerAPIErrorWithMessage");
|
|
357627
|
+
LedgerAPINotAvailable3 = createCustomErrorClass3("LedgerAPINotAvailable");
|
|
357628
|
+
ManagerAppAlreadyInstalledError3 = createCustomErrorClass3("ManagerAppAlreadyInstalled");
|
|
357629
|
+
ManagerAppRelyOnBTCError3 = createCustomErrorClass3("ManagerAppRelyOnBTC");
|
|
357630
|
+
ManagerAppDepInstallRequired3 = createCustomErrorClass3("ManagerAppDepInstallRequired");
|
|
357631
|
+
ManagerAppDepUninstallRequired3 = createCustomErrorClass3("ManagerAppDepUninstallRequired");
|
|
357632
|
+
ManagerDeviceLockedError3 = createCustomErrorClass3("ManagerDeviceLocked");
|
|
357633
|
+
ManagerFirmwareNotEnoughSpaceError3 = createCustomErrorClass3("ManagerFirmwareNotEnoughSpace");
|
|
357634
|
+
ManagerNotEnoughSpaceError3 = createCustomErrorClass3("ManagerNotEnoughSpace");
|
|
357635
|
+
ManagerUninstallBTCDep3 = createCustomErrorClass3("ManagerUninstallBTCDep");
|
|
357636
|
+
NetworkDown3 = createCustomErrorClass3("NetworkDown");
|
|
357637
|
+
NetworkError3 = createCustomErrorClass3("NetworkError");
|
|
357638
|
+
NoAddressesFound3 = createCustomErrorClass3("NoAddressesFound");
|
|
357639
|
+
NotEnoughBalance3 = createCustomErrorClass3("NotEnoughBalance");
|
|
357640
|
+
NotEnoughBalanceFees3 = createCustomErrorClass3("NotEnoughBalanceFees");
|
|
357641
|
+
NotEnoughBalanceSwap3 = createCustomErrorClass3("NotEnoughBalanceSwap");
|
|
357642
|
+
NotEnoughBalanceToDelegate3 = createCustomErrorClass3("NotEnoughBalanceToDelegate");
|
|
357643
|
+
NotEnoughBalanceInParentAccount3 = createCustomErrorClass3("NotEnoughBalanceInParentAccount");
|
|
357644
|
+
NotEnoughSpendableBalance3 = createCustomErrorClass3("NotEnoughSpendableBalance");
|
|
357645
|
+
NotEnoughBalanceBecauseDestinationNotCreated3 = createCustomErrorClass3("NotEnoughBalanceBecauseDestinationNotCreated");
|
|
357646
|
+
NoAccessToCamera3 = createCustomErrorClass3("NoAccessToCamera");
|
|
357647
|
+
NotEnoughGas3 = createCustomErrorClass3("NotEnoughGas");
|
|
357648
|
+
NotEnoughGasSwap3 = createCustomErrorClass3("NotEnoughGasSwap");
|
|
357649
|
+
TronEmptyAccount3 = createCustomErrorClass3("TronEmptyAccount");
|
|
357650
|
+
MaybeKeepTronAccountAlive3 = createCustomErrorClass3("MaybeKeepTronAccountAlive");
|
|
357651
|
+
NotSupportedLegacyAddress3 = createCustomErrorClass3("NotSupportedLegacyAddress");
|
|
357652
|
+
GasLessThanEstimate3 = createCustomErrorClass3("GasLessThanEstimate");
|
|
357653
|
+
PriorityFeeTooLow3 = createCustomErrorClass3("PriorityFeeTooLow");
|
|
357654
|
+
PriorityFeeTooHigh3 = createCustomErrorClass3("PriorityFeeTooHigh");
|
|
357655
|
+
PriorityFeeHigherThanMaxFee3 = createCustomErrorClass3("PriorityFeeHigherThanMaxFee");
|
|
357656
|
+
MaxFeeTooLow3 = createCustomErrorClass3("MaxFeeTooLow");
|
|
357657
|
+
PasswordsDontMatchError3 = createCustomErrorClass3("PasswordsDontMatch");
|
|
357658
|
+
PasswordIncorrectError3 = createCustomErrorClass3("PasswordIncorrect");
|
|
357659
|
+
RecommendSubAccountsToEmpty3 = createCustomErrorClass3("RecommendSubAccountsToEmpty");
|
|
357660
|
+
RecommendUndelegation3 = createCustomErrorClass3("RecommendUndelegation");
|
|
357661
|
+
TimeoutTagged3 = createCustomErrorClass3("TimeoutTagged");
|
|
357662
|
+
UnexpectedBootloader3 = createCustomErrorClass3("UnexpectedBootloader");
|
|
357663
|
+
MCUNotGenuineToDashboard3 = createCustomErrorClass3("MCUNotGenuineToDashboard");
|
|
357664
|
+
RecipientRequired3 = createCustomErrorClass3("RecipientRequired");
|
|
357665
|
+
UnavailableTezosOriginatedAccountReceive3 = createCustomErrorClass3("UnavailableTezosOriginatedAccountReceive");
|
|
357666
|
+
UnavailableTezosOriginatedAccountSend3 = createCustomErrorClass3("UnavailableTezosOriginatedAccountSend");
|
|
357667
|
+
UpdateFetchFileFail3 = createCustomErrorClass3("UpdateFetchFileFail");
|
|
357668
|
+
UpdateIncorrectHash3 = createCustomErrorClass3("UpdateIncorrectHash");
|
|
357669
|
+
UpdateIncorrectSig3 = createCustomErrorClass3("UpdateIncorrectSig");
|
|
357670
|
+
UpdateYourApp3 = createCustomErrorClass3("UpdateYourApp");
|
|
357671
|
+
UserRefusedDeviceNameChange3 = createCustomErrorClass3("UserRefusedDeviceNameChange");
|
|
357672
|
+
UserRefusedAddress3 = createCustomErrorClass3("UserRefusedAddress");
|
|
357673
|
+
UserRefusedFirmwareUpdate3 = createCustomErrorClass3("UserRefusedFirmwareUpdate");
|
|
357674
|
+
UserRefusedAllowManager3 = createCustomErrorClass3("UserRefusedAllowManager");
|
|
357675
|
+
UserRefusedOnDevice3 = createCustomErrorClass3("UserRefusedOnDevice");
|
|
357676
|
+
PinNotSet3 = createCustomErrorClass3("PinNotSet");
|
|
357677
|
+
ExpertModeRequired3 = createCustomErrorClass3("ExpertModeRequired");
|
|
357678
|
+
TransportOpenUserCancelled3 = createCustomErrorClass3("TransportOpenUserCancelled");
|
|
357679
|
+
TransportInterfaceNotAvailable3 = createCustomErrorClass3("TransportInterfaceNotAvailable");
|
|
357680
|
+
TransportRaceCondition3 = createCustomErrorClass3("TransportRaceCondition");
|
|
357681
|
+
TransportWebUSBGestureRequired3 = createCustomErrorClass3("TransportWebUSBGestureRequired");
|
|
357682
|
+
TransactionHasBeenValidatedError3 = createCustomErrorClass3("TransactionHasBeenValidatedError");
|
|
357683
|
+
TransportExchangeTimeoutError3 = createCustomErrorClass3("TransportExchangeTimeoutError");
|
|
357684
|
+
DeviceShouldStayInApp3 = createCustomErrorClass3("DeviceShouldStayInApp");
|
|
357685
|
+
WebsocketConnectionError3 = createCustomErrorClass3("WebsocketConnectionError");
|
|
357686
|
+
WebsocketConnectionFailed3 = createCustomErrorClass3("WebsocketConnectionFailed");
|
|
357687
|
+
WrongDeviceForAccount3 = createCustomErrorClass3("WrongDeviceForAccount");
|
|
357688
|
+
WrongDeviceForAccountPayout3 = createCustomErrorClass3("WrongDeviceForAccountPayout");
|
|
357689
|
+
MissingSwapPayloadParamaters3 = createCustomErrorClass3("MissingSwapPayloadParamaters");
|
|
357690
|
+
WrongDeviceForAccountRefund3 = createCustomErrorClass3("WrongDeviceForAccountRefund");
|
|
357691
|
+
WrongAppForCurrency3 = createCustomErrorClass3("WrongAppForCurrency");
|
|
357692
|
+
ETHAddressNonEIP3 = createCustomErrorClass3("ETHAddressNonEIP");
|
|
357693
|
+
CantScanQRCode3 = createCustomErrorClass3("CantScanQRCode");
|
|
357694
|
+
FeeNotLoaded3 = createCustomErrorClass3("FeeNotLoaded");
|
|
357695
|
+
FeeNotLoadedSwap3 = createCustomErrorClass3("FeeNotLoadedSwap");
|
|
357696
|
+
FeeRequired3 = createCustomErrorClass3("FeeRequired");
|
|
357697
|
+
FeeTooHigh3 = createCustomErrorClass3("FeeTooHigh");
|
|
357698
|
+
PendingOperation3 = createCustomErrorClass3("PendingOperation");
|
|
357699
|
+
SyncError3 = createCustomErrorClass3("SyncError");
|
|
357700
|
+
PairingFailed3 = createCustomErrorClass3("PairingFailed");
|
|
357701
|
+
PeerRemovedPairing3 = createCustomErrorClass3("PeerRemovedPairing");
|
|
357702
|
+
GenuineCheckFailed3 = createCustomErrorClass3("GenuineCheckFailed");
|
|
357703
|
+
LedgerAPI4xx3 = createCustomErrorClass3("LedgerAPI4xx");
|
|
357704
|
+
LedgerAPI5xx3 = createCustomErrorClass3("LedgerAPI5xx");
|
|
357705
|
+
FirmwareOrAppUpdateRequired3 = createCustomErrorClass3("FirmwareOrAppUpdateRequired");
|
|
357706
|
+
ReplacementTransactionUnderpriced3 = createCustomErrorClass3("ReplacementTransactionUnderpriced");
|
|
357707
|
+
OpReturnDataSizeLimit3 = createCustomErrorClass3("OpReturnSizeLimit");
|
|
357708
|
+
DustLimit3 = createCustomErrorClass3("DustLimit");
|
|
357709
|
+
LanguageNotFound3 = createCustomErrorClass3("LanguageNotFound");
|
|
357710
|
+
NoDBPathGiven3 = createCustomErrorClass3("NoDBPathGiven");
|
|
357711
|
+
DBWrongPassword3 = createCustomErrorClass3("DBWrongPassword");
|
|
357712
|
+
DBNotReset3 = createCustomErrorClass3("DBNotReset");
|
|
357713
|
+
SequenceNumberError3 = createCustomErrorClass3("SequenceNumberError");
|
|
357714
|
+
DisabledTransactionBroadcastError3 = createCustomErrorClass3("DisabledTransactionBroadcastError");
|
|
357715
|
+
(function(HwTransportErrorType4) {
|
|
357716
|
+
HwTransportErrorType4["Unknown"] = "Unknown";
|
|
357717
|
+
HwTransportErrorType4["LocationServicesDisabled"] = "LocationServicesDisabled";
|
|
357718
|
+
HwTransportErrorType4["LocationServicesUnauthorized"] = "LocationServicesUnauthorized";
|
|
357719
|
+
HwTransportErrorType4["BluetoothScanStartFailed"] = "BluetoothScanStartFailed";
|
|
357720
|
+
})(HwTransportErrorType3 || (HwTransportErrorType3 = {}));
|
|
357721
|
+
TransportError3 = class extends Error {
|
|
357722
|
+
id;
|
|
357723
|
+
constructor(message2, id5) {
|
|
357724
|
+
const name2 = "TransportError";
|
|
357725
|
+
super(message2 || name2);
|
|
357726
|
+
this.name = name2;
|
|
357727
|
+
this.message = message2;
|
|
357728
|
+
this.stack = new Error(message2).stack;
|
|
357729
|
+
this.id = id5;
|
|
357730
|
+
}
|
|
357731
|
+
};
|
|
357732
|
+
addCustomErrorDeserializer3("TransportError", (e96) => new TransportError3(e96.message, e96.id));
|
|
357733
|
+
StatusCodes3 = {
|
|
357734
|
+
ACCESS_CONDITION_NOT_FULFILLED: 38916,
|
|
357735
|
+
ALGORITHM_NOT_SUPPORTED: 38020,
|
|
357736
|
+
CLA_NOT_SUPPORTED: 28160,
|
|
357737
|
+
CODE_BLOCKED: 38976,
|
|
357738
|
+
CODE_NOT_INITIALIZED: 38914,
|
|
357739
|
+
COMMAND_INCOMPATIBLE_FILE_STRUCTURE: 27009,
|
|
357740
|
+
CONDITIONS_OF_USE_NOT_SATISFIED: 27013,
|
|
357741
|
+
CONTRADICTION_INVALIDATION: 38928,
|
|
357742
|
+
CONTRADICTION_SECRET_CODE_STATUS: 38920,
|
|
357743
|
+
DEVICE_IN_RECOVERY_MODE: 26159,
|
|
357744
|
+
CUSTOM_IMAGE_EMPTY: 26158,
|
|
357745
|
+
FILE_ALREADY_EXISTS: 27273,
|
|
357746
|
+
FILE_NOT_FOUND: 37892,
|
|
357747
|
+
GP_AUTH_FAILED: 25344,
|
|
357748
|
+
HALTED: 28586,
|
|
357749
|
+
INCONSISTENT_FILE: 37896,
|
|
357750
|
+
INCORRECT_DATA: 27264,
|
|
357751
|
+
INCORRECT_LENGTH: 26368,
|
|
357752
|
+
INCORRECT_P1_P2: 27392,
|
|
357753
|
+
INS_NOT_SUPPORTED: 27904,
|
|
357754
|
+
DEVICE_NOT_ONBOARDED: 27911,
|
|
357755
|
+
DEVICE_NOT_ONBOARDED_2: 26129,
|
|
357756
|
+
INVALID_KCV: 38021,
|
|
357757
|
+
INVALID_OFFSET: 37890,
|
|
357758
|
+
LICENSING: 28482,
|
|
357759
|
+
LOCKED_DEVICE: 21781,
|
|
357760
|
+
MAX_VALUE_REACHED: 38992,
|
|
357761
|
+
MEMORY_PROBLEM: 37440,
|
|
357762
|
+
MISSING_CRITICAL_PARAMETER: 26624,
|
|
357763
|
+
NO_EF_SELECTED: 37888,
|
|
357764
|
+
NOT_ENOUGH_MEMORY_SPACE: 27268,
|
|
357765
|
+
OK: 36864,
|
|
357766
|
+
PIN_REMAINING_ATTEMPTS: 25536,
|
|
357767
|
+
REFERENCED_DATA_NOT_FOUND: 27272,
|
|
357768
|
+
SECURITY_STATUS_NOT_SATISFIED: 27010,
|
|
357769
|
+
TECHNICAL_PROBLEM: 28416,
|
|
357770
|
+
UNKNOWN_APDU: 27906,
|
|
357771
|
+
USER_REFUSED_ON_DEVICE: 21761,
|
|
357772
|
+
NOT_ENOUGH_SPACE: 20738,
|
|
357773
|
+
APP_NOT_FOUND_OR_INVALID_CONTEXT: 20771,
|
|
357774
|
+
INVALID_APP_NAME_LENGTH: 26378,
|
|
357775
|
+
GEN_AES_KEY_FAILED: 21529,
|
|
357776
|
+
INTERNAL_CRYPTO_OPERATION_FAILED: 21530,
|
|
357777
|
+
INTERNAL_COMPUTE_AES_CMAC_FAILED: 21531,
|
|
357778
|
+
ENCRYPT_APP_STORAGE_FAILED: 21532,
|
|
357779
|
+
INVALID_BACKUP_STATE: 26178,
|
|
357780
|
+
PIN_NOT_SET: 21762,
|
|
357781
|
+
INVALID_BACKUP_LENGTH: 26419,
|
|
357782
|
+
INVALID_RESTORE_STATE: 26179,
|
|
357783
|
+
INVALID_CHUNK_LENGTH: 26420,
|
|
357784
|
+
INVALID_BACKUP_HEADER: 26698,
|
|
357785
|
+
// Not documented:
|
|
357786
|
+
TRUSTCHAIN_WRONG_SEED: 45063
|
|
357787
|
+
};
|
|
357788
|
+
TransportStatusError3 = class _TransportStatusError extends Error {
|
|
357789
|
+
statusCode;
|
|
357790
|
+
statusText;
|
|
357791
|
+
/**
|
|
357792
|
+
* @param statusCode The error status code coming from a Transport implementation
|
|
357793
|
+
* @param options containing:
|
|
357794
|
+
* - canBeMappedToChildError: enable the mapping of TransportStatusError to an error extending/inheriting from it
|
|
357795
|
+
* . Ex: LockedDeviceError. Default to true.
|
|
357796
|
+
*/
|
|
357797
|
+
constructor(statusCode, { canBeMappedToChildError = true } = {}) {
|
|
357798
|
+
const statusText = Object.keys(StatusCodes3).find((k25) => StatusCodes3[k25] === statusCode) || "UNKNOWN_ERROR";
|
|
357799
|
+
const smsg = getAltStatusMessage3(statusCode) || statusText;
|
|
357800
|
+
const statusCodeStr = statusCode.toString(16);
|
|
357801
|
+
const message2 = `Ledger device: ${smsg} (0x${statusCodeStr})`;
|
|
357802
|
+
super(message2);
|
|
357803
|
+
this.name = "TransportStatusError";
|
|
357804
|
+
this.statusCode = statusCode;
|
|
357805
|
+
this.statusText = statusText;
|
|
357806
|
+
Object.setPrototypeOf(this, _TransportStatusError.prototype);
|
|
357807
|
+
if (canBeMappedToChildError && statusCode === StatusCodes3.LOCKED_DEVICE) {
|
|
357808
|
+
return new LockedDeviceError3(message2);
|
|
357809
|
+
}
|
|
357810
|
+
}
|
|
357811
|
+
};
|
|
357812
|
+
LockedDeviceError3 = class _LockedDeviceError extends TransportStatusError3 {
|
|
357813
|
+
constructor(message2) {
|
|
357814
|
+
super(StatusCodes3.LOCKED_DEVICE, { canBeMappedToChildError: false });
|
|
357815
|
+
if (message2) {
|
|
357816
|
+
this.message = message2;
|
|
357817
|
+
}
|
|
357818
|
+
this.name = "LockedDeviceError";
|
|
357819
|
+
Object.setPrototypeOf(this, _LockedDeviceError.prototype);
|
|
357820
|
+
}
|
|
357821
|
+
};
|
|
357822
|
+
addCustomErrorDeserializer3("TransportStatusError", (e96) => new TransportStatusError3(e96.statusCode));
|
|
357823
|
+
}
|
|
357824
|
+
});
|
|
357825
|
+
|
|
357832
357826
|
// ../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/errors.js
|
|
357833
|
-
var
|
|
357827
|
+
var EthAppPleaseEnableContractData6, EthAppNftNotSupported2;
|
|
357834
357828
|
var init_errors2 = __esm({
|
|
357835
357829
|
"../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/errors.js"() {
|
|
357836
357830
|
"use strict";
|
|
357837
|
-
|
|
357838
|
-
|
|
357839
|
-
EthAppNftNotSupported2 =
|
|
357831
|
+
init_lib_es4();
|
|
357832
|
+
EthAppPleaseEnableContractData6 = createCustomErrorClass3("EthAppPleaseEnableContractData");
|
|
357833
|
+
EthAppNftNotSupported2 = createCustomErrorClass3("EthAppNftNotSupported");
|
|
357840
357834
|
}
|
|
357841
357835
|
});
|
|
357842
357836
|
|
|
@@ -358832,7 +358826,7 @@ var init_Eth = __esm({
|
|
|
358832
358826
|
};
|
|
358833
358827
|
remapTransactionRelatedErrors2 = function(e96) {
|
|
358834
358828
|
if (e96 && e96.statusCode === 27264) {
|
|
358835
|
-
return new
|
|
358829
|
+
return new EthAppPleaseEnableContractData6("Please enable Blind signing or Contract data in the Ethereum app Settings");
|
|
358836
358830
|
}
|
|
358837
358831
|
return e96;
|
|
358838
358832
|
};
|
|
@@ -377169,7 +377163,7 @@ var require_minimal5 = __commonJS({
|
|
|
377169
377163
|
util10.isString = function isString5(value2) {
|
|
377170
377164
|
return typeof value2 === "string" || value2 instanceof String;
|
|
377171
377165
|
};
|
|
377172
|
-
util10.isObject = function
|
|
377166
|
+
util10.isObject = function isObject14(value2) {
|
|
377173
377167
|
return value2 && typeof value2 === "object";
|
|
377174
377168
|
};
|
|
377175
377169
|
util10.isset = /**
|
|
@@ -392195,11 +392189,11 @@ var require_rpc_errors = __commonJS({
|
|
|
392195
392189
|
if (isString5(errorObj2[errorName])) {
|
|
392196
392190
|
return errorObj2[errorName];
|
|
392197
392191
|
}
|
|
392198
|
-
if (
|
|
392192
|
+
if (isObject14(errorObj2[errorName])) {
|
|
392199
392193
|
error = errorObj2[errorName];
|
|
392200
392194
|
type4 = schema4[errorName];
|
|
392201
392195
|
errorTypeName = errorName;
|
|
392202
|
-
} else if (
|
|
392196
|
+
} else if (isObject14(errorObj2.kind) && isObject14(errorObj2.kind[errorName])) {
|
|
392203
392197
|
error = errorObj2.kind[errorName];
|
|
392204
392198
|
type4 = schema4[errorName];
|
|
392205
392199
|
errorTypeName = errorName;
|
|
@@ -392234,7 +392228,7 @@ var require_rpc_errors = __commonJS({
|
|
|
392234
392228
|
}
|
|
392235
392229
|
}
|
|
392236
392230
|
exports2.getErrorTypeFromErrorMessage = getErrorTypeFromErrorMessage;
|
|
392237
|
-
function
|
|
392231
|
+
function isObject14(n193) {
|
|
392238
392232
|
return Object.prototype.toString.call(n193) === "[object Object]";
|
|
392239
392233
|
}
|
|
392240
392234
|
function isString5(n193) {
|
|
@@ -415497,7 +415491,7 @@ var require_contract = __commonJS({
|
|
|
415497
415491
|
}
|
|
415498
415492
|
function validateArguments(args3, abiFunction, ajv, abiRoot) {
|
|
415499
415493
|
var _a7;
|
|
415500
|
-
if (!
|
|
415494
|
+
if (!isObject14(args3))
|
|
415501
415495
|
return;
|
|
415502
415496
|
if (abiFunction.params && abiFunction.params.serialization_type !== near_abi_1.AbiSerializationType.Json) {
|
|
415503
415497
|
throw new errors_1.UnsupportedSerializationError(abiFunction.name, abiFunction.params.serialization_type);
|
|
@@ -415534,7 +415528,7 @@ var require_contract = __commonJS({
|
|
|
415534
415528
|
return ajv;
|
|
415535
415529
|
}
|
|
415536
415530
|
var isUint8Array = (x26) => x26 && x26.byteLength !== void 0 && x26.byteLength === x26.length;
|
|
415537
|
-
var
|
|
415531
|
+
var isObject14 = (x26) => Object.prototype.toString.call(x26) === "[object Object]";
|
|
415538
415532
|
var Contract4 = class {
|
|
415539
415533
|
/**
|
|
415540
415534
|
* @param account NEAR account to sign change method transactions
|
|
@@ -415561,7 +415555,7 @@ var require_contract = __commonJS({
|
|
|
415561
415555
|
writable: false,
|
|
415562
415556
|
enumerable: true,
|
|
415563
415557
|
value: nameFunction(name2, (args3 = {}, options25 = {}, ...ignored) => __awaiter12(this, void 0, void 0, function* () {
|
|
415564
|
-
if (ignored.length || !(
|
|
415558
|
+
if (ignored.length || !(isObject14(args3) || isUint8Array(args3)) || !isObject14(options25)) {
|
|
415565
415559
|
throw new types_1.PositionalArgsError();
|
|
415566
415560
|
}
|
|
415567
415561
|
if (abi) {
|
|
@@ -415584,7 +415578,7 @@ var require_contract = __commonJS({
|
|
|
415584
415578
|
writable: false,
|
|
415585
415579
|
enumerable: true,
|
|
415586
415580
|
value: nameFunction(name2, (...args3) => __awaiter12(this, void 0, void 0, function* () {
|
|
415587
|
-
if (args3.length && (args3.length > 3 || !(
|
|
415581
|
+
if (args3.length && (args3.length > 3 || !(isObject14(args3[0]) || isUint8Array(args3[0])))) {
|
|
415588
415582
|
throw new types_1.PositionalArgsError();
|
|
415589
415583
|
}
|
|
415590
415584
|
if (args3.length > 1 || !(args3[0] && args3[0].args)) {
|
|
@@ -417069,11 +417063,11 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
417069
417063
|
throw new TypeError(`${context} is not a function.`);
|
|
417070
417064
|
}
|
|
417071
417065
|
}
|
|
417072
|
-
function
|
|
417066
|
+
function isObject14(x26) {
|
|
417073
417067
|
return typeof x26 === "object" && x26 !== null || typeof x26 === "function";
|
|
417074
417068
|
}
|
|
417075
417069
|
function assertObject(x26, context) {
|
|
417076
|
-
if (!
|
|
417070
|
+
if (!isObject14(x26)) {
|
|
417077
417071
|
throw new TypeError(`${context} is not an object.`);
|
|
417078
417072
|
}
|
|
417079
417073
|
}
|
|
@@ -430369,7 +430363,7 @@ var require_lodash2 = __commonJS({
|
|
|
430369
430363
|
if (result2 !== void 0) {
|
|
430370
430364
|
return result2;
|
|
430371
430365
|
}
|
|
430372
|
-
if (!
|
|
430366
|
+
if (!isObject14(value2)) {
|
|
430373
430367
|
return value2;
|
|
430374
430368
|
}
|
|
430375
430369
|
var isArr = isArray6(value2);
|
|
@@ -430417,7 +430411,7 @@ var require_lodash2 = __commonJS({
|
|
|
430417
430411
|
return result2;
|
|
430418
430412
|
}
|
|
430419
430413
|
function baseCreate(proto39) {
|
|
430420
|
-
return
|
|
430414
|
+
return isObject14(proto39) ? objectCreate(proto39) : {};
|
|
430421
430415
|
}
|
|
430422
430416
|
function baseGetAllKeys(object5, keysFunc, symbolsFunc) {
|
|
430423
430417
|
var result2 = keysFunc(object5);
|
|
@@ -430427,7 +430421,7 @@ var require_lodash2 = __commonJS({
|
|
|
430427
430421
|
return objectToString.call(value2);
|
|
430428
430422
|
}
|
|
430429
430423
|
function baseIsNative(value2) {
|
|
430430
|
-
if (!
|
|
430424
|
+
if (!isObject14(value2) || isMasked(value2)) {
|
|
430431
430425
|
return false;
|
|
430432
430426
|
}
|
|
430433
430427
|
var pattern = isFunction7(value2) || isHostObject(value2) ? reIsNative : reIsHostCtor;
|
|
@@ -430626,13 +430620,13 @@ var require_lodash2 = __commonJS({
|
|
|
430626
430620
|
}
|
|
430627
430621
|
var isBuffer6 = nativeIsBuffer || stubFalse;
|
|
430628
430622
|
function isFunction7(value2) {
|
|
430629
|
-
var tag =
|
|
430623
|
+
var tag = isObject14(value2) ? objectToString.call(value2) : "";
|
|
430630
430624
|
return tag == funcTag || tag == genTag;
|
|
430631
430625
|
}
|
|
430632
430626
|
function isLength(value2) {
|
|
430633
430627
|
return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER3;
|
|
430634
430628
|
}
|
|
430635
|
-
function
|
|
430629
|
+
function isObject14(value2) {
|
|
430636
430630
|
var type4 = typeof value2;
|
|
430637
430631
|
return !!value2 && (type4 == "object" || type4 == "function");
|
|
430638
430632
|
}
|
|
@@ -479165,19 +479159,19 @@ var require_network2 = __commonJS({
|
|
|
479165
479159
|
return t108.__proto__ || Object.getPrototypeOf(t108);
|
|
479166
479160
|
}, _getPrototypeOf(t107);
|
|
479167
479161
|
}
|
|
479168
|
-
var
|
|
479169
|
-
function
|
|
479162
|
+
var NetworkError6 = exports2.NetworkError = function(_Error) {
|
|
479163
|
+
function NetworkError7(message2, response) {
|
|
479170
479164
|
var _this;
|
|
479171
|
-
_classCallCheck(this,
|
|
479172
|
-
var trueProto = (this instanceof
|
|
479173
|
-
_this = _callSuper(this,
|
|
479165
|
+
_classCallCheck(this, NetworkError7);
|
|
479166
|
+
var trueProto = (this instanceof NetworkError7 ? this.constructor : void 0).prototype;
|
|
479167
|
+
_this = _callSuper(this, NetworkError7, [message2]);
|
|
479174
479168
|
_this.__proto__ = trueProto;
|
|
479175
|
-
_this.constructor =
|
|
479169
|
+
_this.constructor = NetworkError7;
|
|
479176
479170
|
_this.response = response;
|
|
479177
479171
|
return _this;
|
|
479178
479172
|
}
|
|
479179
|
-
_inherits(
|
|
479180
|
-
return _createClass2(
|
|
479173
|
+
_inherits(NetworkError7, _Error);
|
|
479174
|
+
return _createClass2(NetworkError7, [{
|
|
479181
479175
|
key: "getResponse",
|
|
479182
479176
|
value: function getResponse() {
|
|
479183
479177
|
return this.response;
|
|
@@ -531119,7 +531113,7 @@ var require_utils48 = __commonJS({
|
|
|
531119
531113
|
}
|
|
531120
531114
|
} else if (object5 instanceof Date) {
|
|
531121
531115
|
return object5;
|
|
531122
|
-
} else if (
|
|
531116
|
+
} else if (isObject14(object5) && isObject14(subset)) {
|
|
531123
531117
|
if ((0, _jasmineUtils.equals)(object5, subset, [
|
|
531124
531118
|
iterableEquality,
|
|
531125
531119
|
subsetEquality
|
|
@@ -531230,8 +531224,8 @@ var require_utils48 = __commonJS({
|
|
|
531230
531224
|
return true;
|
|
531231
531225
|
};
|
|
531232
531226
|
exports2.iterableEquality = iterableEquality;
|
|
531233
|
-
var
|
|
531234
|
-
var isObjectWithKeys = (a129) =>
|
|
531227
|
+
var isObject14 = (a129) => a129 !== null && typeof a129 === "object";
|
|
531228
|
+
var isObjectWithKeys = (a129) => isObject14(a129) && !(a129 instanceof Error) && !(a129 instanceof Array) && !(a129 instanceof Date);
|
|
531235
531229
|
var subsetEquality = (object5, subset) => {
|
|
531236
531230
|
const subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object6, subset2) => {
|
|
531237
531231
|
if (!isObjectWithKeys(subset2)) {
|
|
@@ -534671,7 +534665,7 @@ var require_fill_range = __commonJS({
|
|
|
534671
534665
|
"use strict";
|
|
534672
534666
|
var util10 = require("util");
|
|
534673
534667
|
var toRegexRange = require_to_regex_range();
|
|
534674
|
-
var
|
|
534668
|
+
var isObject14 = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
534675
534669
|
var transform2 = (toNumber3) => {
|
|
534676
534670
|
return (value2) => toNumber3 === true ? Number(value2) : String(value2);
|
|
534677
534671
|
};
|
|
@@ -534850,7 +534844,7 @@ var require_fill_range = __commonJS({
|
|
|
534850
534844
|
if (typeof step === "function") {
|
|
534851
534845
|
return fill(start, end, 1, { transform: step });
|
|
534852
534846
|
}
|
|
534853
|
-
if (
|
|
534847
|
+
if (isObject14(step)) {
|
|
534854
534848
|
return fill(start, end, 0, step);
|
|
534855
534849
|
}
|
|
534856
534850
|
let opts = { ...options24 };
|
|
@@ -534858,7 +534852,7 @@ var require_fill_range = __commonJS({
|
|
|
534858
534852
|
opts.wrap = true;
|
|
534859
534853
|
step = step || opts.step || 1;
|
|
534860
534854
|
if (!isNumber4(step)) {
|
|
534861
|
-
if (step != null && !
|
|
534855
|
+
if (step != null && !isObject14(step))
|
|
534862
534856
|
return invalidStep(step, opts);
|
|
534863
534857
|
return fill(start, end, 1, step);
|
|
534864
534858
|
}
|
|
@@ -536809,7 +536803,7 @@ var require_picomatch = __commonJS({
|
|
|
536809
536803
|
var parse14 = require_parse11();
|
|
536810
536804
|
var utils6 = require_utils50();
|
|
536811
536805
|
var constants3 = require_constants32();
|
|
536812
|
-
var
|
|
536806
|
+
var isObject14 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
536813
536807
|
var picomatch = (glob, options24, returnState = false) => {
|
|
536814
536808
|
if (Array.isArray(glob)) {
|
|
536815
536809
|
const fns = glob.map((input) => picomatch(input, options24, returnState));
|
|
@@ -536823,7 +536817,7 @@ var require_picomatch = __commonJS({
|
|
|
536823
536817
|
};
|
|
536824
536818
|
return arrayMatcher;
|
|
536825
536819
|
}
|
|
536826
|
-
const isState =
|
|
536820
|
+
const isState = isObject14(glob) && glob.tokens && glob.input;
|
|
536827
536821
|
if (glob === "" || typeof glob !== "string" && !isState) {
|
|
536828
536822
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
536829
536823
|
}
|
|
@@ -541863,7 +541857,7 @@ var require_createTransaction = __commonJS({
|
|
|
541863
541857
|
};
|
|
541864
541858
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
541865
541859
|
exports2.createTransaction = createTransaction42;
|
|
541866
|
-
var logs_1 = (
|
|
541860
|
+
var logs_1 = (init_lib_es3(), __toCommonJS(lib_es_exports));
|
|
541867
541861
|
var hashPublicKey_1 = require_hashPublicKey();
|
|
541868
541862
|
var getWalletPublicKey_1 = require_getWalletPublicKey();
|
|
541869
541863
|
var getTrustedInput_1 = require_getTrustedInput();
|
|
@@ -543002,7 +542996,7 @@ var require_splitTransaction = __commonJS({
|
|
|
543002
542996
|
"use strict";
|
|
543003
542997
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
543004
542998
|
exports2.splitTransaction = splitTransaction3;
|
|
543005
|
-
var logs_1 = (
|
|
542999
|
+
var logs_1 = (init_lib_es3(), __toCommonJS(lib_es_exports));
|
|
543006
543000
|
var varint_1 = require_varint4();
|
|
543007
543001
|
var debug_1 = require_debug6();
|
|
543008
543002
|
function splitTransaction3(transactionHex, isSegwitSupported = false, hasExtraData = false, additionals = []) {
|
|
@@ -543586,7 +543580,7 @@ var require_package8 = __commonJS({
|
|
|
543586
543580
|
module2.exports = {
|
|
543587
543581
|
name: "@ledgerhq/live-common",
|
|
543588
543582
|
description: "Common ground for the Ledger Live apps",
|
|
543589
|
-
version: "34.54.0-nightly.
|
|
543583
|
+
version: "34.54.0-nightly.20251203101856",
|
|
543590
543584
|
repository: {
|
|
543591
543585
|
type: "git",
|
|
543592
543586
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -543688,16 +543682,13 @@ var require_package8 = __commonJS({
|
|
|
543688
543682
|
files: [
|
|
543689
543683
|
"lib",
|
|
543690
543684
|
"lib-es",
|
|
543691
|
-
"src"
|
|
543692
|
-
"react.js",
|
|
543693
|
-
"reactNative.js"
|
|
543685
|
+
"src"
|
|
543694
543686
|
],
|
|
543695
543687
|
peerDependencies: {
|
|
543696
543688
|
"@tanstack/react-query": ">=5",
|
|
543697
543689
|
react: ">=16",
|
|
543698
543690
|
"react-dom": ">=16",
|
|
543699
543691
|
"react-native": ">=0.65.1",
|
|
543700
|
-
"react-native-svg": ">=12.1.1",
|
|
543701
543692
|
"react-redux": "catalog:",
|
|
543702
543693
|
"redux-actions": "2.6.5"
|
|
543703
543694
|
},
|
|
@@ -543716,9 +543707,6 @@ var require_package8 = __commonJS({
|
|
|
543716
543707
|
},
|
|
543717
543708
|
"redux-actions": {
|
|
543718
543709
|
optional: true
|
|
543719
|
-
},
|
|
543720
|
-
"react-native-svg": {
|
|
543721
|
-
optional: true
|
|
543722
543710
|
}
|
|
543723
543711
|
},
|
|
543724
543712
|
"react-native": {
|
|
@@ -543755,7 +543743,6 @@ var require_package8 = __commonJS({
|
|
|
543755
543743
|
"@ledgerhq/coin-tron": "workspace:^",
|
|
543756
543744
|
"@ledgerhq/coin-vechain": "workspace:^",
|
|
543757
543745
|
"@ledgerhq/coin-xrp": "workspace:^",
|
|
543758
|
-
"@ledgerhq/crypto-icons-ui": "workspace:^",
|
|
543759
543746
|
"@ledgerhq/cryptoassets": "workspace:^",
|
|
543760
543747
|
"@ledgerhq/device-core": "workspace:^",
|
|
543761
543748
|
"@ledgerhq/device-management-kit": "catalog:",
|
|
@@ -543802,10 +543789,10 @@ var require_package8 = __commonJS({
|
|
|
543802
543789
|
"@ledgerhq/logs": "workspace:^",
|
|
543803
543790
|
"@ledgerhq/speculos-transport": "workspace:^",
|
|
543804
543791
|
"@ledgerhq/wallet-api-acre-module": "workspace:^",
|
|
543805
|
-
"@ledgerhq/wallet-api-client": "^1.12.
|
|
543806
|
-
"@ledgerhq/wallet-api-core": "^1.
|
|
543792
|
+
"@ledgerhq/wallet-api-client": "^1.12.6",
|
|
543793
|
+
"@ledgerhq/wallet-api-core": "^1.27.0",
|
|
543807
543794
|
"@ledgerhq/wallet-api-exchange-module": "workspace:^",
|
|
543808
|
-
"@ledgerhq/wallet-api-server": "^2.0.
|
|
543795
|
+
"@ledgerhq/wallet-api-server": "^2.0.1",
|
|
543809
543796
|
"@noble/curves": "^1.9.7",
|
|
543810
543797
|
"@noble/hashes": "1.8.0",
|
|
543811
543798
|
"@reduxjs/toolkit": "catalog:",
|
|
@@ -543903,7 +543890,6 @@ var require_package8 = __commonJS({
|
|
|
543903
543890
|
react: "catalog:",
|
|
543904
543891
|
"react-dom": "catalog:",
|
|
543905
543892
|
"react-native": "catalog:",
|
|
543906
|
-
"react-native-svg": "catalog:",
|
|
543907
543893
|
"react-test-renderer": "catalog:",
|
|
543908
543894
|
"redux-actions": "2.6.5",
|
|
543909
543895
|
timemachine: "^0.3.2",
|
|
@@ -543939,7 +543925,7 @@ var require_package9 = __commonJS({
|
|
|
543939
543925
|
"package.json"(exports2, module2) {
|
|
543940
543926
|
module2.exports = {
|
|
543941
543927
|
name: "@ledgerhq/live-cli",
|
|
543942
|
-
version: "24.29.0-nightly.
|
|
543928
|
+
version: "24.29.0-nightly.20251203101856",
|
|
543943
543929
|
description: "ledger-live CLI version",
|
|
543944
543930
|
repository: {
|
|
543945
543931
|
type: "git",
|
|
@@ -544172,7 +544158,7 @@ var require_minimal7 = __commonJS({
|
|
|
544172
544158
|
util10.isString = function isString5(value2) {
|
|
544173
544159
|
return typeof value2 === "string" || value2 instanceof String;
|
|
544174
544160
|
};
|
|
544175
|
-
util10.isObject = function
|
|
544161
|
+
util10.isObject = function isObject14(value2) {
|
|
544176
544162
|
return value2 && typeof value2 === "object";
|
|
544177
544163
|
};
|
|
544178
544164
|
util10.isset = /**
|
|
@@ -552316,8 +552302,8 @@ var cryptocurrenciesById = {
|
|
|
552316
552302
|
],
|
|
552317
552303
|
explorerViews: [
|
|
552318
552304
|
{
|
|
552319
|
-
tx: "https://
|
|
552320
|
-
address: "https://
|
|
552305
|
+
tx: "https://explorer.quicksilver.zone/transactions/$hash",
|
|
552306
|
+
address: "https://explorer.quicksilver.zone/validators/$address"
|
|
552321
552307
|
}
|
|
552322
552308
|
]
|
|
552323
552309
|
},
|
|
@@ -560440,7 +560426,7 @@ function setWalletAPIVersion(v61) {
|
|
|
560440
560426
|
version = v61;
|
|
560441
560427
|
}
|
|
560442
560428
|
|
|
560443
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
560429
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/accounts/serializers.js
|
|
560444
560430
|
var import_bignumber7 = __toESM(require("bignumber.js"));
|
|
560445
560431
|
|
|
560446
560432
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
|
|
@@ -564484,7 +564470,7 @@ var coerce = {
|
|
|
564484
564470
|
};
|
|
564485
564471
|
var NEVER = INVALID;
|
|
564486
564472
|
|
|
564487
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564473
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/accounts/validation.js
|
|
564488
564474
|
var schemaRawAccount = external_exports.object({
|
|
564489
564475
|
id: external_exports.string(),
|
|
564490
564476
|
name: external_exports.string(),
|
|
@@ -564497,7 +564483,7 @@ var schemaRawAccount = external_exports.object({
|
|
|
564497
564483
|
parentAccountId: external_exports.string().optional()
|
|
564498
564484
|
});
|
|
564499
564485
|
|
|
564500
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564486
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/currencies/validation.js
|
|
564501
564487
|
var schemaCurrencyType = external_exports.enum(["CryptoCurrency", "TokenCurrency"]);
|
|
564502
564488
|
var schemaTokenStandard = external_exports.enum(["ERC20"]);
|
|
564503
564489
|
var schemaBaseCurrency = external_exports.object({
|
|
@@ -564524,7 +564510,7 @@ var schemaCurrency = external_exports.discriminatedUnion("type", [
|
|
|
564524
564510
|
schemaERC20TokenCurrency
|
|
564525
564511
|
]);
|
|
564526
564512
|
|
|
564527
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564513
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/common.js
|
|
564528
564514
|
var schemaTransactionCommon = external_exports.object({
|
|
564529
564515
|
amount: external_exports.string(),
|
|
564530
564516
|
recipient: external_exports.string()
|
|
@@ -564559,86 +564545,86 @@ var FAMILIES = [
|
|
|
564559
564545
|
];
|
|
564560
564546
|
var schemaFamilies = external_exports.enum(FAMILIES);
|
|
564561
564547
|
|
|
564562
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564548
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/algorand/serializer.js
|
|
564563
564549
|
var import_bignumber8 = __toESM(require("bignumber.js"));
|
|
564564
564550
|
|
|
564565
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564551
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/aptos/serializer.js
|
|
564566
564552
|
var import_bignumber9 = __toESM(require("bignumber.js"));
|
|
564567
564553
|
|
|
564568
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564554
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/bitcoin/serializer.js
|
|
564569
564555
|
var import_bignumber10 = __toESM(require("bignumber.js"));
|
|
564570
564556
|
|
|
564571
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564557
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/celo/serializer.js
|
|
564572
564558
|
var import_bignumber11 = __toESM(require("bignumber.js"));
|
|
564573
564559
|
|
|
564574
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564560
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/cosmos/serializer.js
|
|
564575
564561
|
var import_bignumber12 = __toESM(require("bignumber.js"));
|
|
564576
564562
|
|
|
564577
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564563
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/crypto_org/serializer.js
|
|
564578
564564
|
var import_bignumber13 = __toESM(require("bignumber.js"));
|
|
564579
564565
|
|
|
564580
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564566
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/ethereum/serializer.js
|
|
564581
564567
|
var import_bignumber14 = __toESM(require("bignumber.js"));
|
|
564582
564568
|
|
|
564583
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564569
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/near/serializer.js
|
|
564584
564570
|
var import_bignumber15 = __toESM(require("bignumber.js"));
|
|
564585
564571
|
|
|
564586
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564572
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/hedera/serializer.js
|
|
564587
564573
|
var import_bignumber16 = __toESM(require("bignumber.js"));
|
|
564588
564574
|
|
|
564589
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564575
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/kaspa/serializer.js
|
|
564590
564576
|
var import_bignumber17 = __toESM(require("bignumber.js"));
|
|
564591
564577
|
|
|
564592
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564578
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/filecoin/serializer.js
|
|
564593
564579
|
var import_bignumber18 = __toESM(require("bignumber.js"));
|
|
564594
564580
|
|
|
564595
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564581
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/neo/serializer.js
|
|
564596
564582
|
var import_bignumber19 = __toESM(require("bignumber.js"));
|
|
564597
564583
|
|
|
564598
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564584
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/polkadot/serializer.js
|
|
564599
564585
|
var import_bignumber20 = __toESM(require("bignumber.js"));
|
|
564600
564586
|
|
|
564601
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564587
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/ripple/serializer.js
|
|
564602
564588
|
var import_bignumber21 = __toESM(require("bignumber.js"));
|
|
564603
564589
|
|
|
564604
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564590
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/stellar/serializer.js
|
|
564605
564591
|
var import_bignumber22 = __toESM(require("bignumber.js"));
|
|
564606
564592
|
|
|
564607
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564593
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/tezos/serializer.js
|
|
564608
564594
|
var import_bignumber23 = __toESM(require("bignumber.js"));
|
|
564609
564595
|
|
|
564610
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564596
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/ton/serializer.js
|
|
564611
564597
|
var import_core = __toESM(require_dist2());
|
|
564612
564598
|
var import_bignumber24 = __toESM(require("bignumber.js"));
|
|
564613
564599
|
|
|
564614
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564600
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/tron/serializer.js
|
|
564615
564601
|
var import_bignumber25 = __toESM(require("bignumber.js"));
|
|
564616
564602
|
|
|
564617
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564603
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/elrond/serializer.js
|
|
564618
564604
|
var import_bignumber26 = __toESM(require("bignumber.js"));
|
|
564619
564605
|
|
|
564620
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564606
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/cardano/serializer.js
|
|
564621
564607
|
var import_bignumber27 = __toESM(require("bignumber.js"));
|
|
564622
564608
|
|
|
564623
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564609
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/solana/serializer.js
|
|
564624
564610
|
var import_bignumber28 = __toESM(require("bignumber.js"));
|
|
564625
564611
|
|
|
564626
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564612
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/vechain/serializer.js
|
|
564627
564613
|
var import_bignumber29 = __toESM(require("bignumber.js"));
|
|
564628
564614
|
|
|
564629
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564615
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/stacks/serializer.js
|
|
564630
564616
|
var import_bignumber30 = __toESM(require("bignumber.js"));
|
|
564631
564617
|
|
|
564632
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564618
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/internet_computer/serializer.js
|
|
564633
564619
|
var import_bignumber31 = __toESM(require("bignumber.js"));
|
|
564634
564620
|
|
|
564635
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564621
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/casper/serializer.js
|
|
564636
564622
|
var import_bignumber32 = __toESM(require("bignumber.js"));
|
|
564637
564623
|
|
|
564638
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564624
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/sui/serializer.js
|
|
564639
564625
|
var import_bignumber33 = __toESM(require("bignumber.js"));
|
|
564640
564626
|
|
|
564641
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564627
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/algorand/validation.js
|
|
564642
564628
|
var schemaAlgorandOperationMode = external_exports.enum([
|
|
564643
564629
|
"send",
|
|
564644
564630
|
"optIn",
|
|
@@ -564653,7 +564639,7 @@ var schemaRawAlgorandTransaction = schemaTransactionCommon.extend({
|
|
|
564653
564639
|
memo: external_exports.string().optional()
|
|
564654
564640
|
});
|
|
564655
564641
|
|
|
564656
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564642
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/aptos/validation.js
|
|
564657
564643
|
var schemaAptosOperationMode = external_exports.enum(["send"]);
|
|
564658
564644
|
var schemaRawAptosTransaction = schemaTransactionCommon.extend({
|
|
564659
564645
|
family: external_exports.literal(schemaFamilies.enum.aptos),
|
|
@@ -564661,14 +564647,15 @@ var schemaRawAptosTransaction = schemaTransactionCommon.extend({
|
|
|
564661
564647
|
fees: external_exports.string().optional()
|
|
564662
564648
|
});
|
|
564663
564649
|
|
|
564664
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564650
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/bitcoin/validation.js
|
|
564665
564651
|
var schemaRawBitcoinTransaction = schemaTransactionCommon.extend({
|
|
564666
564652
|
family: external_exports.literal(schemaFamilies.enum.bitcoin),
|
|
564667
564653
|
feePerByte: external_exports.string().optional(),
|
|
564668
|
-
opReturnDataHex: external_exports.string().max(160).optional()
|
|
564654
|
+
opReturnDataHex: external_exports.string().max(160).optional(),
|
|
564655
|
+
changeAddress: external_exports.string().optional()
|
|
564669
564656
|
});
|
|
564670
564657
|
|
|
564671
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564658
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/celo/validation.js
|
|
564672
564659
|
var schemaOperationMode = external_exports.enum([
|
|
564673
564660
|
"send",
|
|
564674
564661
|
"lock",
|
|
@@ -564686,7 +564673,7 @@ var schemaRawCeloTransaction = schemaTransactionCommon.extend({
|
|
|
564686
564673
|
index: external_exports.number().optional().nullable()
|
|
564687
564674
|
});
|
|
564688
564675
|
|
|
564689
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564676
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/cosmos/validation.js
|
|
564690
564677
|
var schemaCosmosOperationMode = external_exports.enum([
|
|
564691
564678
|
"send",
|
|
564692
564679
|
"delegate",
|
|
@@ -564709,14 +564696,14 @@ var schemaRawCosmosTransaction = schemaTransactionCommon.extend({
|
|
|
564709
564696
|
validators: external_exports.array(cosmosDelegationInfo).optional()
|
|
564710
564697
|
});
|
|
564711
564698
|
|
|
564712
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564699
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/crypto_org/validation.js
|
|
564713
564700
|
var schemaRawCryptoOrgTransaction = schemaTransactionCommon.extend({
|
|
564714
564701
|
family: external_exports.literal(schemaFamilies.enum.crypto_org),
|
|
564715
564702
|
mode: external_exports.string(),
|
|
564716
564703
|
fees: external_exports.string().optional()
|
|
564717
564704
|
});
|
|
564718
564705
|
|
|
564719
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564706
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/ethereum/validation.js
|
|
564720
564707
|
var schemaRawEthereumTransaction = schemaTransactionCommon.extend({
|
|
564721
564708
|
family: external_exports.literal(schemaFamilies.enum.ethereum),
|
|
564722
564709
|
nonce: external_exports.number().optional(),
|
|
@@ -564728,19 +564715,19 @@ var schemaRawEthereumTransaction = schemaTransactionCommon.extend({
|
|
|
564728
564715
|
sponsored: external_exports.boolean().optional()
|
|
564729
564716
|
});
|
|
564730
564717
|
|
|
564731
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564718
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/near/validation.js
|
|
564732
564719
|
var schemaRawNearTransaction = schemaTransactionCommon.extend({
|
|
564733
564720
|
family: external_exports.literal(schemaFamilies.enum.near),
|
|
564734
564721
|
mode: external_exports.string(),
|
|
564735
564722
|
fees: external_exports.string().optional()
|
|
564736
564723
|
});
|
|
564737
564724
|
|
|
564738
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564725
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/neo/validation.js
|
|
564739
564726
|
var schemaRawNeoTransaction = schemaTransactionCommon.extend({
|
|
564740
564727
|
family: external_exports.literal(schemaFamilies.enum.neo)
|
|
564741
564728
|
});
|
|
564742
564729
|
|
|
564743
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564730
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/polkadot/validation.js
|
|
564744
564731
|
var schemaPolkadotOperationMode = external_exports.enum([
|
|
564745
564732
|
"send",
|
|
564746
564733
|
"bond",
|
|
@@ -564769,21 +564756,21 @@ var schemaRawPolkadotTransaction = schemaTransactionCommon.extend({
|
|
|
564769
564756
|
numOfSlashingSpans: external_exports.number().optional()
|
|
564770
564757
|
});
|
|
564771
564758
|
|
|
564772
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564759
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/ripple/validation.js
|
|
564773
564760
|
var schemaRawRippleTransaction = schemaTransactionCommon.extend({
|
|
564774
564761
|
family: external_exports.literal(schemaFamilies.enum.ripple),
|
|
564775
564762
|
fee: external_exports.string().optional(),
|
|
564776
564763
|
tag: external_exports.number()
|
|
564777
564764
|
});
|
|
564778
564765
|
|
|
564779
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564766
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/solana/validation.js
|
|
564780
564767
|
var schemaRawSolanaTransaction = schemaTransactionCommon.extend({
|
|
564781
564768
|
family: external_exports.literal(schemaFamilies.enum.solana),
|
|
564782
564769
|
model: external_exports.string(),
|
|
564783
564770
|
raw: external_exports.optional(external_exports.string())
|
|
564784
564771
|
});
|
|
564785
564772
|
|
|
564786
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564773
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/stellar/validation.js
|
|
564787
564774
|
var stellarMemoTypeEnum = external_exports.enum([
|
|
564788
564775
|
"MEMO_TEXT",
|
|
564789
564776
|
"MEMO_ID",
|
|
@@ -564797,7 +564784,7 @@ var schemaRawStellarTransaction = schemaTransactionCommon.extend({
|
|
|
564797
564784
|
memoValue: external_exports.string().optional()
|
|
564798
564785
|
});
|
|
564799
564786
|
|
|
564800
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564787
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/tezos/validation.js
|
|
564801
564788
|
var schemaTezosOperationMode = external_exports.enum([
|
|
564802
564789
|
"send",
|
|
564803
564790
|
"delegate",
|
|
@@ -564810,7 +564797,7 @@ var schemaRawTezosTransaction = schemaTransactionCommon.extend({
|
|
|
564810
564797
|
gasLimit: external_exports.string().optional()
|
|
564811
564798
|
});
|
|
564812
564799
|
|
|
564813
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564800
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/ton/validation.js
|
|
564814
564801
|
var schemaTonComment = external_exports.object({
|
|
564815
564802
|
isEncrypted: external_exports.boolean(),
|
|
564816
564803
|
text: external_exports.string()
|
|
@@ -564958,7 +564945,7 @@ var schemaRawTonTransaction = schemaTransactionCommon.extend({
|
|
|
564958
564945
|
payload: schemaTonPayloadFormatRaw.optional()
|
|
564959
564946
|
});
|
|
564960
564947
|
|
|
564961
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564948
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/tron/validation.js
|
|
564962
564949
|
var schemaTronOperationMode = external_exports.enum([
|
|
564963
564950
|
"send",
|
|
564964
564951
|
"freeze",
|
|
@@ -564982,19 +564969,19 @@ var schemaRawTronTransaction = schemaTransactionCommon.extend({
|
|
|
564982
564969
|
votes: external_exports.array(schemaTronVotes).optional()
|
|
564983
564970
|
});
|
|
564984
564971
|
|
|
564985
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564972
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/hedera/validation.js
|
|
564986
564973
|
var schemaRawHederaTransaction = schemaTransactionCommon.extend({
|
|
564987
564974
|
family: external_exports.literal(schemaFamilies.enum.hedera),
|
|
564988
564975
|
memo: external_exports.string().max(100).optional()
|
|
564989
564976
|
});
|
|
564990
564977
|
|
|
564991
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564978
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/kaspa/validation.js
|
|
564992
564979
|
var schemaRawKaspaTransaction = schemaTransactionCommon.extend({
|
|
564993
564980
|
family: external_exports.literal(schemaFamilies.enum.kaspa),
|
|
564994
564981
|
customFeeRate: external_exports.string().optional()
|
|
564995
564982
|
});
|
|
564996
564983
|
|
|
564997
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564984
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/filecoin/validation.js
|
|
564998
564985
|
var schemaRawFilecoinTransaction = schemaTransactionCommon.extend({
|
|
564999
564986
|
data: external_exports.string().optional(),
|
|
565000
564987
|
family: external_exports.literal(schemaFamilies.enum.filecoin),
|
|
@@ -565007,7 +564994,7 @@ var schemaRawFilecoinTransaction = schemaTransactionCommon.extend({
|
|
|
565007
564994
|
version: external_exports.number()
|
|
565008
564995
|
});
|
|
565009
564996
|
|
|
565010
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
564997
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/elrond/validation.js
|
|
565011
564998
|
var schemaOperationMode2 = external_exports.enum([
|
|
565012
564999
|
"send",
|
|
565013
565000
|
"delegate",
|
|
@@ -565031,7 +565018,7 @@ var schemaRawElrondTransaction = schemaTransactionCommon.extend({
|
|
|
565031
565018
|
gasLimit: external_exports.number()
|
|
565032
565019
|
});
|
|
565033
565020
|
|
|
565034
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565021
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/cardano/validation.js
|
|
565035
565022
|
var schemaRawCardanoTransaction = schemaTransactionCommon.extend({
|
|
565036
565023
|
family: external_exports.literal(schemaFamilies.enum.cardano),
|
|
565037
565024
|
fees: external_exports.string().optional(),
|
|
@@ -565039,7 +565026,7 @@ var schemaRawCardanoTransaction = schemaTransactionCommon.extend({
|
|
|
565039
565026
|
memo: external_exports.string().optional()
|
|
565040
565027
|
});
|
|
565041
565028
|
|
|
565042
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565029
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/vechain/validation.js
|
|
565043
565030
|
var schemaThorTransactionClause = external_exports.object({
|
|
565044
565031
|
to: external_exports.string().nullable(),
|
|
565045
565032
|
value: external_exports.union([external_exports.string(), external_exports.number()]),
|
|
@@ -565069,7 +565056,7 @@ var schemaRawVechainTransaction = schemaTransactionCommon.extend({
|
|
|
565069
565056
|
body: schemaThorTransactionBody
|
|
565070
565057
|
});
|
|
565071
565058
|
|
|
565072
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565059
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/stacks/validation.js
|
|
565073
565060
|
var schemaRawStacksTransaction = schemaTransactionCommon.extend({
|
|
565074
565061
|
family: external_exports.literal(schemaFamilies.enum.stacks),
|
|
565075
565062
|
fee: external_exports.string().optional(),
|
|
@@ -565079,28 +565066,28 @@ var schemaRawStacksTransaction = schemaTransactionCommon.extend({
|
|
|
565079
565066
|
anchorMode: external_exports.number()
|
|
565080
565067
|
});
|
|
565081
565068
|
|
|
565082
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565069
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/internet_computer/validation.js
|
|
565083
565070
|
var schemaRawInternetComputerTransaction = schemaTransactionCommon.extend({
|
|
565084
565071
|
family: external_exports.literal(schemaFamilies.enum.internet_computer),
|
|
565085
565072
|
fees: external_exports.string(),
|
|
565086
565073
|
memo: external_exports.string().optional()
|
|
565087
565074
|
});
|
|
565088
565075
|
|
|
565089
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565076
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/casper/validation.js
|
|
565090
565077
|
var schemaRawCasperTransaction = schemaTransactionCommon.extend({
|
|
565091
565078
|
family: external_exports.literal(schemaFamilies.enum.casper),
|
|
565092
565079
|
fees: external_exports.string(),
|
|
565093
565080
|
transferId: external_exports.string().optional()
|
|
565094
565081
|
});
|
|
565095
565082
|
|
|
565096
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565083
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/sui/validation.js
|
|
565097
565084
|
var schemaRawSuiTransaction = schemaTransactionCommon.extend({
|
|
565098
565085
|
family: external_exports.literal(schemaFamilies.enum.sui),
|
|
565099
565086
|
mode: external_exports.string(),
|
|
565100
565087
|
fees: external_exports.string().optional()
|
|
565101
565088
|
});
|
|
565102
565089
|
|
|
565103
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565090
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/families/validation.js
|
|
565104
565091
|
var schemaRawTransaction = external_exports.discriminatedUnion("family", [
|
|
565105
565092
|
schemaRawAlgorandTransaction,
|
|
565106
565093
|
schemaRawAptosTransaction,
|
|
@@ -565130,7 +565117,7 @@ var schemaRawTransaction = external_exports.discriminatedUnion("family", [
|
|
|
565130
565117
|
schemaRawSuiTransaction
|
|
565131
565118
|
]);
|
|
565132
565119
|
|
|
565133
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565120
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/logger/index.js
|
|
565134
565121
|
var Logger = class {
|
|
565135
565122
|
prefix = "";
|
|
565136
565123
|
constructor(namespace) {
|
|
@@ -565150,10 +565137,10 @@ var Logger = class {
|
|
|
565150
565137
|
}
|
|
565151
565138
|
};
|
|
565152
565139
|
|
|
565153
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565140
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/transports/WindowMessageTransport.js
|
|
565154
565141
|
var defaultLogger = new Logger("WindowMessage");
|
|
565155
565142
|
|
|
565156
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565143
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/types/index.js
|
|
565157
565144
|
var FeesLevel;
|
|
565158
565145
|
(function(FeesLevel2) {
|
|
565159
565146
|
FeesLevel2["Slow"] = "slow";
|
|
@@ -565173,7 +565160,7 @@ var ExchangeType;
|
|
|
565173
565160
|
ExchangeType2[ExchangeType2["FUND"] = 2] = "FUND";
|
|
565174
565161
|
})(ExchangeType || (ExchangeType = {}));
|
|
565175
565162
|
|
|
565176
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565163
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/errors/types.js
|
|
565177
565164
|
var schemaServerErrorCode = external_exports.enum([
|
|
565178
565165
|
"NOT_IMPLEMENTED_BY_WALLET",
|
|
565179
565166
|
"ACCOUNT_NOT_FOUND",
|
|
@@ -565238,7 +565225,7 @@ var schemaServerErrorData = external_exports.discriminatedUnion("code", [
|
|
|
565238
565225
|
schemaUnauthorizedStore
|
|
565239
565226
|
]);
|
|
565240
565227
|
|
|
565241
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565228
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/JSONRPC/types.js
|
|
565242
565229
|
var RpcErrorCode;
|
|
565243
565230
|
(function(RpcErrorCode2) {
|
|
565244
565231
|
RpcErrorCode2[RpcErrorCode2["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
|
|
@@ -565249,7 +565236,7 @@ var RpcErrorCode;
|
|
|
565249
565236
|
RpcErrorCode2[RpcErrorCode2["SERVER_ERROR"] = -32e3] = "SERVER_ERROR";
|
|
565250
565237
|
})(RpcErrorCode || (RpcErrorCode = {}));
|
|
565251
565238
|
|
|
565252
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565239
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/JSONRPC/validation.js
|
|
565253
565240
|
var schemaRPCId = external_exports.union([external_exports.string(), external_exports.number(), external_exports.null()]);
|
|
565254
565241
|
var schemaRPCRequest = external_exports.object({
|
|
565255
565242
|
jsonrpc: external_exports.literal("2.0"),
|
|
@@ -565278,10 +565265,307 @@ var schemaRPCResponse = external_exports.union([
|
|
|
565278
565265
|
]);
|
|
565279
565266
|
var schemaRPCCall = external_exports.union([schemaRPCRequest, schemaRPCResponse]);
|
|
565280
565267
|
|
|
565281
|
-
// ../../node_modules/.pnpm/@ledgerhq+
|
|
565282
|
-
|
|
565268
|
+
// ../../node_modules/.pnpm/@ledgerhq+errors@6.27.0/node_modules/@ledgerhq/errors/lib-es/helpers.js
|
|
565269
|
+
var errorClasses2 = {};
|
|
565270
|
+
var deserializers2 = {};
|
|
565271
|
+
var addCustomErrorDeserializer2 = (name2, deserializer) => {
|
|
565272
|
+
deserializers2[name2] = deserializer;
|
|
565273
|
+
};
|
|
565274
|
+
var createCustomErrorClass2 = (name2) => {
|
|
565275
|
+
class CustomErrorClass extends Error {
|
|
565276
|
+
cause;
|
|
565277
|
+
constructor(message2, fields, options24) {
|
|
565278
|
+
super(message2 || name2, options24);
|
|
565279
|
+
Object.setPrototypeOf(this, CustomErrorClass.prototype);
|
|
565280
|
+
this.name = name2;
|
|
565281
|
+
if (fields) {
|
|
565282
|
+
for (const k25 in fields) {
|
|
565283
|
+
this[k25] = fields[k25];
|
|
565284
|
+
}
|
|
565285
|
+
}
|
|
565286
|
+
if (options24 && isObject4(options24) && "cause" in options24 && !this.cause) {
|
|
565287
|
+
const cause = options24.cause;
|
|
565288
|
+
this.cause = cause;
|
|
565289
|
+
if ("stack" in cause) {
|
|
565290
|
+
this.stack = this.stack + "\nCAUSE: " + cause.stack;
|
|
565291
|
+
}
|
|
565292
|
+
}
|
|
565293
|
+
}
|
|
565294
|
+
}
|
|
565295
|
+
errorClasses2[name2] = CustomErrorClass;
|
|
565296
|
+
return CustomErrorClass;
|
|
565297
|
+
};
|
|
565298
|
+
function isObject4(value2) {
|
|
565299
|
+
return typeof value2 === "object";
|
|
565300
|
+
}
|
|
565301
|
+
|
|
565302
|
+
// ../../node_modules/.pnpm/@ledgerhq+errors@6.27.0/node_modules/@ledgerhq/errors/lib-es/index.js
|
|
565303
|
+
var AccountNameRequiredError2 = createCustomErrorClass2("AccountNameRequired");
|
|
565304
|
+
var AccountNotSupported2 = createCustomErrorClass2("AccountNotSupported");
|
|
565305
|
+
var AccountAwaitingSendPendingOperations2 = createCustomErrorClass2("AccountAwaitingSendPendingOperations");
|
|
565306
|
+
var AmountRequired2 = createCustomErrorClass2("AmountRequired");
|
|
565307
|
+
var BluetoothRequired2 = createCustomErrorClass2("BluetoothRequired");
|
|
565308
|
+
var BtcUnmatchedApp2 = createCustomErrorClass2("BtcUnmatchedApp");
|
|
565309
|
+
var CantOpenDevice2 = createCustomErrorClass2("CantOpenDevice");
|
|
565310
|
+
var CashAddrNotSupported2 = createCustomErrorClass2("CashAddrNotSupported");
|
|
565311
|
+
var ClaimRewardsFeesWarning2 = createCustomErrorClass2("ClaimRewardsFeesWarning");
|
|
565312
|
+
var CurrencyNotSupported2 = createCustomErrorClass2("CurrencyNotSupported");
|
|
565313
|
+
var DeviceAppVerifyNotSupported2 = createCustomErrorClass2("DeviceAppVerifyNotSupported");
|
|
565314
|
+
var DeviceGenuineSocketEarlyClose2 = createCustomErrorClass2("DeviceGenuineSocketEarlyClose");
|
|
565315
|
+
var DeviceNotGenuineError2 = createCustomErrorClass2("DeviceNotGenuine");
|
|
565316
|
+
var DeviceOnDashboardExpected2 = createCustomErrorClass2("DeviceOnDashboardExpected");
|
|
565317
|
+
var DeviceOnDashboardUnexpected2 = createCustomErrorClass2("DeviceOnDashboardUnexpected");
|
|
565318
|
+
var DeviceInOSUExpected2 = createCustomErrorClass2("DeviceInOSUExpected");
|
|
565319
|
+
var DeviceHalted2 = createCustomErrorClass2("DeviceHalted");
|
|
565320
|
+
var DeviceNameInvalid2 = createCustomErrorClass2("DeviceNameInvalid");
|
|
565321
|
+
var DeviceSocketFail2 = createCustomErrorClass2("DeviceSocketFail");
|
|
565322
|
+
var DeviceSocketNoBulkStatus2 = createCustomErrorClass2("DeviceSocketNoBulkStatus");
|
|
565323
|
+
var DeviceNeedsRestart2 = createCustomErrorClass2("DeviceSocketNoBulkStatus");
|
|
565324
|
+
var UnresponsiveDeviceError2 = createCustomErrorClass2("UnresponsiveDeviceError");
|
|
565325
|
+
var DisconnectedDevice2 = createCustomErrorClass2("DisconnectedDevice");
|
|
565326
|
+
var DisconnectedDeviceDuringOperation2 = createCustomErrorClass2("DisconnectedDeviceDuringOperation");
|
|
565327
|
+
var DeviceExtractOnboardingStateError2 = createCustomErrorClass2("DeviceExtractOnboardingStateError");
|
|
565328
|
+
var DeviceOnboardingStatePollingError2 = createCustomErrorClass2("DeviceOnboardingStatePollingError");
|
|
565329
|
+
var EnpointConfigError2 = createCustomErrorClass2("EnpointConfig");
|
|
565330
|
+
var EthAppPleaseEnableContractData2 = createCustomErrorClass2("EthAppPleaseEnableContractData");
|
|
565331
|
+
var CeloAppPleaseEnableContractData2 = createCustomErrorClass2("CeloAppPleaseEnableContractData");
|
|
565332
|
+
var FeeEstimationFailed2 = createCustomErrorClass2("FeeEstimationFailed");
|
|
565333
|
+
var FirmwareNotRecognized2 = createCustomErrorClass2("FirmwareNotRecognized");
|
|
565334
|
+
var HardResetFail2 = createCustomErrorClass2("HardResetFail");
|
|
565335
|
+
var InvalidXRPTag2 = createCustomErrorClass2("InvalidXRPTag");
|
|
565336
|
+
var InvalidAddress2 = createCustomErrorClass2("InvalidAddress");
|
|
565337
|
+
var InvalidNonce2 = createCustomErrorClass2("InvalidNonce");
|
|
565338
|
+
var InvalidAddressBecauseDestinationIsAlsoSource2 = createCustomErrorClass2("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
565339
|
+
var LatestMCUInstalledError2 = createCustomErrorClass2("LatestMCUInstalledError");
|
|
565340
|
+
var LatestFirmwareVersionRequired2 = createCustomErrorClass2("LatestFirmwareVersionRequired");
|
|
565341
|
+
var UnknownMCU2 = createCustomErrorClass2("UnknownMCU");
|
|
565342
|
+
var LedgerAPIError2 = createCustomErrorClass2("LedgerAPIError");
|
|
565343
|
+
var LedgerAPIErrorWithMessage2 = createCustomErrorClass2("LedgerAPIErrorWithMessage");
|
|
565344
|
+
var LedgerAPINotAvailable2 = createCustomErrorClass2("LedgerAPINotAvailable");
|
|
565345
|
+
var ManagerAppAlreadyInstalledError2 = createCustomErrorClass2("ManagerAppAlreadyInstalled");
|
|
565346
|
+
var ManagerAppRelyOnBTCError2 = createCustomErrorClass2("ManagerAppRelyOnBTC");
|
|
565347
|
+
var ManagerAppDepInstallRequired2 = createCustomErrorClass2("ManagerAppDepInstallRequired");
|
|
565348
|
+
var ManagerAppDepUninstallRequired2 = createCustomErrorClass2("ManagerAppDepUninstallRequired");
|
|
565349
|
+
var ManagerDeviceLockedError2 = createCustomErrorClass2("ManagerDeviceLocked");
|
|
565350
|
+
var ManagerFirmwareNotEnoughSpaceError2 = createCustomErrorClass2("ManagerFirmwareNotEnoughSpace");
|
|
565351
|
+
var ManagerNotEnoughSpaceError2 = createCustomErrorClass2("ManagerNotEnoughSpace");
|
|
565352
|
+
var ManagerUninstallBTCDep2 = createCustomErrorClass2("ManagerUninstallBTCDep");
|
|
565353
|
+
var NetworkDown2 = createCustomErrorClass2("NetworkDown");
|
|
565354
|
+
var NetworkError2 = createCustomErrorClass2("NetworkError");
|
|
565355
|
+
var NoAddressesFound2 = createCustomErrorClass2("NoAddressesFound");
|
|
565356
|
+
var NotEnoughBalance2 = createCustomErrorClass2("NotEnoughBalance");
|
|
565357
|
+
var NotEnoughBalanceFees2 = createCustomErrorClass2("NotEnoughBalanceFees");
|
|
565358
|
+
var NotEnoughBalanceSwap2 = createCustomErrorClass2("NotEnoughBalanceSwap");
|
|
565359
|
+
var NotEnoughBalanceToDelegate2 = createCustomErrorClass2("NotEnoughBalanceToDelegate");
|
|
565360
|
+
var UnstakeNotEnoughStakedBalanceLeft2 = createCustomErrorClass2("UnstakeNotEnoughStakedBalanceLeft");
|
|
565361
|
+
var RestakeNotEnoughStakedBalanceLeft2 = createCustomErrorClass2("RestakeNotEnoughStakedBalanceLeft");
|
|
565362
|
+
var NotEnoughToRestake2 = createCustomErrorClass2("NotEnoughToRestake");
|
|
565363
|
+
var NotEnoughToUnstake2 = createCustomErrorClass2("NotEnoughToUnstake");
|
|
565364
|
+
var NotEnoughBalanceInParentAccount2 = createCustomErrorClass2("NotEnoughBalanceInParentAccount");
|
|
565365
|
+
var NotEnoughSpendableBalance2 = createCustomErrorClass2("NotEnoughSpendableBalance");
|
|
565366
|
+
var NotEnoughBalanceBecauseDestinationNotCreated2 = createCustomErrorClass2("NotEnoughBalanceBecauseDestinationNotCreated");
|
|
565367
|
+
var NotEnoughToStake2 = createCustomErrorClass2("NotEnoughToStake");
|
|
565368
|
+
var NoAccessToCamera2 = createCustomErrorClass2("NoAccessToCamera");
|
|
565369
|
+
var NotEnoughGas2 = createCustomErrorClass2("NotEnoughGas");
|
|
565370
|
+
var NotEnoughGasSwap2 = createCustomErrorClass2("NotEnoughGasSwap");
|
|
565371
|
+
var TronEmptyAccount2 = createCustomErrorClass2("TronEmptyAccount");
|
|
565372
|
+
var MaybeKeepTronAccountAlive2 = createCustomErrorClass2("MaybeKeepTronAccountAlive");
|
|
565373
|
+
var NotSupportedLegacyAddress2 = createCustomErrorClass2("NotSupportedLegacyAddress");
|
|
565374
|
+
var GasLessThanEstimate2 = createCustomErrorClass2("GasLessThanEstimate");
|
|
565375
|
+
var PriorityFeeTooLow2 = createCustomErrorClass2("PriorityFeeTooLow");
|
|
565376
|
+
var PriorityFeeTooHigh2 = createCustomErrorClass2("PriorityFeeTooHigh");
|
|
565377
|
+
var PriorityFeeHigherThanMaxFee2 = createCustomErrorClass2("PriorityFeeHigherThanMaxFee");
|
|
565378
|
+
var MaxFeeTooLow2 = createCustomErrorClass2("MaxFeeTooLow");
|
|
565379
|
+
var PasswordsDontMatchError2 = createCustomErrorClass2("PasswordsDontMatch");
|
|
565380
|
+
var PasswordIncorrectError2 = createCustomErrorClass2("PasswordIncorrect");
|
|
565381
|
+
var RecommendSubAccountsToEmpty2 = createCustomErrorClass2("RecommendSubAccountsToEmpty");
|
|
565382
|
+
var RecommendUndelegation2 = createCustomErrorClass2("RecommendUndelegation");
|
|
565383
|
+
var TimeoutTagged2 = createCustomErrorClass2("TimeoutTagged");
|
|
565384
|
+
var UnexpectedBootloader2 = createCustomErrorClass2("UnexpectedBootloader");
|
|
565385
|
+
var MCUNotGenuineToDashboard2 = createCustomErrorClass2("MCUNotGenuineToDashboard");
|
|
565386
|
+
var RecipientRequired2 = createCustomErrorClass2("RecipientRequired");
|
|
565387
|
+
var UnavailableTezosOriginatedAccountReceive2 = createCustomErrorClass2("UnavailableTezosOriginatedAccountReceive");
|
|
565388
|
+
var UnavailableTezosOriginatedAccountSend2 = createCustomErrorClass2("UnavailableTezosOriginatedAccountSend");
|
|
565389
|
+
var UpdateFetchFileFail2 = createCustomErrorClass2("UpdateFetchFileFail");
|
|
565390
|
+
var UpdateIncorrectHash2 = createCustomErrorClass2("UpdateIncorrectHash");
|
|
565391
|
+
var UpdateIncorrectSig2 = createCustomErrorClass2("UpdateIncorrectSig");
|
|
565392
|
+
var UpdateYourApp2 = createCustomErrorClass2("UpdateYourApp");
|
|
565393
|
+
var UserRefusedDeviceNameChange2 = createCustomErrorClass2("UserRefusedDeviceNameChange");
|
|
565394
|
+
var UserRefusedAddress2 = createCustomErrorClass2("UserRefusedAddress");
|
|
565395
|
+
var UserRefusedFirmwareUpdate2 = createCustomErrorClass2("UserRefusedFirmwareUpdate");
|
|
565396
|
+
var UserRefusedAllowManager2 = createCustomErrorClass2("UserRefusedAllowManager");
|
|
565397
|
+
var UserRefusedOnDevice2 = createCustomErrorClass2("UserRefusedOnDevice");
|
|
565398
|
+
var PinNotSet2 = createCustomErrorClass2("PinNotSet");
|
|
565399
|
+
var ExpertModeRequired2 = createCustomErrorClass2("ExpertModeRequired");
|
|
565400
|
+
var TransportOpenUserCancelled2 = createCustomErrorClass2("TransportOpenUserCancelled");
|
|
565401
|
+
var TransportInterfaceNotAvailable2 = createCustomErrorClass2("TransportInterfaceNotAvailable");
|
|
565402
|
+
var TransportRaceCondition2 = createCustomErrorClass2("TransportRaceCondition");
|
|
565403
|
+
var TransportWebUSBGestureRequired2 = createCustomErrorClass2("TransportWebUSBGestureRequired");
|
|
565404
|
+
var TransactionHasBeenValidatedError2 = createCustomErrorClass2("TransactionHasBeenValidatedError");
|
|
565405
|
+
var TransportExchangeTimeoutError2 = createCustomErrorClass2("TransportExchangeTimeoutError");
|
|
565406
|
+
var DeviceShouldStayInApp2 = createCustomErrorClass2("DeviceShouldStayInApp");
|
|
565407
|
+
var WebsocketConnectionError2 = createCustomErrorClass2("WebsocketConnectionError");
|
|
565408
|
+
var WebsocketConnectionFailed2 = createCustomErrorClass2("WebsocketConnectionFailed");
|
|
565409
|
+
var WrongDeviceForAccount2 = createCustomErrorClass2("WrongDeviceForAccount");
|
|
565410
|
+
var WrongDeviceForAccountPayout2 = createCustomErrorClass2("WrongDeviceForAccountPayout");
|
|
565411
|
+
var MissingSwapPayloadParamaters2 = createCustomErrorClass2("MissingSwapPayloadParamaters");
|
|
565412
|
+
var WrongDeviceForAccountRefund2 = createCustomErrorClass2("WrongDeviceForAccountRefund");
|
|
565413
|
+
var WrongAppForCurrency2 = createCustomErrorClass2("WrongAppForCurrency");
|
|
565414
|
+
var ETHAddressNonEIP2 = createCustomErrorClass2("ETHAddressNonEIP");
|
|
565415
|
+
var CantScanQRCode2 = createCustomErrorClass2("CantScanQRCode");
|
|
565416
|
+
var FeeNotLoaded2 = createCustomErrorClass2("FeeNotLoaded");
|
|
565417
|
+
var FeeNotLoadedSwap2 = createCustomErrorClass2("FeeNotLoadedSwap");
|
|
565418
|
+
var FeeRequired2 = createCustomErrorClass2("FeeRequired");
|
|
565419
|
+
var FeeTooHigh2 = createCustomErrorClass2("FeeTooHigh");
|
|
565420
|
+
var PendingOperation2 = createCustomErrorClass2("PendingOperation");
|
|
565421
|
+
var SyncError2 = createCustomErrorClass2("SyncError");
|
|
565422
|
+
var PairingFailed2 = createCustomErrorClass2("PairingFailed");
|
|
565423
|
+
var PeerRemovedPairing2 = createCustomErrorClass2("PeerRemovedPairing");
|
|
565424
|
+
var GenuineCheckFailed2 = createCustomErrorClass2("GenuineCheckFailed");
|
|
565425
|
+
var LedgerAPI4xx2 = createCustomErrorClass2("LedgerAPI4xx");
|
|
565426
|
+
var LedgerAPI5xx2 = createCustomErrorClass2("LedgerAPI5xx");
|
|
565427
|
+
var FirmwareOrAppUpdateRequired2 = createCustomErrorClass2("FirmwareOrAppUpdateRequired");
|
|
565428
|
+
var ReplacementTransactionUnderpriced2 = createCustomErrorClass2("ReplacementTransactionUnderpriced");
|
|
565429
|
+
var OpReturnDataSizeLimit2 = createCustomErrorClass2("OpReturnSizeLimit");
|
|
565430
|
+
var DustLimit2 = createCustomErrorClass2("DustLimit");
|
|
565431
|
+
var LanguageNotFound2 = createCustomErrorClass2("LanguageNotFound");
|
|
565432
|
+
var NoDBPathGiven2 = createCustomErrorClass2("NoDBPathGiven");
|
|
565433
|
+
var DBWrongPassword2 = createCustomErrorClass2("DBWrongPassword");
|
|
565434
|
+
var DBNotReset2 = createCustomErrorClass2("DBNotReset");
|
|
565435
|
+
var SequenceNumberError2 = createCustomErrorClass2("SequenceNumberError");
|
|
565436
|
+
var DisabledTransactionBroadcastError2 = createCustomErrorClass2("DisabledTransactionBroadcastError");
|
|
565437
|
+
var HwTransportErrorType2;
|
|
565438
|
+
(function(HwTransportErrorType4) {
|
|
565439
|
+
HwTransportErrorType4["Unknown"] = "Unknown";
|
|
565440
|
+
HwTransportErrorType4["LocationServicesDisabled"] = "LocationServicesDisabled";
|
|
565441
|
+
HwTransportErrorType4["LocationServicesUnauthorized"] = "LocationServicesUnauthorized";
|
|
565442
|
+
HwTransportErrorType4["BluetoothScanStartFailed"] = "BluetoothScanStartFailed";
|
|
565443
|
+
})(HwTransportErrorType2 || (HwTransportErrorType2 = {}));
|
|
565444
|
+
var TransportError2 = class extends Error {
|
|
565445
|
+
id;
|
|
565446
|
+
constructor(message2, id5) {
|
|
565447
|
+
const name2 = "TransportError";
|
|
565448
|
+
super(message2 || name2);
|
|
565449
|
+
this.name = name2;
|
|
565450
|
+
this.message = message2;
|
|
565451
|
+
this.stack = new Error(message2).stack;
|
|
565452
|
+
this.id = id5;
|
|
565453
|
+
}
|
|
565454
|
+
};
|
|
565455
|
+
addCustomErrorDeserializer2("TransportError", (e96) => new TransportError2(e96.message, e96.id));
|
|
565456
|
+
var StatusCodes2 = {
|
|
565457
|
+
ACCESS_CONDITION_NOT_FULFILLED: 38916,
|
|
565458
|
+
ALGORITHM_NOT_SUPPORTED: 38020,
|
|
565459
|
+
CLA_NOT_SUPPORTED: 28160,
|
|
565460
|
+
CODE_BLOCKED: 38976,
|
|
565461
|
+
CODE_NOT_INITIALIZED: 38914,
|
|
565462
|
+
COMMAND_INCOMPATIBLE_FILE_STRUCTURE: 27009,
|
|
565463
|
+
CONDITIONS_OF_USE_NOT_SATISFIED: 27013,
|
|
565464
|
+
CONTRADICTION_INVALIDATION: 38928,
|
|
565465
|
+
CONTRADICTION_SECRET_CODE_STATUS: 38920,
|
|
565466
|
+
DEVICE_IN_RECOVERY_MODE: 26159,
|
|
565467
|
+
CUSTOM_IMAGE_EMPTY: 26158,
|
|
565468
|
+
FILE_ALREADY_EXISTS: 27273,
|
|
565469
|
+
FILE_NOT_FOUND: 37892,
|
|
565470
|
+
GP_AUTH_FAILED: 25344,
|
|
565471
|
+
HALTED: 28586,
|
|
565472
|
+
INCONSISTENT_FILE: 37896,
|
|
565473
|
+
INCORRECT_DATA: 27264,
|
|
565474
|
+
INCORRECT_LENGTH: 26368,
|
|
565475
|
+
INCORRECT_P1_P2: 27392,
|
|
565476
|
+
INS_NOT_SUPPORTED: 27904,
|
|
565477
|
+
DEVICE_NOT_ONBOARDED: 27911,
|
|
565478
|
+
DEVICE_NOT_ONBOARDED_2: 26129,
|
|
565479
|
+
INVALID_KCV: 38021,
|
|
565480
|
+
INVALID_OFFSET: 37890,
|
|
565481
|
+
LICENSING: 28482,
|
|
565482
|
+
LOCKED_DEVICE: 21781,
|
|
565483
|
+
MAX_VALUE_REACHED: 38992,
|
|
565484
|
+
MEMORY_PROBLEM: 37440,
|
|
565485
|
+
MISSING_CRITICAL_PARAMETER: 26624,
|
|
565486
|
+
NO_EF_SELECTED: 37888,
|
|
565487
|
+
NOT_ENOUGH_MEMORY_SPACE: 27268,
|
|
565488
|
+
OK: 36864,
|
|
565489
|
+
PIN_REMAINING_ATTEMPTS: 25536,
|
|
565490
|
+
REFERENCED_DATA_NOT_FOUND: 27272,
|
|
565491
|
+
SECURITY_STATUS_NOT_SATISFIED: 27010,
|
|
565492
|
+
TECHNICAL_PROBLEM: 28416,
|
|
565493
|
+
UNKNOWN_APDU: 27906,
|
|
565494
|
+
USER_REFUSED_ON_DEVICE: 21761,
|
|
565495
|
+
NOT_ENOUGH_SPACE: 20738,
|
|
565496
|
+
APP_NOT_FOUND_OR_INVALID_CONTEXT: 20771,
|
|
565497
|
+
INVALID_APP_NAME_LENGTH: 26378,
|
|
565498
|
+
GEN_AES_KEY_FAILED: 21529,
|
|
565499
|
+
INTERNAL_CRYPTO_OPERATION_FAILED: 21530,
|
|
565500
|
+
INTERNAL_COMPUTE_AES_CMAC_FAILED: 21531,
|
|
565501
|
+
ENCRYPT_APP_STORAGE_FAILED: 21532,
|
|
565502
|
+
INVALID_BACKUP_STATE: 26178,
|
|
565503
|
+
PIN_NOT_SET: 21762,
|
|
565504
|
+
INVALID_BACKUP_LENGTH: 26419,
|
|
565505
|
+
INVALID_RESTORE_STATE: 26179,
|
|
565506
|
+
INVALID_CHUNK_LENGTH: 26420,
|
|
565507
|
+
INVALID_BACKUP_HEADER: 26698,
|
|
565508
|
+
// Not documented:
|
|
565509
|
+
TRUSTCHAIN_WRONG_SEED: 45063
|
|
565510
|
+
};
|
|
565511
|
+
function getAltStatusMessage2(code) {
|
|
565512
|
+
switch (code) {
|
|
565513
|
+
case 26368:
|
|
565514
|
+
return "Incorrect length";
|
|
565515
|
+
case 26624:
|
|
565516
|
+
return "Missing critical parameter";
|
|
565517
|
+
case 27010:
|
|
565518
|
+
return "Security not satisfied (dongle locked or have invalid access rights)";
|
|
565519
|
+
case 27013:
|
|
565520
|
+
return "Condition of use not satisfied (denied by the user?)";
|
|
565521
|
+
case 27264:
|
|
565522
|
+
return "Invalid data received";
|
|
565523
|
+
case 27392:
|
|
565524
|
+
return "Invalid parameter received";
|
|
565525
|
+
case 21781:
|
|
565526
|
+
return "Locked device";
|
|
565527
|
+
}
|
|
565528
|
+
if (28416 <= code && code <= 28671) {
|
|
565529
|
+
return "Internal error, please report";
|
|
565530
|
+
}
|
|
565531
|
+
}
|
|
565532
|
+
var TransportStatusError2 = class _TransportStatusError extends Error {
|
|
565533
|
+
statusCode;
|
|
565534
|
+
statusText;
|
|
565535
|
+
/**
|
|
565536
|
+
* @param statusCode The error status code coming from a Transport implementation
|
|
565537
|
+
* @param options containing:
|
|
565538
|
+
* - canBeMappedToChildError: enable the mapping of TransportStatusError to an error extending/inheriting from it
|
|
565539
|
+
* . Ex: LockedDeviceError. Default to true.
|
|
565540
|
+
*/
|
|
565541
|
+
constructor(statusCode, { canBeMappedToChildError = true } = {}) {
|
|
565542
|
+
const statusText = Object.keys(StatusCodes2).find((k25) => StatusCodes2[k25] === statusCode) || "UNKNOWN_ERROR";
|
|
565543
|
+
const smsg = getAltStatusMessage2(statusCode) || statusText;
|
|
565544
|
+
const statusCodeStr = statusCode.toString(16);
|
|
565545
|
+
const message2 = `Ledger device: ${smsg} (0x${statusCodeStr})`;
|
|
565546
|
+
super(message2);
|
|
565547
|
+
this.name = "TransportStatusError";
|
|
565548
|
+
this.statusCode = statusCode;
|
|
565549
|
+
this.statusText = statusText;
|
|
565550
|
+
Object.setPrototypeOf(this, _TransportStatusError.prototype);
|
|
565551
|
+
if (canBeMappedToChildError && statusCode === StatusCodes2.LOCKED_DEVICE) {
|
|
565552
|
+
return new LockedDeviceError2(message2);
|
|
565553
|
+
}
|
|
565554
|
+
}
|
|
565555
|
+
};
|
|
565556
|
+
var LockedDeviceError2 = class _LockedDeviceError extends TransportStatusError2 {
|
|
565557
|
+
constructor(message2) {
|
|
565558
|
+
super(StatusCodes2.LOCKED_DEVICE, { canBeMappedToChildError: false });
|
|
565559
|
+
if (message2) {
|
|
565560
|
+
this.message = message2;
|
|
565561
|
+
}
|
|
565562
|
+
this.name = "LockedDeviceError";
|
|
565563
|
+
Object.setPrototypeOf(this, _LockedDeviceError.prototype);
|
|
565564
|
+
}
|
|
565565
|
+
};
|
|
565566
|
+
addCustomErrorDeserializer2("TransportStatusError", (e96) => new TransportStatusError2(e96.statusCode));
|
|
565283
565567
|
|
|
565284
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565568
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/AccountList.js
|
|
565285
565569
|
var schemaAccountListParams = external_exports.object({
|
|
565286
565570
|
currencyIds: external_exports.array(external_exports.string()).optional()
|
|
565287
565571
|
}).optional();
|
|
@@ -565289,7 +565573,7 @@ var schemaAccountListResults = external_exports.object({
|
|
|
565289
565573
|
rawAccounts: external_exports.array(schemaRawAccount)
|
|
565290
565574
|
});
|
|
565291
565575
|
|
|
565292
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565576
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/AccountReceive.js
|
|
565293
565577
|
var schemaAccountReceiveParams = external_exports.object({
|
|
565294
565578
|
accountId: external_exports.string(),
|
|
565295
565579
|
tokenCurrency: external_exports.string().optional()
|
|
@@ -565298,7 +565582,7 @@ var schemaAccountReceiveResults = external_exports.object({
|
|
|
565298
565582
|
address: external_exports.string()
|
|
565299
565583
|
});
|
|
565300
565584
|
|
|
565301
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565585
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/AccountRequest.js
|
|
565302
565586
|
var schemaAccountRequestParams = external_exports.object({
|
|
565303
565587
|
currencyIds: external_exports.array(external_exports.string()).optional(),
|
|
565304
565588
|
showAccountFilter: external_exports.boolean().optional(),
|
|
@@ -565319,7 +565603,7 @@ var schemaAccountRequestResults = external_exports.object({
|
|
|
565319
565603
|
rawAccount: schemaRawAccount
|
|
565320
565604
|
});
|
|
565321
565605
|
|
|
565322
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565606
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/BitcoinGetAddress.js
|
|
565323
565607
|
var schemaBitcoinGetAddressParams = external_exports.object({
|
|
565324
565608
|
accountId: external_exports.string(),
|
|
565325
565609
|
derivationPath: external_exports.string().optional()
|
|
@@ -565328,7 +565612,7 @@ var schemaBitcoinGetAddressResults = external_exports.object({
|
|
|
565328
565612
|
address: external_exports.string()
|
|
565329
565613
|
});
|
|
565330
565614
|
|
|
565331
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565615
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/BitcoinGetPublicKey.js
|
|
565332
565616
|
var schemaBitcoinGetPublicKeyParams = external_exports.object({
|
|
565333
565617
|
accountId: external_exports.string(),
|
|
565334
565618
|
derivationPath: external_exports.string().optional()
|
|
@@ -565337,7 +565621,7 @@ var schemaBitcoinGetPublicKeyResults = external_exports.object({
|
|
|
565337
565621
|
publicKey: external_exports.string()
|
|
565338
565622
|
});
|
|
565339
565623
|
|
|
565340
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565624
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/BitcoinGetXPub.js
|
|
565341
565625
|
var schemaBitcoinGetXPubParams = external_exports.object({
|
|
565342
565626
|
accountId: external_exports.string()
|
|
565343
565627
|
});
|
|
@@ -565345,7 +565629,7 @@ var schemaBitcoinGetXPubResults = external_exports.object({
|
|
|
565345
565629
|
xPub: external_exports.string()
|
|
565346
565630
|
});
|
|
565347
565631
|
|
|
565348
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565632
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/BitcoinSignPsbt.js
|
|
565349
565633
|
var schemaBitcoinSignPsbtParams = external_exports.object({
|
|
565350
565634
|
accountId: external_exports.string(),
|
|
565351
565635
|
psbt: external_exports.string(),
|
|
@@ -565356,7 +565640,7 @@ var schemaBitcoinSignPsbtResults = external_exports.object({
|
|
|
565356
565640
|
txHash: external_exports.string().optional()
|
|
565357
565641
|
});
|
|
565358
565642
|
|
|
565359
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565643
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/CurrencyList.js
|
|
565360
565644
|
var schemaCurrencyListParams = external_exports.object({
|
|
565361
565645
|
currencyIds: external_exports.array(external_exports.string()).optional()
|
|
565362
565646
|
}).optional();
|
|
@@ -565364,7 +565648,7 @@ var schemaCurrencyListResult = external_exports.object({
|
|
|
565364
565648
|
currencies: external_exports.array(schemaCurrency)
|
|
565365
565649
|
});
|
|
565366
565650
|
|
|
565367
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565651
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/Device.js
|
|
565368
565652
|
var schemaDeviceType = external_exports.enum([
|
|
565369
565653
|
"blue",
|
|
565370
565654
|
"nanoS",
|
|
@@ -565375,7 +565659,7 @@ var schemaDeviceType = external_exports.enum([
|
|
|
565375
565659
|
"apex"
|
|
565376
565660
|
]);
|
|
565377
565661
|
|
|
565378
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565662
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/DeviceClose.js
|
|
565379
565663
|
var schemaDeviceCloseParams = external_exports.object({
|
|
565380
565664
|
transportId: external_exports.string()
|
|
565381
565665
|
});
|
|
@@ -565383,7 +565667,7 @@ var schemaDeviceCloseResults = external_exports.object({
|
|
|
565383
565667
|
transportId: external_exports.string()
|
|
565384
565668
|
});
|
|
565385
565669
|
|
|
565386
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565670
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/DeviceExchange.js
|
|
565387
565671
|
var schemaDeviceExchangeParams = external_exports.object({
|
|
565388
565672
|
apduHex: external_exports.string(),
|
|
565389
565673
|
transportId: external_exports.string()
|
|
@@ -565392,7 +565676,7 @@ var schemaDeviceExchangeResults = external_exports.object({
|
|
|
565392
565676
|
responseHex: external_exports.string()
|
|
565393
565677
|
});
|
|
565394
565678
|
|
|
565395
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565679
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/DeviceOpen.js
|
|
565396
565680
|
var schemaDeviceOpenParams = external_exports.object({
|
|
565397
565681
|
/** ID of the device to select */
|
|
565398
565682
|
deviceId: external_exports.string()
|
|
@@ -565401,7 +565685,7 @@ var schemaDeviceOpenResults = external_exports.object({
|
|
|
565401
565685
|
transportId: external_exports.string()
|
|
565402
565686
|
});
|
|
565403
565687
|
|
|
565404
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565688
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/DeviceSelect.js
|
|
565405
565689
|
var schemaDeviceSelectParams = external_exports.object({
|
|
565406
565690
|
/** Select the BOLOS App. If undefined selects BOLOS */
|
|
565407
565691
|
appName: external_exports.string().optional(),
|
|
@@ -565428,7 +565712,7 @@ var schemaDeviceSelectResults = external_exports.object({
|
|
|
565428
565712
|
deviceId: external_exports.string()
|
|
565429
565713
|
});
|
|
565430
565714
|
|
|
565431
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565715
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/DeviceTransport.js
|
|
565432
565716
|
var schemaDeviceTransportParams = external_exports.object({
|
|
565433
565717
|
/** Select the BOLOS App. If undefined selects BOLOS */
|
|
565434
565718
|
appName: external_exports.string().optional(),
|
|
@@ -565455,7 +565739,7 @@ var schemaDeviceTransportResults = external_exports.object({
|
|
|
565455
565739
|
transportId: external_exports.string()
|
|
565456
565740
|
});
|
|
565457
565741
|
|
|
565458
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565742
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/ExchangeComplete.js
|
|
565459
565743
|
var schemaFeeStrategyType = external_exports.enum(["SLOW", "MEDIUM", "FAST", "CUSTOM"]);
|
|
565460
565744
|
var schemaExchangeCompleteBaseParams = external_exports.object({
|
|
565461
565745
|
provider: external_exports.string(),
|
|
@@ -565487,7 +565771,7 @@ var schemaExchangeCompleteResults = external_exports.object({
|
|
|
565487
565771
|
transactionHash: external_exports.string()
|
|
565488
565772
|
});
|
|
565489
565773
|
|
|
565490
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565774
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/ExchangeStart.js
|
|
565491
565775
|
var schemaExchangeType = external_exports.enum([
|
|
565492
565776
|
"SWAP",
|
|
565493
565777
|
"SELL",
|
|
@@ -565503,7 +565787,7 @@ var schemaExchangeStartResults = external_exports.object({
|
|
|
565503
565787
|
transactionId: external_exports.string()
|
|
565504
565788
|
});
|
|
565505
565789
|
|
|
565506
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565790
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/MessageSign.js
|
|
565507
565791
|
var schemaMessageOptions = external_exports.object({
|
|
565508
565792
|
hwAppId: external_exports.string().optional(),
|
|
565509
565793
|
dependencies: external_exports.array(external_exports.string()).optional()
|
|
@@ -565518,7 +565802,7 @@ var schemaMessageSignResults = external_exports.object({
|
|
|
565518
565802
|
hexSignedMessage: external_exports.string()
|
|
565519
565803
|
});
|
|
565520
565804
|
|
|
565521
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565805
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/StorageGet.js
|
|
565522
565806
|
var schemaStorageGetParams = external_exports.object({
|
|
565523
565807
|
key: external_exports.string().min(1),
|
|
565524
565808
|
storeId: external_exports.string().min(1).optional()
|
|
@@ -565527,7 +565811,7 @@ var schemaStorageGetResults = external_exports.object({
|
|
|
565527
565811
|
value: external_exports.string().optional()
|
|
565528
565812
|
});
|
|
565529
565813
|
|
|
565530
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565814
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/StorageSet.js
|
|
565531
565815
|
var schemaStorageSetParams = external_exports.object({
|
|
565532
565816
|
key: external_exports.string(),
|
|
565533
565817
|
value: external_exports.string(),
|
|
@@ -565535,7 +565819,7 @@ var schemaStorageSetParams = external_exports.object({
|
|
|
565535
565819
|
});
|
|
565536
565820
|
var schemaStorageSetResults = external_exports.void().optional();
|
|
565537
565821
|
|
|
565538
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565822
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/TransactionSign.js
|
|
565539
565823
|
var schemaTransactionOptions = external_exports.object({
|
|
565540
565824
|
hwAppId: external_exports.string().optional(),
|
|
565541
565825
|
dependencies: external_exports.array(external_exports.string()).optional()
|
|
@@ -565551,7 +565835,7 @@ var schemaTransactionSignResults = external_exports.object({
|
|
|
565551
565835
|
signedTransactionHex: external_exports.string()
|
|
565552
565836
|
});
|
|
565553
565837
|
|
|
565554
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565838
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/TransactionSignAndBroadcast.js
|
|
565555
565839
|
var schemaTransactionOptions2 = external_exports.object({
|
|
565556
565840
|
hwAppId: external_exports.string().optional(),
|
|
565557
565841
|
dependencies: external_exports.array(external_exports.string()).optional()
|
|
@@ -565567,7 +565851,7 @@ var schemaTransactionSignAndBroadcastResults = external_exports.object({
|
|
|
565567
565851
|
transactionHash: external_exports.string()
|
|
565568
565852
|
});
|
|
565569
565853
|
|
|
565570
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565854
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/TransactionSignRaw.js
|
|
565571
565855
|
var schemaTransactionOptions3 = external_exports.object({
|
|
565572
565856
|
hwAppId: external_exports.string().optional(),
|
|
565573
565857
|
dependencies: external_exports.array(external_exports.string()).optional()
|
|
@@ -565584,13 +565868,13 @@ var schemaTransactionSignRawResults = external_exports.object({
|
|
|
565584
565868
|
transactionHash: external_exports.string().optional()
|
|
565585
565869
|
});
|
|
565586
565870
|
|
|
565587
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565871
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/WalletCapabilities.js
|
|
565588
565872
|
var schemaWalletCapabilitiesParams = external_exports.object({});
|
|
565589
565873
|
var schemaWalletCapabilitiesResults = external_exports.object({
|
|
565590
565874
|
methodIds: external_exports.array(external_exports.string())
|
|
565591
565875
|
});
|
|
565592
565876
|
|
|
565593
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565877
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/WalletInfo.js
|
|
565594
565878
|
var schemaWalletInfoParams = external_exports.object({});
|
|
565595
565879
|
var schemaWalletInfoResults = external_exports.object({
|
|
565596
565880
|
tracking: external_exports.boolean(),
|
|
@@ -565600,13 +565884,13 @@ var schemaWalletInfoResults = external_exports.object({
|
|
|
565600
565884
|
})
|
|
565601
565885
|
});
|
|
565602
565886
|
|
|
565603
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565887
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/WalletUserId.js
|
|
565604
565888
|
var schemaWalletUserIdParams = external_exports.object({});
|
|
565605
565889
|
var schemaWalletUserIdResults = external_exports.object({
|
|
565606
565890
|
userId: external_exports.string()
|
|
565607
565891
|
});
|
|
565608
565892
|
|
|
565609
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.
|
|
565893
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.27.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/methods.js
|
|
565610
565894
|
var schemaRPCMethod = external_exports.enum([
|
|
565611
565895
|
"account.list",
|
|
565612
565896
|
"account.receive",
|
|
@@ -608931,6 +609215,9 @@ var BitcoinLikeWallet = class {
|
|
|
608931
609215
|
}
|
|
608932
609216
|
async buildAccountTx(params) {
|
|
608933
609217
|
const changeAddress = await params.fromAccount.xpub.getNewAddress(1, 1);
|
|
609218
|
+
if (params.changeAddress && params.changeAddress !== changeAddress.address) {
|
|
609219
|
+
throw new Error("Invalid change address");
|
|
609220
|
+
}
|
|
608934
609221
|
const txInfo = await params.fromAccount.xpub.buildTx({
|
|
608935
609222
|
destAddress: params.dest,
|
|
608936
609223
|
amount: params.amount,
|
|
@@ -609870,7 +610157,7 @@ var selectUtxoPickingStrategy = (walletAccount, utxoStrategy) => {
|
|
|
609870
610157
|
return new handler(walletAccount.xpub.crypto, walletAccount.xpub.derivationMode, utxoStrategy.excludeUTXOs);
|
|
609871
610158
|
};
|
|
609872
610159
|
var buildTransaction2 = async (account3, transaction) => {
|
|
609873
|
-
const { feePerByte, recipient, opReturnData, utxoStrategy } = transaction;
|
|
610160
|
+
const { feePerByte, recipient, opReturnData, utxoStrategy, changeAddress } = transaction;
|
|
609874
610161
|
if (!feePerByte) {
|
|
609875
610162
|
throw new FeeNotLoaded();
|
|
609876
610163
|
}
|
|
@@ -609894,7 +610181,8 @@ var buildTransaction2 = async (account3, transaction) => {
|
|
|
609894
610181
|
utxoPickingStrategy,
|
|
609895
610182
|
// Definition of replaceable, per the standard: https://github.com/bitcoin/bips/blob/61ccc84930051e5b4a99926510d0db4a8475a4e6/bip-0125.mediawiki#summary
|
|
609896
610183
|
sequence: transaction.rbf ? 0 : 4294967295,
|
|
609897
|
-
opReturnData
|
|
610184
|
+
opReturnData,
|
|
610185
|
+
changeAddress
|
|
609898
610186
|
});
|
|
609899
610187
|
log2("btcwallet", "txInfo", txInfo);
|
|
609900
610188
|
return txInfo;
|
|
@@ -609957,11 +610245,13 @@ var calculateFees = makeLRUCache(async ({ account: account3, transaction }) => g
|
|
|
609957
610245
|
ttl: 5 * 60 * 1e3
|
|
609958
610246
|
// 5 minutes
|
|
609959
610247
|
});
|
|
609960
|
-
var validateRecipient = makeLRUCache(async (currency24, recipient) => {
|
|
610248
|
+
var validateRecipient = makeLRUCache(async (currency24, recipient, changeAddress) => {
|
|
609961
610249
|
if (!recipient) {
|
|
609962
610250
|
return {
|
|
609963
610251
|
recipientError: new RecipientRequired(""),
|
|
609964
|
-
recipientWarning: null
|
|
610252
|
+
recipientWarning: null,
|
|
610253
|
+
changeAddressError: null,
|
|
610254
|
+
changeAddressWarning: null
|
|
609965
610255
|
};
|
|
609966
610256
|
}
|
|
609967
610257
|
try {
|
|
@@ -609969,17 +610259,33 @@ var validateRecipient = makeLRUCache(async (currency24, recipient) => {
|
|
|
609969
610259
|
currency: currency24,
|
|
609970
610260
|
recipient
|
|
609971
610261
|
});
|
|
610262
|
+
if (changeAddress) {
|
|
610263
|
+
const changeAddressWarning = await isValidRecipient({
|
|
610264
|
+
currency: currency24,
|
|
610265
|
+
recipient: changeAddress
|
|
610266
|
+
});
|
|
610267
|
+
return {
|
|
610268
|
+
recipientError: null,
|
|
610269
|
+
recipientWarning,
|
|
610270
|
+
changeAddressError: null,
|
|
610271
|
+
changeAddressWarning
|
|
610272
|
+
};
|
|
610273
|
+
}
|
|
609972
610274
|
return {
|
|
609973
610275
|
recipientError: null,
|
|
609974
|
-
recipientWarning
|
|
610276
|
+
recipientWarning,
|
|
610277
|
+
changeAddressError: null,
|
|
610278
|
+
changeAddressWarning: null
|
|
609975
610279
|
};
|
|
609976
610280
|
} catch (e96) {
|
|
609977
610281
|
return {
|
|
609978
610282
|
recipientError: e96 instanceof Error ? e96 : null,
|
|
609979
|
-
recipientWarning: null
|
|
610283
|
+
recipientWarning: null,
|
|
610284
|
+
changeAddressError: null,
|
|
610285
|
+
changeAddressWarning: null
|
|
609980
610286
|
};
|
|
609981
610287
|
}
|
|
609982
|
-
}, (currency24, recipient) => `${currency24.id}_${recipient || ""}`);
|
|
610288
|
+
}, (currency24, recipient, changeAddress) => `${currency24.id}_${recipient || ""}_${changeAddress || ""}`);
|
|
609983
610289
|
var isTaprootRecipient = makeLRUCache(async (currency24, recipient) => {
|
|
609984
610290
|
return isTaprootAddress(recipient, currency24.id);
|
|
609985
610291
|
}, (currency24, recipient) => `${currency24.id}_${recipient || ""}`);
|
|
@@ -609994,23 +610300,33 @@ var getTransactionStatus3 = async (account3, transaction) => {
|
|
|
609994
610300
|
const errors2 = {};
|
|
609995
610301
|
const warnings3 = {};
|
|
609996
610302
|
const useAllAmount = !!transaction.useAllAmount;
|
|
609997
|
-
const { recipientError, recipientWarning } = await validateRecipient(account3.currency, transaction.recipient);
|
|
610303
|
+
const { recipientError, recipientWarning, changeAddressError, changeAddressWarning } = await validateRecipient(account3.currency, transaction.recipient, transaction?.changeAddress);
|
|
609998
610304
|
if (recipientError) {
|
|
609999
610305
|
errors2.recipient = recipientError;
|
|
610000
610306
|
}
|
|
610001
610307
|
if (recipientWarning) {
|
|
610002
610308
|
warnings3.recipient = recipientWarning;
|
|
610003
610309
|
}
|
|
610004
|
-
if (
|
|
610310
|
+
if (changeAddressError) {
|
|
610311
|
+
errors2.changeAddress = changeAddressError;
|
|
610312
|
+
}
|
|
610313
|
+
if (changeAddressWarning) {
|
|
610314
|
+
warnings3.changeAddress = changeAddressWarning;
|
|
610315
|
+
}
|
|
610316
|
+
if (transaction.recipient && !errors2.recipient && !errors2.changeAddress && account3.currency.id === "bitcoin" && account3.blockHeight <= MAX_BLOCK_HEIGHT_FOR_TAPROOT) {
|
|
610005
610317
|
const isTaproot = await isTaprootRecipient(account3.currency, transaction.recipient);
|
|
610318
|
+
const changeAddressIsTaproot = transaction.changeAddress ? await isTaprootRecipient(account3.currency, transaction.changeAddress) : false;
|
|
610006
610319
|
if (isTaproot) {
|
|
610007
610320
|
errors2.recipient = new TaprootNotActivated();
|
|
610008
610321
|
}
|
|
610322
|
+
if (changeAddressIsTaproot) {
|
|
610323
|
+
errors2.changeAddress = new TaprootNotActivated();
|
|
610324
|
+
}
|
|
610009
610325
|
}
|
|
610010
610326
|
let txInputs = [];
|
|
610011
610327
|
let txOutputs = [];
|
|
610012
610328
|
let estimatedFees = new import_bignumber79.BigNumber(0);
|
|
610013
|
-
const { opReturnData } = transaction;
|
|
610329
|
+
const { opReturnData, changeAddress } = transaction;
|
|
610014
610330
|
if (!transaction.feePerByte) {
|
|
610015
610331
|
errors2.feePerByte = new FeeNotLoaded();
|
|
610016
610332
|
} else if (transaction.feePerByte.eq(0)) {
|
|
@@ -610083,7 +610399,8 @@ var getTransactionStatus3 = async (account3, transaction) => {
|
|
|
610083
610399
|
opReturnData: opReturnData?.toString(),
|
|
610084
610400
|
totalSpent,
|
|
610085
610401
|
txInputs,
|
|
610086
|
-
txOutputs
|
|
610402
|
+
txOutputs,
|
|
610403
|
+
changeAddress
|
|
610087
610404
|
};
|
|
610088
610405
|
};
|
|
610089
610406
|
|
|
@@ -648827,7 +649144,6 @@ var cosmosConfig = {
|
|
|
648827
649144
|
default: {
|
|
648828
649145
|
lcd: "https://rest.core.persistence.one",
|
|
648829
649146
|
minGasPrice: 0.025,
|
|
648830
|
-
ledgerValidator: "persistencevaloper1fgklp9hemczlwtqp9jqzq3xahh38hznxatty38",
|
|
648831
649147
|
status: {
|
|
648832
649148
|
type: "active"
|
|
648833
649149
|
}
|
|
@@ -648838,7 +649154,6 @@ var cosmosConfig = {
|
|
|
648838
649154
|
default: {
|
|
648839
649155
|
lcd: "https://lcd.quicksilver.zone",
|
|
648840
649156
|
minGasPrice: 25e-4,
|
|
648841
|
-
ledgerValidator: "quickvaloper1fgklp9hemczlwtqp9jqzq3xahh38hznx02n4pp",
|
|
648842
649157
|
status: {
|
|
648843
649158
|
type: "active"
|
|
648844
649159
|
}
|
|
@@ -715235,19 +715550,19 @@ function isHex2(value2, bitLength = -1, ignoreLength) {
|
|
|
715235
715550
|
}
|
|
715236
715551
|
|
|
715237
715552
|
// ../../node_modules/.pnpm/@polkadot+util@12.6.2/node_modules/@polkadot/util/is/object.js
|
|
715238
|
-
function
|
|
715553
|
+
function isObject9(value2) {
|
|
715239
715554
|
return !!value2 && typeof value2 === "object";
|
|
715240
715555
|
}
|
|
715241
715556
|
|
|
715242
715557
|
// ../../node_modules/.pnpm/@polkadot+util@12.6.2/node_modules/@polkadot/util/is/helpers.js
|
|
715243
715558
|
function isOn(...fns) {
|
|
715244
|
-
return (value2) => (
|
|
715559
|
+
return (value2) => (isObject9(value2) || isFunction4(value2)) && fns.every((f70) => isFunction4(value2[f70]));
|
|
715245
715560
|
}
|
|
715246
715561
|
function isOnFunction(...fns) {
|
|
715247
715562
|
return (value2) => isFunction4(value2) && fns.every((f70) => isFunction4(value2[f70]));
|
|
715248
715563
|
}
|
|
715249
715564
|
function isOnObject(...fns) {
|
|
715250
|
-
return (value2) =>
|
|
715565
|
+
return (value2) => isObject9(value2) && fns.every((f70) => isFunction4(value2[f70]));
|
|
715251
715566
|
}
|
|
715252
715567
|
|
|
715253
715568
|
// ../../node_modules/.pnpm/@polkadot+util@12.6.2/node_modules/@polkadot/util/is/toBigInt.js
|
|
@@ -716042,7 +716357,7 @@ var logTo = {
|
|
|
716042
716357
|
warn: "warn"
|
|
716043
716358
|
};
|
|
716044
716359
|
function formatOther(value2) {
|
|
716045
|
-
if (value2 &&
|
|
716360
|
+
if (value2 && isObject9(value2) && value2.constructor === Object) {
|
|
716046
716361
|
const result2 = {};
|
|
716047
716362
|
for (const [k25, v61] of Object.entries(value2)) {
|
|
716048
716363
|
result2[k25] = loggerFormat(v61);
|
|
@@ -726831,7 +727146,7 @@ function decodeAbstractInt(value2, isNegative2) {
|
|
|
726831
727146
|
return value2;
|
|
726832
727147
|
} else if (isBn(value2) || isBigInt2(value2)) {
|
|
726833
727148
|
return value2.toString();
|
|
726834
|
-
} else if (
|
|
727149
|
+
} else if (isObject9(value2)) {
|
|
726835
727150
|
if (isToBn2(value2)) {
|
|
726836
727151
|
return value2.toBn().toString();
|
|
726837
727152
|
}
|
|
@@ -726996,7 +727311,7 @@ function compareMap(a129, b25) {
|
|
|
726996
727311
|
return compareMapArray(a129, b25);
|
|
726997
727312
|
} else if (b25 instanceof Map) {
|
|
726998
727313
|
return compareMapArray(a129, [...b25.entries()]);
|
|
726999
|
-
} else if (
|
|
727314
|
+
} else if (isObject9(b25)) {
|
|
727000
727315
|
return compareMapArray(a129, Object.entries(b25));
|
|
727001
727316
|
}
|
|
727002
727317
|
return false;
|
|
@@ -727011,7 +727326,7 @@ function compareSet(a129, b25) {
|
|
|
727011
727326
|
return compareSetArray(a129, b25);
|
|
727012
727327
|
} else if (b25 instanceof Set) {
|
|
727013
727328
|
return compareSetArray(a129, [...b25.values()]);
|
|
727014
|
-
} else if (
|
|
727329
|
+
} else if (isObject9(b25)) {
|
|
727015
727330
|
return compareSetArray(a129, Object.values(b25));
|
|
727016
727331
|
}
|
|
727017
727332
|
return false;
|
|
@@ -727760,7 +728075,7 @@ function decodeEnum(registry, def, value2, index) {
|
|
|
727760
728075
|
return createFromValue(registry, def, value2);
|
|
727761
728076
|
} else if (isString3(value2)) {
|
|
727762
728077
|
return decodeFromJSON(registry, def, value2.toString());
|
|
727763
|
-
} else if (
|
|
728078
|
+
} else if (isObject9(value2)) {
|
|
727764
728079
|
const key2 = Object.keys(value2)[0];
|
|
727765
728080
|
return decodeFromJSON(registry, def, key2, value2[key2]);
|
|
727766
728081
|
}
|
|
@@ -727898,7 +728213,7 @@ var Enum = class _Enum {
|
|
|
727898
728213
|
return this.toHex() === other;
|
|
727899
728214
|
} else if (other instanceof _Enum) {
|
|
727900
728215
|
return this.index === other.index && this.value.eq(other.value);
|
|
727901
|
-
} else if (
|
|
728216
|
+
} else if (isObject9(other)) {
|
|
727902
728217
|
return this.value.eq(other[this.type]);
|
|
727903
728218
|
}
|
|
727904
728219
|
return this.value.eq(other);
|
|
@@ -728715,7 +729030,7 @@ function decodeStructFromObject(registry, [Types, keys2], value2, jsonMap) {
|
|
|
728715
729030
|
const typeofArray = Array.isArray(value2);
|
|
728716
729031
|
const typeofMap = value2 instanceof Map;
|
|
728717
729032
|
const count = keys2.length;
|
|
728718
|
-
if (!typeofArray && !typeofMap && !
|
|
729033
|
+
if (!typeofArray && !typeofMap && !isObject9(value2)) {
|
|
728719
729034
|
throw new Error(`Struct: Cannot decode value ${stringify8(value2)} (typeof ${typeof value2}), expected an input object, map or array`);
|
|
728720
729035
|
} else if (typeofArray && value2.length !== count) {
|
|
728721
729036
|
throw new Error(`Struct: Unable to map ${stringify8(value2)} array to object with known keys ${keys2.join(", ")}`);
|
|
@@ -728976,7 +729291,7 @@ function decodeMap(registry, keyType, valType, value2) {
|
|
|
728976
729291
|
return decodeMapFromU8a(registry, KeyClass, ValClass, u8aToU8a(value2));
|
|
728977
729292
|
} else if (value2 instanceof Map) {
|
|
728978
729293
|
return decodeMapFromMap(registry, KeyClass, ValClass, value2);
|
|
728979
|
-
} else if (
|
|
729294
|
+
} else if (isObject9(value2)) {
|
|
728980
729295
|
return decodeMapFromMap(registry, KeyClass, ValClass, new Map(Object.entries(value2)));
|
|
728981
729296
|
}
|
|
728982
729297
|
throw new Error("Map: cannot decode type");
|
|
@@ -736077,7 +736392,7 @@ function decodeMortalEra(registry, value2) {
|
|
|
736077
736392
|
return decodeMortalU8a(registry, u8aToU8a(value2));
|
|
736078
736393
|
} else if (!value2) {
|
|
736079
736394
|
return [new u642(registry), new u642(registry)];
|
|
736080
|
-
} else if (
|
|
736395
|
+
} else if (isObject9(value2)) {
|
|
736081
736396
|
return decodeMortalObject(registry, value2);
|
|
736082
736397
|
}
|
|
736083
736398
|
throw new Error("Invalid data passed to Mortal era");
|
|
@@ -736115,7 +736430,7 @@ function decodeExtrinsicEra(value2 = new Uint8Array()) {
|
|
|
736115
736430
|
return decodeExtrinsicEra(value2.toU8a());
|
|
736116
736431
|
} else if (isHex2(value2)) {
|
|
736117
736432
|
return decodeExtrinsicEra(hexToU8a(value2));
|
|
736118
|
-
} else if (
|
|
736433
|
+
} else if (isObject9(value2)) {
|
|
736119
736434
|
const entries = Object.entries(value2).map(([k25, v61]) => [k25.toLowerCase(), v61]);
|
|
736120
736435
|
const mortal = entries.find(([k25]) => k25.toLowerCase() === "mortalera");
|
|
736121
736436
|
const immortal = entries.find(([k25]) => k25.toLowerCase() === "immortalera");
|
|
@@ -736982,7 +737297,7 @@ function decodeCallViaU8a(registry, value2, _meta) {
|
|
|
736982
737297
|
function decodeCall(registry, value2 = new Uint8Array(), _meta) {
|
|
736983
737298
|
if (isU8a(value2) || isHex2(value2)) {
|
|
736984
737299
|
return decodeCallViaU8a(registry, u8aToU8a(value2), _meta);
|
|
736985
|
-
} else if (
|
|
737300
|
+
} else if (isObject9(value2) && value2.callIndex && value2.args) {
|
|
736986
737301
|
return decodeCallViaObject(registry, value2, _meta);
|
|
736987
737302
|
}
|
|
736988
737303
|
throw new Error(`Call: Cannot decode value '${value2}' of type ${typeof value2}`);
|
|
@@ -760271,10 +760586,14 @@ var fetchStakingInfo = async (addr, currency24) => {
|
|
|
760271
760586
|
var fetchValidators2 = async (status = "all", addresses, currency24) => {
|
|
760272
760587
|
const api7 = await apiPromise_default(currency24);
|
|
760273
760588
|
const [activeOpt, allStashes, elected] = await Promise.all([
|
|
760274
|
-
|
|
760275
|
-
api7.
|
|
760276
|
-
api7.
|
|
760589
|
+
// staking can be undefined if the currency is not supported
|
|
760590
|
+
api7.query.staking?.activeEra?.(),
|
|
760591
|
+
api7.derive.staking?.stashes?.(),
|
|
760592
|
+
api7.query.session?.validators?.()
|
|
760277
760593
|
]);
|
|
760594
|
+
if (!activeOpt) {
|
|
760595
|
+
return [];
|
|
760596
|
+
}
|
|
760278
760597
|
const { index: activeEra } = activeOpt.unwrapOrDefault();
|
|
760279
760598
|
let selected = [];
|
|
760280
760599
|
const allIds = allStashes.map((s112) => s112.toString());
|
|
@@ -760421,8 +760740,8 @@ var getSidecarUrl = (route, currency24) => {
|
|
|
760421
760740
|
let sidecarUrl = config4.sidecar.url;
|
|
760422
760741
|
if (currency24?.id === "assethub_polkadot" && route.startsWith("/pallets/staking") && !config4.hasBeenMigrated) {
|
|
760423
760742
|
route = `/rc${route}`;
|
|
760424
|
-
} else if (currency24?.id === "westend" && (route.startsWith("/pallets/staking") || route.startsWith("/transaction
|
|
760425
|
-
sidecarUrl =
|
|
760743
|
+
} else if (currency24?.id === "westend" && (route.startsWith("/pallets/staking") || route.startsWith("/transaction"))) {
|
|
760744
|
+
sidecarUrl = sidecarUrl.replace("/rc", "");
|
|
760426
760745
|
}
|
|
760427
760746
|
return `${sidecarUrl}${route || ""}`;
|
|
760428
760747
|
};
|
|
@@ -760430,6 +760749,7 @@ var getElectionOptimisticThreshold = (currency24) => {
|
|
|
760430
760749
|
return config_default5.getCoinConfig(currency24).staking?.electionStatusThreshold || 25;
|
|
760431
760750
|
};
|
|
760432
760751
|
var VALIDATOR_COMISSION_RATIO = 1e9;
|
|
760752
|
+
var UNSUPPORTED_STAKING_NETWORKS = ["polkadot", "westend"];
|
|
760433
760753
|
async function callSidecar(route, currency24, method2 = "GET", data6) {
|
|
760434
760754
|
const credentials2 = config_default5.getCoinConfig(currency24).sidecar.credentials;
|
|
760435
760755
|
const headers = credentials2 ? { Authorization: "Basic " + credentials2 } : {};
|
|
@@ -760483,6 +760803,8 @@ var fetchChainSpec = async (currency24) => {
|
|
|
760483
760803
|
return data6;
|
|
760484
760804
|
};
|
|
760485
760805
|
var isElectionClosed = async (currency24) => {
|
|
760806
|
+
if (UNSUPPORTED_STAKING_NETWORKS.includes(currency24.id))
|
|
760807
|
+
return true;
|
|
760486
760808
|
const progress2 = await fetchStakingProgress(currency24);
|
|
760487
760809
|
return !progress2.electionStatus?.status?.Open;
|
|
760488
760810
|
};
|
|
@@ -760522,7 +760844,7 @@ var getStakingInfo = async (addr, currency24) => {
|
|
|
760522
760844
|
fetchStashAddr(addr, currency24),
|
|
760523
760845
|
fetchControllerAddr(addr, currency24)
|
|
760524
760846
|
]);
|
|
760525
|
-
if (!controller || currency24
|
|
760847
|
+
if (!controller || UNSUPPORTED_STAKING_NETWORKS.includes(currency24.id)) {
|
|
760526
760848
|
return {
|
|
760527
760849
|
controller: null,
|
|
760528
760850
|
stash: stash || null,
|
|
@@ -760625,6 +760947,14 @@ var getValidators4 = async (stashes2 = "elected", currency24) => {
|
|
|
760625
760947
|
}));
|
|
760626
760948
|
};
|
|
760627
760949
|
var getStakingProgress = async (currency24) => {
|
|
760950
|
+
if (UNSUPPORTED_STAKING_NETWORKS.includes(currency24.id)) {
|
|
760951
|
+
return {
|
|
760952
|
+
electionClosed: true,
|
|
760953
|
+
activeEra: 0,
|
|
760954
|
+
maxNominatorRewardedPerValidator: 128,
|
|
760955
|
+
bondingDuration: 28
|
|
760956
|
+
};
|
|
760957
|
+
}
|
|
760628
760958
|
const [progress2, consts] = await Promise.all([
|
|
760629
760959
|
fetchStakingProgress(currency24),
|
|
760630
760960
|
getConstants2(currency24)
|
|
@@ -760827,7 +761157,7 @@ var shouldRefreshValidators = (previousState, currentState) => {
|
|
|
760827
761157
|
var preload5 = async (currency24) => {
|
|
760828
761158
|
await loadPolkadotCrypto();
|
|
760829
761159
|
await network_default2.getRegistry(currency24);
|
|
760830
|
-
|
|
761160
|
+
let minimumBondBalance;
|
|
760831
761161
|
let currentStakingProgress;
|
|
760832
761162
|
try {
|
|
760833
761163
|
currentStakingProgress = await network_default2.getStakingProgress(currency24);
|
|
@@ -760839,6 +761169,11 @@ var preload5 = async (currency24) => {
|
|
|
760839
761169
|
bondingDuration: 28
|
|
760840
761170
|
};
|
|
760841
761171
|
}
|
|
761172
|
+
try {
|
|
761173
|
+
minimumBondBalance = await network_default2.getMinimumBondBalance(currency24);
|
|
761174
|
+
} catch (e96) {
|
|
761175
|
+
minimumBondBalance = (0, import_bignumber263.BigNumber)(0);
|
|
761176
|
+
}
|
|
760842
761177
|
const { validators: previousValidators, staking: previousStakingProgress } = getCurrentPolkadotPreloadData();
|
|
760843
761178
|
let validators7 = previousValidators;
|
|
760844
761179
|
if (!validators7 || !validators7.length || shouldRefreshValidators(previousStakingProgress, currentStakingProgress)) {
|
|
@@ -762073,12 +762408,12 @@ var TimeoutError = class extends Error {
|
|
|
762073
762408
|
};
|
|
762074
762409
|
|
|
762075
762410
|
// ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/is.js
|
|
762076
|
-
var
|
|
762411
|
+
var isObject10 = (value2) => value2 !== null && typeof value2 === "object";
|
|
762077
762412
|
|
|
762078
762413
|
// ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/merge.js
|
|
762079
762414
|
var validateAndMerge = (...sources) => {
|
|
762080
762415
|
for (const source of sources) {
|
|
762081
|
-
if ((!
|
|
762416
|
+
if ((!isObject10(source) || Array.isArray(source)) && source !== void 0) {
|
|
762082
762417
|
throw new TypeError("The `options` argument must be an object");
|
|
762083
762418
|
}
|
|
762084
762419
|
}
|
|
@@ -762116,18 +762451,18 @@ var deepMerge = (...sources) => {
|
|
|
762116
762451
|
returnValue = [];
|
|
762117
762452
|
}
|
|
762118
762453
|
returnValue = [...returnValue, ...source];
|
|
762119
|
-
} else if (
|
|
762454
|
+
} else if (isObject10(source)) {
|
|
762120
762455
|
for (let [key2, value2] of Object.entries(source)) {
|
|
762121
|
-
if (
|
|
762456
|
+
if (isObject10(value2) && key2 in returnValue) {
|
|
762122
762457
|
value2 = deepMerge(returnValue[key2], value2);
|
|
762123
762458
|
}
|
|
762124
762459
|
returnValue = { ...returnValue, [key2]: value2 };
|
|
762125
762460
|
}
|
|
762126
|
-
if (
|
|
762461
|
+
if (isObject10(source.hooks)) {
|
|
762127
762462
|
hooks = mergeHooks(hooks, source.hooks);
|
|
762128
762463
|
returnValue.hooks = hooks;
|
|
762129
762464
|
}
|
|
762130
|
-
if (
|
|
762465
|
+
if (isObject10(source.headers)) {
|
|
762131
762466
|
headers = mergeHeaders(headers, source.headers);
|
|
762132
762467
|
returnValue.headers = headers;
|
|
762133
762468
|
}
|
|
@@ -762579,13 +762914,13 @@ var StructError = class extends TypeError {
|
|
|
762579
762914
|
}
|
|
762580
762915
|
};
|
|
762581
762916
|
function isIterable2(x26) {
|
|
762582
|
-
return
|
|
762917
|
+
return isObject11(x26) && typeof x26[Symbol.iterator] === "function";
|
|
762583
762918
|
}
|
|
762584
|
-
function
|
|
762919
|
+
function isObject11(x26) {
|
|
762585
762920
|
return typeof x26 === "object" && x26 != null;
|
|
762586
762921
|
}
|
|
762587
762922
|
function isNonArrayObject(x26) {
|
|
762588
|
-
return
|
|
762923
|
+
return isObject11(x26) && !Array.isArray(x26);
|
|
762589
762924
|
}
|
|
762590
762925
|
function print4(value2) {
|
|
762591
762926
|
if (typeof value2 === "symbol") {
|
|
@@ -762662,7 +762997,7 @@ function* run(value2, struct39, options24 = {}) {
|
|
|
762662
762997
|
value2.set(k25, v61);
|
|
762663
762998
|
} else if (value2 instanceof Set) {
|
|
762664
762999
|
value2.add(v61);
|
|
762665
|
-
} else if (
|
|
763000
|
+
} else if (isObject11(value2)) {
|
|
762666
763001
|
if (v61 !== void 0 || k25 in value2)
|
|
762667
763002
|
value2[k25] = v61;
|
|
762668
763003
|
}
|
|
@@ -762860,7 +763195,7 @@ function record2(Key3, Value) {
|
|
|
762860
763195
|
type: "record",
|
|
762861
763196
|
schema: null,
|
|
762862
763197
|
*entries(value2) {
|
|
762863
|
-
if (
|
|
763198
|
+
if (isObject11(value2)) {
|
|
762864
763199
|
for (const k25 in value2) {
|
|
762865
763200
|
const v61 = value2[k25];
|
|
762866
763201
|
yield [k25, k25, Key3];
|
|
@@ -762908,7 +763243,7 @@ function type2(schema4) {
|
|
|
762908
763243
|
type: "type",
|
|
762909
763244
|
schema: schema4,
|
|
762910
763245
|
*entries(value2) {
|
|
762911
|
-
if (
|
|
763246
|
+
if (isObject11(value2)) {
|
|
762912
763247
|
for (const k25 of keys2) {
|
|
762913
763248
|
yield [k25, value2[k25], schema4[k25]];
|
|
762914
763249
|
}
|
|
@@ -773518,9 +773853,9 @@ var StructError2 = class extends TypeError {
|
|
|
773518
773853
|
}
|
|
773519
773854
|
};
|
|
773520
773855
|
function isIterable3(x26) {
|
|
773521
|
-
return
|
|
773856
|
+
return isObject12(x26) && typeof x26[Symbol.iterator] === "function";
|
|
773522
773857
|
}
|
|
773523
|
-
function
|
|
773858
|
+
function isObject12(x26) {
|
|
773524
773859
|
return typeof x26 === "object" && x26 != null;
|
|
773525
773860
|
}
|
|
773526
773861
|
function print5(value2) {
|
|
@@ -773595,7 +773930,7 @@ function* run2(value2, struct39, options24) {
|
|
|
773595
773930
|
};
|
|
773596
773931
|
if (coerce6) {
|
|
773597
773932
|
value2 = struct39.coercer(value2, ctx);
|
|
773598
|
-
if (mask4 && struct39.type !== "type" &&
|
|
773933
|
+
if (mask4 && struct39.type !== "type" && isObject12(struct39.schema) && isObject12(value2) && !Array.isArray(value2)) {
|
|
773599
773934
|
for (const key2 in value2) {
|
|
773600
773935
|
if (struct39.schema[key2] === void 0) {
|
|
773601
773936
|
delete value2[key2];
|
|
@@ -773627,7 +773962,7 @@ function* run2(value2, struct39, options24) {
|
|
|
773627
773962
|
value2.set(k25, v61);
|
|
773628
773963
|
} else if (value2 instanceof Set) {
|
|
773629
773964
|
value2.add(v61);
|
|
773630
|
-
} else if (
|
|
773965
|
+
} else if (isObject12(value2)) {
|
|
773631
773966
|
if (v61 !== void 0 || k25 in value2)
|
|
773632
773967
|
value2[k25] = v61;
|
|
773633
773968
|
}
|
|
@@ -773869,7 +774204,7 @@ function object3(schema4) {
|
|
|
773869
774204
|
type: "object",
|
|
773870
774205
|
schema: schema4 ? schema4 : null,
|
|
773871
774206
|
*entries(value2) {
|
|
773872
|
-
if (schema4 &&
|
|
774207
|
+
if (schema4 && isObject12(value2)) {
|
|
773873
774208
|
const unknowns = new Set(Object.keys(value2));
|
|
773874
774209
|
for (const key2 of knowns) {
|
|
773875
774210
|
unknowns.delete(key2);
|
|
@@ -773881,10 +774216,10 @@ function object3(schema4) {
|
|
|
773881
774216
|
}
|
|
773882
774217
|
},
|
|
773883
774218
|
validator(value2) {
|
|
773884
|
-
return
|
|
774219
|
+
return isObject12(value2) || `Expected an object, but received: ${print5(value2)}`;
|
|
773885
774220
|
},
|
|
773886
774221
|
coercer(value2) {
|
|
773887
|
-
return
|
|
774222
|
+
return isObject12(value2) ? {
|
|
773888
774223
|
...value2
|
|
773889
774224
|
} : value2;
|
|
773890
774225
|
}
|
|
@@ -773908,14 +774243,14 @@ function type3(schema4) {
|
|
|
773908
774243
|
type: "type",
|
|
773909
774244
|
schema: schema4,
|
|
773910
774245
|
*entries(value2) {
|
|
773911
|
-
if (
|
|
774246
|
+
if (isObject12(value2)) {
|
|
773912
774247
|
for (const k25 of keys2) {
|
|
773913
774248
|
yield [k25, value2[k25], schema4[k25]];
|
|
773914
774249
|
}
|
|
773915
774250
|
}
|
|
773916
774251
|
},
|
|
773917
774252
|
validator(value2) {
|
|
773918
|
-
return
|
|
774253
|
+
return isObject12(value2) || `Expected an object, but received: ${print5(value2)}`;
|
|
773919
774254
|
}
|
|
773920
774255
|
});
|
|
773921
774256
|
}
|
|
@@ -805063,39 +805398,39 @@ function makeCliTools21() {
|
|
|
805063
805398
|
}
|
|
805064
805399
|
|
|
805065
805400
|
// ../../libs/ledgerjs/packages/hw-app-vet/lib-es/constants.js
|
|
805066
|
-
var
|
|
805067
|
-
(function(
|
|
805068
|
-
|
|
805069
|
-
|
|
805070
|
-
|
|
805071
|
-
|
|
805072
|
-
|
|
805073
|
-
|
|
805074
|
-
|
|
805075
|
-
|
|
805076
|
-
|
|
805077
|
-
|
|
805078
|
-
|
|
805079
|
-
|
|
805080
|
-
|
|
805081
|
-
|
|
805082
|
-
|
|
805083
|
-
|
|
805084
|
-
|
|
805085
|
-
|
|
805086
|
-
|
|
805087
|
-
|
|
805088
|
-
|
|
805089
|
-
|
|
805090
|
-
|
|
805091
|
-
|
|
805092
|
-
|
|
805093
|
-
|
|
805094
|
-
|
|
805095
|
-
|
|
805096
|
-
|
|
805097
|
-
|
|
805098
|
-
})(
|
|
805401
|
+
var StatusCodes4;
|
|
805402
|
+
(function(StatusCodes5) {
|
|
805403
|
+
StatusCodes5[StatusCodes5["PIN_REMAINING_ATTEMPTS"] = 25536] = "PIN_REMAINING_ATTEMPTS";
|
|
805404
|
+
StatusCodes5[StatusCodes5["INCORRECT_LENGTH"] = 26368] = "INCORRECT_LENGTH";
|
|
805405
|
+
StatusCodes5[StatusCodes5["COMMAND_INCOMPATIBLE_FILE_STRUCTURE"] = 27009] = "COMMAND_INCOMPATIBLE_FILE_STRUCTURE";
|
|
805406
|
+
StatusCodes5[StatusCodes5["SECURITY_STATUS_NOT_SATISFIED"] = 27010] = "SECURITY_STATUS_NOT_SATISFIED";
|
|
805407
|
+
StatusCodes5[StatusCodes5["CONDITIONS_OF_USE_NOT_SATISFIED"] = 27013] = "CONDITIONS_OF_USE_NOT_SATISFIED";
|
|
805408
|
+
StatusCodes5[StatusCodes5["INCORRECT_DATA"] = 27264] = "INCORRECT_DATA";
|
|
805409
|
+
StatusCodes5[StatusCodes5["NOT_ENOUGH_MEMORY_SPACE"] = 27268] = "NOT_ENOUGH_MEMORY_SPACE";
|
|
805410
|
+
StatusCodes5[StatusCodes5["REFERENCED_DATA_NOT_FOUND"] = 27272] = "REFERENCED_DATA_NOT_FOUND";
|
|
805411
|
+
StatusCodes5[StatusCodes5["FILE_ALREADY_EXISTS"] = 27273] = "FILE_ALREADY_EXISTS";
|
|
805412
|
+
StatusCodes5[StatusCodes5["INCORRECT_P1_P2"] = 27392] = "INCORRECT_P1_P2";
|
|
805413
|
+
StatusCodes5[StatusCodes5["INS_NOT_SUPPORTED"] = 27904] = "INS_NOT_SUPPORTED";
|
|
805414
|
+
StatusCodes5[StatusCodes5["CLA_NOT_SUPPORTED"] = 28160] = "CLA_NOT_SUPPORTED";
|
|
805415
|
+
StatusCodes5[StatusCodes5["TECHNICAL_PROBLEM"] = 28416] = "TECHNICAL_PROBLEM";
|
|
805416
|
+
StatusCodes5[StatusCodes5["OK"] = 36864] = "OK";
|
|
805417
|
+
StatusCodes5[StatusCodes5["MEMORY_PROBLEM"] = 37440] = "MEMORY_PROBLEM";
|
|
805418
|
+
StatusCodes5[StatusCodes5["NO_EF_SELECTED"] = 37888] = "NO_EF_SELECTED";
|
|
805419
|
+
StatusCodes5[StatusCodes5["INVALID_OFFSET"] = 37890] = "INVALID_OFFSET";
|
|
805420
|
+
StatusCodes5[StatusCodes5["FILE_NOT_FOUND"] = 37892] = "FILE_NOT_FOUND";
|
|
805421
|
+
StatusCodes5[StatusCodes5["INCONSISTENT_FILE"] = 37896] = "INCONSISTENT_FILE";
|
|
805422
|
+
StatusCodes5[StatusCodes5["ALGORITHM_NOT_SUPPORTED"] = 38020] = "ALGORITHM_NOT_SUPPORTED";
|
|
805423
|
+
StatusCodes5[StatusCodes5["INVALID_KCV"] = 38021] = "INVALID_KCV";
|
|
805424
|
+
StatusCodes5[StatusCodes5["CODE_NOT_INITIALIZED"] = 38914] = "CODE_NOT_INITIALIZED";
|
|
805425
|
+
StatusCodes5[StatusCodes5["ACCESS_CONDITION_NOT_FULFILLED"] = 38916] = "ACCESS_CONDITION_NOT_FULFILLED";
|
|
805426
|
+
StatusCodes5[StatusCodes5["CONTRADICTION_SECRET_CODE_STATUS"] = 38920] = "CONTRADICTION_SECRET_CODE_STATUS";
|
|
805427
|
+
StatusCodes5[StatusCodes5["CONTRADICTION_INVALIDATION"] = 38928] = "CONTRADICTION_INVALIDATION";
|
|
805428
|
+
StatusCodes5[StatusCodes5["CODE_BLOCKED"] = 38976] = "CODE_BLOCKED";
|
|
805429
|
+
StatusCodes5[StatusCodes5["MAX_VALUE_REACHED"] = 38992] = "MAX_VALUE_REACHED";
|
|
805430
|
+
StatusCodes5[StatusCodes5["GP_AUTH_FAILED"] = 25344] = "GP_AUTH_FAILED";
|
|
805431
|
+
StatusCodes5[StatusCodes5["LICENSING"] = 28482] = "LICENSING";
|
|
805432
|
+
StatusCodes5[StatusCodes5["HALTED"] = 28586] = "HALTED";
|
|
805433
|
+
})(StatusCodes4 || (StatusCodes4 = {}));
|
|
805099
805434
|
|
|
805100
805435
|
// ../../libs/ledgerjs/packages/hw-app-vet/lib-es/utils.js
|
|
805101
805436
|
var import_buffer7 = require("buffer");
|
|
@@ -805160,7 +805495,7 @@ var Vet = class {
|
|
|
805160
805495
|
}
|
|
805161
805496
|
async getAppConfiguration() {
|
|
805162
805497
|
const response = await this.transport.send(224, 6, 0, 0, import_buffer8.Buffer.alloc(0), [
|
|
805163
|
-
|
|
805498
|
+
StatusCodes4.OK
|
|
805164
805499
|
]);
|
|
805165
805500
|
return response.slice(0, 4);
|
|
805166
805501
|
}
|
|
@@ -805173,7 +805508,7 @@ var Vet = class {
|
|
|
805173
805508
|
* @example
|
|
805174
805509
|
* vet.getAddress("m/44'/818'/0'/0").then(o => o.address)
|
|
805175
805510
|
*/
|
|
805176
|
-
async getAddress(path4, display, chainCode, statusCodes = [
|
|
805511
|
+
async getAddress(path4, display, chainCode, statusCodes = [StatusCodes4.OK]) {
|
|
805177
805512
|
const paths = splitPath5(path4);
|
|
805178
805513
|
const buffer2 = import_buffer8.Buffer.alloc(1 + paths.length * 4);
|
|
805179
805514
|
buffer2[0] = paths.length;
|
|
@@ -805203,7 +805538,7 @@ var Vet = class {
|
|
|
805203
805538
|
const responses = [];
|
|
805204
805539
|
for (let i104 = 0; i104 < buffers.length; i104++) {
|
|
805205
805540
|
const data6 = buffers[i104];
|
|
805206
|
-
responses.push(await this.transport.send(224, 4, i104 === 0 ? 0 : 128, 0, data6, [
|
|
805541
|
+
responses.push(await this.transport.send(224, 4, i104 === 0 ? 0 : 128, 0, data6, [StatusCodes4.OK]).catch((e96) => {
|
|
805207
805542
|
throw remapTransactionRelatedErrors4(e96);
|
|
805208
805543
|
}));
|
|
805209
805544
|
}
|
|
@@ -821413,7 +821748,7 @@ var TezosToolkitConfigError = class extends TaquitoError {
|
|
|
821413
821748
|
};
|
|
821414
821749
|
var UnsupportedActionError = class extends TaquitoError {
|
|
821415
821750
|
};
|
|
821416
|
-
var
|
|
821751
|
+
var NetworkError4 = class extends TaquitoError {
|
|
821417
821752
|
};
|
|
821418
821753
|
var InvalidAddressError2 = class extends ParameterValidationError {
|
|
821419
821754
|
constructor(address3, errorDetail) {
|
|
@@ -825335,7 +825670,7 @@ function __awaiter9(thisArg, _arguments, P27, generator) {
|
|
|
825335
825670
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
825336
825671
|
});
|
|
825337
825672
|
}
|
|
825338
|
-
var HttpRequestFailed = class extends
|
|
825673
|
+
var HttpRequestFailed = class extends NetworkError4 {
|
|
825339
825674
|
constructor(method2, url4, cause) {
|
|
825340
825675
|
super();
|
|
825341
825676
|
this.method = method2;
|
|
@@ -825345,7 +825680,7 @@ var HttpRequestFailed = class extends NetworkError3 {
|
|
|
825345
825680
|
this.message = `${method2} ${url4} ${String(cause)}`;
|
|
825346
825681
|
}
|
|
825347
825682
|
};
|
|
825348
|
-
var HttpResponseError = class extends
|
|
825683
|
+
var HttpResponseError = class extends NetworkError4 {
|
|
825349
825684
|
constructor(message2, status, statusText, body, url4) {
|
|
825350
825685
|
super();
|
|
825351
825686
|
this.message = message2;
|
|
@@ -825356,7 +825691,7 @@ var HttpResponseError = class extends NetworkError3 {
|
|
|
825356
825691
|
this.name = "HttpResponseError";
|
|
825357
825692
|
}
|
|
825358
825693
|
};
|
|
825359
|
-
var HttpTimeoutError = class extends
|
|
825694
|
+
var HttpTimeoutError = class extends NetworkError4 {
|
|
825360
825695
|
constructor(timeout10, url4) {
|
|
825361
825696
|
super();
|
|
825362
825697
|
this.timeout = timeout10;
|
|
@@ -838542,7 +838877,7 @@ var InvalidConfirmationCountError = class extends ParameterValidationError {
|
|
|
838542
838877
|
this.message = `Invalid confirmation count ${invalidConfirmations} expecting at least 1`;
|
|
838543
838878
|
}
|
|
838544
838879
|
};
|
|
838545
|
-
var ConfirmationTimeoutError = class extends
|
|
838880
|
+
var ConfirmationTimeoutError = class extends NetworkError4 {
|
|
838546
838881
|
constructor(message2) {
|
|
838547
838882
|
super();
|
|
838548
838883
|
this.message = message2;
|
|
@@ -839305,7 +839640,7 @@ var ConfirmationUndefinedError = class extends TezosToolkitConfigError {
|
|
|
839305
839640
|
this.message = "Default confirmation count can not be undefined";
|
|
839306
839641
|
}
|
|
839307
839642
|
};
|
|
839308
|
-
var ObservableError = class extends
|
|
839643
|
+
var ObservableError = class extends NetworkError4 {
|
|
839309
839644
|
constructor(message2) {
|
|
839310
839645
|
super();
|
|
839311
839646
|
this.message = message2;
|
|
@@ -847253,7 +847588,8 @@ var fromTransactionStatusRaw2 = (tr3) => {
|
|
|
847253
847588
|
...common,
|
|
847254
847589
|
txInputs: tr3.txInputs ? tr3.txInputs.map(fromBitcoinInputRaw) : void 0,
|
|
847255
847590
|
txOutputs: tr3.txOutputs ? tr3.txOutputs.map(fromBitcoinOutputRaw) : void 0,
|
|
847256
|
-
opReturnData: tr3.opReturnData
|
|
847591
|
+
opReturnData: tr3.opReturnData,
|
|
847592
|
+
changeAddress: tr3.changeAddress
|
|
847257
847593
|
};
|
|
847258
847594
|
};
|
|
847259
847595
|
var toTransactionStatusRaw2 = (t107) => {
|
|
@@ -847262,7 +847598,8 @@ var toTransactionStatusRaw2 = (t107) => {
|
|
|
847262
847598
|
...common,
|
|
847263
847599
|
txInputs: t107.txInputs ? t107.txInputs.map(toBitcoinInputRaw) : void 0,
|
|
847264
847600
|
txOutputs: t107.txOutputs ? t107.txOutputs.map(toBitcoinOutputRaw) : void 0,
|
|
847265
|
-
opReturnData: t107.opReturnData
|
|
847601
|
+
opReturnData: t107.opReturnData,
|
|
847602
|
+
changeAddress: t107.changeAddress
|
|
847266
847603
|
};
|
|
847267
847604
|
};
|
|
847268
847605
|
var formatTransactionStatus2 = (t107, ts2, mainAccount) => {
|
|
@@ -849005,7 +849342,7 @@ var TransactionExpiredError = createCustomErrorClass("TransactionExpired");
|
|
|
849005
849342
|
var ConnectAppTimeout = createCustomErrorClass("ConnectAppTimeout");
|
|
849006
849343
|
var ConnectManagerTimeout = createCustomErrorClass("ConnectManagerTimeout");
|
|
849007
849344
|
var GetAppAndVersionUnsupportedFormat = createCustomErrorClass("GetAppAndVersionUnsupportedFormat");
|
|
849008
|
-
var
|
|
849345
|
+
var FeeEstimationFailed4 = createCustomErrorClass("FeeEstimationFailed");
|
|
849009
849346
|
var TransactionRefusedOnDevice = createCustomErrorClass("TransactionRefusedOnDevice");
|
|
849010
849347
|
var LanguageInstallRefusedOnDevice = createCustomErrorClass("LanguageInstallRefusedOnDevice");
|
|
849011
849348
|
var ImageLoadRefusedOnDevice = createCustomErrorClass("ImageLoadRefusedOnDevice");
|
|
@@ -854171,7 +854508,7 @@ var polkadotConfig = {
|
|
|
854171
854508
|
url: "https://polkadot-metadata-shortener.api.live.ledger.com/node/metadata/hash",
|
|
854172
854509
|
id: "dot-hub"
|
|
854173
854510
|
},
|
|
854174
|
-
hasBeenMigrated:
|
|
854511
|
+
hasBeenMigrated: true
|
|
854175
854512
|
}
|
|
854176
854513
|
},
|
|
854177
854514
|
config_currency_westend: {
|
|
@@ -870299,8 +870636,8 @@ var import_rxjs173 = require("rxjs");
|
|
|
870299
870636
|
var import_operators17 = require("rxjs/operators");
|
|
870300
870637
|
|
|
870301
870638
|
// ../../libs/ledger-live-common/lib-es/hw/getAppAndVersion.js
|
|
870302
|
-
var getAppAndVersion_default = async (transport) => {
|
|
870303
|
-
const r88 = await transport.send(176, 1, 0, 0);
|
|
870639
|
+
var getAppAndVersion_default = async (transport, { abortTimeoutMs } = {}) => {
|
|
870640
|
+
const r88 = await transport.send(176, 1, 0, 0, void 0, void 0, { abortTimeoutMs });
|
|
870304
870641
|
let i104 = 0;
|
|
870305
870642
|
const format6 = r88[i104++];
|
|
870306
870643
|
if (format6 !== 1) {
|
|
@@ -872175,10 +872512,10 @@ var import_invariant115 = __toESM(require("invariant"));
|
|
|
872175
872512
|
var import_react16 = require("react");
|
|
872176
872513
|
var import_rxjs194 = require("rxjs");
|
|
872177
872514
|
|
|
872178
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-client@1.12.
|
|
872515
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-client@1.12.6_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-client/lib-es/TransportWalletAPI.js
|
|
872179
872516
|
init_Transport();
|
|
872180
872517
|
|
|
872181
|
-
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-client@1.12.
|
|
872518
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-client@1.12.6_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-client/lib-es/WalletAPIClient.js
|
|
872182
872519
|
var defaultLogger2 = new Logger("Wallet-API-Client");
|
|
872183
872520
|
|
|
872184
872521
|
// ../../libs/wallet-api-acre-module/lib-es/types.js
|
|
@@ -873038,13 +873375,13 @@ var GenerateAesKeyFailed = createCustomErrorClass("GenerateAesKeyFailed");
|
|
|
873038
873375
|
var InternalCryptoOperationFailed = createCustomErrorClass("InternalCryptoOperationFailed");
|
|
873039
873376
|
var InternalComputeAesCmacFailed = createCustomErrorClass("InternalComputeAesCmacFailed");
|
|
873040
873377
|
var EncryptAppStorageFailed = createCustomErrorClass("EncryptAppStorageFailed");
|
|
873041
|
-
var
|
|
873378
|
+
var PinNotSet4 = createCustomErrorClass("PinNotSet");
|
|
873042
873379
|
var InvalidBackupHeader = createCustomErrorClass("InvalidBackupHeader");
|
|
873043
873380
|
var InvalidBackupLength = createCustomErrorClass("InvalidBackupLength");
|
|
873044
873381
|
var InvalidBackupState = createCustomErrorClass("InvalidBackupState");
|
|
873045
873382
|
var InvalidRestoreState = createCustomErrorClass("InvalidRestoreState");
|
|
873046
873383
|
var InvalidChunkLength = createCustomErrorClass("InvalidChunkLength");
|
|
873047
|
-
var
|
|
873384
|
+
var UserRefusedOnDevice4 = createCustomErrorClass("UserRefusedOnDevice");
|
|
873048
873385
|
|
|
873049
873386
|
// ../../libs/device-core/lib-es/commands/use-cases/app-backup/backupAppStorage.js
|
|
873050
873387
|
var BACKUP_APP_STORAGE = [224, 107, 0, 0];
|
|
@@ -873288,9 +873625,9 @@ function parseResponse6(data6) {
|
|
|
873288
873625
|
case StatusCodes.DEVICE_IN_RECOVERY_MODE:
|
|
873289
873626
|
break;
|
|
873290
873627
|
case StatusCodes.USER_REFUSED_ON_DEVICE:
|
|
873291
|
-
throw new
|
|
873628
|
+
throw new UserRefusedOnDevice4("User refused on device.");
|
|
873292
873629
|
case StatusCodes.PIN_NOT_SET:
|
|
873293
|
-
throw new
|
|
873630
|
+
throw new PinNotSet4("Invalid consent, PIN is not set.");
|
|
873294
873631
|
case StatusCodes.INVALID_APP_NAME_LENGTH:
|
|
873295
873632
|
throw new InvalidAppNameLength("Invalid application name length, two chars minimum.");
|
|
873296
873633
|
case StatusCodes.INVALID_BACKUP_LENGTH:
|
|
@@ -874710,7 +875047,7 @@ function restoreAppData(transport, appName, appData) {
|
|
|
874710
875047
|
subscriber.complete();
|
|
874711
875048
|
return (0, import_rxjs206.of)(null);
|
|
874712
875049
|
}
|
|
874713
|
-
if (e96 instanceof
|
|
875050
|
+
if (e96 instanceof UserRefusedOnDevice4) {
|
|
874714
875051
|
subscriber.next({
|
|
874715
875052
|
type: RestoreAppDataEventType.UserRefused
|
|
874716
875053
|
});
|