@ledgerhq/live-cli 24.28.0-nightly.20251110130205 → 24.28.0-nightly.20251112023812
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 +488 -774
- package/package.json +2 -2
package/lib/cli.js
CHANGED
|
@@ -326,11 +326,11 @@ var init_lib_es = __esm({
|
|
|
326
326
|
DBNotReset = createCustomErrorClass("DBNotReset");
|
|
327
327
|
SequenceNumberError = createCustomErrorClass("SequenceNumberError");
|
|
328
328
|
DisabledTransactionBroadcastError = createCustomErrorClass("DisabledTransactionBroadcastError");
|
|
329
|
-
(function(
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
329
|
+
(function(HwTransportErrorType3) {
|
|
330
|
+
HwTransportErrorType3["Unknown"] = "Unknown";
|
|
331
|
+
HwTransportErrorType3["LocationServicesDisabled"] = "LocationServicesDisabled";
|
|
332
|
+
HwTransportErrorType3["LocationServicesUnauthorized"] = "LocationServicesUnauthorized";
|
|
333
|
+
HwTransportErrorType3["BluetoothScanStartFailed"] = "BluetoothScanStartFailed";
|
|
334
334
|
})(HwTransportErrorType || (HwTransportErrorType = {}));
|
|
335
335
|
TransportError = class extends Error {
|
|
336
336
|
id;
|
|
@@ -34174,6 +34174,320 @@ var require_dist2 = __commonJS({
|
|
|
34174
34174
|
}
|
|
34175
34175
|
});
|
|
34176
34176
|
|
|
34177
|
+
// ../../node_modules/.pnpm/@ledgerhq+errors@6.25.0/node_modules/@ledgerhq/errors/lib-es/helpers.js
|
|
34178
|
+
function isObject4(value2) {
|
|
34179
|
+
return typeof value2 === "object";
|
|
34180
|
+
}
|
|
34181
|
+
var errorClasses2, deserializers2, addCustomErrorDeserializer2, createCustomErrorClass2;
|
|
34182
|
+
var init_helpers2 = __esm({
|
|
34183
|
+
"../../node_modules/.pnpm/@ledgerhq+errors@6.25.0/node_modules/@ledgerhq/errors/lib-es/helpers.js"() {
|
|
34184
|
+
"use strict";
|
|
34185
|
+
errorClasses2 = {};
|
|
34186
|
+
deserializers2 = {};
|
|
34187
|
+
addCustomErrorDeserializer2 = (name2, deserializer) => {
|
|
34188
|
+
deserializers2[name2] = deserializer;
|
|
34189
|
+
};
|
|
34190
|
+
createCustomErrorClass2 = (name2) => {
|
|
34191
|
+
class CustomErrorClass extends Error {
|
|
34192
|
+
cause;
|
|
34193
|
+
constructor(message2, fields, options24) {
|
|
34194
|
+
super(message2 || name2, options24);
|
|
34195
|
+
Object.setPrototypeOf(this, CustomErrorClass.prototype);
|
|
34196
|
+
this.name = name2;
|
|
34197
|
+
if (fields) {
|
|
34198
|
+
for (const k17 in fields) {
|
|
34199
|
+
this[k17] = fields[k17];
|
|
34200
|
+
}
|
|
34201
|
+
}
|
|
34202
|
+
if (options24 && isObject4(options24) && "cause" in options24 && !this.cause) {
|
|
34203
|
+
const cause = options24.cause;
|
|
34204
|
+
this.cause = cause;
|
|
34205
|
+
if ("stack" in cause) {
|
|
34206
|
+
this.stack = this.stack + "\nCAUSE: " + cause.stack;
|
|
34207
|
+
}
|
|
34208
|
+
}
|
|
34209
|
+
}
|
|
34210
|
+
}
|
|
34211
|
+
errorClasses2[name2] = CustomErrorClass;
|
|
34212
|
+
return CustomErrorClass;
|
|
34213
|
+
};
|
|
34214
|
+
}
|
|
34215
|
+
});
|
|
34216
|
+
|
|
34217
|
+
// ../../node_modules/.pnpm/@ledgerhq+errors@6.25.0/node_modules/@ledgerhq/errors/lib-es/index.js
|
|
34218
|
+
function getAltStatusMessage2(code) {
|
|
34219
|
+
switch (code) {
|
|
34220
|
+
case 26368:
|
|
34221
|
+
return "Incorrect length";
|
|
34222
|
+
case 26624:
|
|
34223
|
+
return "Missing critical parameter";
|
|
34224
|
+
case 27010:
|
|
34225
|
+
return "Security not satisfied (dongle locked or have invalid access rights)";
|
|
34226
|
+
case 27013:
|
|
34227
|
+
return "Condition of use not satisfied (denied by the user?)";
|
|
34228
|
+
case 27264:
|
|
34229
|
+
return "Invalid data received";
|
|
34230
|
+
case 27392:
|
|
34231
|
+
return "Invalid parameter received";
|
|
34232
|
+
case 21781:
|
|
34233
|
+
return "Locked device";
|
|
34234
|
+
}
|
|
34235
|
+
if (28416 <= code && code <= 28671) {
|
|
34236
|
+
return "Internal error, please report";
|
|
34237
|
+
}
|
|
34238
|
+
}
|
|
34239
|
+
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, 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, HederaInsufficientFundsForAssociation, HederaRecipientTokenAssociationRequired, HederaRecipientTokenAssociationUnverified, LanguageNotFound2, NoDBPathGiven2, DBWrongPassword2, DBNotReset2, SequenceNumberError2, DisabledTransactionBroadcastError2, HwTransportErrorType2, TransportError2, StatusCodes2, TransportStatusError2, LockedDeviceError2;
|
|
34240
|
+
var init_lib_es3 = __esm({
|
|
34241
|
+
"../../node_modules/.pnpm/@ledgerhq+errors@6.25.0/node_modules/@ledgerhq/errors/lib-es/index.js"() {
|
|
34242
|
+
"use strict";
|
|
34243
|
+
init_helpers2();
|
|
34244
|
+
AccountNameRequiredError2 = createCustomErrorClass2("AccountNameRequired");
|
|
34245
|
+
AccountNotSupported2 = createCustomErrorClass2("AccountNotSupported");
|
|
34246
|
+
AccountAwaitingSendPendingOperations2 = createCustomErrorClass2("AccountAwaitingSendPendingOperations");
|
|
34247
|
+
AmountRequired2 = createCustomErrorClass2("AmountRequired");
|
|
34248
|
+
BluetoothRequired2 = createCustomErrorClass2("BluetoothRequired");
|
|
34249
|
+
BtcUnmatchedApp2 = createCustomErrorClass2("BtcUnmatchedApp");
|
|
34250
|
+
CantOpenDevice2 = createCustomErrorClass2("CantOpenDevice");
|
|
34251
|
+
CashAddrNotSupported2 = createCustomErrorClass2("CashAddrNotSupported");
|
|
34252
|
+
ClaimRewardsFeesWarning2 = createCustomErrorClass2("ClaimRewardsFeesWarning");
|
|
34253
|
+
CurrencyNotSupported2 = createCustomErrorClass2("CurrencyNotSupported");
|
|
34254
|
+
DeviceAppVerifyNotSupported2 = createCustomErrorClass2("DeviceAppVerifyNotSupported");
|
|
34255
|
+
DeviceGenuineSocketEarlyClose2 = createCustomErrorClass2("DeviceGenuineSocketEarlyClose");
|
|
34256
|
+
DeviceNotGenuineError2 = createCustomErrorClass2("DeviceNotGenuine");
|
|
34257
|
+
DeviceOnDashboardExpected2 = createCustomErrorClass2("DeviceOnDashboardExpected");
|
|
34258
|
+
DeviceOnDashboardUnexpected2 = createCustomErrorClass2("DeviceOnDashboardUnexpected");
|
|
34259
|
+
DeviceInOSUExpected2 = createCustomErrorClass2("DeviceInOSUExpected");
|
|
34260
|
+
DeviceHalted2 = createCustomErrorClass2("DeviceHalted");
|
|
34261
|
+
DeviceNameInvalid2 = createCustomErrorClass2("DeviceNameInvalid");
|
|
34262
|
+
DeviceSocketFail2 = createCustomErrorClass2("DeviceSocketFail");
|
|
34263
|
+
DeviceSocketNoBulkStatus2 = createCustomErrorClass2("DeviceSocketNoBulkStatus");
|
|
34264
|
+
DeviceNeedsRestart2 = createCustomErrorClass2("DeviceSocketNoBulkStatus");
|
|
34265
|
+
UnresponsiveDeviceError2 = createCustomErrorClass2("UnresponsiveDeviceError");
|
|
34266
|
+
DisconnectedDevice2 = createCustomErrorClass2("DisconnectedDevice");
|
|
34267
|
+
DisconnectedDeviceDuringOperation2 = createCustomErrorClass2("DisconnectedDeviceDuringOperation");
|
|
34268
|
+
DeviceExtractOnboardingStateError2 = createCustomErrorClass2("DeviceExtractOnboardingStateError");
|
|
34269
|
+
DeviceOnboardingStatePollingError2 = createCustomErrorClass2("DeviceOnboardingStatePollingError");
|
|
34270
|
+
EnpointConfigError2 = createCustomErrorClass2("EnpointConfig");
|
|
34271
|
+
EthAppPleaseEnableContractData2 = createCustomErrorClass2("EthAppPleaseEnableContractData");
|
|
34272
|
+
FeeEstimationFailed2 = createCustomErrorClass2("FeeEstimationFailed");
|
|
34273
|
+
FirmwareNotRecognized2 = createCustomErrorClass2("FirmwareNotRecognized");
|
|
34274
|
+
HardResetFail2 = createCustomErrorClass2("HardResetFail");
|
|
34275
|
+
InvalidXRPTag2 = createCustomErrorClass2("InvalidXRPTag");
|
|
34276
|
+
InvalidAddress2 = createCustomErrorClass2("InvalidAddress");
|
|
34277
|
+
InvalidNonce2 = createCustomErrorClass2("InvalidNonce");
|
|
34278
|
+
InvalidAddressBecauseDestinationIsAlsoSource2 = createCustomErrorClass2("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
34279
|
+
LatestMCUInstalledError2 = createCustomErrorClass2("LatestMCUInstalledError");
|
|
34280
|
+
LatestFirmwareVersionRequired2 = createCustomErrorClass2("LatestFirmwareVersionRequired");
|
|
34281
|
+
UnknownMCU2 = createCustomErrorClass2("UnknownMCU");
|
|
34282
|
+
LedgerAPIError2 = createCustomErrorClass2("LedgerAPIError");
|
|
34283
|
+
LedgerAPIErrorWithMessage2 = createCustomErrorClass2("LedgerAPIErrorWithMessage");
|
|
34284
|
+
LedgerAPINotAvailable2 = createCustomErrorClass2("LedgerAPINotAvailable");
|
|
34285
|
+
ManagerAppAlreadyInstalledError2 = createCustomErrorClass2("ManagerAppAlreadyInstalled");
|
|
34286
|
+
ManagerAppRelyOnBTCError2 = createCustomErrorClass2("ManagerAppRelyOnBTC");
|
|
34287
|
+
ManagerAppDepInstallRequired2 = createCustomErrorClass2("ManagerAppDepInstallRequired");
|
|
34288
|
+
ManagerAppDepUninstallRequired2 = createCustomErrorClass2("ManagerAppDepUninstallRequired");
|
|
34289
|
+
ManagerDeviceLockedError2 = createCustomErrorClass2("ManagerDeviceLocked");
|
|
34290
|
+
ManagerFirmwareNotEnoughSpaceError2 = createCustomErrorClass2("ManagerFirmwareNotEnoughSpace");
|
|
34291
|
+
ManagerNotEnoughSpaceError2 = createCustomErrorClass2("ManagerNotEnoughSpace");
|
|
34292
|
+
ManagerUninstallBTCDep2 = createCustomErrorClass2("ManagerUninstallBTCDep");
|
|
34293
|
+
NetworkDown2 = createCustomErrorClass2("NetworkDown");
|
|
34294
|
+
NetworkError2 = createCustomErrorClass2("NetworkError");
|
|
34295
|
+
NoAddressesFound2 = createCustomErrorClass2("NoAddressesFound");
|
|
34296
|
+
NotEnoughBalance2 = createCustomErrorClass2("NotEnoughBalance");
|
|
34297
|
+
NotEnoughBalanceFees2 = createCustomErrorClass2("NotEnoughBalanceFees");
|
|
34298
|
+
NotEnoughBalanceSwap2 = createCustomErrorClass2("NotEnoughBalanceSwap");
|
|
34299
|
+
NotEnoughBalanceToDelegate2 = createCustomErrorClass2("NotEnoughBalanceToDelegate");
|
|
34300
|
+
UnstakeNotEnoughStakedBalanceLeft2 = createCustomErrorClass2("UnstakeNotEnoughStakedBalanceLeft");
|
|
34301
|
+
RestakeNotEnoughStakedBalanceLeft2 = createCustomErrorClass2("RestakeNotEnoughStakedBalanceLeft");
|
|
34302
|
+
NotEnoughToRestake2 = createCustomErrorClass2("NotEnoughToRestake");
|
|
34303
|
+
NotEnoughToUnstake2 = createCustomErrorClass2("NotEnoughToUnstake");
|
|
34304
|
+
NotEnoughBalanceInParentAccount2 = createCustomErrorClass2("NotEnoughBalanceInParentAccount");
|
|
34305
|
+
NotEnoughSpendableBalance2 = createCustomErrorClass2("NotEnoughSpendableBalance");
|
|
34306
|
+
NotEnoughBalanceBecauseDestinationNotCreated2 = createCustomErrorClass2("NotEnoughBalanceBecauseDestinationNotCreated");
|
|
34307
|
+
NotEnoughToStake2 = createCustomErrorClass2("NotEnoughToStake");
|
|
34308
|
+
NoAccessToCamera2 = createCustomErrorClass2("NoAccessToCamera");
|
|
34309
|
+
NotEnoughGas2 = createCustomErrorClass2("NotEnoughGas");
|
|
34310
|
+
NotEnoughGasSwap2 = createCustomErrorClass2("NotEnoughGasSwap");
|
|
34311
|
+
TronEmptyAccount2 = createCustomErrorClass2("TronEmptyAccount");
|
|
34312
|
+
MaybeKeepTronAccountAlive2 = createCustomErrorClass2("MaybeKeepTronAccountAlive");
|
|
34313
|
+
NotSupportedLegacyAddress2 = createCustomErrorClass2("NotSupportedLegacyAddress");
|
|
34314
|
+
GasLessThanEstimate2 = createCustomErrorClass2("GasLessThanEstimate");
|
|
34315
|
+
PriorityFeeTooLow2 = createCustomErrorClass2("PriorityFeeTooLow");
|
|
34316
|
+
PriorityFeeTooHigh2 = createCustomErrorClass2("PriorityFeeTooHigh");
|
|
34317
|
+
PriorityFeeHigherThanMaxFee2 = createCustomErrorClass2("PriorityFeeHigherThanMaxFee");
|
|
34318
|
+
MaxFeeTooLow2 = createCustomErrorClass2("MaxFeeTooLow");
|
|
34319
|
+
PasswordsDontMatchError2 = createCustomErrorClass2("PasswordsDontMatch");
|
|
34320
|
+
PasswordIncorrectError2 = createCustomErrorClass2("PasswordIncorrect");
|
|
34321
|
+
RecommendSubAccountsToEmpty2 = createCustomErrorClass2("RecommendSubAccountsToEmpty");
|
|
34322
|
+
RecommendUndelegation2 = createCustomErrorClass2("RecommendUndelegation");
|
|
34323
|
+
TimeoutTagged2 = createCustomErrorClass2("TimeoutTagged");
|
|
34324
|
+
UnexpectedBootloader2 = createCustomErrorClass2("UnexpectedBootloader");
|
|
34325
|
+
MCUNotGenuineToDashboard2 = createCustomErrorClass2("MCUNotGenuineToDashboard");
|
|
34326
|
+
RecipientRequired2 = createCustomErrorClass2("RecipientRequired");
|
|
34327
|
+
UnavailableTezosOriginatedAccountReceive2 = createCustomErrorClass2("UnavailableTezosOriginatedAccountReceive");
|
|
34328
|
+
UnavailableTezosOriginatedAccountSend2 = createCustomErrorClass2("UnavailableTezosOriginatedAccountSend");
|
|
34329
|
+
UpdateFetchFileFail2 = createCustomErrorClass2("UpdateFetchFileFail");
|
|
34330
|
+
UpdateIncorrectHash2 = createCustomErrorClass2("UpdateIncorrectHash");
|
|
34331
|
+
UpdateIncorrectSig2 = createCustomErrorClass2("UpdateIncorrectSig");
|
|
34332
|
+
UpdateYourApp2 = createCustomErrorClass2("UpdateYourApp");
|
|
34333
|
+
UserRefusedDeviceNameChange2 = createCustomErrorClass2("UserRefusedDeviceNameChange");
|
|
34334
|
+
UserRefusedAddress2 = createCustomErrorClass2("UserRefusedAddress");
|
|
34335
|
+
UserRefusedFirmwareUpdate2 = createCustomErrorClass2("UserRefusedFirmwareUpdate");
|
|
34336
|
+
UserRefusedAllowManager2 = createCustomErrorClass2("UserRefusedAllowManager");
|
|
34337
|
+
UserRefusedOnDevice2 = createCustomErrorClass2("UserRefusedOnDevice");
|
|
34338
|
+
PinNotSet2 = createCustomErrorClass2("PinNotSet");
|
|
34339
|
+
ExpertModeRequired2 = createCustomErrorClass2("ExpertModeRequired");
|
|
34340
|
+
TransportOpenUserCancelled2 = createCustomErrorClass2("TransportOpenUserCancelled");
|
|
34341
|
+
TransportInterfaceNotAvailable2 = createCustomErrorClass2("TransportInterfaceNotAvailable");
|
|
34342
|
+
TransportRaceCondition2 = createCustomErrorClass2("TransportRaceCondition");
|
|
34343
|
+
TransportWebUSBGestureRequired2 = createCustomErrorClass2("TransportWebUSBGestureRequired");
|
|
34344
|
+
TransactionHasBeenValidatedError2 = createCustomErrorClass2("TransactionHasBeenValidatedError");
|
|
34345
|
+
TransportExchangeTimeoutError2 = createCustomErrorClass2("TransportExchangeTimeoutError");
|
|
34346
|
+
DeviceShouldStayInApp2 = createCustomErrorClass2("DeviceShouldStayInApp");
|
|
34347
|
+
WebsocketConnectionError2 = createCustomErrorClass2("WebsocketConnectionError");
|
|
34348
|
+
WebsocketConnectionFailed2 = createCustomErrorClass2("WebsocketConnectionFailed");
|
|
34349
|
+
WrongDeviceForAccount2 = createCustomErrorClass2("WrongDeviceForAccount");
|
|
34350
|
+
WrongDeviceForAccountPayout2 = createCustomErrorClass2("WrongDeviceForAccountPayout");
|
|
34351
|
+
MissingSwapPayloadParamaters2 = createCustomErrorClass2("MissingSwapPayloadParamaters");
|
|
34352
|
+
WrongDeviceForAccountRefund2 = createCustomErrorClass2("WrongDeviceForAccountRefund");
|
|
34353
|
+
WrongAppForCurrency2 = createCustomErrorClass2("WrongAppForCurrency");
|
|
34354
|
+
ETHAddressNonEIP2 = createCustomErrorClass2("ETHAddressNonEIP");
|
|
34355
|
+
CantScanQRCode2 = createCustomErrorClass2("CantScanQRCode");
|
|
34356
|
+
FeeNotLoaded2 = createCustomErrorClass2("FeeNotLoaded");
|
|
34357
|
+
FeeNotLoadedSwap2 = createCustomErrorClass2("FeeNotLoadedSwap");
|
|
34358
|
+
FeeRequired2 = createCustomErrorClass2("FeeRequired");
|
|
34359
|
+
FeeTooHigh2 = createCustomErrorClass2("FeeTooHigh");
|
|
34360
|
+
PendingOperation2 = createCustomErrorClass2("PendingOperation");
|
|
34361
|
+
SyncError2 = createCustomErrorClass2("SyncError");
|
|
34362
|
+
PairingFailed2 = createCustomErrorClass2("PairingFailed");
|
|
34363
|
+
PeerRemovedPairing2 = createCustomErrorClass2("PeerRemovedPairing");
|
|
34364
|
+
GenuineCheckFailed2 = createCustomErrorClass2("GenuineCheckFailed");
|
|
34365
|
+
LedgerAPI4xx2 = createCustomErrorClass2("LedgerAPI4xx");
|
|
34366
|
+
LedgerAPI5xx2 = createCustomErrorClass2("LedgerAPI5xx");
|
|
34367
|
+
FirmwareOrAppUpdateRequired2 = createCustomErrorClass2("FirmwareOrAppUpdateRequired");
|
|
34368
|
+
ReplacementTransactionUnderpriced2 = createCustomErrorClass2("ReplacementTransactionUnderpriced");
|
|
34369
|
+
OpReturnDataSizeLimit2 = createCustomErrorClass2("OpReturnSizeLimit");
|
|
34370
|
+
DustLimit2 = createCustomErrorClass2("DustLimit");
|
|
34371
|
+
HederaInsufficientFundsForAssociation = createCustomErrorClass2("HederaInsufficientFundsForAssociation");
|
|
34372
|
+
HederaRecipientTokenAssociationRequired = createCustomErrorClass2("HederaRecipientTokenAssociationRequired");
|
|
34373
|
+
HederaRecipientTokenAssociationUnverified = createCustomErrorClass2("HederaRecipientTokenAssociationUnverified");
|
|
34374
|
+
LanguageNotFound2 = createCustomErrorClass2("LanguageNotFound");
|
|
34375
|
+
NoDBPathGiven2 = createCustomErrorClass2("NoDBPathGiven");
|
|
34376
|
+
DBWrongPassword2 = createCustomErrorClass2("DBWrongPassword");
|
|
34377
|
+
DBNotReset2 = createCustomErrorClass2("DBNotReset");
|
|
34378
|
+
SequenceNumberError2 = createCustomErrorClass2("SequenceNumberError");
|
|
34379
|
+
DisabledTransactionBroadcastError2 = createCustomErrorClass2("DisabledTransactionBroadcastError");
|
|
34380
|
+
(function(HwTransportErrorType3) {
|
|
34381
|
+
HwTransportErrorType3["Unknown"] = "Unknown";
|
|
34382
|
+
HwTransportErrorType3["LocationServicesDisabled"] = "LocationServicesDisabled";
|
|
34383
|
+
HwTransportErrorType3["LocationServicesUnauthorized"] = "LocationServicesUnauthorized";
|
|
34384
|
+
HwTransportErrorType3["BluetoothScanStartFailed"] = "BluetoothScanStartFailed";
|
|
34385
|
+
})(HwTransportErrorType2 || (HwTransportErrorType2 = {}));
|
|
34386
|
+
TransportError2 = class extends Error {
|
|
34387
|
+
id;
|
|
34388
|
+
constructor(message2, id5) {
|
|
34389
|
+
const name2 = "TransportError";
|
|
34390
|
+
super(message2 || name2);
|
|
34391
|
+
this.name = name2;
|
|
34392
|
+
this.message = message2;
|
|
34393
|
+
this.stack = new Error(message2).stack;
|
|
34394
|
+
this.id = id5;
|
|
34395
|
+
}
|
|
34396
|
+
};
|
|
34397
|
+
addCustomErrorDeserializer2("TransportError", (e35) => new TransportError2(e35.message, e35.id));
|
|
34398
|
+
StatusCodes2 = {
|
|
34399
|
+
ACCESS_CONDITION_NOT_FULFILLED: 38916,
|
|
34400
|
+
ALGORITHM_NOT_SUPPORTED: 38020,
|
|
34401
|
+
CLA_NOT_SUPPORTED: 28160,
|
|
34402
|
+
CODE_BLOCKED: 38976,
|
|
34403
|
+
CODE_NOT_INITIALIZED: 38914,
|
|
34404
|
+
COMMAND_INCOMPATIBLE_FILE_STRUCTURE: 27009,
|
|
34405
|
+
CONDITIONS_OF_USE_NOT_SATISFIED: 27013,
|
|
34406
|
+
CONTRADICTION_INVALIDATION: 38928,
|
|
34407
|
+
CONTRADICTION_SECRET_CODE_STATUS: 38920,
|
|
34408
|
+
DEVICE_IN_RECOVERY_MODE: 26159,
|
|
34409
|
+
CUSTOM_IMAGE_EMPTY: 26158,
|
|
34410
|
+
FILE_ALREADY_EXISTS: 27273,
|
|
34411
|
+
FILE_NOT_FOUND: 37892,
|
|
34412
|
+
GP_AUTH_FAILED: 25344,
|
|
34413
|
+
HALTED: 28586,
|
|
34414
|
+
INCONSISTENT_FILE: 37896,
|
|
34415
|
+
INCORRECT_DATA: 27264,
|
|
34416
|
+
INCORRECT_LENGTH: 26368,
|
|
34417
|
+
INCORRECT_P1_P2: 27392,
|
|
34418
|
+
INS_NOT_SUPPORTED: 27904,
|
|
34419
|
+
DEVICE_NOT_ONBOARDED: 27911,
|
|
34420
|
+
DEVICE_NOT_ONBOARDED_2: 26129,
|
|
34421
|
+
INVALID_KCV: 38021,
|
|
34422
|
+
INVALID_OFFSET: 37890,
|
|
34423
|
+
LICENSING: 28482,
|
|
34424
|
+
LOCKED_DEVICE: 21781,
|
|
34425
|
+
MAX_VALUE_REACHED: 38992,
|
|
34426
|
+
MEMORY_PROBLEM: 37440,
|
|
34427
|
+
MISSING_CRITICAL_PARAMETER: 26624,
|
|
34428
|
+
NO_EF_SELECTED: 37888,
|
|
34429
|
+
NOT_ENOUGH_MEMORY_SPACE: 27268,
|
|
34430
|
+
OK: 36864,
|
|
34431
|
+
PIN_REMAINING_ATTEMPTS: 25536,
|
|
34432
|
+
REFERENCED_DATA_NOT_FOUND: 27272,
|
|
34433
|
+
SECURITY_STATUS_NOT_SATISFIED: 27010,
|
|
34434
|
+
TECHNICAL_PROBLEM: 28416,
|
|
34435
|
+
UNKNOWN_APDU: 27906,
|
|
34436
|
+
USER_REFUSED_ON_DEVICE: 21761,
|
|
34437
|
+
NOT_ENOUGH_SPACE: 20738,
|
|
34438
|
+
APP_NOT_FOUND_OR_INVALID_CONTEXT: 20771,
|
|
34439
|
+
INVALID_APP_NAME_LENGTH: 26378,
|
|
34440
|
+
GEN_AES_KEY_FAILED: 21529,
|
|
34441
|
+
INTERNAL_CRYPTO_OPERATION_FAILED: 21530,
|
|
34442
|
+
INTERNAL_COMPUTE_AES_CMAC_FAILED: 21531,
|
|
34443
|
+
ENCRYPT_APP_STORAGE_FAILED: 21532,
|
|
34444
|
+
INVALID_BACKUP_STATE: 26178,
|
|
34445
|
+
PIN_NOT_SET: 21762,
|
|
34446
|
+
INVALID_BACKUP_LENGTH: 26419,
|
|
34447
|
+
INVALID_RESTORE_STATE: 26179,
|
|
34448
|
+
INVALID_CHUNK_LENGTH: 26420,
|
|
34449
|
+
INVALID_BACKUP_HEADER: 26698,
|
|
34450
|
+
// Not documented:
|
|
34451
|
+
TRUSTCHAIN_WRONG_SEED: 45063
|
|
34452
|
+
};
|
|
34453
|
+
TransportStatusError2 = class _TransportStatusError extends Error {
|
|
34454
|
+
statusCode;
|
|
34455
|
+
statusText;
|
|
34456
|
+
/**
|
|
34457
|
+
* @param statusCode The error status code coming from a Transport implementation
|
|
34458
|
+
* @param options containing:
|
|
34459
|
+
* - canBeMappedToChildError: enable the mapping of TransportStatusError to an error extending/inheriting from it
|
|
34460
|
+
* . Ex: LockedDeviceError. Default to true.
|
|
34461
|
+
*/
|
|
34462
|
+
constructor(statusCode, { canBeMappedToChildError = true } = {}) {
|
|
34463
|
+
const statusText = Object.keys(StatusCodes2).find((k17) => StatusCodes2[k17] === statusCode) || "UNKNOWN_ERROR";
|
|
34464
|
+
const smsg = getAltStatusMessage2(statusCode) || statusText;
|
|
34465
|
+
const statusCodeStr = statusCode.toString(16);
|
|
34466
|
+
const message2 = `Ledger device: ${smsg} (0x${statusCodeStr})`;
|
|
34467
|
+
super(message2);
|
|
34468
|
+
this.name = "TransportStatusError";
|
|
34469
|
+
this.statusCode = statusCode;
|
|
34470
|
+
this.statusText = statusText;
|
|
34471
|
+
Object.setPrototypeOf(this, _TransportStatusError.prototype);
|
|
34472
|
+
if (canBeMappedToChildError && statusCode === StatusCodes2.LOCKED_DEVICE) {
|
|
34473
|
+
return new LockedDeviceError2(message2);
|
|
34474
|
+
}
|
|
34475
|
+
}
|
|
34476
|
+
};
|
|
34477
|
+
LockedDeviceError2 = class _LockedDeviceError extends TransportStatusError2 {
|
|
34478
|
+
constructor(message2) {
|
|
34479
|
+
super(StatusCodes2.LOCKED_DEVICE, { canBeMappedToChildError: false });
|
|
34480
|
+
if (message2) {
|
|
34481
|
+
this.message = message2;
|
|
34482
|
+
}
|
|
34483
|
+
this.name = "LockedDeviceError";
|
|
34484
|
+
Object.setPrototypeOf(this, _LockedDeviceError.prototype);
|
|
34485
|
+
}
|
|
34486
|
+
};
|
|
34487
|
+
addCustomErrorDeserializer2("TransportStatusError", (e35) => new TransportStatusError2(e35.statusCode));
|
|
34488
|
+
}
|
|
34489
|
+
});
|
|
34490
|
+
|
|
34177
34491
|
// ../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/rng.js
|
|
34178
34492
|
function rng() {
|
|
34179
34493
|
if (poolPtr > rnds8Pool.length - 16) {
|
|
@@ -53360,10 +53674,10 @@ var require_is_object = __commonJS({
|
|
|
53360
53674
|
}
|
|
53361
53675
|
return _typeof(obj2);
|
|
53362
53676
|
}
|
|
53363
|
-
function
|
|
53677
|
+
function isObject13(obj2) {
|
|
53364
53678
|
return obj2 !== null && _typeof(obj2) === "object";
|
|
53365
53679
|
}
|
|
53366
|
-
module2.exports =
|
|
53680
|
+
module2.exports = isObject13;
|
|
53367
53681
|
}
|
|
53368
53682
|
});
|
|
53369
53683
|
|
|
@@ -53384,7 +53698,7 @@ var require_request_base = __commonJS({
|
|
|
53384
53698
|
}
|
|
53385
53699
|
return _typeof(obj2);
|
|
53386
53700
|
}
|
|
53387
|
-
var
|
|
53701
|
+
var isObject13 = require_is_object();
|
|
53388
53702
|
module2.exports = RequestBase;
|
|
53389
53703
|
function RequestBase(object5) {
|
|
53390
53704
|
if (object5)
|
|
@@ -53554,7 +53868,7 @@ var require_request_base = __commonJS({
|
|
|
53554
53868
|
};
|
|
53555
53869
|
RequestBase.prototype.getHeader = RequestBase.prototype.get;
|
|
53556
53870
|
RequestBase.prototype.set = function(field, value2) {
|
|
53557
|
-
if (
|
|
53871
|
+
if (isObject13(field)) {
|
|
53558
53872
|
for (var key2 in field) {
|
|
53559
53873
|
if (Object.prototype.hasOwnProperty.call(field, key2))
|
|
53560
53874
|
this.set(key2, field[key2]);
|
|
@@ -53577,7 +53891,7 @@ var require_request_base = __commonJS({
|
|
|
53577
53891
|
if (this._data) {
|
|
53578
53892
|
throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");
|
|
53579
53893
|
}
|
|
53580
|
-
if (
|
|
53894
|
+
if (isObject13(name2)) {
|
|
53581
53895
|
for (var key2 in name2) {
|
|
53582
53896
|
if (Object.prototype.hasOwnProperty.call(name2, key2))
|
|
53583
53897
|
this.field(key2, name2[key2]);
|
|
@@ -53656,7 +53970,7 @@ var require_request_base = __commonJS({
|
|
|
53656
53970
|
};
|
|
53657
53971
|
};
|
|
53658
53972
|
RequestBase.prototype.send = function(data6) {
|
|
53659
|
-
var isObject_ =
|
|
53973
|
+
var isObject_ = isObject13(data6);
|
|
53660
53974
|
var type4 = this._header["content-type"];
|
|
53661
53975
|
if (this._formData) {
|
|
53662
53976
|
throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");
|
|
@@ -53670,7 +53984,7 @@ var require_request_base = __commonJS({
|
|
|
53670
53984
|
} else if (data6 && this._data && this._isHost(this._data)) {
|
|
53671
53985
|
throw new Error("Can't merge these send calls");
|
|
53672
53986
|
}
|
|
53673
|
-
if (isObject_ &&
|
|
53987
|
+
if (isObject_ && isObject13(this._data)) {
|
|
53674
53988
|
for (var key2 in data6) {
|
|
53675
53989
|
if (Object.prototype.hasOwnProperty.call(data6, key2))
|
|
53676
53990
|
this._data[key2] = data6[key2];
|
|
@@ -104058,7 +104372,7 @@ var require_axios = __commonJS({
|
|
|
104058
104372
|
var isString6 = typeOfTest3("string");
|
|
104059
104373
|
var isFunction$1 = typeOfTest3("function");
|
|
104060
104374
|
var isNumber5 = typeOfTest3("number");
|
|
104061
|
-
var
|
|
104375
|
+
var isObject13 = (thing) => thing !== null && typeof thing === "object";
|
|
104062
104376
|
var isBoolean4 = (thing) => thing === true || thing === false;
|
|
104063
104377
|
var isPlainObject3 = (val) => {
|
|
104064
104378
|
if (kindOf3(val) !== "object") {
|
|
@@ -104068,7 +104382,7 @@ var require_axios = __commonJS({
|
|
|
104068
104382
|
return (prototype7 === null || prototype7 === Object.prototype || Object.getPrototypeOf(prototype7) === null) && !(toStringTag2 in val) && !(iterator2 in val);
|
|
104069
104383
|
};
|
|
104070
104384
|
var isEmptyObject2 = (val) => {
|
|
104071
|
-
if (!
|
|
104385
|
+
if (!isObject13(val) || isBuffer6(val)) {
|
|
104072
104386
|
return false;
|
|
104073
104387
|
}
|
|
104074
104388
|
try {
|
|
@@ -104081,7 +104395,7 @@ var require_axios = __commonJS({
|
|
|
104081
104395
|
var isFile3 = kindOfTest3("File");
|
|
104082
104396
|
var isBlob7 = kindOfTest3("Blob");
|
|
104083
104397
|
var isFileList3 = kindOfTest3("FileList");
|
|
104084
|
-
var isStream3 = (val) =>
|
|
104398
|
+
var isStream3 = (val) => isObject13(val) && isFunction$1(val.pipe);
|
|
104085
104399
|
var isFormData3 = (thing) => {
|
|
104086
104400
|
let kind;
|
|
104087
104401
|
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf3(thing)) === "formdata" || // detect form-data instance
|
|
@@ -104312,7 +104626,7 @@ var require_axios = __commonJS({
|
|
|
104312
104626
|
var toJSONObject3 = (obj2) => {
|
|
104313
104627
|
const stack2 = new Array(10);
|
|
104314
104628
|
const visit2 = (source, i58) => {
|
|
104315
|
-
if (
|
|
104629
|
+
if (isObject13(source)) {
|
|
104316
104630
|
if (stack2.indexOf(source) >= 0) {
|
|
104317
104631
|
return;
|
|
104318
104632
|
}
|
|
@@ -104335,7 +104649,7 @@ var require_axios = __commonJS({
|
|
|
104335
104649
|
return visit2(obj2, 0);
|
|
104336
104650
|
};
|
|
104337
104651
|
var isAsyncFn3 = kindOfTest3("AsyncFunction");
|
|
104338
|
-
var isThenable3 = (thing) => thing && (
|
|
104652
|
+
var isThenable3 = (thing) => thing && (isObject13(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
104339
104653
|
var _setImmediate3 = ((setImmediateSupported, postMessageSupported) => {
|
|
104340
104654
|
if (setImmediateSupported) {
|
|
104341
104655
|
return setImmediate;
|
|
@@ -104366,7 +104680,7 @@ var require_axios = __commonJS({
|
|
|
104366
104680
|
isString: isString6,
|
|
104367
104681
|
isNumber: isNumber5,
|
|
104368
104682
|
isBoolean: isBoolean4,
|
|
104369
|
-
isObject:
|
|
104683
|
+
isObject: isObject13,
|
|
104370
104684
|
isPlainObject: isPlainObject3,
|
|
104371
104685
|
isEmptyObject: isEmptyObject2,
|
|
104372
104686
|
isReadableStream: isReadableStream4,
|
|
@@ -109707,7 +110021,7 @@ var init_type_descriptor = __esm({
|
|
|
109707
110021
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/type-descriptor.js"() {
|
|
109708
110022
|
"use strict";
|
|
109709
110023
|
init_tslib_es6();
|
|
109710
|
-
|
|
110024
|
+
init_helpers3();
|
|
109711
110025
|
TypeDescriptor = function() {
|
|
109712
110026
|
function TypeDescriptor2(ctor) {
|
|
109713
110027
|
this.ctor = ctor;
|
|
@@ -109871,7 +110185,7 @@ function identity2(arg) {
|
|
|
109871
110185
|
return arg;
|
|
109872
110186
|
}
|
|
109873
110187
|
var LAZY_TYPE_EXPLANATION, MISSING_REFLECT_CONF_MSG, isReflectMetadataSupported;
|
|
109874
|
-
var
|
|
110188
|
+
var init_helpers3 = __esm({
|
|
109875
110189
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/helpers.js"() {
|
|
109876
110190
|
"use strict";
|
|
109877
110191
|
init_tslib_es6();
|
|
@@ -109910,7 +110224,7 @@ var METADATA_FIELD_KEY, JsonObjectMetadata;
|
|
|
109910
110224
|
var init_metadata = __esm({
|
|
109911
110225
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/metadata.js"() {
|
|
109912
110226
|
"use strict";
|
|
109913
|
-
|
|
110227
|
+
init_helpers3();
|
|
109914
110228
|
METADATA_FIELD_KEY = "__typedJsonJsonObjectMetadataInformation__";
|
|
109915
110229
|
JsonObjectMetadata = function() {
|
|
109916
110230
|
function JsonObjectMetadata2(classType) {
|
|
@@ -110287,7 +110601,7 @@ var Deserializer;
|
|
|
110287
110601
|
var init_deserializer = __esm({
|
|
110288
110602
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/deserializer.js"() {
|
|
110289
110603
|
"use strict";
|
|
110290
|
-
|
|
110604
|
+
init_helpers3();
|
|
110291
110605
|
init_metadata();
|
|
110292
110606
|
init_options_base();
|
|
110293
110607
|
init_type_descriptor();
|
|
@@ -110446,7 +110760,7 @@ function createArrayType(elementType, dimensions) {
|
|
|
110446
110760
|
var init_json_array_member = __esm({
|
|
110447
110761
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/json-array-member.js"() {
|
|
110448
110762
|
"use strict";
|
|
110449
|
-
|
|
110763
|
+
init_helpers3();
|
|
110450
110764
|
init_metadata();
|
|
110451
110765
|
init_options_base();
|
|
110452
110766
|
init_type_descriptor();
|
|
@@ -110593,7 +110907,7 @@ var init_serializer = __esm({
|
|
|
110593
110907
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/serializer.js"() {
|
|
110594
110908
|
"use strict";
|
|
110595
110909
|
init_tslib_es6();
|
|
110596
|
-
|
|
110910
|
+
init_helpers3();
|
|
110597
110911
|
init_metadata();
|
|
110598
110912
|
init_options_base();
|
|
110599
110913
|
init_type_descriptor();
|
|
@@ -110688,7 +111002,7 @@ var init_parser = __esm({
|
|
|
110688
111002
|
"use strict";
|
|
110689
111003
|
init_tslib_es6();
|
|
110690
111004
|
init_deserializer();
|
|
110691
|
-
|
|
111005
|
+
init_helpers3();
|
|
110692
111006
|
init_json_array_member();
|
|
110693
111007
|
init_metadata();
|
|
110694
111008
|
init_options_base();
|
|
@@ -111089,7 +111403,7 @@ function isSpecialPropertyType(decoratorName, typeDescriptor) {
|
|
|
111089
111403
|
var init_json_member = __esm({
|
|
111090
111404
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/json-member.js"() {
|
|
111091
111405
|
"use strict";
|
|
111092
|
-
|
|
111406
|
+
init_helpers3();
|
|
111093
111407
|
init_metadata();
|
|
111094
111408
|
init_options_base();
|
|
111095
111409
|
init_type_descriptor();
|
|
@@ -111127,7 +111441,7 @@ function jsonSetMember(maybeTypeThunk, options24) {
|
|
|
111127
111441
|
var init_json_set_member = __esm({
|
|
111128
111442
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/json-set-member.js"() {
|
|
111129
111443
|
"use strict";
|
|
111130
|
-
|
|
111444
|
+
init_helpers3();
|
|
111131
111445
|
init_metadata();
|
|
111132
111446
|
init_options_base();
|
|
111133
111447
|
init_type_descriptor();
|
|
@@ -111166,7 +111480,7 @@ function jsonMapMember(maybeKeyThunk, maybeValueThunk, options24) {
|
|
|
111166
111480
|
var init_json_map_member = __esm({
|
|
111167
111481
|
"../../node_modules/.pnpm/typedjson@1.8.0/node_modules/typedjson/lib/esm5/json-map-member.js"() {
|
|
111168
111482
|
"use strict";
|
|
111169
|
-
|
|
111483
|
+
init_helpers3();
|
|
111170
111484
|
init_metadata();
|
|
111171
111485
|
init_options_base();
|
|
111172
111486
|
init_type_descriptor();
|
|
@@ -123790,7 +124104,7 @@ var require_minimal = __commonJS({
|
|
|
123790
124104
|
util11.isString = function isString6(value2) {
|
|
123791
124105
|
return typeof value2 === "string" || value2 instanceof String;
|
|
123792
124106
|
};
|
|
123793
|
-
util11.isObject = function
|
|
124107
|
+
util11.isObject = function isObject13(value2) {
|
|
123794
124108
|
return value2 && typeof value2 === "object";
|
|
123795
124109
|
};
|
|
123796
124110
|
util11.isset = /**
|
|
@@ -205777,9 +206091,9 @@ var require_thenables = __commonJS({
|
|
|
205777
206091
|
module2.exports = function(Promise2, INTERNAL3) {
|
|
205778
206092
|
var util11 = require_util7();
|
|
205779
206093
|
var errorObj2 = util11.errorObj;
|
|
205780
|
-
var
|
|
206094
|
+
var isObject13 = util11.isObject;
|
|
205781
206095
|
function tryConvertToPromise(obj2, context) {
|
|
205782
|
-
if (
|
|
206096
|
+
if (isObject13(obj2)) {
|
|
205783
206097
|
if (obj2 instanceof Promise2)
|
|
205784
206098
|
return obj2;
|
|
205785
206099
|
var then = getThen(obj2);
|
|
@@ -208674,7 +208988,7 @@ var require_props = __commonJS({
|
|
|
208674
208988
|
"use strict";
|
|
208675
208989
|
module2.exports = function(Promise2, PromiseArray, tryConvertToPromise, apiRejection) {
|
|
208676
208990
|
var util11 = require_util7();
|
|
208677
|
-
var
|
|
208991
|
+
var isObject13 = util11.isObject;
|
|
208678
208992
|
var es52 = require_es5();
|
|
208679
208993
|
var Es6Map;
|
|
208680
208994
|
if (typeof Map === "function")
|
|
@@ -208756,7 +209070,7 @@ var require_props = __commonJS({
|
|
|
208756
209070
|
function props(promises) {
|
|
208757
209071
|
var ret2;
|
|
208758
209072
|
var castValue = tryConvertToPromise(promises);
|
|
208759
|
-
if (!
|
|
209073
|
+
if (!isObject13(castValue)) {
|
|
208760
209074
|
return apiRejection("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n");
|
|
208761
209075
|
} else if (castValue instanceof Promise2) {
|
|
208762
209076
|
ret2 = castValue._then(
|
|
@@ -249537,7 +249851,7 @@ var require_minimal2 = __commonJS({
|
|
|
249537
249851
|
util11.isString = function isString6(value2) {
|
|
249538
249852
|
return typeof value2 === "string" || value2 instanceof String;
|
|
249539
249853
|
};
|
|
249540
|
-
util11.isObject = function
|
|
249854
|
+
util11.isObject = function isObject13(value2) {
|
|
249541
249855
|
return value2 && typeof value2 === "object";
|
|
249542
249856
|
};
|
|
249543
249857
|
util11.isset = /**
|
|
@@ -276045,7 +276359,7 @@ var require_utils23 = __commonJS({
|
|
|
276045
276359
|
function isNumber5(val) {
|
|
276046
276360
|
return typeof val === "number";
|
|
276047
276361
|
}
|
|
276048
|
-
function
|
|
276362
|
+
function isObject13(val) {
|
|
276049
276363
|
return val !== null && typeof val === "object";
|
|
276050
276364
|
}
|
|
276051
276365
|
function isPlainObject3(val) {
|
|
@@ -276068,7 +276382,7 @@ var require_utils23 = __commonJS({
|
|
|
276068
276382
|
return toString12.call(val) === "[object Function]";
|
|
276069
276383
|
}
|
|
276070
276384
|
function isStream3(val) {
|
|
276071
|
-
return
|
|
276385
|
+
return isObject13(val) && isFunction6(val.pipe);
|
|
276072
276386
|
}
|
|
276073
276387
|
function isURLSearchParams5(val) {
|
|
276074
276388
|
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
@@ -276143,7 +276457,7 @@ var require_utils23 = __commonJS({
|
|
|
276143
276457
|
isArrayBufferView: isArrayBufferView3,
|
|
276144
276458
|
isString: isString6,
|
|
276145
276459
|
isNumber: isNumber5,
|
|
276146
|
-
isObject:
|
|
276460
|
+
isObject: isObject13,
|
|
276147
276461
|
isPlainObject: isPlainObject3,
|
|
276148
276462
|
isUndefined: isUndefined6,
|
|
276149
276463
|
isDate: isDate3,
|
|
@@ -329431,7 +329745,7 @@ function dispatch2(log5) {
|
|
|
329431
329745
|
}
|
|
329432
329746
|
}
|
|
329433
329747
|
var id4, subscribers2, log4, trace2, LocalTracer2, listen2;
|
|
329434
|
-
var
|
|
329748
|
+
var init_lib_es4 = __esm({
|
|
329435
329749
|
"../../node_modules/.pnpm/@ledgerhq+logs@6.12.0/node_modules/@ledgerhq/logs/lib-es/index.js"() {
|
|
329436
329750
|
"use strict";
|
|
329437
329751
|
id4 = 0;
|
|
@@ -329589,7 +329903,7 @@ var require_utils27 = __commonJS({
|
|
|
329589
329903
|
function isNumber5(val) {
|
|
329590
329904
|
return typeof val === "number";
|
|
329591
329905
|
}
|
|
329592
|
-
function
|
|
329906
|
+
function isObject13(val) {
|
|
329593
329907
|
return val !== null && typeof val === "object";
|
|
329594
329908
|
}
|
|
329595
329909
|
function isPlainObject3(val) {
|
|
@@ -329612,7 +329926,7 @@ var require_utils27 = __commonJS({
|
|
|
329612
329926
|
return toString12.call(val) === "[object Function]";
|
|
329613
329927
|
}
|
|
329614
329928
|
function isStream3(val) {
|
|
329615
|
-
return
|
|
329929
|
+
return isObject13(val) && isFunction6(val.pipe);
|
|
329616
329930
|
}
|
|
329617
329931
|
function isURLSearchParams5(val) {
|
|
329618
329932
|
return toString12.call(val) === "[object URLSearchParams]";
|
|
@@ -329687,7 +330001,7 @@ var require_utils27 = __commonJS({
|
|
|
329687
330001
|
isArrayBufferView: isArrayBufferView3,
|
|
329688
330002
|
isString: isString6,
|
|
329689
330003
|
isNumber: isNumber5,
|
|
329690
|
-
isObject:
|
|
330004
|
+
isObject: isObject13,
|
|
329691
330005
|
isPlainObject: isPlainObject3,
|
|
329692
330006
|
isUndefined: isUndefined6,
|
|
329693
330007
|
isDate: isDate3,
|
|
@@ -331210,7 +331524,7 @@ var init_contracts = __esm({
|
|
|
331210
331524
|
"use strict";
|
|
331211
331525
|
import_axios31 = __toESM(require_axios5());
|
|
331212
331526
|
init_loadConfig();
|
|
331213
|
-
|
|
331527
|
+
init_lib_es4();
|
|
331214
331528
|
__assign4 = function() {
|
|
331215
331529
|
__assign4 = Object.assign || function(t47) {
|
|
331216
331530
|
for (var s59, i58 = 1, n146 = arguments.length; i58 < n146; i58++) {
|
|
@@ -331646,7 +331960,7 @@ var __awaiter4, __generator4, __values, ledgerService, ledger_default5;
|
|
|
331646
331960
|
var init_ledger = __esm({
|
|
331647
331961
|
"../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/index.js"() {
|
|
331648
331962
|
"use strict";
|
|
331649
|
-
|
|
331963
|
+
init_lib_es4();
|
|
331650
331964
|
init_lib11();
|
|
331651
331965
|
init_contracts();
|
|
331652
331966
|
init_erc20();
|
|
@@ -331934,320 +332248,14 @@ var init_ledger = __esm({
|
|
|
331934
332248
|
}
|
|
331935
332249
|
});
|
|
331936
332250
|
|
|
331937
|
-
// ../../node_modules/.pnpm/@ledgerhq+errors@6.22.0/node_modules/@ledgerhq/errors/lib-es/helpers.js
|
|
331938
|
-
function isObject8(value2) {
|
|
331939
|
-
return typeof value2 === "object";
|
|
331940
|
-
}
|
|
331941
|
-
var errorClasses3, deserializers3, addCustomErrorDeserializer3, createCustomErrorClass3;
|
|
331942
|
-
var init_helpers3 = __esm({
|
|
331943
|
-
"../../node_modules/.pnpm/@ledgerhq+errors@6.22.0/node_modules/@ledgerhq/errors/lib-es/helpers.js"() {
|
|
331944
|
-
"use strict";
|
|
331945
|
-
errorClasses3 = {};
|
|
331946
|
-
deserializers3 = {};
|
|
331947
|
-
addCustomErrorDeserializer3 = (name2, deserializer) => {
|
|
331948
|
-
deserializers3[name2] = deserializer;
|
|
331949
|
-
};
|
|
331950
|
-
createCustomErrorClass3 = (name2) => {
|
|
331951
|
-
class CustomErrorClass extends Error {
|
|
331952
|
-
cause;
|
|
331953
|
-
constructor(message2, fields, options24) {
|
|
331954
|
-
super(message2 || name2, options24);
|
|
331955
|
-
Object.setPrototypeOf(this, CustomErrorClass.prototype);
|
|
331956
|
-
this.name = name2;
|
|
331957
|
-
if (fields) {
|
|
331958
|
-
for (const k17 in fields) {
|
|
331959
|
-
this[k17] = fields[k17];
|
|
331960
|
-
}
|
|
331961
|
-
}
|
|
331962
|
-
if (options24 && isObject8(options24) && "cause" in options24 && !this.cause) {
|
|
331963
|
-
const cause = options24.cause;
|
|
331964
|
-
this.cause = cause;
|
|
331965
|
-
if ("stack" in cause) {
|
|
331966
|
-
this.stack = this.stack + "\nCAUSE: " + cause.stack;
|
|
331967
|
-
}
|
|
331968
|
-
}
|
|
331969
|
-
}
|
|
331970
|
-
}
|
|
331971
|
-
errorClasses3[name2] = CustomErrorClass;
|
|
331972
|
-
return CustomErrorClass;
|
|
331973
|
-
};
|
|
331974
|
-
}
|
|
331975
|
-
});
|
|
331976
|
-
|
|
331977
|
-
// ../../node_modules/.pnpm/@ledgerhq+errors@6.22.0/node_modules/@ledgerhq/errors/lib-es/index.js
|
|
331978
|
-
function getAltStatusMessage3(code) {
|
|
331979
|
-
switch (code) {
|
|
331980
|
-
case 26368:
|
|
331981
|
-
return "Incorrect length";
|
|
331982
|
-
case 26624:
|
|
331983
|
-
return "Missing critical parameter";
|
|
331984
|
-
case 27010:
|
|
331985
|
-
return "Security not satisfied (dongle locked or have invalid access rights)";
|
|
331986
|
-
case 27013:
|
|
331987
|
-
return "Condition of use not satisfied (denied by the user?)";
|
|
331988
|
-
case 27264:
|
|
331989
|
-
return "Invalid data received";
|
|
331990
|
-
case 27392:
|
|
331991
|
-
return "Invalid parameter received";
|
|
331992
|
-
case 21781:
|
|
331993
|
-
return "Locked device";
|
|
331994
|
-
}
|
|
331995
|
-
if (28416 <= code && code <= 28671) {
|
|
331996
|
-
return "Internal error, please report";
|
|
331997
|
-
}
|
|
331998
|
-
}
|
|
331999
|
-
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;
|
|
332000
|
-
var init_lib_es4 = __esm({
|
|
332001
|
-
"../../node_modules/.pnpm/@ledgerhq+errors@6.22.0/node_modules/@ledgerhq/errors/lib-es/index.js"() {
|
|
332002
|
-
"use strict";
|
|
332003
|
-
init_helpers3();
|
|
332004
|
-
AccountNameRequiredError3 = createCustomErrorClass3("AccountNameRequired");
|
|
332005
|
-
AccountNotSupported3 = createCustomErrorClass3("AccountNotSupported");
|
|
332006
|
-
AccountAwaitingSendPendingOperations3 = createCustomErrorClass3("AccountAwaitingSendPendingOperations");
|
|
332007
|
-
AmountRequired3 = createCustomErrorClass3("AmountRequired");
|
|
332008
|
-
BluetoothRequired3 = createCustomErrorClass3("BluetoothRequired");
|
|
332009
|
-
BtcUnmatchedApp3 = createCustomErrorClass3("BtcUnmatchedApp");
|
|
332010
|
-
CantOpenDevice3 = createCustomErrorClass3("CantOpenDevice");
|
|
332011
|
-
CashAddrNotSupported3 = createCustomErrorClass3("CashAddrNotSupported");
|
|
332012
|
-
ClaimRewardsFeesWarning4 = createCustomErrorClass3("ClaimRewardsFeesWarning");
|
|
332013
|
-
CurrencyNotSupported3 = createCustomErrorClass3("CurrencyNotSupported");
|
|
332014
|
-
DeviceAppVerifyNotSupported3 = createCustomErrorClass3("DeviceAppVerifyNotSupported");
|
|
332015
|
-
DeviceGenuineSocketEarlyClose3 = createCustomErrorClass3("DeviceGenuineSocketEarlyClose");
|
|
332016
|
-
DeviceNotGenuineError3 = createCustomErrorClass3("DeviceNotGenuine");
|
|
332017
|
-
DeviceOnDashboardExpected3 = createCustomErrorClass3("DeviceOnDashboardExpected");
|
|
332018
|
-
DeviceOnDashboardUnexpected3 = createCustomErrorClass3("DeviceOnDashboardUnexpected");
|
|
332019
|
-
DeviceInOSUExpected3 = createCustomErrorClass3("DeviceInOSUExpected");
|
|
332020
|
-
DeviceHalted3 = createCustomErrorClass3("DeviceHalted");
|
|
332021
|
-
DeviceNameInvalid3 = createCustomErrorClass3("DeviceNameInvalid");
|
|
332022
|
-
DeviceSocketFail3 = createCustomErrorClass3("DeviceSocketFail");
|
|
332023
|
-
DeviceSocketNoBulkStatus3 = createCustomErrorClass3("DeviceSocketNoBulkStatus");
|
|
332024
|
-
DeviceNeedsRestart3 = createCustomErrorClass3("DeviceSocketNoBulkStatus");
|
|
332025
|
-
UnresponsiveDeviceError3 = createCustomErrorClass3("UnresponsiveDeviceError");
|
|
332026
|
-
DisconnectedDevice3 = createCustomErrorClass3("DisconnectedDevice");
|
|
332027
|
-
DisconnectedDeviceDuringOperation3 = createCustomErrorClass3("DisconnectedDeviceDuringOperation");
|
|
332028
|
-
DeviceExtractOnboardingStateError3 = createCustomErrorClass3("DeviceExtractOnboardingStateError");
|
|
332029
|
-
DeviceOnboardingStatePollingError3 = createCustomErrorClass3("DeviceOnboardingStatePollingError");
|
|
332030
|
-
EnpointConfigError3 = createCustomErrorClass3("EnpointConfig");
|
|
332031
|
-
EthAppPleaseEnableContractData5 = createCustomErrorClass3("EthAppPleaseEnableContractData");
|
|
332032
|
-
FeeEstimationFailed3 = createCustomErrorClass3("FeeEstimationFailed");
|
|
332033
|
-
FirmwareNotRecognized3 = createCustomErrorClass3("FirmwareNotRecognized");
|
|
332034
|
-
HardResetFail3 = createCustomErrorClass3("HardResetFail");
|
|
332035
|
-
InvalidXRPTag3 = createCustomErrorClass3("InvalidXRPTag");
|
|
332036
|
-
InvalidAddress3 = createCustomErrorClass3("InvalidAddress");
|
|
332037
|
-
InvalidNonce3 = createCustomErrorClass3("InvalidNonce");
|
|
332038
|
-
InvalidAddressBecauseDestinationIsAlsoSource3 = createCustomErrorClass3("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
332039
|
-
LatestMCUInstalledError3 = createCustomErrorClass3("LatestMCUInstalledError");
|
|
332040
|
-
LatestFirmwareVersionRequired3 = createCustomErrorClass3("LatestFirmwareVersionRequired");
|
|
332041
|
-
UnknownMCU3 = createCustomErrorClass3("UnknownMCU");
|
|
332042
|
-
LedgerAPIError3 = createCustomErrorClass3("LedgerAPIError");
|
|
332043
|
-
LedgerAPIErrorWithMessage3 = createCustomErrorClass3("LedgerAPIErrorWithMessage");
|
|
332044
|
-
LedgerAPINotAvailable3 = createCustomErrorClass3("LedgerAPINotAvailable");
|
|
332045
|
-
ManagerAppAlreadyInstalledError3 = createCustomErrorClass3("ManagerAppAlreadyInstalled");
|
|
332046
|
-
ManagerAppRelyOnBTCError3 = createCustomErrorClass3("ManagerAppRelyOnBTC");
|
|
332047
|
-
ManagerAppDepInstallRequired3 = createCustomErrorClass3("ManagerAppDepInstallRequired");
|
|
332048
|
-
ManagerAppDepUninstallRequired3 = createCustomErrorClass3("ManagerAppDepUninstallRequired");
|
|
332049
|
-
ManagerDeviceLockedError3 = createCustomErrorClass3("ManagerDeviceLocked");
|
|
332050
|
-
ManagerFirmwareNotEnoughSpaceError3 = createCustomErrorClass3("ManagerFirmwareNotEnoughSpace");
|
|
332051
|
-
ManagerNotEnoughSpaceError3 = createCustomErrorClass3("ManagerNotEnoughSpace");
|
|
332052
|
-
ManagerUninstallBTCDep3 = createCustomErrorClass3("ManagerUninstallBTCDep");
|
|
332053
|
-
NetworkDown3 = createCustomErrorClass3("NetworkDown");
|
|
332054
|
-
NetworkError3 = createCustomErrorClass3("NetworkError");
|
|
332055
|
-
NoAddressesFound3 = createCustomErrorClass3("NoAddressesFound");
|
|
332056
|
-
NotEnoughBalance3 = createCustomErrorClass3("NotEnoughBalance");
|
|
332057
|
-
NotEnoughBalanceFees3 = createCustomErrorClass3("NotEnoughBalanceFees");
|
|
332058
|
-
NotEnoughBalanceSwap3 = createCustomErrorClass3("NotEnoughBalanceSwap");
|
|
332059
|
-
NotEnoughBalanceToDelegate3 = createCustomErrorClass3("NotEnoughBalanceToDelegate");
|
|
332060
|
-
NotEnoughBalanceInParentAccount3 = createCustomErrorClass3("NotEnoughBalanceInParentAccount");
|
|
332061
|
-
NotEnoughSpendableBalance3 = createCustomErrorClass3("NotEnoughSpendableBalance");
|
|
332062
|
-
NotEnoughBalanceBecauseDestinationNotCreated3 = createCustomErrorClass3("NotEnoughBalanceBecauseDestinationNotCreated");
|
|
332063
|
-
NoAccessToCamera3 = createCustomErrorClass3("NoAccessToCamera");
|
|
332064
|
-
NotEnoughGas3 = createCustomErrorClass3("NotEnoughGas");
|
|
332065
|
-
NotEnoughGasSwap3 = createCustomErrorClass3("NotEnoughGasSwap");
|
|
332066
|
-
TronEmptyAccount3 = createCustomErrorClass3("TronEmptyAccount");
|
|
332067
|
-
MaybeKeepTronAccountAlive3 = createCustomErrorClass3("MaybeKeepTronAccountAlive");
|
|
332068
|
-
NotSupportedLegacyAddress3 = createCustomErrorClass3("NotSupportedLegacyAddress");
|
|
332069
|
-
GasLessThanEstimate3 = createCustomErrorClass3("GasLessThanEstimate");
|
|
332070
|
-
PriorityFeeTooLow3 = createCustomErrorClass3("PriorityFeeTooLow");
|
|
332071
|
-
PriorityFeeTooHigh3 = createCustomErrorClass3("PriorityFeeTooHigh");
|
|
332072
|
-
PriorityFeeHigherThanMaxFee3 = createCustomErrorClass3("PriorityFeeHigherThanMaxFee");
|
|
332073
|
-
MaxFeeTooLow3 = createCustomErrorClass3("MaxFeeTooLow");
|
|
332074
|
-
PasswordsDontMatchError3 = createCustomErrorClass3("PasswordsDontMatch");
|
|
332075
|
-
PasswordIncorrectError3 = createCustomErrorClass3("PasswordIncorrect");
|
|
332076
|
-
RecommendSubAccountsToEmpty3 = createCustomErrorClass3("RecommendSubAccountsToEmpty");
|
|
332077
|
-
RecommendUndelegation3 = createCustomErrorClass3("RecommendUndelegation");
|
|
332078
|
-
TimeoutTagged3 = createCustomErrorClass3("TimeoutTagged");
|
|
332079
|
-
UnexpectedBootloader3 = createCustomErrorClass3("UnexpectedBootloader");
|
|
332080
|
-
MCUNotGenuineToDashboard3 = createCustomErrorClass3("MCUNotGenuineToDashboard");
|
|
332081
|
-
RecipientRequired3 = createCustomErrorClass3("RecipientRequired");
|
|
332082
|
-
UnavailableTezosOriginatedAccountReceive3 = createCustomErrorClass3("UnavailableTezosOriginatedAccountReceive");
|
|
332083
|
-
UnavailableTezosOriginatedAccountSend3 = createCustomErrorClass3("UnavailableTezosOriginatedAccountSend");
|
|
332084
|
-
UpdateFetchFileFail3 = createCustomErrorClass3("UpdateFetchFileFail");
|
|
332085
|
-
UpdateIncorrectHash3 = createCustomErrorClass3("UpdateIncorrectHash");
|
|
332086
|
-
UpdateIncorrectSig3 = createCustomErrorClass3("UpdateIncorrectSig");
|
|
332087
|
-
UpdateYourApp3 = createCustomErrorClass3("UpdateYourApp");
|
|
332088
|
-
UserRefusedDeviceNameChange3 = createCustomErrorClass3("UserRefusedDeviceNameChange");
|
|
332089
|
-
UserRefusedAddress3 = createCustomErrorClass3("UserRefusedAddress");
|
|
332090
|
-
UserRefusedFirmwareUpdate3 = createCustomErrorClass3("UserRefusedFirmwareUpdate");
|
|
332091
|
-
UserRefusedAllowManager3 = createCustomErrorClass3("UserRefusedAllowManager");
|
|
332092
|
-
UserRefusedOnDevice3 = createCustomErrorClass3("UserRefusedOnDevice");
|
|
332093
|
-
PinNotSet3 = createCustomErrorClass3("PinNotSet");
|
|
332094
|
-
ExpertModeRequired3 = createCustomErrorClass3("ExpertModeRequired");
|
|
332095
|
-
TransportOpenUserCancelled3 = createCustomErrorClass3("TransportOpenUserCancelled");
|
|
332096
|
-
TransportInterfaceNotAvailable3 = createCustomErrorClass3("TransportInterfaceNotAvailable");
|
|
332097
|
-
TransportRaceCondition3 = createCustomErrorClass3("TransportRaceCondition");
|
|
332098
|
-
TransportWebUSBGestureRequired3 = createCustomErrorClass3("TransportWebUSBGestureRequired");
|
|
332099
|
-
TransactionHasBeenValidatedError3 = createCustomErrorClass3("TransactionHasBeenValidatedError");
|
|
332100
|
-
TransportExchangeTimeoutError3 = createCustomErrorClass3("TransportExchangeTimeoutError");
|
|
332101
|
-
DeviceShouldStayInApp3 = createCustomErrorClass3("DeviceShouldStayInApp");
|
|
332102
|
-
WebsocketConnectionError3 = createCustomErrorClass3("WebsocketConnectionError");
|
|
332103
|
-
WebsocketConnectionFailed3 = createCustomErrorClass3("WebsocketConnectionFailed");
|
|
332104
|
-
WrongDeviceForAccount3 = createCustomErrorClass3("WrongDeviceForAccount");
|
|
332105
|
-
WrongDeviceForAccountPayout3 = createCustomErrorClass3("WrongDeviceForAccountPayout");
|
|
332106
|
-
MissingSwapPayloadParamaters3 = createCustomErrorClass3("MissingSwapPayloadParamaters");
|
|
332107
|
-
WrongDeviceForAccountRefund3 = createCustomErrorClass3("WrongDeviceForAccountRefund");
|
|
332108
|
-
WrongAppForCurrency3 = createCustomErrorClass3("WrongAppForCurrency");
|
|
332109
|
-
ETHAddressNonEIP3 = createCustomErrorClass3("ETHAddressNonEIP");
|
|
332110
|
-
CantScanQRCode3 = createCustomErrorClass3("CantScanQRCode");
|
|
332111
|
-
FeeNotLoaded3 = createCustomErrorClass3("FeeNotLoaded");
|
|
332112
|
-
FeeNotLoadedSwap3 = createCustomErrorClass3("FeeNotLoadedSwap");
|
|
332113
|
-
FeeRequired3 = createCustomErrorClass3("FeeRequired");
|
|
332114
|
-
FeeTooHigh3 = createCustomErrorClass3("FeeTooHigh");
|
|
332115
|
-
PendingOperation3 = createCustomErrorClass3("PendingOperation");
|
|
332116
|
-
SyncError3 = createCustomErrorClass3("SyncError");
|
|
332117
|
-
PairingFailed3 = createCustomErrorClass3("PairingFailed");
|
|
332118
|
-
PeerRemovedPairing3 = createCustomErrorClass3("PeerRemovedPairing");
|
|
332119
|
-
GenuineCheckFailed3 = createCustomErrorClass3("GenuineCheckFailed");
|
|
332120
|
-
LedgerAPI4xx3 = createCustomErrorClass3("LedgerAPI4xx");
|
|
332121
|
-
LedgerAPI5xx3 = createCustomErrorClass3("LedgerAPI5xx");
|
|
332122
|
-
FirmwareOrAppUpdateRequired3 = createCustomErrorClass3("FirmwareOrAppUpdateRequired");
|
|
332123
|
-
ReplacementTransactionUnderpriced3 = createCustomErrorClass3("ReplacementTransactionUnderpriced");
|
|
332124
|
-
OpReturnDataSizeLimit3 = createCustomErrorClass3("OpReturnSizeLimit");
|
|
332125
|
-
DustLimit3 = createCustomErrorClass3("DustLimit");
|
|
332126
|
-
LanguageNotFound3 = createCustomErrorClass3("LanguageNotFound");
|
|
332127
|
-
NoDBPathGiven3 = createCustomErrorClass3("NoDBPathGiven");
|
|
332128
|
-
DBWrongPassword3 = createCustomErrorClass3("DBWrongPassword");
|
|
332129
|
-
DBNotReset3 = createCustomErrorClass3("DBNotReset");
|
|
332130
|
-
SequenceNumberError3 = createCustomErrorClass3("SequenceNumberError");
|
|
332131
|
-
DisabledTransactionBroadcastError3 = createCustomErrorClass3("DisabledTransactionBroadcastError");
|
|
332132
|
-
(function(HwTransportErrorType4) {
|
|
332133
|
-
HwTransportErrorType4["Unknown"] = "Unknown";
|
|
332134
|
-
HwTransportErrorType4["LocationServicesDisabled"] = "LocationServicesDisabled";
|
|
332135
|
-
HwTransportErrorType4["LocationServicesUnauthorized"] = "LocationServicesUnauthorized";
|
|
332136
|
-
HwTransportErrorType4["BluetoothScanStartFailed"] = "BluetoothScanStartFailed";
|
|
332137
|
-
})(HwTransportErrorType3 || (HwTransportErrorType3 = {}));
|
|
332138
|
-
TransportError3 = class extends Error {
|
|
332139
|
-
id;
|
|
332140
|
-
constructor(message2, id5) {
|
|
332141
|
-
const name2 = "TransportError";
|
|
332142
|
-
super(message2 || name2);
|
|
332143
|
-
this.name = name2;
|
|
332144
|
-
this.message = message2;
|
|
332145
|
-
this.stack = new Error(message2).stack;
|
|
332146
|
-
this.id = id5;
|
|
332147
|
-
}
|
|
332148
|
-
};
|
|
332149
|
-
addCustomErrorDeserializer3("TransportError", (e35) => new TransportError3(e35.message, e35.id));
|
|
332150
|
-
StatusCodes3 = {
|
|
332151
|
-
ACCESS_CONDITION_NOT_FULFILLED: 38916,
|
|
332152
|
-
ALGORITHM_NOT_SUPPORTED: 38020,
|
|
332153
|
-
CLA_NOT_SUPPORTED: 28160,
|
|
332154
|
-
CODE_BLOCKED: 38976,
|
|
332155
|
-
CODE_NOT_INITIALIZED: 38914,
|
|
332156
|
-
COMMAND_INCOMPATIBLE_FILE_STRUCTURE: 27009,
|
|
332157
|
-
CONDITIONS_OF_USE_NOT_SATISFIED: 27013,
|
|
332158
|
-
CONTRADICTION_INVALIDATION: 38928,
|
|
332159
|
-
CONTRADICTION_SECRET_CODE_STATUS: 38920,
|
|
332160
|
-
DEVICE_IN_RECOVERY_MODE: 26159,
|
|
332161
|
-
CUSTOM_IMAGE_EMPTY: 26158,
|
|
332162
|
-
FILE_ALREADY_EXISTS: 27273,
|
|
332163
|
-
FILE_NOT_FOUND: 37892,
|
|
332164
|
-
GP_AUTH_FAILED: 25344,
|
|
332165
|
-
HALTED: 28586,
|
|
332166
|
-
INCONSISTENT_FILE: 37896,
|
|
332167
|
-
INCORRECT_DATA: 27264,
|
|
332168
|
-
INCORRECT_LENGTH: 26368,
|
|
332169
|
-
INCORRECT_P1_P2: 27392,
|
|
332170
|
-
INS_NOT_SUPPORTED: 27904,
|
|
332171
|
-
DEVICE_NOT_ONBOARDED: 27911,
|
|
332172
|
-
DEVICE_NOT_ONBOARDED_2: 26129,
|
|
332173
|
-
INVALID_KCV: 38021,
|
|
332174
|
-
INVALID_OFFSET: 37890,
|
|
332175
|
-
LICENSING: 28482,
|
|
332176
|
-
LOCKED_DEVICE: 21781,
|
|
332177
|
-
MAX_VALUE_REACHED: 38992,
|
|
332178
|
-
MEMORY_PROBLEM: 37440,
|
|
332179
|
-
MISSING_CRITICAL_PARAMETER: 26624,
|
|
332180
|
-
NO_EF_SELECTED: 37888,
|
|
332181
|
-
NOT_ENOUGH_MEMORY_SPACE: 27268,
|
|
332182
|
-
OK: 36864,
|
|
332183
|
-
PIN_REMAINING_ATTEMPTS: 25536,
|
|
332184
|
-
REFERENCED_DATA_NOT_FOUND: 27272,
|
|
332185
|
-
SECURITY_STATUS_NOT_SATISFIED: 27010,
|
|
332186
|
-
TECHNICAL_PROBLEM: 28416,
|
|
332187
|
-
UNKNOWN_APDU: 27906,
|
|
332188
|
-
USER_REFUSED_ON_DEVICE: 21761,
|
|
332189
|
-
NOT_ENOUGH_SPACE: 20738,
|
|
332190
|
-
APP_NOT_FOUND_OR_INVALID_CONTEXT: 20771,
|
|
332191
|
-
INVALID_APP_NAME_LENGTH: 26378,
|
|
332192
|
-
GEN_AES_KEY_FAILED: 21529,
|
|
332193
|
-
INTERNAL_CRYPTO_OPERATION_FAILED: 21530,
|
|
332194
|
-
INTERNAL_COMPUTE_AES_CMAC_FAILED: 21531,
|
|
332195
|
-
ENCRYPT_APP_STORAGE_FAILED: 21532,
|
|
332196
|
-
INVALID_BACKUP_STATE: 26178,
|
|
332197
|
-
PIN_NOT_SET: 21762,
|
|
332198
|
-
INVALID_BACKUP_LENGTH: 26419,
|
|
332199
|
-
INVALID_RESTORE_STATE: 26179,
|
|
332200
|
-
INVALID_CHUNK_LENGTH: 26420,
|
|
332201
|
-
INVALID_BACKUP_HEADER: 26698,
|
|
332202
|
-
// Not documented:
|
|
332203
|
-
TRUSTCHAIN_WRONG_SEED: 45063
|
|
332204
|
-
};
|
|
332205
|
-
TransportStatusError3 = class _TransportStatusError extends Error {
|
|
332206
|
-
statusCode;
|
|
332207
|
-
statusText;
|
|
332208
|
-
/**
|
|
332209
|
-
* @param statusCode The error status code coming from a Transport implementation
|
|
332210
|
-
* @param options containing:
|
|
332211
|
-
* - canBeMappedToChildError: enable the mapping of TransportStatusError to an error extending/inheriting from it
|
|
332212
|
-
* . Ex: LockedDeviceError. Default to true.
|
|
332213
|
-
*/
|
|
332214
|
-
constructor(statusCode, { canBeMappedToChildError = true } = {}) {
|
|
332215
|
-
const statusText = Object.keys(StatusCodes3).find((k17) => StatusCodes3[k17] === statusCode) || "UNKNOWN_ERROR";
|
|
332216
|
-
const smsg = getAltStatusMessage3(statusCode) || statusText;
|
|
332217
|
-
const statusCodeStr = statusCode.toString(16);
|
|
332218
|
-
const message2 = `Ledger device: ${smsg} (0x${statusCodeStr})`;
|
|
332219
|
-
super(message2);
|
|
332220
|
-
this.name = "TransportStatusError";
|
|
332221
|
-
this.statusCode = statusCode;
|
|
332222
|
-
this.statusText = statusText;
|
|
332223
|
-
Object.setPrototypeOf(this, _TransportStatusError.prototype);
|
|
332224
|
-
if (canBeMappedToChildError && statusCode === StatusCodes3.LOCKED_DEVICE) {
|
|
332225
|
-
return new LockedDeviceError3(message2);
|
|
332226
|
-
}
|
|
332227
|
-
}
|
|
332228
|
-
};
|
|
332229
|
-
LockedDeviceError3 = class _LockedDeviceError extends TransportStatusError3 {
|
|
332230
|
-
constructor(message2) {
|
|
332231
|
-
super(StatusCodes3.LOCKED_DEVICE, { canBeMappedToChildError: false });
|
|
332232
|
-
if (message2) {
|
|
332233
|
-
this.message = message2;
|
|
332234
|
-
}
|
|
332235
|
-
this.name = "LockedDeviceError";
|
|
332236
|
-
Object.setPrototypeOf(this, _LockedDeviceError.prototype);
|
|
332237
|
-
}
|
|
332238
|
-
};
|
|
332239
|
-
addCustomErrorDeserializer3("TransportStatusError", (e35) => new TransportStatusError3(e35.statusCode));
|
|
332240
|
-
}
|
|
332241
|
-
});
|
|
332242
|
-
|
|
332243
332251
|
// ../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/errors.js
|
|
332244
|
-
var
|
|
332252
|
+
var EthAppPleaseEnableContractData5, EthAppNftNotSupported2;
|
|
332245
332253
|
var init_errors = __esm({
|
|
332246
332254
|
"../../node_modules/.pnpm/@ledgerhq+hw-app-eth@6.29.7/node_modules/@ledgerhq/hw-app-eth/lib-es/errors.js"() {
|
|
332247
332255
|
"use strict";
|
|
332248
|
-
|
|
332249
|
-
|
|
332250
|
-
EthAppNftNotSupported2 =
|
|
332256
|
+
init_lib_es3();
|
|
332257
|
+
EthAppPleaseEnableContractData5 = createCustomErrorClass2("EthAppPleaseEnableContractData");
|
|
332258
|
+
EthAppNftNotSupported2 = createCustomErrorClass2("EthAppNftNotSupported");
|
|
332251
332259
|
}
|
|
332252
332260
|
});
|
|
332253
332261
|
|
|
@@ -333243,7 +333251,7 @@ var init_Eth = __esm({
|
|
|
333243
333251
|
};
|
|
333244
333252
|
remapTransactionRelatedErrors2 = function(e35) {
|
|
333245
333253
|
if (e35 && e35.statusCode === 27264) {
|
|
333246
|
-
return new
|
|
333254
|
+
return new EthAppPleaseEnableContractData5("Please enable Blind signing or Contract data in the Ethereum app Settings");
|
|
333247
333255
|
}
|
|
333248
333256
|
return e35;
|
|
333249
333257
|
};
|
|
@@ -351580,7 +351588,7 @@ var require_minimal4 = __commonJS({
|
|
|
351580
351588
|
util11.isString = function isString6(value2) {
|
|
351581
351589
|
return typeof value2 === "string" || value2 instanceof String;
|
|
351582
351590
|
};
|
|
351583
|
-
util11.isObject = function
|
|
351591
|
+
util11.isObject = function isObject13(value2) {
|
|
351584
351592
|
return value2 && typeof value2 === "object";
|
|
351585
351593
|
};
|
|
351586
351594
|
util11.isset = /**
|
|
@@ -366606,11 +366614,11 @@ var require_rpc_errors = __commonJS({
|
|
|
366606
366614
|
if (isString6(errorObj2[errorName])) {
|
|
366607
366615
|
return errorObj2[errorName];
|
|
366608
366616
|
}
|
|
366609
|
-
if (
|
|
366617
|
+
if (isObject13(errorObj2[errorName])) {
|
|
366610
366618
|
error = errorObj2[errorName];
|
|
366611
366619
|
type4 = schema3[errorName];
|
|
366612
366620
|
errorTypeName = errorName;
|
|
366613
|
-
} else if (
|
|
366621
|
+
} else if (isObject13(errorObj2.kind) && isObject13(errorObj2.kind[errorName])) {
|
|
366614
366622
|
error = errorObj2.kind[errorName];
|
|
366615
366623
|
type4 = schema3[errorName];
|
|
366616
366624
|
errorTypeName = errorName;
|
|
@@ -366645,7 +366653,7 @@ var require_rpc_errors = __commonJS({
|
|
|
366645
366653
|
}
|
|
366646
366654
|
}
|
|
366647
366655
|
exports2.getErrorTypeFromErrorMessage = getErrorTypeFromErrorMessage;
|
|
366648
|
-
function
|
|
366656
|
+
function isObject13(n146) {
|
|
366649
366657
|
return Object.prototype.toString.call(n146) === "[object Object]";
|
|
366650
366658
|
}
|
|
366651
366659
|
function isString6(n146) {
|
|
@@ -389908,7 +389916,7 @@ var require_contract = __commonJS({
|
|
|
389908
389916
|
}
|
|
389909
389917
|
function validateArguments(args3, abiFunction, ajv, abiRoot) {
|
|
389910
389918
|
var _a5;
|
|
389911
|
-
if (!
|
|
389919
|
+
if (!isObject13(args3))
|
|
389912
389920
|
return;
|
|
389913
389921
|
if (abiFunction.params && abiFunction.params.serialization_type !== near_abi_1.AbiSerializationType.Json) {
|
|
389914
389922
|
throw new errors_1.UnsupportedSerializationError(abiFunction.name, abiFunction.params.serialization_type);
|
|
@@ -389945,7 +389953,7 @@ var require_contract = __commonJS({
|
|
|
389945
389953
|
return ajv;
|
|
389946
389954
|
}
|
|
389947
389955
|
var isUint8Array2 = (x20) => x20 && x20.byteLength !== void 0 && x20.byteLength === x20.length;
|
|
389948
|
-
var
|
|
389956
|
+
var isObject13 = (x20) => Object.prototype.toString.call(x20) === "[object Object]";
|
|
389949
389957
|
var Contract4 = class {
|
|
389950
389958
|
/**
|
|
389951
389959
|
* @param account NEAR account to sign change method transactions
|
|
@@ -389972,7 +389980,7 @@ var require_contract = __commonJS({
|
|
|
389972
389980
|
writable: false,
|
|
389973
389981
|
enumerable: true,
|
|
389974
389982
|
value: nameFunction(name2, (args3 = {}, options25 = {}, ...ignored) => __awaiter12(this, void 0, void 0, function* () {
|
|
389975
|
-
if (ignored.length || !(
|
|
389983
|
+
if (ignored.length || !(isObject13(args3) || isUint8Array2(args3)) || !isObject13(options25)) {
|
|
389976
389984
|
throw new types_1.PositionalArgsError();
|
|
389977
389985
|
}
|
|
389978
389986
|
if (abi) {
|
|
@@ -389995,7 +390003,7 @@ var require_contract = __commonJS({
|
|
|
389995
390003
|
writable: false,
|
|
389996
390004
|
enumerable: true,
|
|
389997
390005
|
value: nameFunction(name2, (...args3) => __awaiter12(this, void 0, void 0, function* () {
|
|
389998
|
-
if (args3.length && (args3.length > 3 || !(
|
|
390006
|
+
if (args3.length && (args3.length > 3 || !(isObject13(args3[0]) || isUint8Array2(args3[0])))) {
|
|
389999
390007
|
throw new types_1.PositionalArgsError();
|
|
390000
390008
|
}
|
|
390001
390009
|
if (args3.length > 1 || !(args3[0] && args3[0].args)) {
|
|
@@ -391480,11 +391488,11 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
391480
391488
|
throw new TypeError(`${context} is not a function.`);
|
|
391481
391489
|
}
|
|
391482
391490
|
}
|
|
391483
|
-
function
|
|
391491
|
+
function isObject13(x20) {
|
|
391484
391492
|
return typeof x20 === "object" && x20 !== null || typeof x20 === "function";
|
|
391485
391493
|
}
|
|
391486
391494
|
function assertObject(x20, context) {
|
|
391487
|
-
if (!
|
|
391495
|
+
if (!isObject13(x20)) {
|
|
391488
391496
|
throw new TypeError(`${context} is not an object.`);
|
|
391489
391497
|
}
|
|
391490
391498
|
}
|
|
@@ -405158,7 +405166,7 @@ var require_lodash2 = __commonJS({
|
|
|
405158
405166
|
if (result2 !== void 0) {
|
|
405159
405167
|
return result2;
|
|
405160
405168
|
}
|
|
405161
|
-
if (!
|
|
405169
|
+
if (!isObject13(value2)) {
|
|
405162
405170
|
return value2;
|
|
405163
405171
|
}
|
|
405164
405172
|
var isArr = isArray6(value2);
|
|
@@ -405206,7 +405214,7 @@ var require_lodash2 = __commonJS({
|
|
|
405206
405214
|
return result2;
|
|
405207
405215
|
}
|
|
405208
405216
|
function baseCreate(proto39) {
|
|
405209
|
-
return
|
|
405217
|
+
return isObject13(proto39) ? objectCreate(proto39) : {};
|
|
405210
405218
|
}
|
|
405211
405219
|
function baseGetAllKeys(object5, keysFunc, symbolsFunc) {
|
|
405212
405220
|
var result2 = keysFunc(object5);
|
|
@@ -405216,7 +405224,7 @@ var require_lodash2 = __commonJS({
|
|
|
405216
405224
|
return objectToString.call(value2);
|
|
405217
405225
|
}
|
|
405218
405226
|
function baseIsNative(value2) {
|
|
405219
|
-
if (!
|
|
405227
|
+
if (!isObject13(value2) || isMasked(value2)) {
|
|
405220
405228
|
return false;
|
|
405221
405229
|
}
|
|
405222
405230
|
var pattern = isFunction6(value2) || isHostObject(value2) ? reIsNative : reIsHostCtor;
|
|
@@ -405415,13 +405423,13 @@ var require_lodash2 = __commonJS({
|
|
|
405415
405423
|
}
|
|
405416
405424
|
var isBuffer6 = nativeIsBuffer || stubFalse;
|
|
405417
405425
|
function isFunction6(value2) {
|
|
405418
|
-
var tag =
|
|
405426
|
+
var tag = isObject13(value2) ? objectToString.call(value2) : "";
|
|
405419
405427
|
return tag == funcTag || tag == genTag;
|
|
405420
405428
|
}
|
|
405421
405429
|
function isLength(value2) {
|
|
405422
405430
|
return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER2;
|
|
405423
405431
|
}
|
|
405424
|
-
function
|
|
405432
|
+
function isObject13(value2) {
|
|
405425
405433
|
var type4 = typeof value2;
|
|
405426
405434
|
return !!value2 && (type4 == "object" || type4 == "function");
|
|
405427
405435
|
}
|
|
@@ -456831,19 +456839,19 @@ var require_network2 = __commonJS({
|
|
|
456831
456839
|
return t48.__proto__ || Object.getPrototypeOf(t48);
|
|
456832
456840
|
}, _getPrototypeOf(t47);
|
|
456833
456841
|
}
|
|
456834
|
-
var
|
|
456835
|
-
function
|
|
456842
|
+
var NetworkError5 = exports2.NetworkError = function(_Error) {
|
|
456843
|
+
function NetworkError6(message2, response) {
|
|
456836
456844
|
var _this;
|
|
456837
|
-
_classCallCheck(this,
|
|
456838
|
-
var trueProto = (this instanceof
|
|
456839
|
-
_this = _callSuper(this,
|
|
456845
|
+
_classCallCheck(this, NetworkError6);
|
|
456846
|
+
var trueProto = (this instanceof NetworkError6 ? this.constructor : void 0).prototype;
|
|
456847
|
+
_this = _callSuper(this, NetworkError6, [message2]);
|
|
456840
456848
|
_this.__proto__ = trueProto;
|
|
456841
|
-
_this.constructor =
|
|
456849
|
+
_this.constructor = NetworkError6;
|
|
456842
456850
|
_this.response = response;
|
|
456843
456851
|
return _this;
|
|
456844
456852
|
}
|
|
456845
|
-
_inherits(
|
|
456846
|
-
return _createClass2(
|
|
456853
|
+
_inherits(NetworkError6, _Error);
|
|
456854
|
+
return _createClass2(NetworkError6, [{
|
|
456847
456855
|
key: "getResponse",
|
|
456848
456856
|
value: function getResponse() {
|
|
456849
456857
|
return this.response;
|
|
@@ -507819,7 +507827,7 @@ var require_utils48 = __commonJS({
|
|
|
507819
507827
|
}
|
|
507820
507828
|
} else if (object5 instanceof Date) {
|
|
507821
507829
|
return object5;
|
|
507822
|
-
} else if (
|
|
507830
|
+
} else if (isObject13(object5) && isObject13(subset)) {
|
|
507823
507831
|
if ((0, _jasmineUtils.equals)(object5, subset, [
|
|
507824
507832
|
iterableEquality,
|
|
507825
507833
|
subsetEquality
|
|
@@ -507930,8 +507938,8 @@ var require_utils48 = __commonJS({
|
|
|
507930
507938
|
return true;
|
|
507931
507939
|
};
|
|
507932
507940
|
exports2.iterableEquality = iterableEquality;
|
|
507933
|
-
var
|
|
507934
|
-
var isObjectWithKeys = (a67) =>
|
|
507941
|
+
var isObject13 = (a67) => a67 !== null && typeof a67 === "object";
|
|
507942
|
+
var isObjectWithKeys = (a67) => isObject13(a67) && !(a67 instanceof Error) && !(a67 instanceof Array) && !(a67 instanceof Date);
|
|
507935
507943
|
var subsetEquality = (object5, subset) => {
|
|
507936
507944
|
const subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object6, subset2) => {
|
|
507937
507945
|
if (!isObjectWithKeys(subset2)) {
|
|
@@ -511371,7 +511379,7 @@ var require_fill_range = __commonJS({
|
|
|
511371
511379
|
"use strict";
|
|
511372
511380
|
var util11 = require("util");
|
|
511373
511381
|
var toRegexRange = require_to_regex_range();
|
|
511374
|
-
var
|
|
511382
|
+
var isObject13 = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
511375
511383
|
var transform2 = (toNumber2) => {
|
|
511376
511384
|
return (value2) => toNumber2 === true ? Number(value2) : String(value2);
|
|
511377
511385
|
};
|
|
@@ -511550,7 +511558,7 @@ var require_fill_range = __commonJS({
|
|
|
511550
511558
|
if (typeof step === "function") {
|
|
511551
511559
|
return fill(start, end, 1, { transform: step });
|
|
511552
511560
|
}
|
|
511553
|
-
if (
|
|
511561
|
+
if (isObject13(step)) {
|
|
511554
511562
|
return fill(start, end, 0, step);
|
|
511555
511563
|
}
|
|
511556
511564
|
let opts = { ...options24 };
|
|
@@ -511558,7 +511566,7 @@ var require_fill_range = __commonJS({
|
|
|
511558
511566
|
opts.wrap = true;
|
|
511559
511567
|
step = step || opts.step || 1;
|
|
511560
511568
|
if (!isNumber5(step)) {
|
|
511561
|
-
if (step != null && !
|
|
511569
|
+
if (step != null && !isObject13(step))
|
|
511562
511570
|
return invalidStep(step, opts);
|
|
511563
511571
|
return fill(start, end, 1, step);
|
|
511564
511572
|
}
|
|
@@ -513509,7 +513517,7 @@ var require_picomatch = __commonJS({
|
|
|
513509
513517
|
var parse13 = require_parse11();
|
|
513510
513518
|
var utils6 = require_utils50();
|
|
513511
513519
|
var constants2 = require_constants31();
|
|
513512
|
-
var
|
|
513520
|
+
var isObject13 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
513513
513521
|
var picomatch = (glob, options24, returnState = false) => {
|
|
513514
513522
|
if (Array.isArray(glob)) {
|
|
513515
513523
|
const fns = glob.map((input) => picomatch(input, options24, returnState));
|
|
@@ -513523,7 +513531,7 @@ var require_picomatch = __commonJS({
|
|
|
513523
513531
|
};
|
|
513524
513532
|
return arrayMatcher;
|
|
513525
513533
|
}
|
|
513526
|
-
const isState =
|
|
513534
|
+
const isState = isObject13(glob) && glob.tokens && glob.input;
|
|
513527
513535
|
if (glob === "" || typeof glob !== "string" && !isState) {
|
|
513528
513536
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
513529
513537
|
}
|
|
@@ -518558,7 +518566,7 @@ var require_createTransaction = __commonJS({
|
|
|
518558
518566
|
};
|
|
518559
518567
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
518560
518568
|
exports2.createTransaction = createTransaction42;
|
|
518561
|
-
var logs_1 = (
|
|
518569
|
+
var logs_1 = (init_lib_es4(), __toCommonJS(lib_es_exports));
|
|
518562
518570
|
var hashPublicKey_1 = require_hashPublicKey();
|
|
518563
518571
|
var getWalletPublicKey_1 = require_getWalletPublicKey();
|
|
518564
518572
|
var getTrustedInput_1 = require_getTrustedInput();
|
|
@@ -519697,7 +519705,7 @@ var require_splitTransaction = __commonJS({
|
|
|
519697
519705
|
"use strict";
|
|
519698
519706
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
519699
519707
|
exports2.splitTransaction = splitTransaction3;
|
|
519700
|
-
var logs_1 = (
|
|
519708
|
+
var logs_1 = (init_lib_es4(), __toCommonJS(lib_es_exports));
|
|
519701
519709
|
var varint_1 = require_varint4();
|
|
519702
519710
|
var debug_1 = require_debug6();
|
|
519703
519711
|
function splitTransaction3(transactionHex, isSegwitSupported = false, hasExtraData = false, additionals = []) {
|
|
@@ -520281,7 +520289,7 @@ var require_package7 = __commonJS({
|
|
|
520281
520289
|
module2.exports = {
|
|
520282
520290
|
name: "@ledgerhq/live-common",
|
|
520283
520291
|
description: "Common ground for the Ledger Live apps",
|
|
520284
|
-
version: "34.53.0-nightly.
|
|
520292
|
+
version: "34.53.0-nightly.20251112023812",
|
|
520285
520293
|
repository: {
|
|
520286
520294
|
type: "git",
|
|
520287
520295
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -520620,7 +520628,7 @@ var require_package8 = __commonJS({
|
|
|
520620
520628
|
"package.json"(exports2, module2) {
|
|
520621
520629
|
module2.exports = {
|
|
520622
520630
|
name: "@ledgerhq/live-cli",
|
|
520623
|
-
version: "24.28.0-nightly.
|
|
520631
|
+
version: "24.28.0-nightly.20251112023812",
|
|
520624
520632
|
description: "ledger-live CLI version",
|
|
520625
520633
|
repository: {
|
|
520626
520634
|
type: "git",
|
|
@@ -520853,7 +520861,7 @@ var require_minimal6 = __commonJS({
|
|
|
520853
520861
|
util11.isString = function isString6(value2) {
|
|
520854
520862
|
return typeof value2 === "string" || value2 instanceof String;
|
|
520855
520863
|
};
|
|
520856
|
-
util11.isObject = function
|
|
520864
|
+
util11.isObject = function isObject13(value2) {
|
|
520857
520865
|
return value2 && typeof value2 === "object";
|
|
520858
520866
|
};
|
|
520859
520867
|
util11.isset = /**
|
|
@@ -525715,6 +525723,11 @@ var envDefinitions = {
|
|
|
525715
525723
|
parser: intParser,
|
|
525716
525724
|
desc: "defines the time to wait before installing apps to prevent known glitch (<=1.5.5) when chaining installs"
|
|
525717
525725
|
},
|
|
525726
|
+
MIXPANEL_API_HOST: {
|
|
525727
|
+
def: "https://api.mixpanel.com",
|
|
525728
|
+
parser: stringParser,
|
|
525729
|
+
desc: "Mixpanel API host URL"
|
|
525730
|
+
},
|
|
525718
525731
|
MAPPING_SERVICE: {
|
|
525719
525732
|
def: "https://mapping-service.api.ledger.com",
|
|
525720
525733
|
parser: stringParser,
|
|
@@ -542214,307 +542227,8 @@ var schemaRPCResponse = external_exports.union([
|
|
|
542214
542227
|
]);
|
|
542215
542228
|
var schemaRPCCall = external_exports.union([schemaRPCRequest, schemaRPCResponse]);
|
|
542216
542229
|
|
|
542217
|
-
// ../../node_modules/.pnpm/@ledgerhq+
|
|
542218
|
-
|
|
542219
|
-
var deserializers2 = {};
|
|
542220
|
-
var addCustomErrorDeserializer2 = (name2, deserializer) => {
|
|
542221
|
-
deserializers2[name2] = deserializer;
|
|
542222
|
-
};
|
|
542223
|
-
var createCustomErrorClass2 = (name2) => {
|
|
542224
|
-
class CustomErrorClass extends Error {
|
|
542225
|
-
cause;
|
|
542226
|
-
constructor(message2, fields, options24) {
|
|
542227
|
-
super(message2 || name2, options24);
|
|
542228
|
-
Object.setPrototypeOf(this, CustomErrorClass.prototype);
|
|
542229
|
-
this.name = name2;
|
|
542230
|
-
if (fields) {
|
|
542231
|
-
for (const k17 in fields) {
|
|
542232
|
-
this[k17] = fields[k17];
|
|
542233
|
-
}
|
|
542234
|
-
}
|
|
542235
|
-
if (options24 && isObject4(options24) && "cause" in options24 && !this.cause) {
|
|
542236
|
-
const cause = options24.cause;
|
|
542237
|
-
this.cause = cause;
|
|
542238
|
-
if ("stack" in cause) {
|
|
542239
|
-
this.stack = this.stack + "\nCAUSE: " + cause.stack;
|
|
542240
|
-
}
|
|
542241
|
-
}
|
|
542242
|
-
}
|
|
542243
|
-
}
|
|
542244
|
-
errorClasses2[name2] = CustomErrorClass;
|
|
542245
|
-
return CustomErrorClass;
|
|
542246
|
-
};
|
|
542247
|
-
function isObject4(value2) {
|
|
542248
|
-
return typeof value2 === "object";
|
|
542249
|
-
}
|
|
542250
|
-
|
|
542251
|
-
// ../../node_modules/.pnpm/@ledgerhq+errors@6.25.0/node_modules/@ledgerhq/errors/lib-es/index.js
|
|
542252
|
-
var AccountNameRequiredError2 = createCustomErrorClass2("AccountNameRequired");
|
|
542253
|
-
var AccountNotSupported2 = createCustomErrorClass2("AccountNotSupported");
|
|
542254
|
-
var AccountAwaitingSendPendingOperations2 = createCustomErrorClass2("AccountAwaitingSendPendingOperations");
|
|
542255
|
-
var AmountRequired2 = createCustomErrorClass2("AmountRequired");
|
|
542256
|
-
var BluetoothRequired2 = createCustomErrorClass2("BluetoothRequired");
|
|
542257
|
-
var BtcUnmatchedApp2 = createCustomErrorClass2("BtcUnmatchedApp");
|
|
542258
|
-
var CantOpenDevice2 = createCustomErrorClass2("CantOpenDevice");
|
|
542259
|
-
var CashAddrNotSupported2 = createCustomErrorClass2("CashAddrNotSupported");
|
|
542260
|
-
var ClaimRewardsFeesWarning2 = createCustomErrorClass2("ClaimRewardsFeesWarning");
|
|
542261
|
-
var CurrencyNotSupported2 = createCustomErrorClass2("CurrencyNotSupported");
|
|
542262
|
-
var DeviceAppVerifyNotSupported2 = createCustomErrorClass2("DeviceAppVerifyNotSupported");
|
|
542263
|
-
var DeviceGenuineSocketEarlyClose2 = createCustomErrorClass2("DeviceGenuineSocketEarlyClose");
|
|
542264
|
-
var DeviceNotGenuineError2 = createCustomErrorClass2("DeviceNotGenuine");
|
|
542265
|
-
var DeviceOnDashboardExpected2 = createCustomErrorClass2("DeviceOnDashboardExpected");
|
|
542266
|
-
var DeviceOnDashboardUnexpected2 = createCustomErrorClass2("DeviceOnDashboardUnexpected");
|
|
542267
|
-
var DeviceInOSUExpected2 = createCustomErrorClass2("DeviceInOSUExpected");
|
|
542268
|
-
var DeviceHalted2 = createCustomErrorClass2("DeviceHalted");
|
|
542269
|
-
var DeviceNameInvalid2 = createCustomErrorClass2("DeviceNameInvalid");
|
|
542270
|
-
var DeviceSocketFail2 = createCustomErrorClass2("DeviceSocketFail");
|
|
542271
|
-
var DeviceSocketNoBulkStatus2 = createCustomErrorClass2("DeviceSocketNoBulkStatus");
|
|
542272
|
-
var DeviceNeedsRestart2 = createCustomErrorClass2("DeviceSocketNoBulkStatus");
|
|
542273
|
-
var UnresponsiveDeviceError2 = createCustomErrorClass2("UnresponsiveDeviceError");
|
|
542274
|
-
var DisconnectedDevice2 = createCustomErrorClass2("DisconnectedDevice");
|
|
542275
|
-
var DisconnectedDeviceDuringOperation2 = createCustomErrorClass2("DisconnectedDeviceDuringOperation");
|
|
542276
|
-
var DeviceExtractOnboardingStateError2 = createCustomErrorClass2("DeviceExtractOnboardingStateError");
|
|
542277
|
-
var DeviceOnboardingStatePollingError2 = createCustomErrorClass2("DeviceOnboardingStatePollingError");
|
|
542278
|
-
var EnpointConfigError2 = createCustomErrorClass2("EnpointConfig");
|
|
542279
|
-
var EthAppPleaseEnableContractData2 = createCustomErrorClass2("EthAppPleaseEnableContractData");
|
|
542280
|
-
var FeeEstimationFailed2 = createCustomErrorClass2("FeeEstimationFailed");
|
|
542281
|
-
var FirmwareNotRecognized2 = createCustomErrorClass2("FirmwareNotRecognized");
|
|
542282
|
-
var HardResetFail2 = createCustomErrorClass2("HardResetFail");
|
|
542283
|
-
var InvalidXRPTag2 = createCustomErrorClass2("InvalidXRPTag");
|
|
542284
|
-
var InvalidAddress2 = createCustomErrorClass2("InvalidAddress");
|
|
542285
|
-
var InvalidNonce2 = createCustomErrorClass2("InvalidNonce");
|
|
542286
|
-
var InvalidAddressBecauseDestinationIsAlsoSource2 = createCustomErrorClass2("InvalidAddressBecauseDestinationIsAlsoSource");
|
|
542287
|
-
var LatestMCUInstalledError2 = createCustomErrorClass2("LatestMCUInstalledError");
|
|
542288
|
-
var LatestFirmwareVersionRequired2 = createCustomErrorClass2("LatestFirmwareVersionRequired");
|
|
542289
|
-
var UnknownMCU2 = createCustomErrorClass2("UnknownMCU");
|
|
542290
|
-
var LedgerAPIError2 = createCustomErrorClass2("LedgerAPIError");
|
|
542291
|
-
var LedgerAPIErrorWithMessage2 = createCustomErrorClass2("LedgerAPIErrorWithMessage");
|
|
542292
|
-
var LedgerAPINotAvailable2 = createCustomErrorClass2("LedgerAPINotAvailable");
|
|
542293
|
-
var ManagerAppAlreadyInstalledError2 = createCustomErrorClass2("ManagerAppAlreadyInstalled");
|
|
542294
|
-
var ManagerAppRelyOnBTCError2 = createCustomErrorClass2("ManagerAppRelyOnBTC");
|
|
542295
|
-
var ManagerAppDepInstallRequired2 = createCustomErrorClass2("ManagerAppDepInstallRequired");
|
|
542296
|
-
var ManagerAppDepUninstallRequired2 = createCustomErrorClass2("ManagerAppDepUninstallRequired");
|
|
542297
|
-
var ManagerDeviceLockedError2 = createCustomErrorClass2("ManagerDeviceLocked");
|
|
542298
|
-
var ManagerFirmwareNotEnoughSpaceError2 = createCustomErrorClass2("ManagerFirmwareNotEnoughSpace");
|
|
542299
|
-
var ManagerNotEnoughSpaceError2 = createCustomErrorClass2("ManagerNotEnoughSpace");
|
|
542300
|
-
var ManagerUninstallBTCDep2 = createCustomErrorClass2("ManagerUninstallBTCDep");
|
|
542301
|
-
var NetworkDown2 = createCustomErrorClass2("NetworkDown");
|
|
542302
|
-
var NetworkError2 = createCustomErrorClass2("NetworkError");
|
|
542303
|
-
var NoAddressesFound2 = createCustomErrorClass2("NoAddressesFound");
|
|
542304
|
-
var NotEnoughBalance2 = createCustomErrorClass2("NotEnoughBalance");
|
|
542305
|
-
var NotEnoughBalanceFees2 = createCustomErrorClass2("NotEnoughBalanceFees");
|
|
542306
|
-
var NotEnoughBalanceSwap2 = createCustomErrorClass2("NotEnoughBalanceSwap");
|
|
542307
|
-
var NotEnoughBalanceToDelegate2 = createCustomErrorClass2("NotEnoughBalanceToDelegate");
|
|
542308
|
-
var UnstakeNotEnoughStakedBalanceLeft2 = createCustomErrorClass2("UnstakeNotEnoughStakedBalanceLeft");
|
|
542309
|
-
var RestakeNotEnoughStakedBalanceLeft2 = createCustomErrorClass2("RestakeNotEnoughStakedBalanceLeft");
|
|
542310
|
-
var NotEnoughToRestake2 = createCustomErrorClass2("NotEnoughToRestake");
|
|
542311
|
-
var NotEnoughToUnstake2 = createCustomErrorClass2("NotEnoughToUnstake");
|
|
542312
|
-
var NotEnoughBalanceInParentAccount2 = createCustomErrorClass2("NotEnoughBalanceInParentAccount");
|
|
542313
|
-
var NotEnoughSpendableBalance2 = createCustomErrorClass2("NotEnoughSpendableBalance");
|
|
542314
|
-
var NotEnoughBalanceBecauseDestinationNotCreated2 = createCustomErrorClass2("NotEnoughBalanceBecauseDestinationNotCreated");
|
|
542315
|
-
var NotEnoughToStake2 = createCustomErrorClass2("NotEnoughToStake");
|
|
542316
|
-
var NoAccessToCamera2 = createCustomErrorClass2("NoAccessToCamera");
|
|
542317
|
-
var NotEnoughGas2 = createCustomErrorClass2("NotEnoughGas");
|
|
542318
|
-
var NotEnoughGasSwap2 = createCustomErrorClass2("NotEnoughGasSwap");
|
|
542319
|
-
var TronEmptyAccount2 = createCustomErrorClass2("TronEmptyAccount");
|
|
542320
|
-
var MaybeKeepTronAccountAlive2 = createCustomErrorClass2("MaybeKeepTronAccountAlive");
|
|
542321
|
-
var NotSupportedLegacyAddress2 = createCustomErrorClass2("NotSupportedLegacyAddress");
|
|
542322
|
-
var GasLessThanEstimate2 = createCustomErrorClass2("GasLessThanEstimate");
|
|
542323
|
-
var PriorityFeeTooLow2 = createCustomErrorClass2("PriorityFeeTooLow");
|
|
542324
|
-
var PriorityFeeTooHigh2 = createCustomErrorClass2("PriorityFeeTooHigh");
|
|
542325
|
-
var PriorityFeeHigherThanMaxFee2 = createCustomErrorClass2("PriorityFeeHigherThanMaxFee");
|
|
542326
|
-
var MaxFeeTooLow2 = createCustomErrorClass2("MaxFeeTooLow");
|
|
542327
|
-
var PasswordsDontMatchError2 = createCustomErrorClass2("PasswordsDontMatch");
|
|
542328
|
-
var PasswordIncorrectError2 = createCustomErrorClass2("PasswordIncorrect");
|
|
542329
|
-
var RecommendSubAccountsToEmpty2 = createCustomErrorClass2("RecommendSubAccountsToEmpty");
|
|
542330
|
-
var RecommendUndelegation2 = createCustomErrorClass2("RecommendUndelegation");
|
|
542331
|
-
var TimeoutTagged2 = createCustomErrorClass2("TimeoutTagged");
|
|
542332
|
-
var UnexpectedBootloader2 = createCustomErrorClass2("UnexpectedBootloader");
|
|
542333
|
-
var MCUNotGenuineToDashboard2 = createCustomErrorClass2("MCUNotGenuineToDashboard");
|
|
542334
|
-
var RecipientRequired2 = createCustomErrorClass2("RecipientRequired");
|
|
542335
|
-
var UnavailableTezosOriginatedAccountReceive2 = createCustomErrorClass2("UnavailableTezosOriginatedAccountReceive");
|
|
542336
|
-
var UnavailableTezosOriginatedAccountSend2 = createCustomErrorClass2("UnavailableTezosOriginatedAccountSend");
|
|
542337
|
-
var UpdateFetchFileFail2 = createCustomErrorClass2("UpdateFetchFileFail");
|
|
542338
|
-
var UpdateIncorrectHash2 = createCustomErrorClass2("UpdateIncorrectHash");
|
|
542339
|
-
var UpdateIncorrectSig2 = createCustomErrorClass2("UpdateIncorrectSig");
|
|
542340
|
-
var UpdateYourApp2 = createCustomErrorClass2("UpdateYourApp");
|
|
542341
|
-
var UserRefusedDeviceNameChange2 = createCustomErrorClass2("UserRefusedDeviceNameChange");
|
|
542342
|
-
var UserRefusedAddress2 = createCustomErrorClass2("UserRefusedAddress");
|
|
542343
|
-
var UserRefusedFirmwareUpdate2 = createCustomErrorClass2("UserRefusedFirmwareUpdate");
|
|
542344
|
-
var UserRefusedAllowManager2 = createCustomErrorClass2("UserRefusedAllowManager");
|
|
542345
|
-
var UserRefusedOnDevice2 = createCustomErrorClass2("UserRefusedOnDevice");
|
|
542346
|
-
var PinNotSet2 = createCustomErrorClass2("PinNotSet");
|
|
542347
|
-
var ExpertModeRequired2 = createCustomErrorClass2("ExpertModeRequired");
|
|
542348
|
-
var TransportOpenUserCancelled2 = createCustomErrorClass2("TransportOpenUserCancelled");
|
|
542349
|
-
var TransportInterfaceNotAvailable2 = createCustomErrorClass2("TransportInterfaceNotAvailable");
|
|
542350
|
-
var TransportRaceCondition2 = createCustomErrorClass2("TransportRaceCondition");
|
|
542351
|
-
var TransportWebUSBGestureRequired2 = createCustomErrorClass2("TransportWebUSBGestureRequired");
|
|
542352
|
-
var TransactionHasBeenValidatedError2 = createCustomErrorClass2("TransactionHasBeenValidatedError");
|
|
542353
|
-
var TransportExchangeTimeoutError2 = createCustomErrorClass2("TransportExchangeTimeoutError");
|
|
542354
|
-
var DeviceShouldStayInApp2 = createCustomErrorClass2("DeviceShouldStayInApp");
|
|
542355
|
-
var WebsocketConnectionError2 = createCustomErrorClass2("WebsocketConnectionError");
|
|
542356
|
-
var WebsocketConnectionFailed2 = createCustomErrorClass2("WebsocketConnectionFailed");
|
|
542357
|
-
var WrongDeviceForAccount2 = createCustomErrorClass2("WrongDeviceForAccount");
|
|
542358
|
-
var WrongDeviceForAccountPayout2 = createCustomErrorClass2("WrongDeviceForAccountPayout");
|
|
542359
|
-
var MissingSwapPayloadParamaters2 = createCustomErrorClass2("MissingSwapPayloadParamaters");
|
|
542360
|
-
var WrongDeviceForAccountRefund2 = createCustomErrorClass2("WrongDeviceForAccountRefund");
|
|
542361
|
-
var WrongAppForCurrency2 = createCustomErrorClass2("WrongAppForCurrency");
|
|
542362
|
-
var ETHAddressNonEIP2 = createCustomErrorClass2("ETHAddressNonEIP");
|
|
542363
|
-
var CantScanQRCode2 = createCustomErrorClass2("CantScanQRCode");
|
|
542364
|
-
var FeeNotLoaded2 = createCustomErrorClass2("FeeNotLoaded");
|
|
542365
|
-
var FeeNotLoadedSwap2 = createCustomErrorClass2("FeeNotLoadedSwap");
|
|
542366
|
-
var FeeRequired2 = createCustomErrorClass2("FeeRequired");
|
|
542367
|
-
var FeeTooHigh2 = createCustomErrorClass2("FeeTooHigh");
|
|
542368
|
-
var PendingOperation2 = createCustomErrorClass2("PendingOperation");
|
|
542369
|
-
var SyncError2 = createCustomErrorClass2("SyncError");
|
|
542370
|
-
var PairingFailed2 = createCustomErrorClass2("PairingFailed");
|
|
542371
|
-
var PeerRemovedPairing2 = createCustomErrorClass2("PeerRemovedPairing");
|
|
542372
|
-
var GenuineCheckFailed2 = createCustomErrorClass2("GenuineCheckFailed");
|
|
542373
|
-
var LedgerAPI4xx2 = createCustomErrorClass2("LedgerAPI4xx");
|
|
542374
|
-
var LedgerAPI5xx2 = createCustomErrorClass2("LedgerAPI5xx");
|
|
542375
|
-
var FirmwareOrAppUpdateRequired2 = createCustomErrorClass2("FirmwareOrAppUpdateRequired");
|
|
542376
|
-
var ReplacementTransactionUnderpriced2 = createCustomErrorClass2("ReplacementTransactionUnderpriced");
|
|
542377
|
-
var OpReturnDataSizeLimit2 = createCustomErrorClass2("OpReturnSizeLimit");
|
|
542378
|
-
var DustLimit2 = createCustomErrorClass2("DustLimit");
|
|
542379
|
-
var HederaInsufficientFundsForAssociation = createCustomErrorClass2("HederaInsufficientFundsForAssociation");
|
|
542380
|
-
var HederaRecipientTokenAssociationRequired = createCustomErrorClass2("HederaRecipientTokenAssociationRequired");
|
|
542381
|
-
var HederaRecipientTokenAssociationUnverified = createCustomErrorClass2("HederaRecipientTokenAssociationUnverified");
|
|
542382
|
-
var LanguageNotFound2 = createCustomErrorClass2("LanguageNotFound");
|
|
542383
|
-
var NoDBPathGiven2 = createCustomErrorClass2("NoDBPathGiven");
|
|
542384
|
-
var DBWrongPassword2 = createCustomErrorClass2("DBWrongPassword");
|
|
542385
|
-
var DBNotReset2 = createCustomErrorClass2("DBNotReset");
|
|
542386
|
-
var SequenceNumberError2 = createCustomErrorClass2("SequenceNumberError");
|
|
542387
|
-
var DisabledTransactionBroadcastError2 = createCustomErrorClass2("DisabledTransactionBroadcastError");
|
|
542388
|
-
var HwTransportErrorType2;
|
|
542389
|
-
(function(HwTransportErrorType4) {
|
|
542390
|
-
HwTransportErrorType4["Unknown"] = "Unknown";
|
|
542391
|
-
HwTransportErrorType4["LocationServicesDisabled"] = "LocationServicesDisabled";
|
|
542392
|
-
HwTransportErrorType4["LocationServicesUnauthorized"] = "LocationServicesUnauthorized";
|
|
542393
|
-
HwTransportErrorType4["BluetoothScanStartFailed"] = "BluetoothScanStartFailed";
|
|
542394
|
-
})(HwTransportErrorType2 || (HwTransportErrorType2 = {}));
|
|
542395
|
-
var TransportError2 = class extends Error {
|
|
542396
|
-
id;
|
|
542397
|
-
constructor(message2, id5) {
|
|
542398
|
-
const name2 = "TransportError";
|
|
542399
|
-
super(message2 || name2);
|
|
542400
|
-
this.name = name2;
|
|
542401
|
-
this.message = message2;
|
|
542402
|
-
this.stack = new Error(message2).stack;
|
|
542403
|
-
this.id = id5;
|
|
542404
|
-
}
|
|
542405
|
-
};
|
|
542406
|
-
addCustomErrorDeserializer2("TransportError", (e35) => new TransportError2(e35.message, e35.id));
|
|
542407
|
-
var StatusCodes2 = {
|
|
542408
|
-
ACCESS_CONDITION_NOT_FULFILLED: 38916,
|
|
542409
|
-
ALGORITHM_NOT_SUPPORTED: 38020,
|
|
542410
|
-
CLA_NOT_SUPPORTED: 28160,
|
|
542411
|
-
CODE_BLOCKED: 38976,
|
|
542412
|
-
CODE_NOT_INITIALIZED: 38914,
|
|
542413
|
-
COMMAND_INCOMPATIBLE_FILE_STRUCTURE: 27009,
|
|
542414
|
-
CONDITIONS_OF_USE_NOT_SATISFIED: 27013,
|
|
542415
|
-
CONTRADICTION_INVALIDATION: 38928,
|
|
542416
|
-
CONTRADICTION_SECRET_CODE_STATUS: 38920,
|
|
542417
|
-
DEVICE_IN_RECOVERY_MODE: 26159,
|
|
542418
|
-
CUSTOM_IMAGE_EMPTY: 26158,
|
|
542419
|
-
FILE_ALREADY_EXISTS: 27273,
|
|
542420
|
-
FILE_NOT_FOUND: 37892,
|
|
542421
|
-
GP_AUTH_FAILED: 25344,
|
|
542422
|
-
HALTED: 28586,
|
|
542423
|
-
INCONSISTENT_FILE: 37896,
|
|
542424
|
-
INCORRECT_DATA: 27264,
|
|
542425
|
-
INCORRECT_LENGTH: 26368,
|
|
542426
|
-
INCORRECT_P1_P2: 27392,
|
|
542427
|
-
INS_NOT_SUPPORTED: 27904,
|
|
542428
|
-
DEVICE_NOT_ONBOARDED: 27911,
|
|
542429
|
-
DEVICE_NOT_ONBOARDED_2: 26129,
|
|
542430
|
-
INVALID_KCV: 38021,
|
|
542431
|
-
INVALID_OFFSET: 37890,
|
|
542432
|
-
LICENSING: 28482,
|
|
542433
|
-
LOCKED_DEVICE: 21781,
|
|
542434
|
-
MAX_VALUE_REACHED: 38992,
|
|
542435
|
-
MEMORY_PROBLEM: 37440,
|
|
542436
|
-
MISSING_CRITICAL_PARAMETER: 26624,
|
|
542437
|
-
NO_EF_SELECTED: 37888,
|
|
542438
|
-
NOT_ENOUGH_MEMORY_SPACE: 27268,
|
|
542439
|
-
OK: 36864,
|
|
542440
|
-
PIN_REMAINING_ATTEMPTS: 25536,
|
|
542441
|
-
REFERENCED_DATA_NOT_FOUND: 27272,
|
|
542442
|
-
SECURITY_STATUS_NOT_SATISFIED: 27010,
|
|
542443
|
-
TECHNICAL_PROBLEM: 28416,
|
|
542444
|
-
UNKNOWN_APDU: 27906,
|
|
542445
|
-
USER_REFUSED_ON_DEVICE: 21761,
|
|
542446
|
-
NOT_ENOUGH_SPACE: 20738,
|
|
542447
|
-
APP_NOT_FOUND_OR_INVALID_CONTEXT: 20771,
|
|
542448
|
-
INVALID_APP_NAME_LENGTH: 26378,
|
|
542449
|
-
GEN_AES_KEY_FAILED: 21529,
|
|
542450
|
-
INTERNAL_CRYPTO_OPERATION_FAILED: 21530,
|
|
542451
|
-
INTERNAL_COMPUTE_AES_CMAC_FAILED: 21531,
|
|
542452
|
-
ENCRYPT_APP_STORAGE_FAILED: 21532,
|
|
542453
|
-
INVALID_BACKUP_STATE: 26178,
|
|
542454
|
-
PIN_NOT_SET: 21762,
|
|
542455
|
-
INVALID_BACKUP_LENGTH: 26419,
|
|
542456
|
-
INVALID_RESTORE_STATE: 26179,
|
|
542457
|
-
INVALID_CHUNK_LENGTH: 26420,
|
|
542458
|
-
INVALID_BACKUP_HEADER: 26698,
|
|
542459
|
-
// Not documented:
|
|
542460
|
-
TRUSTCHAIN_WRONG_SEED: 45063
|
|
542461
|
-
};
|
|
542462
|
-
function getAltStatusMessage2(code) {
|
|
542463
|
-
switch (code) {
|
|
542464
|
-
case 26368:
|
|
542465
|
-
return "Incorrect length";
|
|
542466
|
-
case 26624:
|
|
542467
|
-
return "Missing critical parameter";
|
|
542468
|
-
case 27010:
|
|
542469
|
-
return "Security not satisfied (dongle locked or have invalid access rights)";
|
|
542470
|
-
case 27013:
|
|
542471
|
-
return "Condition of use not satisfied (denied by the user?)";
|
|
542472
|
-
case 27264:
|
|
542473
|
-
return "Invalid data received";
|
|
542474
|
-
case 27392:
|
|
542475
|
-
return "Invalid parameter received";
|
|
542476
|
-
case 21781:
|
|
542477
|
-
return "Locked device";
|
|
542478
|
-
}
|
|
542479
|
-
if (28416 <= code && code <= 28671) {
|
|
542480
|
-
return "Internal error, please report";
|
|
542481
|
-
}
|
|
542482
|
-
}
|
|
542483
|
-
var TransportStatusError2 = class _TransportStatusError extends Error {
|
|
542484
|
-
statusCode;
|
|
542485
|
-
statusText;
|
|
542486
|
-
/**
|
|
542487
|
-
* @param statusCode The error status code coming from a Transport implementation
|
|
542488
|
-
* @param options containing:
|
|
542489
|
-
* - canBeMappedToChildError: enable the mapping of TransportStatusError to an error extending/inheriting from it
|
|
542490
|
-
* . Ex: LockedDeviceError. Default to true.
|
|
542491
|
-
*/
|
|
542492
|
-
constructor(statusCode, { canBeMappedToChildError = true } = {}) {
|
|
542493
|
-
const statusText = Object.keys(StatusCodes2).find((k17) => StatusCodes2[k17] === statusCode) || "UNKNOWN_ERROR";
|
|
542494
|
-
const smsg = getAltStatusMessage2(statusCode) || statusText;
|
|
542495
|
-
const statusCodeStr = statusCode.toString(16);
|
|
542496
|
-
const message2 = `Ledger device: ${smsg} (0x${statusCodeStr})`;
|
|
542497
|
-
super(message2);
|
|
542498
|
-
this.name = "TransportStatusError";
|
|
542499
|
-
this.statusCode = statusCode;
|
|
542500
|
-
this.statusText = statusText;
|
|
542501
|
-
Object.setPrototypeOf(this, _TransportStatusError.prototype);
|
|
542502
|
-
if (canBeMappedToChildError && statusCode === StatusCodes2.LOCKED_DEVICE) {
|
|
542503
|
-
return new LockedDeviceError2(message2);
|
|
542504
|
-
}
|
|
542505
|
-
}
|
|
542506
|
-
};
|
|
542507
|
-
var LockedDeviceError2 = class _LockedDeviceError extends TransportStatusError2 {
|
|
542508
|
-
constructor(message2) {
|
|
542509
|
-
super(StatusCodes2.LOCKED_DEVICE, { canBeMappedToChildError: false });
|
|
542510
|
-
if (message2) {
|
|
542511
|
-
this.message = message2;
|
|
542512
|
-
}
|
|
542513
|
-
this.name = "LockedDeviceError";
|
|
542514
|
-
Object.setPrototypeOf(this, _LockedDeviceError.prototype);
|
|
542515
|
-
}
|
|
542516
|
-
};
|
|
542517
|
-
addCustomErrorDeserializer2("TransportStatusError", (e35) => new TransportStatusError2(e35.statusCode));
|
|
542230
|
+
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.25.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/JSONRPC/RpcNode.js
|
|
542231
|
+
init_lib_es3();
|
|
542518
542232
|
|
|
542519
542233
|
// ../../node_modules/.pnpm/@ledgerhq+wallet-api-core@1.25.0_@ton+crypto@3.3.0/node_modules/@ledgerhq/wallet-api-core/lib-es/spec/types/AccountList.js
|
|
542520
542234
|
var schemaAccountListParams = external_exports.object({
|
|
@@ -698230,19 +697944,19 @@ function isHex(value2, bitLength = -1, ignoreLength) {
|
|
|
698230
697944
|
}
|
|
698231
697945
|
|
|
698232
697946
|
// ../../node_modules/.pnpm/@polkadot+util@12.6.2/node_modules/@polkadot/util/is/object.js
|
|
698233
|
-
function
|
|
697947
|
+
function isObject8(value2) {
|
|
698234
697948
|
return !!value2 && typeof value2 === "object";
|
|
698235
697949
|
}
|
|
698236
697950
|
|
|
698237
697951
|
// ../../node_modules/.pnpm/@polkadot+util@12.6.2/node_modules/@polkadot/util/is/helpers.js
|
|
698238
697952
|
function isOn(...fns) {
|
|
698239
|
-
return (value2) => (
|
|
697953
|
+
return (value2) => (isObject8(value2) || isFunction4(value2)) && fns.every((f51) => isFunction4(value2[f51]));
|
|
698240
697954
|
}
|
|
698241
697955
|
function isOnFunction(...fns) {
|
|
698242
697956
|
return (value2) => isFunction4(value2) && fns.every((f51) => isFunction4(value2[f51]));
|
|
698243
697957
|
}
|
|
698244
697958
|
function isOnObject(...fns) {
|
|
698245
|
-
return (value2) =>
|
|
697959
|
+
return (value2) => isObject8(value2) && fns.every((f51) => isFunction4(value2[f51]));
|
|
698246
697960
|
}
|
|
698247
697961
|
|
|
698248
697962
|
// ../../node_modules/.pnpm/@polkadot+util@12.6.2/node_modules/@polkadot/util/is/toBigInt.js
|
|
@@ -699037,7 +698751,7 @@ var logTo = {
|
|
|
699037
698751
|
warn: "warn"
|
|
699038
698752
|
};
|
|
699039
698753
|
function formatOther(value2) {
|
|
699040
|
-
if (value2 &&
|
|
698754
|
+
if (value2 && isObject8(value2) && value2.constructor === Object) {
|
|
699041
698755
|
const result2 = {};
|
|
699042
698756
|
for (const [k17, v36] of Object.entries(value2)) {
|
|
699043
698757
|
result2[k17] = loggerFormat(v36);
|
|
@@ -709826,7 +709540,7 @@ function decodeAbstractInt(value2, isNegative) {
|
|
|
709826
709540
|
return value2;
|
|
709827
709541
|
} else if (isBn(value2) || isBigInt2(value2)) {
|
|
709828
709542
|
return value2.toString();
|
|
709829
|
-
} else if (
|
|
709543
|
+
} else if (isObject8(value2)) {
|
|
709830
709544
|
if (isToBn2(value2)) {
|
|
709831
709545
|
return value2.toBn().toString();
|
|
709832
709546
|
}
|
|
@@ -709991,7 +709705,7 @@ function compareMap(a67, b18) {
|
|
|
709991
709705
|
return compareMapArray(a67, b18);
|
|
709992
709706
|
} else if (b18 instanceof Map) {
|
|
709993
709707
|
return compareMapArray(a67, [...b18.entries()]);
|
|
709994
|
-
} else if (
|
|
709708
|
+
} else if (isObject8(b18)) {
|
|
709995
709709
|
return compareMapArray(a67, Object.entries(b18));
|
|
709996
709710
|
}
|
|
709997
709711
|
return false;
|
|
@@ -710006,7 +709720,7 @@ function compareSet(a67, b18) {
|
|
|
710006
709720
|
return compareSetArray(a67, b18);
|
|
710007
709721
|
} else if (b18 instanceof Set) {
|
|
710008
709722
|
return compareSetArray(a67, [...b18.values()]);
|
|
710009
|
-
} else if (
|
|
709723
|
+
} else if (isObject8(b18)) {
|
|
710010
709724
|
return compareSetArray(a67, Object.values(b18));
|
|
710011
709725
|
}
|
|
710012
709726
|
return false;
|
|
@@ -710755,7 +710469,7 @@ function decodeEnum(registry, def, value2, index) {
|
|
|
710755
710469
|
return createFromValue(registry, def, value2);
|
|
710756
710470
|
} else if (isString4(value2)) {
|
|
710757
710471
|
return decodeFromJSON(registry, def, value2.toString());
|
|
710758
|
-
} else if (
|
|
710472
|
+
} else if (isObject8(value2)) {
|
|
710759
710473
|
const key2 = Object.keys(value2)[0];
|
|
710760
710474
|
return decodeFromJSON(registry, def, key2, value2[key2]);
|
|
710761
710475
|
}
|
|
@@ -710893,7 +710607,7 @@ var Enum = class _Enum {
|
|
|
710893
710607
|
return this.toHex() === other;
|
|
710894
710608
|
} else if (other instanceof _Enum) {
|
|
710895
710609
|
return this.index === other.index && this.value.eq(other.value);
|
|
710896
|
-
} else if (
|
|
710610
|
+
} else if (isObject8(other)) {
|
|
710897
710611
|
return this.value.eq(other[this.type]);
|
|
710898
710612
|
}
|
|
710899
710613
|
return this.value.eq(other);
|
|
@@ -711710,7 +711424,7 @@ function decodeStructFromObject(registry, [Types, keys2], value2, jsonMap) {
|
|
|
711710
711424
|
const typeofArray = Array.isArray(value2);
|
|
711711
711425
|
const typeofMap = value2 instanceof Map;
|
|
711712
711426
|
const count = keys2.length;
|
|
711713
|
-
if (!typeofArray && !typeofMap && !
|
|
711427
|
+
if (!typeofArray && !typeofMap && !isObject8(value2)) {
|
|
711714
711428
|
throw new Error(`Struct: Cannot decode value ${stringify6(value2)} (typeof ${typeof value2}), expected an input object, map or array`);
|
|
711715
711429
|
} else if (typeofArray && value2.length !== count) {
|
|
711716
711430
|
throw new Error(`Struct: Unable to map ${stringify6(value2)} array to object with known keys ${keys2.join(", ")}`);
|
|
@@ -711971,7 +711685,7 @@ function decodeMap(registry, keyType, valType, value2) {
|
|
|
711971
711685
|
return decodeMapFromU8a(registry, KeyClass, ValClass, u8aToU8a(value2));
|
|
711972
711686
|
} else if (value2 instanceof Map) {
|
|
711973
711687
|
return decodeMapFromMap(registry, KeyClass, ValClass, value2);
|
|
711974
|
-
} else if (
|
|
711688
|
+
} else if (isObject8(value2)) {
|
|
711975
711689
|
return decodeMapFromMap(registry, KeyClass, ValClass, new Map(Object.entries(value2)));
|
|
711976
711690
|
}
|
|
711977
711691
|
throw new Error("Map: cannot decode type");
|
|
@@ -719072,7 +718786,7 @@ function decodeMortalEra(registry, value2) {
|
|
|
719072
718786
|
return decodeMortalU8a(registry, u8aToU8a(value2));
|
|
719073
718787
|
} else if (!value2) {
|
|
719074
718788
|
return [new u64(registry), new u64(registry)];
|
|
719075
|
-
} else if (
|
|
718789
|
+
} else if (isObject8(value2)) {
|
|
719076
718790
|
return decodeMortalObject(registry, value2);
|
|
719077
718791
|
}
|
|
719078
718792
|
throw new Error("Invalid data passed to Mortal era");
|
|
@@ -719110,7 +718824,7 @@ function decodeExtrinsicEra(value2 = new Uint8Array()) {
|
|
|
719110
718824
|
return decodeExtrinsicEra(value2.toU8a());
|
|
719111
718825
|
} else if (isHex(value2)) {
|
|
719112
718826
|
return decodeExtrinsicEra(hexToU8a(value2));
|
|
719113
|
-
} else if (
|
|
718827
|
+
} else if (isObject8(value2)) {
|
|
719114
718828
|
const entries = Object.entries(value2).map(([k17, v36]) => [k17.toLowerCase(), v36]);
|
|
719115
718829
|
const mortal = entries.find(([k17]) => k17.toLowerCase() === "mortalera");
|
|
719116
718830
|
const immortal = entries.find(([k17]) => k17.toLowerCase() === "immortalera");
|
|
@@ -719977,7 +719691,7 @@ function decodeCallViaU8a(registry, value2, _meta) {
|
|
|
719977
719691
|
function decodeCall(registry, value2 = new Uint8Array(), _meta) {
|
|
719978
719692
|
if (isU8a(value2) || isHex(value2)) {
|
|
719979
719693
|
return decodeCallViaU8a(registry, u8aToU8a(value2), _meta);
|
|
719980
|
-
} else if (
|
|
719694
|
+
} else if (isObject8(value2) && value2.callIndex && value2.args) {
|
|
719981
719695
|
return decodeCallViaObject(registry, value2, _meta);
|
|
719982
719696
|
}
|
|
719983
719697
|
throw new Error(`Call: Cannot decode value '${value2}' of type ${typeof value2}`);
|
|
@@ -745068,12 +744782,12 @@ var TimeoutError = class extends Error {
|
|
|
745068
744782
|
};
|
|
745069
744783
|
|
|
745070
744784
|
// ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/is.js
|
|
745071
|
-
var
|
|
744785
|
+
var isObject9 = (value2) => value2 !== null && typeof value2 === "object";
|
|
745072
744786
|
|
|
745073
744787
|
// ../../node_modules/.pnpm/ky@1.7.5/node_modules/ky/distribution/utils/merge.js
|
|
745074
744788
|
var validateAndMerge = (...sources) => {
|
|
745075
744789
|
for (const source of sources) {
|
|
745076
|
-
if ((!
|
|
744790
|
+
if ((!isObject9(source) || Array.isArray(source)) && source !== void 0) {
|
|
745077
744791
|
throw new TypeError("The `options` argument must be an object");
|
|
745078
744792
|
}
|
|
745079
744793
|
}
|
|
@@ -745111,18 +744825,18 @@ var deepMerge = (...sources) => {
|
|
|
745111
744825
|
returnValue = [];
|
|
745112
744826
|
}
|
|
745113
744827
|
returnValue = [...returnValue, ...source];
|
|
745114
|
-
} else if (
|
|
744828
|
+
} else if (isObject9(source)) {
|
|
745115
744829
|
for (let [key2, value2] of Object.entries(source)) {
|
|
745116
|
-
if (
|
|
744830
|
+
if (isObject9(value2) && key2 in returnValue) {
|
|
745117
744831
|
value2 = deepMerge(returnValue[key2], value2);
|
|
745118
744832
|
}
|
|
745119
744833
|
returnValue = { ...returnValue, [key2]: value2 };
|
|
745120
744834
|
}
|
|
745121
|
-
if (
|
|
744835
|
+
if (isObject9(source.hooks)) {
|
|
745122
744836
|
hooks = mergeHooks(hooks, source.hooks);
|
|
745123
744837
|
returnValue.hooks = hooks;
|
|
745124
744838
|
}
|
|
745125
|
-
if (
|
|
744839
|
+
if (isObject9(source.headers)) {
|
|
745126
744840
|
headers = mergeHeaders(headers, source.headers);
|
|
745127
744841
|
returnValue.headers = headers;
|
|
745128
744842
|
}
|
|
@@ -745574,13 +745288,13 @@ var StructError = class extends TypeError {
|
|
|
745574
745288
|
}
|
|
745575
745289
|
};
|
|
745576
745290
|
function isIterable2(x20) {
|
|
745577
|
-
return
|
|
745291
|
+
return isObject10(x20) && typeof x20[Symbol.iterator] === "function";
|
|
745578
745292
|
}
|
|
745579
|
-
function
|
|
745293
|
+
function isObject10(x20) {
|
|
745580
745294
|
return typeof x20 === "object" && x20 != null;
|
|
745581
745295
|
}
|
|
745582
745296
|
function isNonArrayObject(x20) {
|
|
745583
|
-
return
|
|
745297
|
+
return isObject10(x20) && !Array.isArray(x20);
|
|
745584
745298
|
}
|
|
745585
745299
|
function print4(value2) {
|
|
745586
745300
|
if (typeof value2 === "symbol") {
|
|
@@ -745657,7 +745371,7 @@ function* run(value2, struct24, options24 = {}) {
|
|
|
745657
745371
|
value2.set(k17, v36);
|
|
745658
745372
|
} else if (value2 instanceof Set) {
|
|
745659
745373
|
value2.add(v36);
|
|
745660
|
-
} else if (
|
|
745374
|
+
} else if (isObject10(value2)) {
|
|
745661
745375
|
if (v36 !== void 0 || k17 in value2)
|
|
745662
745376
|
value2[k17] = v36;
|
|
745663
745377
|
}
|
|
@@ -745855,7 +745569,7 @@ function record2(Key4, Value) {
|
|
|
745855
745569
|
type: "record",
|
|
745856
745570
|
schema: null,
|
|
745857
745571
|
*entries(value2) {
|
|
745858
|
-
if (
|
|
745572
|
+
if (isObject10(value2)) {
|
|
745859
745573
|
for (const k17 in value2) {
|
|
745860
745574
|
const v36 = value2[k17];
|
|
745861
745575
|
yield [k17, k17, Key4];
|
|
@@ -745903,7 +745617,7 @@ function type2(schema3) {
|
|
|
745903
745617
|
type: "type",
|
|
745904
745618
|
schema: schema3,
|
|
745905
745619
|
*entries(value2) {
|
|
745906
|
-
if (
|
|
745620
|
+
if (isObject10(value2)) {
|
|
745907
745621
|
for (const k17 of keys2) {
|
|
745908
745622
|
yield [k17, value2[k17], schema3[k17]];
|
|
745909
745623
|
}
|
|
@@ -756703,9 +756417,9 @@ var StructError2 = class extends TypeError {
|
|
|
756703
756417
|
}
|
|
756704
756418
|
};
|
|
756705
756419
|
function isIterable3(x20) {
|
|
756706
|
-
return
|
|
756420
|
+
return isObject11(x20) && typeof x20[Symbol.iterator] === "function";
|
|
756707
756421
|
}
|
|
756708
|
-
function
|
|
756422
|
+
function isObject11(x20) {
|
|
756709
756423
|
return typeof x20 === "object" && x20 != null;
|
|
756710
756424
|
}
|
|
756711
756425
|
function print5(value2) {
|
|
@@ -756780,7 +756494,7 @@ function* run2(value2, struct24, options24) {
|
|
|
756780
756494
|
};
|
|
756781
756495
|
if (coerce6) {
|
|
756782
756496
|
value2 = struct24.coercer(value2, ctx);
|
|
756783
|
-
if (mask4 && struct24.type !== "type" &&
|
|
756497
|
+
if (mask4 && struct24.type !== "type" && isObject11(struct24.schema) && isObject11(value2) && !Array.isArray(value2)) {
|
|
756784
756498
|
for (const key2 in value2) {
|
|
756785
756499
|
if (struct24.schema[key2] === void 0) {
|
|
756786
756500
|
delete value2[key2];
|
|
@@ -756812,7 +756526,7 @@ function* run2(value2, struct24, options24) {
|
|
|
756812
756526
|
value2.set(k17, v36);
|
|
756813
756527
|
} else if (value2 instanceof Set) {
|
|
756814
756528
|
value2.add(v36);
|
|
756815
|
-
} else if (
|
|
756529
|
+
} else if (isObject11(value2)) {
|
|
756816
756530
|
if (v36 !== void 0 || k17 in value2)
|
|
756817
756531
|
value2[k17] = v36;
|
|
756818
756532
|
}
|
|
@@ -757054,7 +756768,7 @@ function object3(schema3) {
|
|
|
757054
756768
|
type: "object",
|
|
757055
756769
|
schema: schema3 ? schema3 : null,
|
|
757056
756770
|
*entries(value2) {
|
|
757057
|
-
if (schema3 &&
|
|
756771
|
+
if (schema3 && isObject11(value2)) {
|
|
757058
756772
|
const unknowns = new Set(Object.keys(value2));
|
|
757059
756773
|
for (const key2 of knowns) {
|
|
757060
756774
|
unknowns.delete(key2);
|
|
@@ -757066,10 +756780,10 @@ function object3(schema3) {
|
|
|
757066
756780
|
}
|
|
757067
756781
|
},
|
|
757068
756782
|
validator(value2) {
|
|
757069
|
-
return
|
|
756783
|
+
return isObject11(value2) || `Expected an object, but received: ${print5(value2)}`;
|
|
757070
756784
|
},
|
|
757071
756785
|
coercer(value2) {
|
|
757072
|
-
return
|
|
756786
|
+
return isObject11(value2) ? {
|
|
757073
756787
|
...value2
|
|
757074
756788
|
} : value2;
|
|
757075
756789
|
}
|
|
@@ -757093,14 +756807,14 @@ function type3(schema3) {
|
|
|
757093
756807
|
type: "type",
|
|
757094
756808
|
schema: schema3,
|
|
757095
756809
|
*entries(value2) {
|
|
757096
|
-
if (
|
|
756810
|
+
if (isObject11(value2)) {
|
|
757097
756811
|
for (const k17 of keys2) {
|
|
757098
756812
|
yield [k17, value2[k17], schema3[k17]];
|
|
757099
756813
|
}
|
|
757100
756814
|
}
|
|
757101
756815
|
},
|
|
757102
756816
|
validator(value2) {
|
|
757103
|
-
return
|
|
756817
|
+
return isObject11(value2) || `Expected an object, but received: ${print5(value2)}`;
|
|
757104
756818
|
}
|
|
757105
756819
|
});
|
|
757106
756820
|
}
|
|
@@ -778243,39 +777957,39 @@ function makeCliTools21() {
|
|
|
778243
777957
|
}
|
|
778244
777958
|
|
|
778245
777959
|
// ../../libs/ledgerjs/packages/hw-app-vet/lib-es/constants.js
|
|
778246
|
-
var
|
|
778247
|
-
(function(
|
|
778248
|
-
|
|
778249
|
-
|
|
778250
|
-
|
|
778251
|
-
|
|
778252
|
-
|
|
778253
|
-
|
|
778254
|
-
|
|
778255
|
-
|
|
778256
|
-
|
|
778257
|
-
|
|
778258
|
-
|
|
778259
|
-
|
|
778260
|
-
|
|
778261
|
-
|
|
778262
|
-
|
|
778263
|
-
|
|
778264
|
-
|
|
778265
|
-
|
|
778266
|
-
|
|
778267
|
-
|
|
778268
|
-
|
|
778269
|
-
|
|
778270
|
-
|
|
778271
|
-
|
|
778272
|
-
|
|
778273
|
-
|
|
778274
|
-
|
|
778275
|
-
|
|
778276
|
-
|
|
778277
|
-
|
|
778278
|
-
})(
|
|
777960
|
+
var StatusCodes3;
|
|
777961
|
+
(function(StatusCodes4) {
|
|
777962
|
+
StatusCodes4[StatusCodes4["PIN_REMAINING_ATTEMPTS"] = 25536] = "PIN_REMAINING_ATTEMPTS";
|
|
777963
|
+
StatusCodes4[StatusCodes4["INCORRECT_LENGTH"] = 26368] = "INCORRECT_LENGTH";
|
|
777964
|
+
StatusCodes4[StatusCodes4["COMMAND_INCOMPATIBLE_FILE_STRUCTURE"] = 27009] = "COMMAND_INCOMPATIBLE_FILE_STRUCTURE";
|
|
777965
|
+
StatusCodes4[StatusCodes4["SECURITY_STATUS_NOT_SATISFIED"] = 27010] = "SECURITY_STATUS_NOT_SATISFIED";
|
|
777966
|
+
StatusCodes4[StatusCodes4["CONDITIONS_OF_USE_NOT_SATISFIED"] = 27013] = "CONDITIONS_OF_USE_NOT_SATISFIED";
|
|
777967
|
+
StatusCodes4[StatusCodes4["INCORRECT_DATA"] = 27264] = "INCORRECT_DATA";
|
|
777968
|
+
StatusCodes4[StatusCodes4["NOT_ENOUGH_MEMORY_SPACE"] = 27268] = "NOT_ENOUGH_MEMORY_SPACE";
|
|
777969
|
+
StatusCodes4[StatusCodes4["REFERENCED_DATA_NOT_FOUND"] = 27272] = "REFERENCED_DATA_NOT_FOUND";
|
|
777970
|
+
StatusCodes4[StatusCodes4["FILE_ALREADY_EXISTS"] = 27273] = "FILE_ALREADY_EXISTS";
|
|
777971
|
+
StatusCodes4[StatusCodes4["INCORRECT_P1_P2"] = 27392] = "INCORRECT_P1_P2";
|
|
777972
|
+
StatusCodes4[StatusCodes4["INS_NOT_SUPPORTED"] = 27904] = "INS_NOT_SUPPORTED";
|
|
777973
|
+
StatusCodes4[StatusCodes4["CLA_NOT_SUPPORTED"] = 28160] = "CLA_NOT_SUPPORTED";
|
|
777974
|
+
StatusCodes4[StatusCodes4["TECHNICAL_PROBLEM"] = 28416] = "TECHNICAL_PROBLEM";
|
|
777975
|
+
StatusCodes4[StatusCodes4["OK"] = 36864] = "OK";
|
|
777976
|
+
StatusCodes4[StatusCodes4["MEMORY_PROBLEM"] = 37440] = "MEMORY_PROBLEM";
|
|
777977
|
+
StatusCodes4[StatusCodes4["NO_EF_SELECTED"] = 37888] = "NO_EF_SELECTED";
|
|
777978
|
+
StatusCodes4[StatusCodes4["INVALID_OFFSET"] = 37890] = "INVALID_OFFSET";
|
|
777979
|
+
StatusCodes4[StatusCodes4["FILE_NOT_FOUND"] = 37892] = "FILE_NOT_FOUND";
|
|
777980
|
+
StatusCodes4[StatusCodes4["INCONSISTENT_FILE"] = 37896] = "INCONSISTENT_FILE";
|
|
777981
|
+
StatusCodes4[StatusCodes4["ALGORITHM_NOT_SUPPORTED"] = 38020] = "ALGORITHM_NOT_SUPPORTED";
|
|
777982
|
+
StatusCodes4[StatusCodes4["INVALID_KCV"] = 38021] = "INVALID_KCV";
|
|
777983
|
+
StatusCodes4[StatusCodes4["CODE_NOT_INITIALIZED"] = 38914] = "CODE_NOT_INITIALIZED";
|
|
777984
|
+
StatusCodes4[StatusCodes4["ACCESS_CONDITION_NOT_FULFILLED"] = 38916] = "ACCESS_CONDITION_NOT_FULFILLED";
|
|
777985
|
+
StatusCodes4[StatusCodes4["CONTRADICTION_SECRET_CODE_STATUS"] = 38920] = "CONTRADICTION_SECRET_CODE_STATUS";
|
|
777986
|
+
StatusCodes4[StatusCodes4["CONTRADICTION_INVALIDATION"] = 38928] = "CONTRADICTION_INVALIDATION";
|
|
777987
|
+
StatusCodes4[StatusCodes4["CODE_BLOCKED"] = 38976] = "CODE_BLOCKED";
|
|
777988
|
+
StatusCodes4[StatusCodes4["MAX_VALUE_REACHED"] = 38992] = "MAX_VALUE_REACHED";
|
|
777989
|
+
StatusCodes4[StatusCodes4["GP_AUTH_FAILED"] = 25344] = "GP_AUTH_FAILED";
|
|
777990
|
+
StatusCodes4[StatusCodes4["LICENSING"] = 28482] = "LICENSING";
|
|
777991
|
+
StatusCodes4[StatusCodes4["HALTED"] = 28586] = "HALTED";
|
|
777992
|
+
})(StatusCodes3 || (StatusCodes3 = {}));
|
|
778279
777993
|
|
|
778280
777994
|
// ../../libs/ledgerjs/packages/hw-app-vet/lib-es/utils.js
|
|
778281
777995
|
var import_buffer4 = require("buffer");
|
|
@@ -778340,7 +778054,7 @@ var Vet = class {
|
|
|
778340
778054
|
}
|
|
778341
778055
|
async getAppConfiguration() {
|
|
778342
778056
|
const response = await this.transport.send(224, 6, 0, 0, import_buffer5.Buffer.alloc(0), [
|
|
778343
|
-
|
|
778057
|
+
StatusCodes3.OK
|
|
778344
778058
|
]);
|
|
778345
778059
|
return response.slice(0, 4);
|
|
778346
778060
|
}
|
|
@@ -778353,7 +778067,7 @@ var Vet = class {
|
|
|
778353
778067
|
* @example
|
|
778354
778068
|
* vet.getAddress("m/44'/818'/0'/0").then(o => o.address)
|
|
778355
778069
|
*/
|
|
778356
|
-
async getAddress(path4, display, chainCode, statusCodes = [
|
|
778070
|
+
async getAddress(path4, display, chainCode, statusCodes = [StatusCodes3.OK]) {
|
|
778357
778071
|
const paths = splitPath5(path4);
|
|
778358
778072
|
const buffer2 = import_buffer5.Buffer.alloc(1 + paths.length * 4);
|
|
778359
778073
|
buffer2[0] = paths.length;
|
|
@@ -778383,7 +778097,7 @@ var Vet = class {
|
|
|
778383
778097
|
const responses = [];
|
|
778384
778098
|
for (let i58 = 0; i58 < buffers.length; i58++) {
|
|
778385
778099
|
const data6 = buffers[i58];
|
|
778386
|
-
responses.push(await this.transport.send(224, 4, i58 === 0 ? 0 : 128, 0, data6, [
|
|
778100
|
+
responses.push(await this.transport.send(224, 4, i58 === 0 ? 0 : 128, 0, data6, [StatusCodes3.OK]).catch((e35) => {
|
|
778387
778101
|
throw remapTransactionRelatedErrors4(e35);
|
|
778388
778102
|
}));
|
|
778389
778103
|
}
|
|
@@ -794667,7 +794381,7 @@ var TezosToolkitConfigError = class extends TaquitoError {
|
|
|
794667
794381
|
};
|
|
794668
794382
|
var UnsupportedActionError = class extends TaquitoError {
|
|
794669
794383
|
};
|
|
794670
|
-
var
|
|
794384
|
+
var NetworkError3 = class extends TaquitoError {
|
|
794671
794385
|
};
|
|
794672
794386
|
var InvalidAddressError2 = class extends ParameterValidationError {
|
|
794673
794387
|
constructor(address3, errorDetail) {
|
|
@@ -798589,7 +798303,7 @@ function __awaiter9(thisArg, _arguments, P20, generator) {
|
|
|
798589
798303
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
798590
798304
|
});
|
|
798591
798305
|
}
|
|
798592
|
-
var HttpRequestFailed = class extends
|
|
798306
|
+
var HttpRequestFailed = class extends NetworkError3 {
|
|
798593
798307
|
constructor(method2, url4, cause) {
|
|
798594
798308
|
super();
|
|
798595
798309
|
this.method = method2;
|
|
@@ -798599,7 +798313,7 @@ var HttpRequestFailed = class extends NetworkError4 {
|
|
|
798599
798313
|
this.message = `${method2} ${url4} ${String(cause)}`;
|
|
798600
798314
|
}
|
|
798601
798315
|
};
|
|
798602
|
-
var HttpResponseError = class extends
|
|
798316
|
+
var HttpResponseError = class extends NetworkError3 {
|
|
798603
798317
|
constructor(message2, status, statusText, body, url4) {
|
|
798604
798318
|
super();
|
|
798605
798319
|
this.message = message2;
|
|
@@ -798610,7 +798324,7 @@ var HttpResponseError = class extends NetworkError4 {
|
|
|
798610
798324
|
this.name = "HttpResponseError";
|
|
798611
798325
|
}
|
|
798612
798326
|
};
|
|
798613
|
-
var HttpTimeoutError = class extends
|
|
798327
|
+
var HttpTimeoutError = class extends NetworkError3 {
|
|
798614
798328
|
constructor(timeout10, url4) {
|
|
798615
798329
|
super();
|
|
798616
798330
|
this.timeout = timeout10;
|
|
@@ -811796,7 +811510,7 @@ var InvalidConfirmationCountError = class extends ParameterValidationError {
|
|
|
811796
811510
|
this.message = `Invalid confirmation count ${invalidConfirmations} expecting at least 1`;
|
|
811797
811511
|
}
|
|
811798
811512
|
};
|
|
811799
|
-
var ConfirmationTimeoutError = class extends
|
|
811513
|
+
var ConfirmationTimeoutError = class extends NetworkError3 {
|
|
811800
811514
|
constructor(message2) {
|
|
811801
811515
|
super();
|
|
811802
811516
|
this.message = message2;
|
|
@@ -812559,7 +812273,7 @@ var ConfirmationUndefinedError = class extends TezosToolkitConfigError {
|
|
|
812559
812273
|
this.message = "Default confirmation count can not be undefined";
|
|
812560
812274
|
}
|
|
812561
812275
|
};
|
|
812562
|
-
var ObservableError = class extends
|
|
812276
|
+
var ObservableError = class extends NetworkError3 {
|
|
812563
812277
|
constructor(message2) {
|
|
812564
812278
|
super();
|
|
812565
812279
|
this.message = message2;
|
|
@@ -822210,7 +821924,7 @@ var TransactionExpiredError = createCustomErrorClass("TransactionExpired");
|
|
|
822210
821924
|
var ConnectAppTimeout = createCustomErrorClass("ConnectAppTimeout");
|
|
822211
821925
|
var ConnectManagerTimeout = createCustomErrorClass("ConnectManagerTimeout");
|
|
822212
821926
|
var GetAppAndVersionUnsupportedFormat = createCustomErrorClass("GetAppAndVersionUnsupportedFormat");
|
|
822213
|
-
var
|
|
821927
|
+
var FeeEstimationFailed3 = createCustomErrorClass("FeeEstimationFailed");
|
|
822214
821928
|
var TransactionRefusedOnDevice = createCustomErrorClass("TransactionRefusedOnDevice");
|
|
822215
821929
|
var LanguageInstallRefusedOnDevice = createCustomErrorClass("LanguageInstallRefusedOnDevice");
|
|
822216
821930
|
var ImageLoadRefusedOnDevice = createCustomErrorClass("ImageLoadRefusedOnDevice");
|
|
@@ -836611,13 +836325,13 @@ var GenerateAesKeyFailed = createCustomErrorClass("GenerateAesKeyFailed");
|
|
|
836611
836325
|
var InternalCryptoOperationFailed = createCustomErrorClass("InternalCryptoOperationFailed");
|
|
836612
836326
|
var InternalComputeAesCmacFailed = createCustomErrorClass("InternalComputeAesCmacFailed");
|
|
836613
836327
|
var EncryptAppStorageFailed = createCustomErrorClass("EncryptAppStorageFailed");
|
|
836614
|
-
var
|
|
836328
|
+
var PinNotSet3 = createCustomErrorClass("PinNotSet");
|
|
836615
836329
|
var InvalidBackupHeader = createCustomErrorClass("InvalidBackupHeader");
|
|
836616
836330
|
var InvalidBackupLength = createCustomErrorClass("InvalidBackupLength");
|
|
836617
836331
|
var InvalidBackupState = createCustomErrorClass("InvalidBackupState");
|
|
836618
836332
|
var InvalidRestoreState = createCustomErrorClass("InvalidRestoreState");
|
|
836619
836333
|
var InvalidChunkLength = createCustomErrorClass("InvalidChunkLength");
|
|
836620
|
-
var
|
|
836334
|
+
var UserRefusedOnDevice3 = createCustomErrorClass("UserRefusedOnDevice");
|
|
836621
836335
|
|
|
836622
836336
|
// ../../libs/device-core/lib-es/commands/use-cases/app-backup/backupAppStorage.js
|
|
836623
836337
|
var BACKUP_APP_STORAGE = [224, 107, 0, 0];
|
|
@@ -836861,9 +836575,9 @@ function parseResponse6(data6) {
|
|
|
836861
836575
|
case StatusCodes.DEVICE_IN_RECOVERY_MODE:
|
|
836862
836576
|
break;
|
|
836863
836577
|
case StatusCodes.USER_REFUSED_ON_DEVICE:
|
|
836864
|
-
throw new
|
|
836578
|
+
throw new UserRefusedOnDevice3("User refused on device.");
|
|
836865
836579
|
case StatusCodes.PIN_NOT_SET:
|
|
836866
|
-
throw new
|
|
836580
|
+
throw new PinNotSet3("Invalid consent, PIN is not set.");
|
|
836867
836581
|
case StatusCodes.INVALID_APP_NAME_LENGTH:
|
|
836868
836582
|
throw new InvalidAppNameLength("Invalid application name length, two chars minimum.");
|
|
836869
836583
|
case StatusCodes.INVALID_BACKUP_LENGTH:
|
|
@@ -838280,7 +837994,7 @@ function restoreAppData(transport, appName, appData) {
|
|
|
838280
837994
|
subscriber.complete();
|
|
838281
837995
|
return (0, import_rxjs195.of)(null);
|
|
838282
837996
|
}
|
|
838283
|
-
if (e35 instanceof
|
|
837997
|
+
if (e35 instanceof UserRefusedOnDevice3) {
|
|
838284
837998
|
subscriber.next({
|
|
838285
837999
|
type: RestoreAppDataEventType.UserRefused
|
|
838286
838000
|
});
|