@ledgerhq/live-common 24.1.0 → 25.0.0-next.1
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/apps/support.js +1 -1
- package/lib/apps/support.js.map +1 -1
- package/lib/bot/index.d.ts.map +1 -1
- package/lib/bot/index.js +4 -2
- package/lib/bot/index.js.map +1 -1
- package/lib/bot/specs.d.ts +1 -0
- package/lib/bot/specs.d.ts.map +1 -1
- package/lib/bot/specs.js +6 -1
- package/lib/bot/specs.js.map +1 -1
- package/lib/currencies/support.d.ts +1 -1
- package/lib/currencies/support.d.ts.map +1 -1
- package/lib/env.d.ts +15 -5
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +10 -0
- package/lib/env.js.map +1 -1
- package/lib/env.react.d.ts +1 -1
- package/lib/env.react.d.ts.map +1 -1
- package/lib/errors.d.ts +101 -306
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +3 -4
- package/lib/errors.js.map +1 -1
- package/lib/errors.test.d.ts +2 -0
- package/lib/errors.test.d.ts.map +1 -0
- package/lib/errors.test.js +20 -0
- package/lib/errors.test.js.map +1 -0
- package/lib/exchange/swap/utils/index.test.js +2 -2
- package/lib/exchange/swap/utils/index.test.js.map +1 -1
- package/lib/families/bitcoin/datasets/bitcoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/bitcoin.js +2 -4
- package/lib/families/bitcoin/datasets/bitcoin.js.map +1 -1
- package/lib/families/bitcoin/descriptor.d.ts.map +1 -1
- package/lib/families/bitcoin/descriptor.js +3 -1
- package/lib/families/bitcoin/descriptor.js.map +1 -1
- package/lib/families/bitcoin/errors.d.ts +1 -3
- package/lib/families/bitcoin/errors.d.ts.map +1 -1
- package/lib/families/bitcoin/exchange.js +1 -1
- package/lib/families/bitcoin/exchange.js.map +1 -1
- package/lib/families/bitcoin/hw-getAddress.d.ts +1 -1
- package/lib/families/bitcoin/hw-getAddress.d.ts.map +1 -1
- package/lib/families/bitcoin/js-synchronisation.d.ts.map +1 -1
- package/lib/families/bitcoin/js-synchronisation.js +20 -2
- package/lib/families/bitcoin/js-synchronisation.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/storage/index.d.ts +0 -36
- package/lib/families/bitcoin/wallet-btc/storage/index.d.ts.map +1 -1
- package/lib/families/bitcoin/wallet-btc/storage/index.js +14 -14
- package/lib/families/bitcoin/wallet-btc/storage/index.js.map +1 -1
- package/lib/families/bitcoin/wallet-btc/storage/types.d.ts +1 -0
- package/lib/families/bitcoin/wallet-btc/storage/types.d.ts.map +1 -1
- package/lib/families/bitcoin/xpub.txs.loadExport.unit.test.d.ts +2 -0
- package/lib/families/bitcoin/xpub.txs.loadExport.unit.test.d.ts.map +1 -0
- package/lib/families/bitcoin/xpub.txs.loadExport.unit.test.js +146 -0
- package/lib/families/bitcoin/xpub.txs.loadExport.unit.test.js.map +1 -0
- package/lib/families/cardano/errors.d.ts +1 -3
- package/lib/families/cardano/errors.d.ts.map +1 -1
- package/lib/families/crypto_org/errors.d.ts +3 -9
- package/lib/families/crypto_org/errors.d.ts.map +1 -1
- package/lib/families/ethereum/exchange.js +1 -1
- package/lib/families/ethereum/exchange.js.map +1 -1
- package/lib/families/ethereum/modules/index.d.ts +1 -1
- package/lib/families/ethereum/modules/index.d.ts.map +1 -1
- package/lib/families/ethereum/signOperation.js +2 -2
- package/lib/families/ethereum/signOperation.js.map +1 -1
- package/lib/families/ethereum/specs.d.ts +1 -1
- package/lib/families/ethereum/specs.js +5 -5
- package/lib/families/ethereum/specs.js.map +1 -1
- package/lib/families/polkadot/errors.d.ts +12 -36
- package/lib/families/polkadot/errors.d.ts.map +1 -1
- package/lib/families/ripple/exchange.js +1 -1
- package/lib/families/ripple/exchange.js.map +1 -1
- package/lib/families/solana/api/chain/instruction/token/types.d.ts +3 -3
- package/lib/families/solana/errors.d.ts +20 -60
- package/lib/families/solana/errors.d.ts.map +1 -1
- package/lib/families/stellar/api/horizon.d.ts +29 -7
- package/lib/families/stellar/api/horizon.d.ts.map +1 -1
- package/lib/families/stellar/api/horizon.js +114 -58
- package/lib/families/stellar/api/horizon.js.map +1 -1
- package/lib/families/stellar/api/index.d.ts +1 -1
- package/lib/families/stellar/api/index.d.ts.map +1 -1
- package/lib/families/stellar/api/index.js +5 -1
- package/lib/families/stellar/api/index.js.map +1 -1
- package/lib/families/stellar/bridge/mock.d.ts.map +1 -1
- package/lib/families/stellar/bridge/mock.js +4 -1
- package/lib/families/stellar/bridge/mock.js.map +1 -1
- package/lib/families/stellar/bridge.integration.test.js +12 -4
- package/lib/families/stellar/bridge.integration.test.js.map +1 -1
- package/lib/families/stellar/cli-transaction.d.ts +3 -1
- package/lib/families/stellar/cli-transaction.d.ts.map +1 -1
- package/lib/families/stellar/cli-transaction.js +48 -2
- package/lib/families/stellar/cli-transaction.js.map +1 -1
- package/lib/families/stellar/deviceTransactionConfig.d.ts +7 -1
- package/lib/families/stellar/deviceTransactionConfig.d.ts.map +1 -1
- package/lib/families/stellar/deviceTransactionConfig.js +12 -1
- package/lib/families/stellar/deviceTransactionConfig.js.map +1 -1
- package/lib/families/stellar/errors.d.ts +12 -0
- package/lib/families/stellar/errors.d.ts.map +1 -0
- package/lib/families/stellar/errors.js +16 -0
- package/lib/families/stellar/errors.js.map +1 -0
- package/lib/families/stellar/exchange.js +1 -1
- package/lib/families/stellar/exchange.js.map +1 -1
- package/lib/families/stellar/js-buildTransaction.d.ts.map +1 -1
- package/lib/families/stellar/js-buildTransaction.js +34 -16
- package/lib/families/stellar/js-buildTransaction.js.map +1 -1
- package/lib/families/stellar/js-createTransaction.d.ts.map +1 -1
- package/lib/families/stellar/js-createTransaction.js +4 -1
- package/lib/families/stellar/js-createTransaction.js.map +1 -1
- package/lib/families/stellar/js-estimateMaxSpendable.js +2 -1
- package/lib/families/stellar/js-estimateMaxSpendable.js.map +1 -1
- package/lib/families/stellar/js-getTransactionStatus.d.ts.map +1 -1
- package/lib/families/stellar/js-getTransactionStatus.js +127 -57
- package/lib/families/stellar/js-getTransactionStatus.js.map +1 -1
- package/lib/families/stellar/js-prepareTransaction.d.ts.map +1 -1
- package/lib/families/stellar/js-prepareTransaction.js +25 -7
- package/lib/families/stellar/js-prepareTransaction.js.map +1 -1
- package/lib/families/stellar/js-signOperation.d.ts.map +1 -1
- package/lib/families/stellar/js-signOperation.js +33 -6
- package/lib/families/stellar/js-signOperation.js.map +1 -1
- package/lib/families/stellar/js-synchronization.d.ts +1 -1
- package/lib/families/stellar/js-synchronization.d.ts.map +1 -1
- package/lib/families/stellar/js-synchronization.js +42 -16
- package/lib/families/stellar/js-synchronization.js.map +1 -1
- package/lib/families/stellar/logic.d.ts +21 -14
- package/lib/families/stellar/logic.d.ts.map +1 -1
- package/lib/families/stellar/logic.js +158 -57
- package/lib/families/stellar/logic.js.map +1 -1
- package/lib/families/stellar/specs.d.ts.map +1 -1
- package/lib/families/stellar/specs.js +182 -7
- package/lib/families/stellar/specs.js.map +1 -1
- package/lib/families/stellar/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/stellar/speculos-deviceActions.js +60 -28
- package/lib/families/stellar/speculos-deviceActions.js.map +1 -1
- package/lib/families/stellar/tokens.d.ts +11 -0
- package/lib/families/stellar/tokens.d.ts.map +1 -0
- package/lib/families/stellar/tokens.js +82 -0
- package/lib/families/stellar/tokens.js.map +1 -0
- package/lib/families/stellar/transaction.d.ts +2 -2
- package/lib/families/stellar/transaction.d.ts.map +1 -1
- package/lib/families/stellar/transaction.js +32 -6
- package/lib/families/stellar/transaction.js.map +1 -1
- package/lib/families/stellar/types.d.ts +45 -0
- package/lib/families/stellar/types.d.ts.map +1 -1
- package/lib/families/stellar/types.js +7 -1
- package/lib/families/stellar/types.js.map +1 -1
- package/lib/families/tezos/exchange.js +1 -1
- package/lib/families/tezos/exchange.js.map +1 -1
- package/lib/generated/cli-transaction.d.ts +1 -0
- package/lib/generated/cli-transaction.d.ts.map +1 -1
- package/lib/generated/specs.d.ts +1 -1
- package/lib/generated/transaction.d.ts +1 -1
- package/lib/hw/signMessage/index.d.ts +4 -3
- package/lib/hw/signMessage/index.d.ts.map +1 -1
- package/lib/hw/signMessage/index.js +25 -11
- package/lib/hw/signMessage/index.js.map +1 -1
- package/lib/hw/signMessage/index.test.d.ts +2 -0
- package/lib/hw/signMessage/index.test.d.ts.map +1 -0
- package/lib/hw/signMessage/index.test.js +126 -0
- package/lib/hw/signMessage/index.test.js.map +1 -0
- package/lib/load/speculos.d.ts.map +1 -1
- package/lib/load/speculos.js +1 -3
- package/lib/load/speculos.js.map +1 -1
- package/lib/mock/Btc.d.ts +1 -1
- package/lib/mock/Btc.d.ts.map +1 -1
- package/lib/performance.d.ts +10 -0
- package/lib/performance.d.ts.map +1 -0
- package/lib/performance.js +72 -0
- package/lib/performance.js.map +1 -0
- package/lib/performance.test.d.ts +2 -0
- package/lib/performance.test.d.ts.map +1 -0
- package/lib/performance.test.js +28 -0
- package/lib/performance.test.js.map +1 -0
- package/lib/platform/providers/RemoteLiveAppProvider/api/index.d.ts.map +1 -1
- package/lib/platform/providers/RemoteLiveAppProvider/api/index.js +28 -0
- package/lib/platform/providers/RemoteLiveAppProvider/api/index.js.map +1 -1
- package/lib/platform/providers/RemoteLiveAppProvider/api/mock.json +0 -31
- package/lib/types/currencies.d.ts +1 -1
- package/lib/types/currencies.d.ts.map +1 -1
- package/lib/walletconnect/Provider.d.ts.map +1 -1
- package/lib/walletconnect/Provider.js +1 -3
- package/lib/walletconnect/Provider.js.map +1 -1
- package/package.json +71 -19
- package/src/apps/support.ts +1 -1
- package/src/bot/index.ts +3 -1
- package/src/bot/specs.ts +7 -1
- package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +34 -6
- package/src/currencies/support.ts +1 -1
- package/src/env.ts +10 -0
- package/src/errors.test.ts +21 -0
- package/src/errors.ts +1 -6
- package/src/exchange/swap/utils/index.test.ts +1 -1
- package/src/families/bitcoin/datasets/bitcoin.ts +0 -2
- package/src/families/bitcoin/descriptor.ts +4 -1
- package/src/families/bitcoin/exchange.ts +1 -1
- package/src/families/bitcoin/hw-getAddress.ts +1 -1
- package/src/families/bitcoin/js-synchronisation.ts +23 -1
- package/src/families/bitcoin/wallet-btc/storage/index.ts +17 -31
- package/src/families/bitcoin/wallet-btc/storage/types.ts +1 -0
- package/src/families/bitcoin/wallet-btc/wallet.ts +1 -1
- package/src/families/bitcoin/xpub.txs.loadExport.unit.test.ts +101 -0
- package/src/families/ethereum/exchange.ts +1 -1
- package/src/families/ethereum/modules/index.ts +1 -1
- package/src/families/ethereum/signOperation.ts +2 -2
- package/src/families/ethereum/specs.ts +5 -5
- package/src/families/ripple/exchange.ts +1 -1
- package/src/families/stellar/__snapshots__/bridge.integration.test.ts.snap +765 -339
- package/src/families/stellar/api/horizon.ts +115 -33
- package/src/families/stellar/api/index.ts +4 -0
- package/src/families/stellar/bridge/mock.ts +3 -0
- package/src/families/stellar/bridge.integration.test.ts +10 -2
- package/src/families/stellar/cli-transaction.ts +75 -2
- package/src/families/stellar/deviceTransactionConfig.ts +22 -0
- package/src/families/stellar/errors.ts +34 -0
- package/src/families/stellar/exchange.ts +1 -1
- package/src/families/stellar/js-buildTransaction.ts +56 -16
- package/src/families/stellar/js-createTransaction.ts +3 -0
- package/src/families/stellar/js-estimateMaxSpendable.ts +1 -1
- package/src/families/stellar/js-getTransactionStatus.ts +152 -60
- package/src/families/stellar/js-prepareTransaction.ts +4 -3
- package/src/families/stellar/js-signOperation.ts +37 -6
- package/src/families/stellar/js-synchronization.ts +53 -11
- package/src/families/stellar/logic.ts +198 -62
- package/src/families/stellar/specs.ts +227 -8
- package/src/families/stellar/speculos-deviceActions.ts +66 -22
- package/src/families/stellar/tokens.ts +118 -0
- package/src/families/stellar/transaction.ts +31 -3
- package/src/families/stellar/types.ts +52 -0
- package/src/families/tezos/exchange.ts +1 -1
- package/src/hw/signMessage/index.test.ts +128 -0
- package/src/hw/signMessage/index.ts +37 -15
- package/src/load/speculos.ts +1 -3
- package/src/mock/Btc.ts +1 -1
- package/src/performance.test.ts +26 -0
- package/src/performance.ts +61 -0
- package/src/platform/providers/RemoteLiveAppProvider/api/index.ts +6 -0
- package/src/platform/providers/RemoteLiveAppProvider/api/mock.json +1 -32
- package/src/types/currencies.ts +1 -1
- package/src/walletconnect/Provider.tsx +4 -5
package/lib/errors.d.ts
CHANGED
|
@@ -1,312 +1,107 @@
|
|
|
1
|
-
export declare const ConnectAppTimeout: (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export declare const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export declare const
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
} | undefined) => void;
|
|
37
|
-
export declare const TronUnfreezeNotExpired: (message?: string | undefined, fields?: {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
} | undefined) => void;
|
|
40
|
-
export declare const TronVoteRequired: (message?: string | undefined, fields?: {
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
} | undefined) => void;
|
|
43
|
-
export declare const TronInvalidVoteCount: (message?: string | undefined, fields?: {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
} | undefined) => void;
|
|
46
|
-
export declare const TronRewardNotAvailable: (message?: string | undefined, fields?: {
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
} | undefined) => void;
|
|
49
|
-
export declare const TronNoReward: (message?: string | undefined, fields?: {
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
} | undefined) => void;
|
|
52
|
-
export declare const TronInvalidFreezeAmount: (message?: string | undefined, fields?: {
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
} | undefined) => void;
|
|
55
|
-
export declare const TronSendTrc20ToNewAccountForbidden: (message?: string | undefined, fields?: {
|
|
56
|
-
[key: string]: any;
|
|
57
|
-
} | undefined) => void;
|
|
58
|
-
export declare const TronUnexpectedFees: (message?: string | undefined, fields?: {
|
|
59
|
-
[key: string]: any;
|
|
60
|
-
} | undefined) => void;
|
|
61
|
-
export declare const TronNotEnoughTronPower: (message?: string | undefined, fields?: {
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
} | undefined) => void;
|
|
64
|
-
export declare const TronTransactionExpired: (message?: string | undefined, fields?: {
|
|
65
|
-
[key: string]: any;
|
|
66
|
-
} | undefined) => void;
|
|
67
|
-
export declare const TronNotEnoughEnergy: (message?: string | undefined, fields?: {
|
|
68
|
-
[key: string]: any;
|
|
69
|
-
} | undefined) => void;
|
|
70
|
-
export declare const StellarMemoRecommended: (message?: string | undefined, fields?: {
|
|
71
|
-
[key: string]: any;
|
|
72
|
-
} | undefined) => void;
|
|
73
|
-
export declare const StellarWrongMemoFormat: (message?: string | undefined, fields?: {
|
|
74
|
-
[key: string]: any;
|
|
75
|
-
} | undefined) => void;
|
|
76
|
-
export declare const AccountAwaitingSendPendingOperations: (message?: string | undefined, fields?: {
|
|
77
|
-
[key: string]: any;
|
|
78
|
-
} | undefined) => void;
|
|
79
|
-
export declare const SourceHasMultiSign: (message?: string | undefined, fields?: {
|
|
80
|
-
[key: string]: any;
|
|
81
|
-
} | undefined) => void;
|
|
82
|
-
export declare const CosmosRedelegationInProgress: (message?: string | undefined, fields?: {
|
|
83
|
-
[key: string]: any;
|
|
84
|
-
} | undefined) => void;
|
|
85
|
-
export declare const ClaimRewardsFeesWarning: (message?: string | undefined, fields?: {
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
} | undefined) => void;
|
|
88
|
-
export declare const CosmosDelegateAllFundsWarning: (message?: string | undefined, fields?: {
|
|
89
|
-
[key: string]: any;
|
|
90
|
-
} | undefined) => void;
|
|
91
|
-
export declare const CosmosTooManyValidators: (message?: string | undefined, fields?: {
|
|
92
|
-
[key: string]: any;
|
|
93
|
-
} | undefined) => void;
|
|
94
|
-
export declare const NotEnoughDelegationBalance: (message?: string | undefined, fields?: {
|
|
95
|
-
[key: string]: any;
|
|
96
|
-
} | undefined) => void;
|
|
97
|
-
export declare const RPCHostRequired: (message?: string | undefined, fields?: {
|
|
98
|
-
[key: string]: any;
|
|
99
|
-
} | undefined) => void;
|
|
100
|
-
export declare const RPCHostInvalid: (message?: string | undefined, fields?: {
|
|
101
|
-
[key: string]: any;
|
|
102
|
-
} | undefined) => void;
|
|
103
|
-
export declare const RPCUserRequired: (message?: string | undefined, fields?: {
|
|
104
|
-
[key: string]: any;
|
|
105
|
-
} | undefined) => void;
|
|
106
|
-
export declare const RPCPassRequired: (message?: string | undefined, fields?: {
|
|
107
|
-
[key: string]: any;
|
|
108
|
-
} | undefined) => void;
|
|
1
|
+
export declare const ConnectAppTimeout: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
2
|
+
export declare const ConnectManagerTimeout: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
3
|
+
export declare const GetAppAndVersionUnsupportedFormat: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
4
|
+
export declare const AccountNeedResync: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
5
|
+
export declare const LatestFirmwareVersionRequired: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
6
|
+
export declare const FeeEstimationFailed: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
7
|
+
export declare const LowerThanMinimumRelayFee: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
8
|
+
export declare const TransactionRefusedOnDevice: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
9
|
+
export declare const DeviceNotOnboarded: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
10
|
+
export declare const InvalidAddressBecauseAlreadyDelegated: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
11
|
+
export declare const TronNoFrozenForBandwidth: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
12
|
+
export declare const TronNoFrozenForEnergy: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
13
|
+
export declare const TronUnfreezeNotExpired: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
14
|
+
export declare const TronVoteRequired: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
15
|
+
export declare const TronInvalidVoteCount: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
16
|
+
export declare const TronRewardNotAvailable: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
17
|
+
export declare const TronNoReward: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
18
|
+
export declare const TronInvalidFreezeAmount: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
19
|
+
export declare const TronSendTrc20ToNewAccountForbidden: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
20
|
+
export declare const TronUnexpectedFees: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
21
|
+
export declare const TronNotEnoughTronPower: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
22
|
+
export declare const TronTransactionExpired: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
23
|
+
export declare const TronNotEnoughEnergy: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
24
|
+
export declare const AccountAwaitingSendPendingOperations: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
25
|
+
export declare const SourceHasMultiSign: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
26
|
+
export declare const CosmosRedelegationInProgress: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
27
|
+
export declare const ClaimRewardsFeesWarning: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
28
|
+
export declare const CosmosDelegateAllFundsWarning: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
29
|
+
export declare const CosmosTooManyValidators: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
30
|
+
export declare const NotEnoughDelegationBalance: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
31
|
+
export declare const RPCHostRequired: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
32
|
+
export declare const RPCHostInvalid: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
33
|
+
export declare const RPCUserRequired: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
34
|
+
export declare const RPCPassRequired: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
109
35
|
export declare const CosmosBroadcastError: {
|
|
110
|
-
"1": (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"13": (message?: string | undefined, fields?: {
|
|
147
|
-
[key: string]: any;
|
|
148
|
-
} | undefined) => void;
|
|
149
|
-
"14": (message?: string | undefined, fields?: {
|
|
150
|
-
[key: string]: any;
|
|
151
|
-
} | undefined) => void;
|
|
152
|
-
"15": (message?: string | undefined, fields?: {
|
|
153
|
-
[key: string]: any;
|
|
154
|
-
} | undefined) => void;
|
|
155
|
-
"16": (message?: string | undefined, fields?: {
|
|
156
|
-
[key: string]: any;
|
|
157
|
-
} | undefined) => void;
|
|
158
|
-
"17": (message?: string | undefined, fields?: {
|
|
159
|
-
[key: string]: any;
|
|
160
|
-
} | undefined) => void;
|
|
161
|
-
"18": (message?: string | undefined, fields?: {
|
|
162
|
-
[key: string]: any;
|
|
163
|
-
} | undefined) => void;
|
|
164
|
-
"19": (message?: string | undefined, fields?: {
|
|
165
|
-
[key: string]: any;
|
|
166
|
-
} | undefined) => void;
|
|
167
|
-
"20": (message?: string | undefined, fields?: {
|
|
168
|
-
[key: string]: any;
|
|
169
|
-
} | undefined) => void;
|
|
170
|
-
"21": (message?: string | undefined, fields?: {
|
|
171
|
-
[key: string]: any;
|
|
172
|
-
} | undefined) => void;
|
|
173
|
-
"22": (message?: string | undefined, fields?: {
|
|
174
|
-
[key: string]: any;
|
|
175
|
-
} | undefined) => void;
|
|
176
|
-
"23": (message?: string | undefined, fields?: {
|
|
177
|
-
[key: string]: any;
|
|
178
|
-
} | undefined) => void;
|
|
179
|
-
"24": (message?: string | undefined, fields?: {
|
|
180
|
-
[key: string]: any;
|
|
181
|
-
} | undefined) => void;
|
|
182
|
-
"25": (message?: string | undefined, fields?: {
|
|
183
|
-
[key: string]: any;
|
|
184
|
-
} | undefined) => void;
|
|
185
|
-
"26": (message?: string | undefined, fields?: {
|
|
186
|
-
[key: string]: any;
|
|
187
|
-
} | undefined) => void;
|
|
188
|
-
"27": (message?: string | undefined, fields?: {
|
|
189
|
-
[key: string]: any;
|
|
190
|
-
} | undefined) => void;
|
|
191
|
-
"28": (message?: string | undefined, fields?: {
|
|
192
|
-
[key: string]: any;
|
|
193
|
-
} | undefined) => void;
|
|
194
|
-
"29": (message?: string | undefined, fields?: {
|
|
195
|
-
[key: string]: any;
|
|
196
|
-
} | undefined) => void;
|
|
197
|
-
"30": (message?: string | undefined, fields?: {
|
|
198
|
-
[key: string]: any;
|
|
199
|
-
} | undefined) => void;
|
|
200
|
-
"31": (message?: string | undefined, fields?: {
|
|
201
|
-
[key: string]: any;
|
|
202
|
-
} | undefined) => void;
|
|
203
|
-
"32": (message?: string | undefined, fields?: {
|
|
204
|
-
[key: string]: any;
|
|
205
|
-
} | undefined) => void;
|
|
206
|
-
"33": (message?: string | undefined, fields?: {
|
|
207
|
-
[key: string]: any;
|
|
208
|
-
} | undefined) => void;
|
|
209
|
-
"34": (message?: string | undefined, fields?: {
|
|
210
|
-
[key: string]: any;
|
|
211
|
-
} | undefined) => void;
|
|
212
|
-
"35": (message?: string | undefined, fields?: {
|
|
213
|
-
[key: string]: any;
|
|
214
|
-
} | undefined) => void;
|
|
215
|
-
"36": (message?: string | undefined, fields?: {
|
|
216
|
-
[key: string]: any;
|
|
217
|
-
} | undefined) => void;
|
|
36
|
+
"1": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
37
|
+
"2": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
38
|
+
"3": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
39
|
+
"4": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
40
|
+
"5": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
41
|
+
"6": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
42
|
+
"7": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
43
|
+
"8": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
44
|
+
"9": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
45
|
+
"10": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
46
|
+
"11": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
47
|
+
"12": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
48
|
+
"13": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
49
|
+
"14": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
50
|
+
"15": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
51
|
+
"16": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
52
|
+
"17": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
53
|
+
"18": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
54
|
+
"19": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
55
|
+
"20": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
56
|
+
"21": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
57
|
+
"22": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
58
|
+
"23": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
59
|
+
"24": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
60
|
+
"25": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
61
|
+
"26": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
62
|
+
"27": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
63
|
+
"28": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
64
|
+
"29": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
65
|
+
"30": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
66
|
+
"31": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
67
|
+
"32": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
68
|
+
"33": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
69
|
+
"34": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
70
|
+
"35": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
71
|
+
"36": import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
218
72
|
};
|
|
219
|
-
export declare const SatStackVersionTooOld: (
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
export declare const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
export declare const
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
export declare const
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
export declare const
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
export declare const
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
export declare const
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
export declare const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
export declare const
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
export declare const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
export declare const SwapGenericAPIError: (message?: string | undefined, fields?: {
|
|
250
|
-
[key: string]: any;
|
|
251
|
-
} | undefined) => void;
|
|
252
|
-
export declare const JSONRPCResponseError: (message?: string | undefined, fields?: {
|
|
253
|
-
[key: string]: any;
|
|
254
|
-
} | undefined) => void;
|
|
255
|
-
export declare const JSONDecodeError: (message?: string | undefined, fields?: {
|
|
256
|
-
[key: string]: any;
|
|
257
|
-
} | undefined) => void;
|
|
258
|
-
export declare const NoIPHeaderError: (message?: string | undefined, fields?: {
|
|
259
|
-
[key: string]: any;
|
|
260
|
-
} | undefined) => void;
|
|
261
|
-
export declare const CurrencyNotSupportedError: (message?: string | undefined, fields?: {
|
|
262
|
-
[key: string]: any;
|
|
263
|
-
} | undefined) => void;
|
|
264
|
-
export declare const CurrencyDisabledError: (message?: string | undefined, fields?: {
|
|
265
|
-
[key: string]: any;
|
|
266
|
-
} | undefined) => void;
|
|
267
|
-
export declare const CurrencyDisabledAsInputError: (message?: string | undefined, fields?: {
|
|
268
|
-
[key: string]: any;
|
|
269
|
-
} | undefined) => void;
|
|
270
|
-
export declare const CurrencyDisabledAsOutputError: (message?: string | undefined, fields?: {
|
|
271
|
-
[key: string]: any;
|
|
272
|
-
} | undefined) => void;
|
|
273
|
-
export declare const CurrencyNotSupportedByProviderError: (message?: string | undefined, fields?: {
|
|
274
|
-
[key: string]: any;
|
|
275
|
-
} | undefined) => void;
|
|
276
|
-
export declare const TradeMethodNotSupportedError: (message?: string | undefined, fields?: {
|
|
277
|
-
[key: string]: any;
|
|
278
|
-
} | undefined) => void;
|
|
279
|
-
export declare const UnexpectedError: (message?: string | undefined, fields?: {
|
|
280
|
-
[key: string]: any;
|
|
281
|
-
} | undefined) => void;
|
|
282
|
-
export declare const NotImplementedError: (message?: string | undefined, fields?: {
|
|
283
|
-
[key: string]: any;
|
|
284
|
-
} | undefined) => void;
|
|
285
|
-
export declare const ValidationError: (message?: string | undefined, fields?: {
|
|
286
|
-
[key: string]: any;
|
|
287
|
-
} | undefined) => void;
|
|
288
|
-
export declare const AccessDeniedError: (message?: string | undefined, fields?: {
|
|
289
|
-
[key: string]: any;
|
|
290
|
-
} | undefined) => void;
|
|
291
|
-
export declare const AlgorandASANotOptInInRecipient: (message?: string | undefined, fields?: {
|
|
292
|
-
[key: string]: any;
|
|
293
|
-
} | undefined) => void;
|
|
294
|
-
export declare const CompoundLowerAllowanceOfActiveAccountError: (message?: string | undefined, fields?: {
|
|
295
|
-
[key: string]: any;
|
|
296
|
-
} | undefined) => void;
|
|
297
|
-
export declare const OutdatedApp: (message?: string | undefined, fields?: {
|
|
298
|
-
[key: string]: any;
|
|
299
|
-
} | undefined) => void;
|
|
300
|
-
export declare const FreshAddressIndexInvalid: (message?: string | undefined, fields?: {
|
|
301
|
-
[key: string]: any;
|
|
302
|
-
} | undefined) => void;
|
|
303
|
-
export declare const BluetoothNotSupportedError: (message?: string | undefined, fields?: {
|
|
304
|
-
[key: string]: any;
|
|
305
|
-
} | undefined) => void;
|
|
306
|
-
export declare const UnsupportedDerivation: (message?: string | undefined, fields?: {
|
|
307
|
-
[key: string]: any;
|
|
308
|
-
} | undefined) => void;
|
|
73
|
+
export declare const SatStackVersionTooOld: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
74
|
+
export declare const SatStackAccessDown: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
75
|
+
export declare const SatStackStillSyncing: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
76
|
+
export declare const SatStackDescriptorNotImported: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
77
|
+
export declare const SwapNoAvailableProviders: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
78
|
+
export declare const NoSuchAppOnProvider: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
79
|
+
export declare const SwapExchangeRateAmountTooLow: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
80
|
+
export declare const SwapExchangeRateAmountTooHigh: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
81
|
+
export declare const SwapCheckKYCStatusFailed: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
82
|
+
export declare const SwapSubmitKYCFailed: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
83
|
+
export declare const SwapGenericAPIError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
84
|
+
export declare const JSONRPCResponseError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
85
|
+
export declare const JSONDecodeError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
86
|
+
export declare const NoIPHeaderError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
87
|
+
export declare const CurrencyNotSupportedError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
88
|
+
export declare const CurrencyDisabledError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
89
|
+
export declare const CurrencyDisabledAsInputError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
90
|
+
export declare const CurrencyDisabledAsOutputError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
91
|
+
export declare const CurrencyNotSupportedByProviderError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
92
|
+
export declare const TradeMethodNotSupportedError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
93
|
+
export declare const UnexpectedError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
94
|
+
export declare const NotImplementedError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
95
|
+
export declare const ValidationError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
96
|
+
export declare const AccessDeniedError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
97
|
+
export declare const AlgorandASANotOptInInRecipient: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
98
|
+
export declare const CompoundLowerAllowanceOfActiveAccountError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
99
|
+
export declare const OutdatedApp: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
100
|
+
export declare const FreshAddressIndexInvalid: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
101
|
+
export declare const BluetoothNotSupportedError: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
102
|
+
export declare const UnsupportedDerivation: import("@ledgerhq/errors/lib/helpers").CustomErrorFunc;
|
|
309
103
|
export * from "./families/polkadot/errors";
|
|
104
|
+
export * from "./families/stellar/errors";
|
|
310
105
|
export * from "./families/solana/errors";
|
|
311
106
|
export * from "./families/cardano/errors";
|
|
312
107
|
//# sourceMappingURL=errors.d.ts.map
|
package/lib/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,wDAA8C,CAAC;AAC7E,eAAO,MAAM,qBAA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wB,wDAEpC,CAAC;AAEF,eAAO,MAAM,0BAA0B,wDAEtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,wDAEjC,CAAC;AAEF,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC"}
|
package/lib/errors.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
exports.__esModule = true;
|
|
17
|
-
exports.JSONDecodeError = exports.JSONRPCResponseError = exports.SwapGenericAPIError = exports.SwapSubmitKYCFailed = exports.SwapCheckKYCStatusFailed = 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.NotEnoughDelegationBalance = exports.CosmosTooManyValidators = exports.CosmosDelegateAllFundsWarning = exports.ClaimRewardsFeesWarning = exports.CosmosRedelegationInProgress = exports.SourceHasMultiSign = exports.AccountAwaitingSendPendingOperations = exports.
|
|
18
|
-
exports.UnsupportedDerivation = exports.BluetoothNotSupportedError = exports.FreshAddressIndexInvalid = exports.OutdatedApp = exports.CompoundLowerAllowanceOfActiveAccountError = exports.AlgorandASANotOptInInRecipient = exports.AccessDeniedError = exports.ValidationError = exports.NotImplementedError = exports.UnexpectedError = exports.TradeMethodNotSupportedError = exports.CurrencyNotSupportedByProviderError = exports.CurrencyDisabledAsOutputError = exports.CurrencyDisabledAsInputError = exports.CurrencyDisabledError =
|
|
17
|
+
exports.CurrencyNotSupportedError = exports.NoIPHeaderError = exports.JSONDecodeError = exports.JSONRPCResponseError = exports.SwapGenericAPIError = exports.SwapSubmitKYCFailed = exports.SwapCheckKYCStatusFailed = 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.NotEnoughDelegationBalance = exports.CosmosTooManyValidators = exports.CosmosDelegateAllFundsWarning = exports.ClaimRewardsFeesWarning = exports.CosmosRedelegationInProgress = exports.SourceHasMultiSign = exports.AccountAwaitingSendPendingOperations = exports.TronNotEnoughEnergy = exports.TronTransactionExpired = exports.TronNotEnoughTronPower = exports.TronUnexpectedFees = exports.TronSendTrc20ToNewAccountForbidden = exports.TronInvalidFreezeAmount = exports.TronNoReward = exports.TronRewardNotAvailable = exports.TronInvalidVoteCount = exports.TronVoteRequired = exports.TronUnfreezeNotExpired = exports.TronNoFrozenForEnergy = exports.TronNoFrozenForBandwidth = exports.InvalidAddressBecauseAlreadyDelegated = exports.DeviceNotOnboarded = exports.TransactionRefusedOnDevice = exports.LowerThanMinimumRelayFee = exports.FeeEstimationFailed = exports.LatestFirmwareVersionRequired = exports.AccountNeedResync = exports.GetAppAndVersionUnsupportedFormat = exports.ConnectManagerTimeout = exports.ConnectAppTimeout = void 0;
|
|
18
|
+
exports.UnsupportedDerivation = exports.BluetoothNotSupportedError = exports.FreshAddressIndexInvalid = exports.OutdatedApp = exports.CompoundLowerAllowanceOfActiveAccountError = exports.AlgorandASANotOptInInRecipient = exports.AccessDeniedError = exports.ValidationError = exports.NotImplementedError = exports.UnexpectedError = exports.TradeMethodNotSupportedError = exports.CurrencyNotSupportedByProviderError = exports.CurrencyDisabledAsOutputError = exports.CurrencyDisabledAsInputError = exports.CurrencyDisabledError = void 0;
|
|
19
19
|
var errors_1 = require("@ledgerhq/errors");
|
|
20
20
|
// TODO we need to migrate in all errors that are in @ledgerhq/errors
|
|
21
21
|
// but only make sense to live-common to not pollute ledgerjs
|
|
@@ -42,8 +42,6 @@ exports.TronUnexpectedFees = (0, errors_1.createCustomErrorClass)("TronUnexpecte
|
|
|
42
42
|
exports.TronNotEnoughTronPower = (0, errors_1.createCustomErrorClass)("TronNotEnoughTronPower");
|
|
43
43
|
exports.TronTransactionExpired = (0, errors_1.createCustomErrorClass)("TronTransactionExpired");
|
|
44
44
|
exports.TronNotEnoughEnergy = (0, errors_1.createCustomErrorClass)("TronNotEnoughEnergy");
|
|
45
|
-
exports.StellarMemoRecommended = (0, errors_1.createCustomErrorClass)("StellarMemoRecommended");
|
|
46
|
-
exports.StellarWrongMemoFormat = (0, errors_1.createCustomErrorClass)("StellarWrongMemoFormat");
|
|
47
45
|
exports.AccountAwaitingSendPendingOperations = (0, errors_1.createCustomErrorClass)("AccountAwaitingSendPendingOperations");
|
|
48
46
|
exports.SourceHasMultiSign = (0, errors_1.createCustomErrorClass)("SourceHasMultiSign");
|
|
49
47
|
exports.CosmosRedelegationInProgress = (0, errors_1.createCustomErrorClass)("CosmosRedelegationInProgress");
|
|
@@ -126,6 +124,7 @@ exports.FreshAddressIndexInvalid = (0, errors_1.createCustomErrorClass)("FreshAd
|
|
|
126
124
|
exports.BluetoothNotSupportedError = (0, errors_1.createCustomErrorClass)("FwUpdateBluetoothNotSupported");
|
|
127
125
|
exports.UnsupportedDerivation = (0, errors_1.createCustomErrorClass)("UnsupportedDerivation");
|
|
128
126
|
__exportStar(require("./families/polkadot/errors"), exports);
|
|
127
|
+
__exportStar(require("./families/stellar/errors"), exports);
|
|
129
128
|
__exportStar(require("./families/solana/errors"), exports);
|
|
130
129
|
__exportStar(require("./families/cardano/errors"), exports);
|
|
131
130
|
//# sourceMappingURL=errors.js.map
|
package/lib/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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AAsB,EAChE,8BAA8B,CAC/B,CAAC;AACW,QAAA,eAAe,GAAG,IAAA,+BAAsB,EAAC,iBAAiB,CAAC,CAAC;AAC5D,QAAA,mBAAmB,GAAG,IAAA,+BAAsB,EACvD,qBAAqB,CACtB,CAAC;AACW,QAAA,eAAe,GAAG,IAAA,+BAAsB,EAAC,iBAAiB,CAAC,CAAC;AAC5D,QAAA,iBAAiB,GAAG,IAAA,+BAAsB,EAAC,mBAAmB,CAAC,CAAC;AAEhE,QAAA,8BAA8B,GAAG,IAAA,+BAAsB,EAClE,gCAAgC,CACjC,CAAC;AACW,QAAA,0CAA0C,GACrD,IAAA,+BAAsB,EAAC,4CAA4C,CAAC,CAAC;AAC1D,QAAA,WAAW,GAAG,IAAA,+BAAsB,EAAC,aAAa,CAAC,CAAC;AACpD,QAAA,wBAAwB,GAAG,IAAA,+BAAsB,EAC5D,0BAA0B,CAC3B,CAAC;AAEW,QAAA,0BAA0B,GAAG,IAAA,+BAAsB,EAC9D,+BAA+B,CAChC,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,+BAAsB,EACzD,uBAAuB,CACxB,CAAC;AAEF,6DAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.test.d.ts","sourceRoot":"","sources":["../src/errors.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
var errors_1 = require("./errors");
|
|
4
|
+
function functionA() {
|
|
5
|
+
throw new errors_1.AccessDeniedError();
|
|
6
|
+
}
|
|
7
|
+
describe("custom errors", function () {
|
|
8
|
+
test("error instanceof", function () {
|
|
9
|
+
try {
|
|
10
|
+
functionA();
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
expect(e).toBeInstanceOf(errors_1.AccessDeniedError);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
test("promise error instanceof", function () {
|
|
17
|
+
expect(Promise.reject(new errors_1.AccessDeniedError())).rejects.toBeInstanceOf(errors_1.AccessDeniedError);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=errors.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.test.js","sourceRoot":"","sources":["../src/errors.test.ts"],"names":[],"mappings":";;AAAA,mCAA6C;AAE7C,SAAS,SAAS;IAChB,MAAM,IAAI,0BAAiB,EAAE,CAAC;AAChC,CAAC;AAED,QAAQ,CAAC,eAAe,EAAE;IACxB,IAAI,CAAC,kBAAkB,EAAE;QACvB,IAAI;YACF,SAAS,EAAE,CAAC;SACb;QAAC,OAAO,CAAM,EAAE;YACf,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,0BAAiB,CAAC,CAAC;SAC7C;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,0BAA0B,EAAE;QAC/B,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,0BAAiB,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CACpE,0BAAiB,CAClB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -66,7 +66,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
66
66
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
67
67
|
};
|
|
68
68
|
exports.__esModule = true;
|
|
69
|
-
var
|
|
69
|
+
var cryptoassets_1 = require("@ledgerhq/cryptoassets");
|
|
70
70
|
var bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
71
71
|
var currencies_1 = require("../../../currencies");
|
|
72
72
|
var account_1 = require("../../../mock/account");
|
|
@@ -149,7 +149,7 @@ describe("swap/utils/getAccountTuplesForCurrency", function () {
|
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
151
|
describe("TokenCurrency", function () {
|
|
152
|
-
var aaveToken = Object.freeze((0,
|
|
152
|
+
var aaveToken = Object.freeze((0, cryptoassets_1.getTokenById)("ethereum/erc20/aave"));
|
|
153
153
|
test("returns correct parent accounts including a new subAccount when a TokenCurrency is provided", function () {
|
|
154
154
|
var ethAccounts = [
|
|
155
155
|
__assign(__assign({}, getEthAccount()), { subAccounts: [] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../../src/exchange/swap/utils/index.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../../src/exchange/swap/utils/index.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAsD;AACtD,8DAAqC;AACrC,kDAA4D;AAC5D,iDAAmD;AAOnD,iCAOiB;AAEjB,iFAAiF;AACjF,SAAU,gBAAgB,CAAC,QAAwB;;;;;gBAC7C,EAAE,GAAG,CAAC,CAAC;;;qBACJ,IAAI;gBACT,EAAE,IAAI,CAAC,CAAC;gBACR,qBAAM,IAAA,oBAAU,EAAC,yBAAkB,EAAE,CAAE,EAAE,EAAE,QAAQ,UAAA,EAAE,cAAc,EAAE,CAAC,EAAE,CAAC,EAAA;;gBAAzE,SAAyE,CAAC;;;;;CAE7E;AACD,IAAM,iBAAiB,GAAG,UAAC,UAAkB;IAC3C,IAAM,SAAS,GAAG,gBAAgB,CAAC,IAAA,kCAAqB,EAAC,UAAU,CAAC,CAAC,CAAC;IACtE,OAAO,cAAM,OAAA,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,EAAtB,CAAsB,CAAC;AACtC,CAAC,CAAC;AAEF,QAAQ,CAAC,wCAAwC,EAAE;IACjD,IAAM,aAAa,GAAG,i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CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitcoin.d.ts","sourceRoot":"","sources":["../../../../src/families/bitcoin/datasets/bitcoin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,UAAU,CAAC;AA0B5D,QAAA,MAAM,OAAO,EAAE,cAAc,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"bitcoin.d.ts","sourceRoot":"","sources":["../../../../src/families/bitcoin/datasets/bitcoin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,UAAU,CAAC;AA0B5D,QAAA,MAAM,OAAO,EAAE,cAAc,CAAC,WAAW,CAuIxC,CAAC;AACF,eAAe,OAAO,CAAC"}
|