@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.
Files changed (235) hide show
  1. package/lib/apps/support.js +1 -1
  2. package/lib/apps/support.js.map +1 -1
  3. package/lib/bot/index.d.ts.map +1 -1
  4. package/lib/bot/index.js +4 -2
  5. package/lib/bot/index.js.map +1 -1
  6. package/lib/bot/specs.d.ts +1 -0
  7. package/lib/bot/specs.d.ts.map +1 -1
  8. package/lib/bot/specs.js +6 -1
  9. package/lib/bot/specs.js.map +1 -1
  10. package/lib/currencies/support.d.ts +1 -1
  11. package/lib/currencies/support.d.ts.map +1 -1
  12. package/lib/env.d.ts +15 -5
  13. package/lib/env.d.ts.map +1 -1
  14. package/lib/env.js +10 -0
  15. package/lib/env.js.map +1 -1
  16. package/lib/env.react.d.ts +1 -1
  17. package/lib/env.react.d.ts.map +1 -1
  18. package/lib/errors.d.ts +101 -306
  19. package/lib/errors.d.ts.map +1 -1
  20. package/lib/errors.js +3 -4
  21. package/lib/errors.js.map +1 -1
  22. package/lib/errors.test.d.ts +2 -0
  23. package/lib/errors.test.d.ts.map +1 -0
  24. package/lib/errors.test.js +20 -0
  25. package/lib/errors.test.js.map +1 -0
  26. package/lib/exchange/swap/utils/index.test.js +2 -2
  27. package/lib/exchange/swap/utils/index.test.js.map +1 -1
  28. package/lib/families/bitcoin/datasets/bitcoin.d.ts.map +1 -1
  29. package/lib/families/bitcoin/datasets/bitcoin.js +2 -4
  30. package/lib/families/bitcoin/datasets/bitcoin.js.map +1 -1
  31. package/lib/families/bitcoin/descriptor.d.ts.map +1 -1
  32. package/lib/families/bitcoin/descriptor.js +3 -1
  33. package/lib/families/bitcoin/descriptor.js.map +1 -1
  34. package/lib/families/bitcoin/errors.d.ts +1 -3
  35. package/lib/families/bitcoin/errors.d.ts.map +1 -1
  36. package/lib/families/bitcoin/exchange.js +1 -1
  37. package/lib/families/bitcoin/exchange.js.map +1 -1
  38. package/lib/families/bitcoin/hw-getAddress.d.ts +1 -1
  39. package/lib/families/bitcoin/hw-getAddress.d.ts.map +1 -1
  40. package/lib/families/bitcoin/js-synchronisation.d.ts.map +1 -1
  41. package/lib/families/bitcoin/js-synchronisation.js +20 -2
  42. package/lib/families/bitcoin/js-synchronisation.js.map +1 -1
  43. package/lib/families/bitcoin/wallet-btc/storage/index.d.ts +0 -36
  44. package/lib/families/bitcoin/wallet-btc/storage/index.d.ts.map +1 -1
  45. package/lib/families/bitcoin/wallet-btc/storage/index.js +14 -14
  46. package/lib/families/bitcoin/wallet-btc/storage/index.js.map +1 -1
  47. package/lib/families/bitcoin/wallet-btc/storage/types.d.ts +1 -0
  48. package/lib/families/bitcoin/wallet-btc/storage/types.d.ts.map +1 -1
  49. package/lib/families/bitcoin/xpub.txs.loadExport.unit.test.d.ts +2 -0
  50. package/lib/families/bitcoin/xpub.txs.loadExport.unit.test.d.ts.map +1 -0
  51. package/lib/families/bitcoin/xpub.txs.loadExport.unit.test.js +146 -0
  52. package/lib/families/bitcoin/xpub.txs.loadExport.unit.test.js.map +1 -0
  53. package/lib/families/cardano/errors.d.ts +1 -3
  54. package/lib/families/cardano/errors.d.ts.map +1 -1
  55. package/lib/families/crypto_org/errors.d.ts +3 -9
  56. package/lib/families/crypto_org/errors.d.ts.map +1 -1
  57. package/lib/families/ethereum/exchange.js +1 -1
  58. package/lib/families/ethereum/exchange.js.map +1 -1
  59. package/lib/families/ethereum/modules/index.d.ts +1 -1
  60. package/lib/families/ethereum/modules/index.d.ts.map +1 -1
  61. package/lib/families/ethereum/signOperation.js +2 -2
  62. package/lib/families/ethereum/signOperation.js.map +1 -1
  63. package/lib/families/ethereum/specs.d.ts +1 -1
  64. package/lib/families/ethereum/specs.js +5 -5
  65. package/lib/families/ethereum/specs.js.map +1 -1
  66. package/lib/families/polkadot/errors.d.ts +12 -36
  67. package/lib/families/polkadot/errors.d.ts.map +1 -1
  68. package/lib/families/ripple/exchange.js +1 -1
  69. package/lib/families/ripple/exchange.js.map +1 -1
  70. package/lib/families/solana/api/chain/instruction/token/types.d.ts +3 -3
  71. package/lib/families/solana/errors.d.ts +20 -60
  72. package/lib/families/solana/errors.d.ts.map +1 -1
  73. package/lib/families/stellar/api/horizon.d.ts +29 -7
  74. package/lib/families/stellar/api/horizon.d.ts.map +1 -1
  75. package/lib/families/stellar/api/horizon.js +114 -58
  76. package/lib/families/stellar/api/horizon.js.map +1 -1
  77. package/lib/families/stellar/api/index.d.ts +1 -1
  78. package/lib/families/stellar/api/index.d.ts.map +1 -1
  79. package/lib/families/stellar/api/index.js +5 -1
  80. package/lib/families/stellar/api/index.js.map +1 -1
  81. package/lib/families/stellar/bridge/mock.d.ts.map +1 -1
  82. package/lib/families/stellar/bridge/mock.js +4 -1
  83. package/lib/families/stellar/bridge/mock.js.map +1 -1
  84. package/lib/families/stellar/bridge.integration.test.js +12 -4
  85. package/lib/families/stellar/bridge.integration.test.js.map +1 -1
  86. package/lib/families/stellar/cli-transaction.d.ts +3 -1
  87. package/lib/families/stellar/cli-transaction.d.ts.map +1 -1
  88. package/lib/families/stellar/cli-transaction.js +48 -2
  89. package/lib/families/stellar/cli-transaction.js.map +1 -1
  90. package/lib/families/stellar/deviceTransactionConfig.d.ts +7 -1
  91. package/lib/families/stellar/deviceTransactionConfig.d.ts.map +1 -1
  92. package/lib/families/stellar/deviceTransactionConfig.js +12 -1
  93. package/lib/families/stellar/deviceTransactionConfig.js.map +1 -1
  94. package/lib/families/stellar/errors.d.ts +12 -0
  95. package/lib/families/stellar/errors.d.ts.map +1 -0
  96. package/lib/families/stellar/errors.js +16 -0
  97. package/lib/families/stellar/errors.js.map +1 -0
  98. package/lib/families/stellar/exchange.js +1 -1
  99. package/lib/families/stellar/exchange.js.map +1 -1
  100. package/lib/families/stellar/js-buildTransaction.d.ts.map +1 -1
  101. package/lib/families/stellar/js-buildTransaction.js +34 -16
  102. package/lib/families/stellar/js-buildTransaction.js.map +1 -1
  103. package/lib/families/stellar/js-createTransaction.d.ts.map +1 -1
  104. package/lib/families/stellar/js-createTransaction.js +4 -1
  105. package/lib/families/stellar/js-createTransaction.js.map +1 -1
  106. package/lib/families/stellar/js-estimateMaxSpendable.js +2 -1
  107. package/lib/families/stellar/js-estimateMaxSpendable.js.map +1 -1
  108. package/lib/families/stellar/js-getTransactionStatus.d.ts.map +1 -1
  109. package/lib/families/stellar/js-getTransactionStatus.js +127 -57
  110. package/lib/families/stellar/js-getTransactionStatus.js.map +1 -1
  111. package/lib/families/stellar/js-prepareTransaction.d.ts.map +1 -1
  112. package/lib/families/stellar/js-prepareTransaction.js +25 -7
  113. package/lib/families/stellar/js-prepareTransaction.js.map +1 -1
  114. package/lib/families/stellar/js-signOperation.d.ts.map +1 -1
  115. package/lib/families/stellar/js-signOperation.js +33 -6
  116. package/lib/families/stellar/js-signOperation.js.map +1 -1
  117. package/lib/families/stellar/js-synchronization.d.ts +1 -1
  118. package/lib/families/stellar/js-synchronization.d.ts.map +1 -1
  119. package/lib/families/stellar/js-synchronization.js +42 -16
  120. package/lib/families/stellar/js-synchronization.js.map +1 -1
  121. package/lib/families/stellar/logic.d.ts +21 -14
  122. package/lib/families/stellar/logic.d.ts.map +1 -1
  123. package/lib/families/stellar/logic.js +158 -57
  124. package/lib/families/stellar/logic.js.map +1 -1
  125. package/lib/families/stellar/specs.d.ts.map +1 -1
  126. package/lib/families/stellar/specs.js +182 -7
  127. package/lib/families/stellar/specs.js.map +1 -1
  128. package/lib/families/stellar/speculos-deviceActions.d.ts.map +1 -1
  129. package/lib/families/stellar/speculos-deviceActions.js +60 -28
  130. package/lib/families/stellar/speculos-deviceActions.js.map +1 -1
  131. package/lib/families/stellar/tokens.d.ts +11 -0
  132. package/lib/families/stellar/tokens.d.ts.map +1 -0
  133. package/lib/families/stellar/tokens.js +82 -0
  134. package/lib/families/stellar/tokens.js.map +1 -0
  135. package/lib/families/stellar/transaction.d.ts +2 -2
  136. package/lib/families/stellar/transaction.d.ts.map +1 -1
  137. package/lib/families/stellar/transaction.js +32 -6
  138. package/lib/families/stellar/transaction.js.map +1 -1
  139. package/lib/families/stellar/types.d.ts +45 -0
  140. package/lib/families/stellar/types.d.ts.map +1 -1
  141. package/lib/families/stellar/types.js +7 -1
  142. package/lib/families/stellar/types.js.map +1 -1
  143. package/lib/families/tezos/exchange.js +1 -1
  144. package/lib/families/tezos/exchange.js.map +1 -1
  145. package/lib/generated/cli-transaction.d.ts +1 -0
  146. package/lib/generated/cli-transaction.d.ts.map +1 -1
  147. package/lib/generated/specs.d.ts +1 -1
  148. package/lib/generated/transaction.d.ts +1 -1
  149. package/lib/hw/signMessage/index.d.ts +4 -3
  150. package/lib/hw/signMessage/index.d.ts.map +1 -1
  151. package/lib/hw/signMessage/index.js +25 -11
  152. package/lib/hw/signMessage/index.js.map +1 -1
  153. package/lib/hw/signMessage/index.test.d.ts +2 -0
  154. package/lib/hw/signMessage/index.test.d.ts.map +1 -0
  155. package/lib/hw/signMessage/index.test.js +126 -0
  156. package/lib/hw/signMessage/index.test.js.map +1 -0
  157. package/lib/load/speculos.d.ts.map +1 -1
  158. package/lib/load/speculos.js +1 -3
  159. package/lib/load/speculos.js.map +1 -1
  160. package/lib/mock/Btc.d.ts +1 -1
  161. package/lib/mock/Btc.d.ts.map +1 -1
  162. package/lib/performance.d.ts +10 -0
  163. package/lib/performance.d.ts.map +1 -0
  164. package/lib/performance.js +72 -0
  165. package/lib/performance.js.map +1 -0
  166. package/lib/performance.test.d.ts +2 -0
  167. package/lib/performance.test.d.ts.map +1 -0
  168. package/lib/performance.test.js +28 -0
  169. package/lib/performance.test.js.map +1 -0
  170. package/lib/platform/providers/RemoteLiveAppProvider/api/index.d.ts.map +1 -1
  171. package/lib/platform/providers/RemoteLiveAppProvider/api/index.js +28 -0
  172. package/lib/platform/providers/RemoteLiveAppProvider/api/index.js.map +1 -1
  173. package/lib/platform/providers/RemoteLiveAppProvider/api/mock.json +0 -31
  174. package/lib/types/currencies.d.ts +1 -1
  175. package/lib/types/currencies.d.ts.map +1 -1
  176. package/lib/walletconnect/Provider.d.ts.map +1 -1
  177. package/lib/walletconnect/Provider.js +1 -3
  178. package/lib/walletconnect/Provider.js.map +1 -1
  179. package/package.json +71 -19
  180. package/src/apps/support.ts +1 -1
  181. package/src/bot/index.ts +3 -1
  182. package/src/bot/specs.ts +7 -1
  183. package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +34 -6
  184. package/src/currencies/support.ts +1 -1
  185. package/src/env.ts +10 -0
  186. package/src/errors.test.ts +21 -0
  187. package/src/errors.ts +1 -6
  188. package/src/exchange/swap/utils/index.test.ts +1 -1
  189. package/src/families/bitcoin/datasets/bitcoin.ts +0 -2
  190. package/src/families/bitcoin/descriptor.ts +4 -1
  191. package/src/families/bitcoin/exchange.ts +1 -1
  192. package/src/families/bitcoin/hw-getAddress.ts +1 -1
  193. package/src/families/bitcoin/js-synchronisation.ts +23 -1
  194. package/src/families/bitcoin/wallet-btc/storage/index.ts +17 -31
  195. package/src/families/bitcoin/wallet-btc/storage/types.ts +1 -0
  196. package/src/families/bitcoin/wallet-btc/wallet.ts +1 -1
  197. package/src/families/bitcoin/xpub.txs.loadExport.unit.test.ts +101 -0
  198. package/src/families/ethereum/exchange.ts +1 -1
  199. package/src/families/ethereum/modules/index.ts +1 -1
  200. package/src/families/ethereum/signOperation.ts +2 -2
  201. package/src/families/ethereum/specs.ts +5 -5
  202. package/src/families/ripple/exchange.ts +1 -1
  203. package/src/families/stellar/__snapshots__/bridge.integration.test.ts.snap +765 -339
  204. package/src/families/stellar/api/horizon.ts +115 -33
  205. package/src/families/stellar/api/index.ts +4 -0
  206. package/src/families/stellar/bridge/mock.ts +3 -0
  207. package/src/families/stellar/bridge.integration.test.ts +10 -2
  208. package/src/families/stellar/cli-transaction.ts +75 -2
  209. package/src/families/stellar/deviceTransactionConfig.ts +22 -0
  210. package/src/families/stellar/errors.ts +34 -0
  211. package/src/families/stellar/exchange.ts +1 -1
  212. package/src/families/stellar/js-buildTransaction.ts +56 -16
  213. package/src/families/stellar/js-createTransaction.ts +3 -0
  214. package/src/families/stellar/js-estimateMaxSpendable.ts +1 -1
  215. package/src/families/stellar/js-getTransactionStatus.ts +152 -60
  216. package/src/families/stellar/js-prepareTransaction.ts +4 -3
  217. package/src/families/stellar/js-signOperation.ts +37 -6
  218. package/src/families/stellar/js-synchronization.ts +53 -11
  219. package/src/families/stellar/logic.ts +198 -62
  220. package/src/families/stellar/specs.ts +227 -8
  221. package/src/families/stellar/speculos-deviceActions.ts +66 -22
  222. package/src/families/stellar/tokens.ts +118 -0
  223. package/src/families/stellar/transaction.ts +31 -3
  224. package/src/families/stellar/types.ts +52 -0
  225. package/src/families/tezos/exchange.ts +1 -1
  226. package/src/hw/signMessage/index.test.ts +128 -0
  227. package/src/hw/signMessage/index.ts +37 -15
  228. package/src/load/speculos.ts +1 -3
  229. package/src/mock/Btc.ts +1 -1
  230. package/src/performance.test.ts +26 -0
  231. package/src/performance.ts +61 -0
  232. package/src/platform/providers/RemoteLiveAppProvider/api/index.ts +6 -0
  233. package/src/platform/providers/RemoteLiveAppProvider/api/mock.json +1 -32
  234. package/src/types/currencies.ts +1 -1
  235. package/src/walletconnect/Provider.tsx +4 -5
package/lib/errors.d.ts CHANGED
@@ -1,312 +1,107 @@
1
- export declare const ConnectAppTimeout: (message?: string | undefined, fields?: {
2
- [key: string]: any;
3
- } | undefined) => void;
4
- export declare const ConnectManagerTimeout: (message?: string | undefined, fields?: {
5
- [key: string]: any;
6
- } | undefined) => void;
7
- export declare const GetAppAndVersionUnsupportedFormat: (message?: string | undefined, fields?: {
8
- [key: string]: any;
9
- } | undefined) => void;
10
- export declare const AccountNeedResync: (message?: string | undefined, fields?: {
11
- [key: string]: any;
12
- } | undefined) => void;
13
- export declare const LatestFirmwareVersionRequired: (message?: string | undefined, fields?: {
14
- [key: string]: any;
15
- } | undefined) => void;
16
- export declare const FeeEstimationFailed: (message?: string | undefined, fields?: {
17
- [key: string]: any;
18
- } | undefined) => void;
19
- export declare const LowerThanMinimumRelayFee: (message?: string | undefined, fields?: {
20
- [key: string]: any;
21
- } | undefined) => void;
22
- export declare const TransactionRefusedOnDevice: (message?: string | undefined, fields?: {
23
- [key: string]: any;
24
- } | undefined) => void;
25
- export declare const DeviceNotOnboarded: (message?: string | undefined, fields?: {
26
- [key: string]: any;
27
- } | undefined) => void;
28
- export declare const InvalidAddressBecauseAlreadyDelegated: (message?: string | undefined, fields?: {
29
- [key: string]: any;
30
- } | undefined) => void;
31
- export declare const TronNoFrozenForBandwidth: (message?: string | undefined, fields?: {
32
- [key: string]: any;
33
- } | undefined) => void;
34
- export declare const TronNoFrozenForEnergy: (message?: string | undefined, fields?: {
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": (message?: string | undefined, fields?: {
111
- [key: string]: any;
112
- } | undefined) => void;
113
- "2": (message?: string | undefined, fields?: {
114
- [key: string]: any;
115
- } | undefined) => void;
116
- "3": (message?: string | undefined, fields?: {
117
- [key: string]: any;
118
- } | undefined) => void;
119
- "4": (message?: string | undefined, fields?: {
120
- [key: string]: any;
121
- } | undefined) => void;
122
- "5": (message?: string | undefined, fields?: {
123
- [key: string]: any;
124
- } | undefined) => void;
125
- "6": (message?: string | undefined, fields?: {
126
- [key: string]: any;
127
- } | undefined) => void;
128
- "7": (message?: string | undefined, fields?: {
129
- [key: string]: any;
130
- } | undefined) => void;
131
- "8": (message?: string | undefined, fields?: {
132
- [key: string]: any;
133
- } | undefined) => void;
134
- "9": (message?: string | undefined, fields?: {
135
- [key: string]: any;
136
- } | undefined) => void;
137
- "10": (message?: string | undefined, fields?: {
138
- [key: string]: any;
139
- } | undefined) => void;
140
- "11": (message?: string | undefined, fields?: {
141
- [key: string]: any;
142
- } | undefined) => void;
143
- "12": (message?: string | undefined, fields?: {
144
- [key: string]: any;
145
- } | undefined) => void;
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: (message?: string | undefined, fields?: {
220
- [key: string]: any;
221
- } | undefined) => void;
222
- export declare const SatStackAccessDown: (message?: string | undefined, fields?: {
223
- [key: string]: any;
224
- } | undefined) => void;
225
- export declare const SatStackStillSyncing: (message?: string | undefined, fields?: {
226
- [key: string]: any;
227
- } | undefined) => void;
228
- export declare const SatStackDescriptorNotImported: (message?: string | undefined, fields?: {
229
- [key: string]: any;
230
- } | undefined) => void;
231
- export declare const SwapNoAvailableProviders: (message?: string | undefined, fields?: {
232
- [key: string]: any;
233
- } | undefined) => void;
234
- export declare const NoSuchAppOnProvider: (message?: string | undefined, fields?: {
235
- [key: string]: any;
236
- } | undefined) => void;
237
- export declare const SwapExchangeRateAmountTooLow: (message?: string | undefined, fields?: {
238
- [key: string]: any;
239
- } | undefined) => void;
240
- export declare const SwapExchangeRateAmountTooHigh: (message?: string | undefined, fields?: {
241
- [key: string]: any;
242
- } | undefined) => void;
243
- export declare const SwapCheckKYCStatusFailed: (message?: string | undefined, fields?: {
244
- [key: string]: any;
245
- } | undefined) => void;
246
- export declare const SwapSubmitKYCFailed: (message?: string | undefined, fields?: {
247
- [key: string]: any;
248
- } | undefined) => void;
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
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAGA,eAAO,M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;AACF,eAAO,MAAM,eAAe,wDAA4C,CAAC;AACzE,eAAO,MAAM,eAAe,wDAA4C,CAAC;AACzE,eAAO,MAAM,yBAAyB,wDAErC,CAAC;AACF,eAAO,MAAM,qBAAqB,wDAEjC,CAAC;AACF,eAAO,MAAM,4BAA4B,wDAExC,CAAC;AACF,eAAO,MAAM,6BAA6B,wDAEzC,CAAC;AACF,eAAO,MAAM,mCAAmC,wDAE/C,CAAC;AACF,eAAO,MAAM,4BAA4B,wDAExC,CAAC;AACF,eAAO,MAAM,eAAe,wDAA4C,CAAC;AACzE,eAAO,MAAM,mBAAmB,wDAE/B,CAAC;AACF,eAAO,MAAM,eAAe,wDAA4C,CAAC;AACzE,eAAO,MAAM,iBAAiB,wDAA8C,CAAC;AAE7E,eAAO,MAAM,8BAA8B,wDAE1C,CAAC;AACF,eAAO,MAAM,0CAA0C,wDACe,CAAC;AACvE,eAAO,MAAM,WAAW,wDAAwC,CAAC;AACjE,eAAO,MAAM,wBAAwB,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.StellarWrongMemoFormat = exports.StellarMemoRecommended = 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 = exports.CurrencyNotSupportedError = exports.NoIPHeaderError = void 0;
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":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA0D;AAC1D,qEAAqE;AACrE,6DAA6D;AAChD,QAAA,iBAAiB,GAAG,IAAA,+BAAsB,EAAC,mBAAmB,CAAC,CAAC;AAChE,QAAA,qBAAqB,GAAG,IAAA,+BAAsB,EACzD,uBAAuB,CACxB,CAAC;AACW,QAAA,iCAAiC,GAAG,IAAA,+BAAsB,EACrE,m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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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=errors.test.d.ts.map
@@ -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 tokens_1 = require("@ledgerhq/cryptoassets/lib/tokens");
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, tokens_1.getTokenById)("ethereum/erc20/aave"));
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,4DAAiE;AACjE,8DAAqC;AACrC,kDAA4D;AAC5D,iDAAmD;AAOnD,iCAOiB;AAEjB,iFAAiF;AACjF,S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AAI,CAAC,4DAA4D,EAAE;QACjE,IAAM,cAAc,GAAG,WAAW,CAAC;QAEnC,IAAM,MAAM,GAAG,IAAA,uBAAe,EAAC,WAAW,CAAC,CAAC;QAE5C,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,cAAc,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,CAyIxC,CAAC;AACF,eAAe,OAAO,CAAC"}
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"}