@injectivelabs/exceptions 1.16.38 → 1.17.2-alpha.0

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 (133) hide show
  1. package/dist/cjs/index.cjs +2759 -0
  2. package/dist/cjs/index.d.cts +826 -0
  3. package/dist/cjs/package.json +2 -2
  4. package/dist/esm/index.d.ts +826 -3
  5. package/dist/esm/index.js +2712 -2
  6. package/dist/esm/package.json +2 -2
  7. package/package.json +37 -38
  8. package/dist/cjs/exceptions/base.d.ts +0 -81
  9. package/dist/cjs/exceptions/base.js +0 -179
  10. package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +0 -7
  11. package/dist/cjs/exceptions/exceptions/BitGetException.js +0 -31
  12. package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +0 -7
  13. package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +0 -16
  14. package/dist/cjs/exceptions/exceptions/GeneralException.d.ts +0 -5
  15. package/dist/cjs/exceptions/exceptions/GeneralException.js +0 -11
  16. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +0 -7
  17. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js +0 -21
  18. package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +0 -11
  19. package/dist/cjs/exceptions/exceptions/HttpRequestException.js +0 -21
  20. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +0 -7
  21. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +0 -40
  22. package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +0 -7
  23. package/dist/cjs/exceptions/exceptions/LedgerException.js +0 -40
  24. package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +0 -7
  25. package/dist/cjs/exceptions/exceptions/MetamaskException.js +0 -31
  26. package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +0 -7
  27. package/dist/cjs/exceptions/exceptions/OkxWalletException.js +0 -31
  28. package/dist/cjs/exceptions/exceptions/RabbyWalletException.d.ts +0 -7
  29. package/dist/cjs/exceptions/exceptions/RabbyWalletException.js +0 -33
  30. package/dist/cjs/exceptions/exceptions/RainbowWalletException.d.ts +0 -7
  31. package/dist/cjs/exceptions/exceptions/RainbowWalletException.js +0 -31
  32. package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +0 -7
  33. package/dist/cjs/exceptions/exceptions/TransactionException.js +0 -34
  34. package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +0 -7
  35. package/dist/cjs/exceptions/exceptions/TrezorException.js +0 -16
  36. package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +0 -7
  37. package/dist/cjs/exceptions/exceptions/TrustWalletException.js +0 -33
  38. package/dist/cjs/exceptions/exceptions/TurnkeyWalletSessionException.d.ts +0 -5
  39. package/dist/cjs/exceptions/exceptions/TurnkeyWalletSessionException.js +0 -11
  40. package/dist/cjs/exceptions/exceptions/WalletConnectException.d.ts +0 -7
  41. package/dist/cjs/exceptions/exceptions/WalletConnectException.js +0 -31
  42. package/dist/cjs/exceptions/exceptions/WalletException.d.ts +0 -5
  43. package/dist/cjs/exceptions/exceptions/WalletException.js +0 -11
  44. package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +0 -7
  45. package/dist/cjs/exceptions/exceptions/Web3Exception.js +0 -16
  46. package/dist/cjs/exceptions/exceptions/index.d.ts +0 -18
  47. package/dist/cjs/exceptions/exceptions/index.js +0 -37
  48. package/dist/cjs/exceptions/index.d.ts +0 -2
  49. package/dist/cjs/exceptions/index.js +0 -18
  50. package/dist/cjs/exceptions/messages.d.ts +0 -13
  51. package/dist/cjs/exceptions/messages.js +0 -1600
  52. package/dist/cjs/exceptions/types/codes.d.ts +0 -441
  53. package/dist/cjs/exceptions/types/codes.js +0 -774
  54. package/dist/cjs/exceptions/types/context.d.ts +0 -93
  55. package/dist/cjs/exceptions/types/context.js +0 -21
  56. package/dist/cjs/exceptions/types/index.d.ts +0 -3
  57. package/dist/cjs/exceptions/types/index.js +0 -19
  58. package/dist/cjs/exceptions/types/modules.d.ts +0 -67
  59. package/dist/cjs/exceptions/types/modules.js +0 -66
  60. package/dist/cjs/exceptions/utils/grpc.d.ts +0 -3
  61. package/dist/cjs/exceptions/utils/grpc.js +0 -43
  62. package/dist/cjs/exceptions/utils/helpers.d.ts +0 -1
  63. package/dist/cjs/exceptions/utils/helpers.js +0 -24
  64. package/dist/cjs/exceptions/utils/maps.d.ts +0 -13
  65. package/dist/cjs/exceptions/utils/maps.js +0 -127
  66. package/dist/cjs/index.d.ts +0 -3
  67. package/dist/cjs/index.js +0 -18
  68. package/dist/cjs/types.d.ts +0 -2
  69. package/dist/cjs/types.js +0 -2
  70. package/dist/cjs/utils.d.ts +0 -8
  71. package/dist/cjs/utils.js +0 -49
  72. package/dist/esm/exceptions/base.d.ts +0 -81
  73. package/dist/esm/exceptions/base.js +0 -175
  74. package/dist/esm/exceptions/exceptions/BitGetException.d.ts +0 -7
  75. package/dist/esm/exceptions/exceptions/BitGetException.js +0 -27
  76. package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +0 -7
  77. package/dist/esm/exceptions/exceptions/CosmosWalletException.js +0 -12
  78. package/dist/esm/exceptions/exceptions/GeneralException.d.ts +0 -5
  79. package/dist/esm/exceptions/exceptions/GeneralException.js +0 -7
  80. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +0 -7
  81. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js +0 -17
  82. package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +0 -11
  83. package/dist/esm/exceptions/exceptions/HttpRequestException.js +0 -17
  84. package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +0 -7
  85. package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +0 -36
  86. package/dist/esm/exceptions/exceptions/LedgerException.d.ts +0 -7
  87. package/dist/esm/exceptions/exceptions/LedgerException.js +0 -36
  88. package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +0 -7
  89. package/dist/esm/exceptions/exceptions/MetamaskException.js +0 -27
  90. package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +0 -7
  91. package/dist/esm/exceptions/exceptions/OkxWalletException.js +0 -27
  92. package/dist/esm/exceptions/exceptions/RabbyWalletException.d.ts +0 -7
  93. package/dist/esm/exceptions/exceptions/RabbyWalletException.js +0 -29
  94. package/dist/esm/exceptions/exceptions/RainbowWalletException.d.ts +0 -7
  95. package/dist/esm/exceptions/exceptions/RainbowWalletException.js +0 -27
  96. package/dist/esm/exceptions/exceptions/TransactionException.d.ts +0 -7
  97. package/dist/esm/exceptions/exceptions/TransactionException.js +0 -30
  98. package/dist/esm/exceptions/exceptions/TrezorException.d.ts +0 -7
  99. package/dist/esm/exceptions/exceptions/TrezorException.js +0 -12
  100. package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +0 -7
  101. package/dist/esm/exceptions/exceptions/TrustWalletException.js +0 -29
  102. package/dist/esm/exceptions/exceptions/TurnkeyWalletSessionException.d.ts +0 -5
  103. package/dist/esm/exceptions/exceptions/TurnkeyWalletSessionException.js +0 -7
  104. package/dist/esm/exceptions/exceptions/WalletConnectException.d.ts +0 -7
  105. package/dist/esm/exceptions/exceptions/WalletConnectException.js +0 -27
  106. package/dist/esm/exceptions/exceptions/WalletException.d.ts +0 -5
  107. package/dist/esm/exceptions/exceptions/WalletException.js +0 -7
  108. package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +0 -7
  109. package/dist/esm/exceptions/exceptions/Web3Exception.js +0 -12
  110. package/dist/esm/exceptions/exceptions/index.d.ts +0 -18
  111. package/dist/esm/exceptions/exceptions/index.js +0 -18
  112. package/dist/esm/exceptions/index.d.ts +0 -2
  113. package/dist/esm/exceptions/index.js +0 -2
  114. package/dist/esm/exceptions/messages.d.ts +0 -13
  115. package/dist/esm/exceptions/messages.js +0 -1597
  116. package/dist/esm/exceptions/types/codes.d.ts +0 -441
  117. package/dist/esm/exceptions/types/codes.js +0 -770
  118. package/dist/esm/exceptions/types/context.d.ts +0 -93
  119. package/dist/esm/exceptions/types/context.js +0 -18
  120. package/dist/esm/exceptions/types/index.d.ts +0 -3
  121. package/dist/esm/exceptions/types/index.js +0 -3
  122. package/dist/esm/exceptions/types/modules.d.ts +0 -67
  123. package/dist/esm/exceptions/types/modules.js +0 -63
  124. package/dist/esm/exceptions/utils/grpc.d.ts +0 -3
  125. package/dist/esm/exceptions/utils/grpc.js +0 -6
  126. package/dist/esm/exceptions/utils/helpers.d.ts +0 -1
  127. package/dist/esm/exceptions/utils/helpers.js +0 -20
  128. package/dist/esm/exceptions/utils/maps.d.ts +0 -13
  129. package/dist/esm/exceptions/utils/maps.js +0 -120
  130. package/dist/esm/types.d.ts +0 -2
  131. package/dist/esm/types.js +0 -1
  132. package/dist/esm/utils.d.ts +0 -8
  133. package/dist/esm/utils.js +0 -44
@@ -0,0 +1,826 @@
1
+ import { grpc } from "@injectivelabs/grpc-web";
2
+ import { StatusCodes } from "http-status-codes";
3
+
4
+ //#region src/exceptions/types/codes.d.ts
5
+ declare const GrpcErrorCode: {
6
+ readonly OK: 0;
7
+ readonly Canceled: 1;
8
+ readonly Unknown: 2;
9
+ readonly InvalidArgument: 3;
10
+ readonly DeadlineExceeded: 4;
11
+ readonly NotFound: 5;
12
+ readonly AlreadyExists: 6;
13
+ readonly PermissionDenied: 7;
14
+ readonly ResourceExhausted: 8;
15
+ readonly FailedPrecondition: 9;
16
+ readonly Aborted: 10;
17
+ readonly OutOfRange: 11;
18
+ readonly Unimplemented: 12;
19
+ readonly Internal: 13;
20
+ readonly Unavailable: 14;
21
+ readonly DataLoss: 15;
22
+ readonly Unauthenticated: 16;
23
+ };
24
+ type GrpcErrorCode = (typeof GrpcErrorCode)[keyof typeof GrpcErrorCode];
25
+ declare const grpcErrorCodeToErrorCode: <T extends number>(grpcErrorCode: T) => GrpcErrorCode;
26
+ declare const TransactionChainErrorModule: {
27
+ readonly Auction: "auction";
28
+ readonly CosmosSdk: "sdk";
29
+ readonly Staking: "staking";
30
+ readonly Bank: "bank";
31
+ readonly Distribution: "distribution";
32
+ readonly Gov: "gov";
33
+ readonly Exchange: "exchange";
34
+ readonly Insurance: "insurance";
35
+ readonly Ocr: "ocr";
36
+ readonly Oracle: "oracle";
37
+ readonly Peggy: "peggy";
38
+ readonly TokenFactory: "tokenfactory";
39
+ readonly Wasmx: "wasmx";
40
+ readonly Wasm: "wasm";
41
+ readonly AuthZ: "authz";
42
+ };
43
+ type TransactionChainErrorModule = (typeof TransactionChainErrorModule)[keyof typeof TransactionChainErrorModule];
44
+ declare const ChainCosmosErrorCode: {
45
+ readonly ErrTxDecode: 2;
46
+ readonly ErrInvalidSequence: 3;
47
+ readonly ErrUnauthorized: 4;
48
+ readonly ErrInsufficientFunds: 5;
49
+ readonly ErrUnknownRequest: 6;
50
+ readonly ErrInvalidAddress: 7;
51
+ readonly ErrInvalidPubKey: 8;
52
+ readonly ErrUnknownAddress: 9;
53
+ readonly ErrInvalidCoins: 10;
54
+ readonly ErrOutOfGas: 11;
55
+ readonly ErrMemoTooLarge: 12;
56
+ readonly ErrInsufficientFee: 13;
57
+ readonly ErrTooManySignatures: 14;
58
+ readonly ErrNoSignatures: 15;
59
+ readonly ErrJSONMarshal: 16;
60
+ readonly ErrJSONUnmarshal: 17;
61
+ readonly ErrInvalidRequest: 18;
62
+ readonly ErrTxInMempoolCache: 19;
63
+ readonly ErrMempoolIsFull: 20;
64
+ readonly ErrTxTooLarge: 21;
65
+ readonly ErrKeyNotFound: 22;
66
+ readonly ErrWrongPassword: 23;
67
+ readonly ErrorInvalidSigner: 24;
68
+ readonly ErrorInvalidGasAdjustment: 25;
69
+ readonly ErrInvalidHeight: 26;
70
+ readonly ErrInvalidVersion: 27;
71
+ readonly ErrInvalidChainID: 28;
72
+ readonly ErrInvalidType: 29;
73
+ readonly ErrTxTimeoutHeight: 30;
74
+ readonly ErrUnknownExtensionOptions: 31;
75
+ readonly ErrWrongSequence: 32;
76
+ readonly ErrPackAny: 33;
77
+ readonly ErrUnpackAny: 34;
78
+ readonly ErrLogic: 35;
79
+ readonly ErrConflict: 36;
80
+ readonly ErrNotSupported: 37;
81
+ readonly ErrNotFound: 38;
82
+ readonly ErrIO: 39;
83
+ readonly ErrAppConfig: 40;
84
+ readonly ErrInvalidGasLimit: 41;
85
+ };
86
+ type ChainCosmosErrorCode = (typeof ChainCosmosErrorCode)[keyof typeof ChainCosmosErrorCode];
87
+ declare const ChainExchangeModuleErrorCode: {
88
+ readonly ErrOrderInvalid: 1;
89
+ readonly ErrSpotMarketNotFound: 2;
90
+ readonly ErrSpotMarketExists: 3;
91
+ readonly ErrBadField: 4;
92
+ readonly ErrMarketInvalid: 5;
93
+ readonly ErrInsufficientDeposit: 6;
94
+ readonly ErrUnrecognizedOrderType: 7;
95
+ readonly ErrInsufficientPositionQuantity: 8;
96
+ readonly ErrOrderHashInvalid: 9;
97
+ readonly ErrBadSubaccountID: 10;
98
+ readonly ErrInvalidTicker: 11;
99
+ readonly ErrInvalidBaseDenom: 12;
100
+ readonly ErrInvalidQuoteDenom: 13;
101
+ readonly ErrInvalidOracle: 14;
102
+ readonly ErrInvalidExpiry: 15;
103
+ readonly ErrInvalidPrice: 16;
104
+ readonly ErrInvalidQuantity: 17;
105
+ readonly ErrUnsupportedOracleType: 18;
106
+ readonly ErrOrderDoesntExist: 19;
107
+ readonly ErrOrderbookFillInvalid: 20;
108
+ readonly ErrPerpetualMarketExists: 21;
109
+ readonly ErrExpiryFuturesMarketExists: 22;
110
+ readonly ErrExpiryFuturesMarketExpired: 23;
111
+ readonly ErrNoLiquidity: 24;
112
+ readonly ErrSlippageExceedsWorstPrice: 25;
113
+ readonly ErrInsufficientOrderMargin: 26;
114
+ readonly ErrDerivativeMarketNotFound: 27;
115
+ readonly ErrPositionNotFound: 28;
116
+ readonly ErrInvalidReduceOnlyPositionDirection: 29;
117
+ readonly ErrPriceSurpassesBankruptcyPrice: 30;
118
+ readonly ErrPositionNotLiquidable: 31;
119
+ readonly ErrInvalidTriggerPrice: 32;
120
+ readonly ErrInvalidOracleType: 33;
121
+ readonly ErrInvalidPriceTickSize: 34;
122
+ readonly ErrInvalidQuantityTickSize: 35;
123
+ readonly ErrInvalidMargin: 36;
124
+ readonly ErrExceedsOrderSideCount: 37;
125
+ readonly ErrMarketOrderAlreadyExists: 38;
126
+ readonly ErrConditionalMarketOrderAlreadyExists: 39;
127
+ readonly ErrMarketLaunchProposalAlreadyExists: 40;
128
+ readonly ErrInvalidMarketStatus: 41;
129
+ readonly ErrSameDenoms: 42;
130
+ readonly ErrSameOracles: 43;
131
+ readonly ErrFeeRatesRelation: 44;
132
+ readonly ErrMarginsRelation: 45;
133
+ readonly ErrExceedsMaxOracleScaleFactor: 46;
134
+ readonly ErrSpotExchangeNotEnabled: 47;
135
+ readonly ErrDerivativesExchangeNotEnabled: 48;
136
+ readonly ErrOraclePriceDeltaExceedsThreshold: 49;
137
+ readonly ErrInvalidHourlyInterestRate: 50;
138
+ readonly ErrInvalidHourlyFundingRateCap: 51;
139
+ readonly ErrInvalidMarketFundingParamUpdate: 52;
140
+ readonly ErrInvalidTradingRewardCampaign: 53;
141
+ readonly ErrInvalidFeeDiscountSchedule: 54;
142
+ readonly ErrInvalidLiquidationOrder: 55;
143
+ readonly ErrTradingRewardCampaignDistributionError: 56;
144
+ readonly ErrInvalidTradingRewardsPendingPointsUpdate: 57;
145
+ readonly ErrInvalidBatchMsgUpdate: 58;
146
+ readonly ErrExceedsTopOfBookPrice: 59;
147
+ readonly ErrInvalidOrderTypeForMessage: 60;
148
+ readonly ErrInvalidDMMSender: 61;
149
+ readonly ErrAlreadyOptedOutOfRewards: 62;
150
+ readonly ErrInvalidMarginRatio: 63;
151
+ readonly ErrBelowMinimalContribution: 64;
152
+ readonly ErrLowPositionMargin: 65;
153
+ readonly ErrInvalidTotalSupply: 66;
154
+ readonly ErrInvalidLpTokenBurnAmount: 67;
155
+ readonly ErrUnsupportedAction: 68;
156
+ readonly ErrNegativePositionQuantity: 69;
157
+ readonly ErrBinaryOptionsMarketExists: 70;
158
+ readonly ErrBinaryOptionsMarketNotFound: 71;
159
+ readonly ErrInvalidSettlement: 72;
160
+ readonly ErrAccountDoesntExist: 73;
161
+ readonly ErrSenderIsNotAnAdmin: 74;
162
+ readonly ErrMarketAlreadyScheduledToSettle: 75;
163
+ readonly ErrGenericMarketNotFound: 76;
164
+ readonly ErrInvalidDenomDecimal: 77;
165
+ readonly ErrInvalidState: 78;
166
+ readonly ErrTransientOrdersUpToCancelNotSupported: 79;
167
+ readonly ErrInvalidTrade: 80;
168
+ readonly ErrNoMarginLocked: 81;
169
+ readonly ErrInvalidAccessLevel: 82;
170
+ readonly ErrInvalidAddress: 83;
171
+ readonly ErrInvalidArgument: 84;
172
+ readonly ErrInvalidFundsDirection: 85;
173
+ readonly ErrNoFundsProvided: 86;
174
+ readonly ErrInvalidSignature: 87;
175
+ readonly ErrNoFundsToUnlock: 88;
176
+ readonly ErrNoMsgsProvided: 89;
177
+ readonly ErrNoMsgProvided: 90;
178
+ readonly ErrInvalidAmount: 91;
179
+ readonly ErrFeatureDisabled: 92;
180
+ readonly ErrTooMuchOrderMargin: 93;
181
+ readonly ErrBadSubaccountNonce: 94;
182
+ readonly ErrInsufficientFunds: 95;
183
+ readonly ErrPostOnlyMode: 96;
184
+ readonly ErrClientOrderIdAlreadyExists: 97;
185
+ readonly ErrInvalidCid: 98;
186
+ };
187
+ type ChainExchangeModuleErrorCode = (typeof ChainExchangeModuleErrorCode)[keyof typeof ChainExchangeModuleErrorCode];
188
+ declare const ChainAuctionErrorCodes: {
189
+ readonly ErrBidInvalid: 1;
190
+ readonly ErrBidRound: 2;
191
+ };
192
+ type ChainAuctionErrorCodes = (typeof ChainAuctionErrorCodes)[keyof typeof ChainAuctionErrorCodes];
193
+ declare const ChainAuthZErrorCodes: {
194
+ readonly ErrNoAuthorizationFound: 2;
195
+ readonly ErrInvalidExpirationTime: 3;
196
+ readonly ErrUnknownAuthorizationType: 4;
197
+ readonly ErrNoGrantKeyFound: 5;
198
+ readonly ErrAuthorizationExpired: 6;
199
+ readonly ErrGranteeIsGranter: 7;
200
+ readonly ErrAuthorizationNumOfSigners: 9;
201
+ readonly ErrNegativeMaxTokens: 12;
202
+ };
203
+ type ChainAuthZErrorCodes = (typeof ChainAuthZErrorCodes)[keyof typeof ChainAuthZErrorCodes];
204
+ declare const ChainInsuranceErrorCodes: {
205
+ readonly ErrInsuranceFundAlreadyExists: 1;
206
+ readonly ErrInsuranceFundNotFound: 2;
207
+ readonly ErrRedemptionAlreadyExists: 3;
208
+ readonly ErrInvalidDepositAmount: 4;
209
+ readonly ErrInvalidDepositDenom: 5;
210
+ readonly ErrPayoutTooLarge: 6;
211
+ readonly ErrInvalidTicker: 7;
212
+ readonly ErrInvalidQuoteDenom: 8;
213
+ readonly ErrInvalidOracle: 9;
214
+ readonly ErrInvalidExpirationTime: 10;
215
+ readonly ErrInvalidMarketID: 11;
216
+ readonly ErrInvalidShareDenom: 12;
217
+ };
218
+ type ChainInsuranceErrorCodes = (typeof ChainInsuranceErrorCodes)[keyof typeof ChainInsuranceErrorCodes];
219
+ declare const ChainOcrErrorCodes: {
220
+ readonly ErrStaleReport: 1;
221
+ readonly ErrIncompleteProposal: 2;
222
+ readonly ErrRepeatedAddress: 3;
223
+ readonly ErrTooManySigners: 4;
224
+ readonly ErrIncorrectConfig: 5;
225
+ readonly ErrConfigDigestNotMatch: 6;
226
+ readonly ErrWrongNumberOfSignatures: 7;
227
+ readonly ErrIncorrectSignature: 8;
228
+ readonly ErrNoTransmitter: 9;
229
+ readonly ErrIncorrectTransmissionData: 10;
230
+ readonly ErrNoTransmissionsFound: 11;
231
+ readonly ErrMedianValueOutOfBounds: 12;
232
+ readonly ErrIncorrectRewardPoolDenom: 13;
233
+ readonly ErrNoRewardPool: 14;
234
+ readonly ErrInvalidPayees: 15;
235
+ readonly ErrModuleAdminRestricted: 16;
236
+ readonly ErrFeedAlreadyExists: 17;
237
+ readonly ErrFeedDoesntExists: 19;
238
+ readonly ErrAdminRestricted: 20;
239
+ readonly ErrInsufficientRewardPool: 21;
240
+ readonly ErrPayeeAlreadySet: 22;
241
+ readonly ErrPayeeRestricted: 23;
242
+ readonly ErrFeedConfigNotFound: 24;
243
+ };
244
+ type ChainOcrErrorCodes = (typeof ChainOcrErrorCodes)[keyof typeof ChainOcrErrorCodes];
245
+ declare const ChainOracleErrorCodes: {
246
+ readonly ErrEmptyRelayerAddr: 1;
247
+ readonly ErrBadRatesCount: 2;
248
+ readonly ErrBadResolveTimesCount: 3;
249
+ readonly ErrBadRequestIDsCount: 4;
250
+ readonly ErrRelayerNotAuthorized: 5;
251
+ readonly ErrBadPriceFeedBaseCount: 6;
252
+ readonly ErrBadPriceFeedQuoteCount: 7;
253
+ readonly ErrUnsupportedOracleType: 8;
254
+ readonly ErrBadMessagesCount: 9;
255
+ readonly ErrBadCoinbaseMessage: 10;
256
+ readonly ErrInvalidEthereumSignature: 11;
257
+ readonly ErrBadCoinbaseMessageTimestamp: 12;
258
+ readonly ErrCoinbasePriceNotFound: 13;
259
+ readonly ErrBadPrice: 14;
260
+ readonly ErrPriceTooLarge: 15;
261
+ readonly ErrInvalidBandIBCRequest: 16;
262
+ readonly ErrSample: 17;
263
+ readonly ErrInvalidPacketTimeout: 18;
264
+ readonly ErrBadSymbolsCount: 19;
265
+ readonly ErrBadIBCPortBind: 20;
266
+ readonly ErrInvalidPortID: 21;
267
+ readonly ErrInvalidChannelID: 22;
268
+ readonly ErrBadRequestInterval: 23;
269
+ readonly ErrInvalidBandIBCUpdateRequest: 24;
270
+ readonly ErrBandIBCRequestNotFound: 25;
271
+ readonly ErrEmptyBaseInfo: 26;
272
+ readonly ErrEmptyProvider: 27;
273
+ readonly ErrInvalidProvider: 28;
274
+ readonly ErrInvalidSymbol: 29;
275
+ readonly ErrRelayerAlreadyExists: 30;
276
+ readonly ErrProviderPriceNotFound: 31;
277
+ readonly ErrInvalidOracleRequest: 32;
278
+ readonly ErrOraclePriceNotFound: 33;
279
+ };
280
+ type ChainOracleErrorCodes = (typeof ChainOracleErrorCodes)[keyof typeof ChainOracleErrorCodes];
281
+ declare const ChainPeggyErrorCodes: {
282
+ readonly ErrInternal: 1;
283
+ readonly ErrDuplicate: 2;
284
+ readonly ErrInvalid: 3;
285
+ readonly ErrTimeout: 4;
286
+ readonly ErrUnknown: 5;
287
+ readonly ErrEmpty: 6;
288
+ readonly ErrOutdated: 7;
289
+ readonly ErrUnsupported: 8;
290
+ readonly ErrNonContiguousEventNonce: 9;
291
+ readonly ErrNoUnbatchedTxsFound: 10;
292
+ readonly ErrResetDelegateKeys: 11;
293
+ readonly ErrSupplyOverflow: 12;
294
+ readonly ErrInvalidEthSender: 13;
295
+ readonly ErrInvalidEthDestination: 14;
296
+ };
297
+ type ChainPeggyErrorCodes = (typeof ChainPeggyErrorCodes)[keyof typeof ChainPeggyErrorCodes];
298
+ declare const ChainTokenFactoryErrorCodes: {
299
+ readonly ErrDenomExists: 2;
300
+ readonly ErrUnauthorized: 3;
301
+ readonly ErrInvalidDenom: 4;
302
+ readonly ErrInvalidCreator: 5;
303
+ readonly ErrInvalidAuthorityMetadata: 6;
304
+ readonly ErrInvalidGenesis: 7;
305
+ readonly ErrSubdenomTooLong: 8;
306
+ readonly ErrSubdenomTooShort: 9;
307
+ readonly ErrSubdenomNestedTooShort: 10;
308
+ readonly ErrCreatorTooLong: 11;
309
+ readonly ErrDenomDoesNotExist: 12;
310
+ readonly ErrAmountNotPositive: 13;
311
+ };
312
+ type ChainTokenFactoryErrorCodes = (typeof ChainTokenFactoryErrorCodes)[keyof typeof ChainTokenFactoryErrorCodes];
313
+ declare const ChainWasmXErrorCodes: {
314
+ readonly ErrInvalidGasLimit: 1;
315
+ readonly ErrInvalidGasPrice: 2;
316
+ readonly ErrInvalidContractAddress: 3;
317
+ readonly ErrAlreadyRegistered: 4;
318
+ readonly ErrDuplicateContract: 5;
319
+ readonly ErrNoContractAddresses: 6;
320
+ readonly ErrInvalidCodeId: 7;
321
+ };
322
+ type ChainWasmXErrorCodes = (typeof ChainWasmXErrorCodes)[keyof typeof ChainWasmXErrorCodes];
323
+ declare const ChainStakingErrorCodes: {
324
+ readonly ErrEmptyValidatorAddr: 2;
325
+ readonly ErrNoValidatorFound: 3;
326
+ readonly ErrValidatorOwnerExists: 4;
327
+ readonly ErrValidatorPubKeyExists: 5;
328
+ readonly ErrValidatorPubKeyTypeNotSupported: 6;
329
+ readonly ErrValidatorJailed: 7;
330
+ readonly ErrBadRemoveValidator: 8;
331
+ readonly ErrCommissionNegative: 9;
332
+ readonly ErrCommissionHuge: 10;
333
+ readonly ErrCommissionGTMaxRate: 11;
334
+ readonly ErrCommissionUpdateTime: 12;
335
+ readonly ErrCommissionChangeRateNegative: 13;
336
+ readonly ErrCommissionChangeRateGTMaxRate: 14;
337
+ readonly ErrCommissionGTMaxChangeRate: 15;
338
+ readonly ErrSelfDelegationBelowMinimum: 16;
339
+ readonly ErrMinSelfDelegationDecreased: 17;
340
+ readonly ErrEmptyDelegatorAddr: 18;
341
+ readonly ErrNoDelegation: 19;
342
+ readonly ErrBadDelegatorAddr: 20;
343
+ readonly ErrNoDelegatorForAddress: 21;
344
+ readonly ErrInsufficientShares: 22;
345
+ readonly ErrDelegationValidatorEmpty: 23;
346
+ readonly ErrNotEnoughDelegationShares: 24;
347
+ readonly ErrNotMature: 25;
348
+ readonly ErrNoUnbondingDelegation: 26;
349
+ readonly ErrMaxUnbondingDelegationEntries: 27;
350
+ readonly ErrNoRedelegation: 28;
351
+ readonly ErrSelfRedelegation: 29;
352
+ readonly ErrTinyRedelegationAmount: 30;
353
+ readonly ErrBadRedelegationDst: 31;
354
+ readonly ErrTransitiveRedelegation: 32;
355
+ readonly ErrMaxRedelegationEntries: 33;
356
+ readonly ErrDelegatorShareExRateInvalid: 34;
357
+ readonly ErrBothShareMsgsGiven: 35;
358
+ readonly ErrNeitherShareMsgsGiven: 36;
359
+ readonly ErrInvalidHistoricalInfo: 37;
360
+ readonly ErrNoHistoricalInfo: 38;
361
+ readonly ErrEmptyValidatorPubKey: 39;
362
+ readonly ErrCommissionLTMinRate: 40;
363
+ readonly ErrUnbondingNotFound: 41;
364
+ readonly ErrUnbondingOnHoldRefCountNegative: 42;
365
+ };
366
+ type ChainStakingErrorCodes = (typeof ChainStakingErrorCodes)[keyof typeof ChainStakingErrorCodes];
367
+ declare const ChainGovErrorCodes: {
368
+ readonly ErrUnknownProposal: 2;
369
+ readonly ErrInactiveProposal: 3;
370
+ readonly ErrAlreadyActiveProposal: 4;
371
+ readonly ErrInvalidProposalContent: 5;
372
+ readonly ErrInvalidProposalType: 6;
373
+ readonly ErrInvalidVote: 7;
374
+ readonly ErrInvalidGenesis: 8;
375
+ readonly ErrNoProposalHandlerExists: 9;
376
+ readonly ErrUnroutableProposalMsg: 10;
377
+ readonly ErrNoProposalMsgs: 11;
378
+ readonly ErrInvalidProposalMsg: 12;
379
+ readonly ErrInvalidSigner: 13;
380
+ readonly ErrInvalidSignalMsg: 14;
381
+ readonly ErrMetadataTooLong: 15;
382
+ readonly ErrMinDepositTooSmall: 16;
383
+ readonly ErrProposalNotFound: 17;
384
+ readonly ErrInvalidProposer: 18;
385
+ readonly ErrNoDeposits: 19;
386
+ readonly ErrVotingPeriodEnded: 20;
387
+ readonly ErrInvalidProposal: 21;
388
+ };
389
+ type ChainGovErrorCodes = (typeof ChainGovErrorCodes)[keyof typeof ChainGovErrorCodes];
390
+ declare const ChainDistributionErrorCodes: {
391
+ readonly ErrEmptyDelegatorAddr: 2;
392
+ readonly ErrEmptyWithdrawAddr: 3;
393
+ readonly ErrEmptyValidatorAddr: 4;
394
+ readonly ErrEmptyDelegationDistInfo: 5;
395
+ readonly ErrNoValidatorDistInfo: 6;
396
+ readonly ErrNoValidatorCommission: 7;
397
+ readonly ErrSetWithdrawAddrDisabled: 8;
398
+ readonly ErrBadDistribution: 9;
399
+ readonly ErrInvalidProposalAmount: 10;
400
+ readonly ErrEmptyProposalRecipient: 11;
401
+ readonly ErrNoValidatorExists: 12;
402
+ readonly ErrNoDelegationExists: 13;
403
+ };
404
+ type ChainDistributionErrorCodes = (typeof ChainDistributionErrorCodes)[keyof typeof ChainDistributionErrorCodes];
405
+ declare const ChainBankErrorCodes: {
406
+ readonly ErrNoInputs: 2;
407
+ readonly ErrNoOutputs: 3;
408
+ readonly ErrInputOutputMismatch: 4;
409
+ readonly ErrSendDisabled: 5;
410
+ readonly ErrDenomMetadataNotFound: 6;
411
+ readonly ErrInvalidKey: 7;
412
+ readonly ErrDuplicateEntry: 8;
413
+ readonly ErrMultipleSenders: 9;
414
+ };
415
+ type ChainBankErrorCodes = (typeof ChainBankErrorCodes)[keyof typeof ChainBankErrorCodes];
416
+ declare const ChainWasmErrorCodes: {
417
+ readonly ErrCreateFailed: 2;
418
+ readonly ErrAccountExists: 3;
419
+ readonly ErrInstantiateFailed: 4;
420
+ readonly ErrExecuteFailed: 5;
421
+ readonly ErrGasLimit: 6;
422
+ readonly ErrInvalidGenesis: 7;
423
+ readonly ErrNotFound: 8;
424
+ readonly ErrQueryFailed: 9;
425
+ readonly ErrInvalidMsg: 10;
426
+ readonly ErrMigrationFailed: 11;
427
+ readonly ErrEmpty: 12;
428
+ readonly ErrLimit: 13;
429
+ readonly ErrInvalid: 14;
430
+ readonly ErrDuplicate: 15;
431
+ readonly ErrMaxIBCChannels: 16;
432
+ readonly ErrUnsupportedForContract: 17;
433
+ readonly ErrPinContractFailed: 18;
434
+ readonly ErrUnpinContractFailed: 19;
435
+ readonly ErrUnknownMsg: 20;
436
+ readonly ErrInvalidEvent: 21;
437
+ };
438
+ type ChainWasmErrorCodes = (typeof ChainWasmErrorCodes)[keyof typeof ChainWasmErrorCodes];
439
+ type IndexerApiErrorCode = number;
440
+ declare const UnspecifiedErrorCode = -1;
441
+ type ErrorCode = grpc.Code | StatusCodes | typeof UnspecifiedErrorCode | GrpcErrorCode;
442
+ declare const GRPC_REQUEST_FAILED: 14;
443
+ type ErrorContextCode = ChainAuctionErrorCodes | ChainAuthZErrorCodes | ChainCosmosErrorCode | ChainExchangeModuleErrorCode | ChainInsuranceErrorCodes | ChainOcrErrorCodes | ChainOracleErrorCodes | ChainPeggyErrorCodes | ChainTokenFactoryErrorCodes | ChainWasmXErrorCodes | ChainDistributionErrorCodes | ChainBankErrorCodes | ChainGovErrorCodes | ChainStakingErrorCodes | ChainWasmErrorCodes | ErrorCode | number | typeof UnspecifiedErrorCode;
444
+ //#endregion
445
+ //#region src/exceptions/types/modules.d.ts
446
+ declare const ContractErrorModule: {
447
+ readonly Peggy: "peggy-contract";
448
+ readonly PeggyOld: "peggy-old-contract";
449
+ readonly Erc20Contract: "erc20-contract";
450
+ };
451
+ type ContractErrorModule = (typeof ContractErrorModule)[keyof typeof ContractErrorModule];
452
+ declare const ChainErrorModule: {
453
+ readonly Gov: "chain-gov";
454
+ readonly Ibc: "chain-ibc";
455
+ readonly Evm: "chain-evm";
456
+ readonly Auth: "chain-auth";
457
+ readonly Bank: "chain-bank";
458
+ readonly Mint: "chain-mint";
459
+ readonly Wasm: "chain-wasm";
460
+ readonly Authz: "chain-authz";
461
+ readonly Peggy: "chain-peggy";
462
+ readonly WasmX: "chain-wasmx";
463
+ readonly Erc20: "chain-erc20";
464
+ readonly Oracle: "chain-oracle";
465
+ readonly TxFees: "chain-tx-fees";
466
+ readonly Auction: "chain-auction";
467
+ readonly Staking: "chain-staking";
468
+ readonly Exchange: "chain-exchange";
469
+ readonly Tendermint: "chain-tendermint";
470
+ readonly InsuranceFund: "chain-insurance";
471
+ readonly Permissions: "chain-permissions";
472
+ readonly Distribution: "chain-distribution";
473
+ };
474
+ type ChainErrorModule = (typeof ChainErrorModule)[keyof typeof ChainErrorModule];
475
+ declare const IndexerErrorModule: {
476
+ readonly Dmm: "dmm";
477
+ readonly OLP: "olp";
478
+ readonly Abacus: "abacus";
479
+ readonly Meta: "indexer-meta";
480
+ readonly Mito: "indexer-mito";
481
+ readonly Referral: "referral";
482
+ readonly Spot: "indexer-spot";
483
+ readonly Web3Gw: "web3-gateway";
484
+ readonly Oracle: "indexer-oracle";
485
+ readonly Account: "indexer-account";
486
+ readonly Auction: "indexer-auction";
487
+ readonly Trading: "indexer-trading";
488
+ readonly Archiver: "indexer-archiver";
489
+ readonly Explorer: "indexer-explorer";
490
+ readonly Campaign: "indexer-campaign";
491
+ readonly Portfolio: "indexer-portfolio";
492
+ readonly MegaVault: "indexer-mega-vault";
493
+ readonly Derivatives: "indexer-derivatives";
494
+ readonly Transaction: "indexer-transaction";
495
+ readonly ChronosSpot: "indexer-chronos-spot";
496
+ readonly InsuranceFund: "indexer-insurance-fund";
497
+ readonly ChronosMarkets: "indexer-chronos-markets";
498
+ readonly ChronosDerivative: "indexer-chronos-derivative";
499
+ };
500
+ type IndexerErrorModule = (typeof IndexerErrorModule)[keyof typeof IndexerErrorModule];
501
+ declare const WalletErrorActionModule: {
502
+ readonly GetChainId: "get-chain-id";
503
+ readonly GetAccounts: "get-accounts";
504
+ readonly GetNetworkId: "get-network-id";
505
+ readonly SignArbitrary: "sign-arbitrary";
506
+ readonly SignTransaction: "sign-transaction";
507
+ readonly SendTransaction: "send-transaction";
508
+ readonly SendEvmTransaction: "send-evm-transaction";
509
+ readonly SignEvmTransaction: "sign-evm-transaction";
510
+ readonly GetEvmTransactionReceipt: "get-evm-transaction-receipt";
511
+ };
512
+ type WalletErrorActionModule = (typeof WalletErrorActionModule)[keyof typeof WalletErrorActionModule];
513
+ //#endregion
514
+ //#region src/exceptions/types/context.d.ts
515
+ declare const HttpRequestMethod: {
516
+ readonly Get: "GET";
517
+ readonly Post: "POST";
518
+ readonly Options: "OPTIONS";
519
+ };
520
+ type HttpRequestMethod = (typeof HttpRequestMethod)[keyof typeof HttpRequestMethod];
521
+ declare const ErrorType: {
522
+ readonly Unspecified: "unspecified";
523
+ readonly ChainError: "chain-error";
524
+ readonly ExecutionError: "execution-error";
525
+ readonly NotFoundError: "not-found-error";
526
+ readonly ValidationError: "validation-error";
527
+ readonly WalletError: "wallet-error";
528
+ readonly WalletNotInstalledError: "wallet-not-installed-error";
529
+ readonly GrpcUnaryRequest: "grpc-unary-request";
530
+ readonly HttpRequest: "http-request";
531
+ readonly Web3: "web3";
532
+ readonly Web3Gateway: "web3-gateway";
533
+ };
534
+ type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
535
+ interface ErrorContext {
536
+ code?: ErrorCode;
537
+ type?: ErrorType;
538
+ /**
539
+ * Additional context needed for the exception
540
+ */
541
+ context?: string;
542
+ /**
543
+ * Where is the exception thrown
544
+ */
545
+ contextModule?: string;
546
+ /**
547
+ * Needed when we get a code error from a Http/Grpc Request
548
+ * and we need to specify the error code for the particular message
549
+ * for example why the transaction has failed
550
+ * */
551
+ contextCode?: ErrorContextCode;
552
+ /**
553
+ * If true, skip parsing the error message and use the raw message
554
+ * Useful when you want to preserve the original error message without
555
+ * any transformation or mapping
556
+ */
557
+ skipParsing?: boolean;
558
+ }
559
+ interface Exception {
560
+ /**
561
+ * The type of the Error
562
+ */
563
+ type: ErrorType;
564
+ /**
565
+ * Error specific code (HttpStatus, GrpcStatus, etc)
566
+ */
567
+ code: ErrorCode;
568
+ /**
569
+ * The name of the error (the name of the instance of the Exception)
570
+ */
571
+ name: string;
572
+ /**
573
+ * Providing more context as to where the exception was thrown
574
+ * (ex: on-chain module, etc)
575
+ */
576
+ contextModule?: string;
577
+ /**
578
+ * Providing more context as to why the exception was thrown
579
+ * (ex: on-chain error code, etc)
580
+ */
581
+ contextCode?: ErrorContextCode;
582
+ /**
583
+ * Parsed message of the exception
584
+ */
585
+ message: string;
586
+ /**
587
+ * The original stack of the error
588
+ */
589
+ stack?: string;
590
+ /**
591
+ * The original message of the error
592
+ */
593
+ originalMessage: string;
594
+ parse?(): void;
595
+ parseError(error: Error): void;
596
+ parseContext(context?: ErrorContext): void;
597
+ setType(type: ErrorType): void;
598
+ setCode(code: ErrorCode): void;
599
+ setStack(stack: string): void;
600
+ setName(name: string): void;
601
+ setMessage(message: string): void;
602
+ setContextModule(contextModule: string): void;
603
+ toOriginalError(): Error;
604
+ toError(): Error;
605
+ toString(): string;
606
+ }
607
+ //#endregion
608
+ //#region src/exceptions/base.d.ts
609
+ declare abstract class ConcreteException extends Error implements Exception {
610
+ /**
611
+ * The type of the Error
612
+ */
613
+ type: ErrorType;
614
+ /**
615
+ * Error specific code (HttpStatus, GrpcStatus, etc)
616
+ */
617
+ code: ErrorCode;
618
+ /**
619
+ * The name of the error (the name of the instance of the Exception)
620
+ */
621
+ name: string;
622
+ /**
623
+ * The name of the error (the name of the instance of the Exception)
624
+ * Needed for reporting reasons, ex: bugsnag
625
+ */
626
+ errorClass: string;
627
+ /**
628
+ * Providing more context
629
+ * (ex: endpoint on http request)
630
+ */
631
+ context?: string;
632
+ /**
633
+ * Providing more context as to where the exception was thrown
634
+ * (ex: on-chain module, etc)
635
+ */
636
+ contextModule?: string;
637
+ /**
638
+ * Providing more context as to why the exception was thrown
639
+ * (ex: on-chain error code, etc)
640
+ */
641
+ contextCode?: ErrorContextCode;
642
+ /**
643
+ * Parsed message of the exception
644
+ */
645
+ message: string;
646
+ /**
647
+ * The original stack of the error
648
+ */
649
+ stack?: string;
650
+ /**
651
+ * The original message of the error
652
+ */
653
+ originalMessage: string;
654
+ /**
655
+ * Flag to skip parsing the error message
656
+ */
657
+ protected skipParsing: boolean;
658
+ constructor(error: Error, context?: ErrorContext);
659
+ parse(): void;
660
+ parseError(error: Error): void;
661
+ parseContext(errorContext?: ErrorContext): void;
662
+ setType(type: ErrorType): void;
663
+ setCode(code: ErrorCode): void;
664
+ setContext(context: string): void;
665
+ setOriginalMessage(message: string): void;
666
+ setStack(stack: string): void;
667
+ setName(name: string): void;
668
+ setMessage(message: string): void;
669
+ setContextModule(contextModule: string): void;
670
+ setContextCode(code: ErrorContextCode): void;
671
+ toOriginalError(): Error;
672
+ toError(): Error;
673
+ toCompactError(): Error;
674
+ toJson(): string;
675
+ toObject(): {
676
+ code: ErrorCode;
677
+ type: ErrorType;
678
+ errorClass: string;
679
+ message: string;
680
+ context: string | undefined;
681
+ contextCode: number | undefined;
682
+ contextModule: string | undefined;
683
+ originalMessage: string;
684
+ stack: string[];
685
+ };
686
+ toString(): string;
687
+ }
688
+ //#endregion
689
+ //#region src/exceptions/exceptions/Web3Exception.d.ts
690
+ declare class Web3Exception extends ConcreteException {
691
+ static errorClass: string;
692
+ constructor(error: Error, context?: ErrorContext);
693
+ parse(): void;
694
+ }
695
+ //#endregion
696
+ //#region src/exceptions/exceptions/BitGetException.d.ts
697
+ declare class BitGetException extends ConcreteException {
698
+ static errorClass: string;
699
+ constructor(error: Error, context?: ErrorContext);
700
+ parse(): void;
701
+ }
702
+ //#endregion
703
+ //#region src/exceptions/exceptions/LedgerException.d.ts
704
+ declare class LedgerException extends ConcreteException {
705
+ static errorClass: string;
706
+ constructor(error: Error, context?: ErrorContext);
707
+ parse(): void;
708
+ }
709
+ //#endregion
710
+ //#region src/exceptions/exceptions/TrezorException.d.ts
711
+ declare class TrezorException extends ConcreteException {
712
+ static errorClass: string;
713
+ constructor(error: Error, context?: ErrorContext);
714
+ parse(): void;
715
+ }
716
+ //#endregion
717
+ //#region src/exceptions/exceptions/WalletException.d.ts
718
+ declare class WalletException extends ConcreteException {
719
+ static errorClass: string;
720
+ parse(): void;
721
+ }
722
+ //#endregion
723
+ //#region src/exceptions/exceptions/GeneralException.d.ts
724
+ declare class GeneralException extends ConcreteException {
725
+ static errorClass: string;
726
+ parse(): void;
727
+ }
728
+ //#endregion
729
+ //#region src/exceptions/exceptions/MetamaskException.d.ts
730
+ declare class MetamaskException extends ConcreteException {
731
+ static errorClass: string;
732
+ constructor(error: Error, context?: ErrorContext);
733
+ parse(): void;
734
+ }
735
+ //#endregion
736
+ //#region src/exceptions/exceptions/KeplrEvmException.d.ts
737
+ declare class KeplrEvmException extends ConcreteException {
738
+ static errorClass: string;
739
+ constructor(error: Error, context?: ErrorContext);
740
+ parse(): void;
741
+ }
742
+ //#endregion
743
+ //#region src/exceptions/exceptions/OkxWalletException.d.ts
744
+ declare class OkxWalletException extends ConcreteException {
745
+ static errorClass: string;
746
+ constructor(error: Error, context?: ErrorContext);
747
+ parse(): void;
748
+ }
749
+ //#endregion
750
+ //#region src/exceptions/exceptions/HttpRequestException.d.ts
751
+ declare class HttpRequestException extends ConcreteException {
752
+ static errorClass: string;
753
+ method: HttpRequestMethod;
754
+ constructor(error: Error, context?: ErrorContext & {
755
+ method?: HttpRequestMethod;
756
+ });
757
+ parse(): void;
758
+ }
759
+ //#endregion
760
+ //#region src/exceptions/exceptions/TransactionException.d.ts
761
+ declare class TransactionException extends ConcreteException {
762
+ static errorClass: string;
763
+ constructor(error: Error, context?: ErrorContext);
764
+ parse(): void;
765
+ }
766
+ //#endregion
767
+ //#region src/exceptions/exceptions/TrustWalletException.d.ts
768
+ declare class TrustWalletException extends ConcreteException {
769
+ static errorClass: string;
770
+ constructor(error: Error, context?: ErrorContext);
771
+ parse(): void;
772
+ }
773
+ //#endregion
774
+ //#region src/exceptions/exceptions/CosmosWalletException.d.ts
775
+ declare class CosmosWalletException extends ConcreteException {
776
+ static errorClass: string;
777
+ constructor(error: Error, context?: ErrorContext);
778
+ parse(): void;
779
+ }
780
+ //#endregion
781
+ //#region src/exceptions/exceptions/LedgerCosmosException.d.ts
782
+ declare class LedgerCosmosException extends ConcreteException {
783
+ static errorClass: string;
784
+ constructor(error: Error, context?: ErrorContext);
785
+ parse(): void;
786
+ }
787
+ //#endregion
788
+ //#region src/exceptions/exceptions/RainbowWalletException.d.ts
789
+ declare class RainbowWalletException extends ConcreteException {
790
+ static errorClass: string;
791
+ constructor(error: Error, context?: ErrorContext);
792
+ parse(): void;
793
+ }
794
+ //#endregion
795
+ //#region src/exceptions/exceptions/WalletConnectException.d.ts
796
+ declare class WalletConnectException extends ConcreteException {
797
+ static errorClass: string;
798
+ constructor(error: Error, context?: ErrorContext);
799
+ parse(): void;
800
+ }
801
+ //#endregion
802
+ //#region src/exceptions/exceptions/GrpcUnaryRequestException.d.ts
803
+ declare class GrpcUnaryRequestException extends ConcreteException {
804
+ static errorClass: string;
805
+ constructor(error: Error, context?: ErrorContext);
806
+ parse(): void;
807
+ }
808
+ //#endregion
809
+ //#region src/exceptions/exceptions/TurnkeyWalletSessionException.d.ts
810
+ declare class TurnkeyWalletSessionException extends ConcreteException {
811
+ static errorClass: string;
812
+ parse(): void;
813
+ }
814
+ //#endregion
815
+ //#region src/types.d.ts
816
+ type ThrownException = Web3Exception | LedgerException | TrezorException | WalletException | BitGetException | GeneralException | KeplrEvmException | MetamaskException | OkxWalletException | HttpRequestException | TrustWalletException | TransactionException | CosmosWalletException | LedgerCosmosException | GrpcUnaryRequestException;
817
+ //#endregion
818
+ //#region src/utils.d.ts
819
+ declare const THROWN_EXCEPTIONS: string[];
820
+ declare const isThrownException: (exception: Error | Exception | ThrownException) => boolean;
821
+ declare const formatNotificationDescription: (description: string) => {
822
+ description: string;
823
+ tooltip: string;
824
+ };
825
+ //#endregion
826
+ export { BitGetException, ChainAuctionErrorCodes, ChainAuthZErrorCodes, ChainBankErrorCodes, ChainCosmosErrorCode, ChainDistributionErrorCodes, ChainErrorModule, ChainExchangeModuleErrorCode, ChainGovErrorCodes, ChainInsuranceErrorCodes, ChainOcrErrorCodes, ChainOracleErrorCodes, ChainPeggyErrorCodes, ChainStakingErrorCodes, ChainTokenFactoryErrorCodes, ChainWasmErrorCodes, ChainWasmXErrorCodes, ContractErrorModule, CosmosWalletException, ErrorCode, ErrorContext, ErrorContextCode, ErrorType, Exception, GRPC_REQUEST_FAILED, GeneralException, GrpcErrorCode, GrpcUnaryRequestException, HttpRequestException, HttpRequestMethod, IndexerApiErrorCode, IndexerErrorModule, KeplrEvmException, LedgerCosmosException, LedgerException, MetamaskException, OkxWalletException, RainbowWalletException, THROWN_EXCEPTIONS, ThrownException, TransactionChainErrorModule, TransactionException, TrezorException, TrustWalletException, TurnkeyWalletSessionException, UnspecifiedErrorCode, WalletConnectException, WalletErrorActionModule, WalletException, Web3Exception, formatNotificationDescription, grpcErrorCodeToErrorCode, isThrownException };