"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClaimRewardsFeesWarning = exports.EConnResetError = exports.BluetoothNotSupportedError = exports.OutdatedApp = exports.AccessDeniedError = exports.ValidationError = exports.NotImplementedError = exports.UnexpectedError = exports.TradeMethodNotSupportedError = exports.CurrencyNotSupportedByProviderError = exports.CurrencyDisabledAsOutputError = exports.CurrencyDisabledAsInputError = exports.CurrencyDisabledError = exports.CurrencyNotSupportedError = exports.NoIPHeaderError = exports.JSONDecodeError = exports.JSONRPCResponseError = exports.SwapRateExpiredError = exports.SwapGenericAPIError = exports.SwapExchangeRateAmountTooLowOrTooHigh = exports.SwapExchangeRateAmountTooHigh = exports.SwapExchangeRateAmountTooLow = exports.NoSuchAppOnProvider = exports.SwapNoAvailableProviders = exports.SatStackDescriptorNotImported = exports.SatStackStillSyncing = exports.SatStackAccessDown = exports.SatStackVersionTooOld = exports.CosmosBroadcastError = exports.RPCPassRequired = exports.RPCUserRequired = exports.RPCHostInvalid = exports.RPCHostRequired = exports.SourceHasMultiSign = exports.DeviceAlreadySetup = exports.DeviceNotOnboarded = exports.DeviceOnboarded = exports.LanguageInstallTimeout = exports.ImageCommitRefusedOnDevice = exports.ImageDoesNotExistOnDevice = exports.ImageLoadRefusedOnDevice = exports.LanguageInstallRefusedOnDevice = exports.TransactionRefusedOnDevice = exports.FeeEstimationFailed = exports.GetAppAndVersionUnsupportedFormat = exports.ConnectManagerTimeout = exports.ConnectAppTimeout = void 0;
const errors_1 = require("@ledgerhq/errors");
// TODO we need to migrate in all errors that are in @ledgerhq/errors
// but only make sense to live-common to not pollute ledgerjs
exports.ConnectAppTimeout = (0, errors_1.createCustomErrorClass)("ConnectAppTimeout");
exports.ConnectManagerTimeout = (0, errors_1.createCustomErrorClass)("ConnectManagerTimeout");
exports.GetAppAndVersionUnsupportedFormat = (0, errors_1.createCustomErrorClass)("GetAppAndVersionUnsupportedFormat");
exports.FeeEstimationFailed = (0, errors_1.createCustomErrorClass)("FeeEstimationFailed");
exports.TransactionRefusedOnDevice = (0, errors_1.createCustomErrorClass)("TransactionRefusedOnDevice");
exports.LanguageInstallRefusedOnDevice = (0, errors_1.createCustomErrorClass)("LanguageInstallRefusedOnDevice");
exports.ImageLoadRefusedOnDevice = (0, errors_1.createCustomErrorClass)("ImageLoadRefusedOnDevice");
exports.ImageDoesNotExistOnDevice = (0, errors_1.createCustomErrorClass)("ImageDoesNotExistOnDevice");
exports.ImageCommitRefusedOnDevice = (0, errors_1.createCustomErrorClass)("ImageCommitRefusedOnDevice");
exports.LanguageInstallTimeout = (0, errors_1.createCustomErrorClass)("LanguageInstallTimeout");
exports.DeviceOnboarded = (0, errors_1.createCustomErrorClass)("DeviceOnboarded");
exports.DeviceNotOnboarded = (0, errors_1.createCustomErrorClass)("DeviceNotOnboarded");
exports.DeviceAlreadySetup = (0, errors_1.createCustomErrorClass)("DeviceAlreadySetup");
exports.SourceHasMultiSign = (0, errors_1.createCustomErrorClass)("SourceHasMultiSign");
exports.RPCHostRequired = (0, errors_1.createCustomErrorClass)("RPCHostRequired");
exports.RPCHostInvalid = (0, errors_1.createCustomErrorClass)("RPCHostInvalid");
exports.RPCUserRequired = (0, errors_1.createCustomErrorClass)("RPCUserRequired");
exports.RPCPassRequired = (0, errors_1.createCustomErrorClass)("RPCPassRequired");
// Note : info of this code can be found here :
// https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/types/errors/errors.go#L16
exports.CosmosBroadcastError = {
    "1": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeInternal"),
    "2": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeTxDecode"),
    "3": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeInvalidSequence"),
    "4": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeUnauthorized"),
    "5": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeInsufficientFunds"),
    "6": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeUnknownRequest"),
    "7": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeInvalidAddress"),
    "8": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeInvalidPubKey"),
    "9": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeUnknownAddress"),
    "10": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeInvalidCoins"),
    "11": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeOutOfGas"),
    "12": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeMemoTooLarge"),
    "13": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeInsufficientFee"),
    "14": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeTooManySignatures"),
    "15": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeNoSignatures"),
    "16": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeJSONMarshal"),
    "17": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeJSONUnmarshal"),
    "18": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeInvalidRequest"),
    "19": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeTxInMempoolCache"),
    "20": (0, errors_1.createCustomErrorClass)("CosmosBroadcastCodeMempoolIsFull"),
    "21": (0, errors_1.createCustomErrorClass)("CosmosBroadcastTxTooLarge"),
    "22": (0, errors_1.createCustomErrorClass)("CosmosBroadcastKeyNotFound"),
    "23": (0, errors_1.createCustomErrorClass)("CosmosBroadcastWrongPassword"),
    "24": (0, errors_1.createCustomErrorClass)("CosmosBroadcastInvalidSigner"),
    "25": (0, errors_1.createCustomErrorClass)("CosmosBroadcastInvalidGasAdjustment"),
    "26": (0, errors_1.createCustomErrorClass)("CosmosBroadcastInvalidHeight"),
    "27": (0, errors_1.createCustomErrorClass)("CosmosBroadcastInvalidVersion"),
    "28": (0, errors_1.createCustomErrorClass)("CosmosBroadcastInvalidChainID"),
    "29": (0, errors_1.createCustomErrorClass)("CosmosBroadcastInvalidType"),
    "30": (0, errors_1.createCustomErrorClass)("CosmosBroadcastTimeoutHeight"),
    "31": (0, errors_1.createCustomErrorClass)("CosmosBroadcastUnknownExtensionOptions"),
    "32": (0, errors_1.createCustomErrorClass)("CosmosBroadcastWrongSequence"),
    "33": (0, errors_1.createCustomErrorClass)("CosmosBroadcastPackAny"),
    "34": (0, errors_1.createCustomErrorClass)("CosmosBroadcastUnpackAny"),
    "35": (0, errors_1.createCustomErrorClass)("CosmosBroadcastLogic"),
    "36": (0, errors_1.createCustomErrorClass)("CosmosBroadcastConflict"),
};
exports.SatStackVersionTooOld = (0, errors_1.createCustomErrorClass)("SatStackVersionTooOld");
exports.SatStackAccessDown = (0, errors_1.createCustomErrorClass)("SatStackAccessDown");
exports.SatStackStillSyncing = (0, errors_1.createCustomErrorClass)("SatStackStillSyncing");
exports.SatStackDescriptorNotImported = (0, errors_1.createCustomErrorClass)("SatStackDescriptorNotImported");
exports.SwapNoAvailableProviders = (0, errors_1.createCustomErrorClass)("SwapNoAvailableProviders");
exports.NoSuchAppOnProvider = (0, errors_1.createCustomErrorClass)("NoSuchAppOnProvider");
exports.SwapExchangeRateAmountTooLow = (0, errors_1.createCustomErrorClass)("SwapExchangeRateAmountTooLow");
exports.SwapExchangeRateAmountTooHigh = (0, errors_1.createCustomErrorClass)("SwapExchangeRateAmountTooHigh");
exports.SwapExchangeRateAmountTooLowOrTooHigh = (0, errors_1.createCustomErrorClass)("SwapExchangeRateAmountTooLowOrTooHigh");
exports.SwapGenericAPIError = (0, errors_1.createCustomErrorClass)("SwapGenericAPIError");
exports.SwapRateExpiredError = (0, errors_1.createCustomErrorClass)("SwapRateExpiredError");
exports.JSONRPCResponseError = (0, errors_1.createCustomErrorClass)("JSONRPCResponseError");
exports.JSONDecodeError = (0, errors_1.createCustomErrorClass)("JSONDecodeError");
exports.NoIPHeaderError = (0, errors_1.createCustomErrorClass)("NoIPHeaderError");
exports.CurrencyNotSupportedError = (0, errors_1.createCustomErrorClass)("CurrencyNotSupportedError");
exports.CurrencyDisabledError = (0, errors_1.createCustomErrorClass)("CurrencyDisabledError");
exports.CurrencyDisabledAsInputError = (0, errors_1.createCustomErrorClass)("CurrencyDisabledAsInputError");
exports.CurrencyDisabledAsOutputError = (0, errors_1.createCustomErrorClass)("CurrencyDisabledAsOutputError");
exports.CurrencyNotSupportedByProviderError = (0, errors_1.createCustomErrorClass)("CurrencyNotSupportedByProviderError");
exports.TradeMethodNotSupportedError = (0, errors_1.createCustomErrorClass)("TradeMethodNotSupportedError");
exports.UnexpectedError = (0, errors_1.createCustomErrorClass)("UnexpectedError");
exports.NotImplementedError = (0, errors_1.createCustomErrorClass)("NotImplementedError");
exports.ValidationError = (0, errors_1.createCustomErrorClass)("ValidationError");
exports.AccessDeniedError = (0, errors_1.createCustomErrorClass)("AccessDeniedError");
exports.OutdatedApp = (0, errors_1.createCustomErrorClass)("OutdatedApp");
exports.BluetoothNotSupportedError = (0, errors_1.createCustomErrorClass)("FwUpdateBluetoothNotSupported");
exports.EConnResetError = (0, errors_1.createCustomErrorClass)("EConnReset");
var errors_2 = require("@ledgerhq/errors");
Object.defineProperty(exports, "ClaimRewardsFeesWarning", { enumerable: true, get: function () { return errors_2.ClaimRewardsFeesWarning; } });
__exportStar(require("@ledgerhq/coin-framework/errors"), exports);
__exportStar(require("@ledgerhq/coin-algorand/errors"), exports);
__exportStar(require("@ledgerhq/coin-aptos/errors"), exports);
__exportStar(require("@ledgerhq/coin-bitcoin/errors"), exports);
__exportStar(require("@ledgerhq/coin-cardano/errors"), exports);
__exportStar(require("@ledgerhq/coin-cosmos/errors"), exports);
__exportStar(require("@ledgerhq/coin-evm/errors"), exports);
__exportStar(require("@ledgerhq/coin-hedera/errors"), exports);
__exportStar(require("@ledgerhq/coin-celo/errors"), exports);
__exportStar(require("@ledgerhq/coin-filecoin/errors"), exports);
__exportStar(require("@ledgerhq/coin-near/errors"), exports);
__exportStar(require("@ledgerhq/coin-polkadot/errors"), exports);
__exportStar(require("@ledgerhq/coin-solana/errors"), exports);
__exportStar(require("@ledgerhq/coin-stacks/errors"), exports);
__exportStar(require("@ledgerhq/coin-stellar/errors"), exports);
__exportStar(require("@ledgerhq/coin-tezos/errors"), exports);
__exportStar(require("@ledgerhq/coin-vechain/errors"), exports);
//# sourceMappingURL=errors.js.map