@injectivelabs/exceptions 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/exceptions/TransactionException.d.ts.map +1 -1
- package/dist/exceptions/TransactionException.js +5 -2
- package/dist/exceptions/TransactionException.js.map +1 -1
- package/dist/exceptions/index.d.ts +2 -3
- package/dist/exceptions/index.d.ts.map +1 -1
- package/dist/exceptions/index.js +1 -4
- package/dist/exceptions/index.js.map +1 -1
- package/dist/messages.d.ts +1 -543
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +140 -558
- package/dist/messages.js.map +1 -1
- package/dist/types/codes.d.ts +122 -2
- package/dist/types/codes.d.ts.map +1 -1
- package/dist/types/codes.js +225 -1
- package/dist/types/codes.js.map +1 -1
- package/dist/utils/maps.d.ts +3 -3
- package/dist/utils/maps.d.ts.map +1 -1
- package/dist/utils/maps.js +34 -46
- package/dist/utils/maps.js.map +1 -1
- package/package.json +2 -2
- package/dist/exceptions/Web3GatewayTransactionException.d.ts +0 -4
- package/dist/exceptions/Web3GatewayTransactionException.d.ts.map +0 -1
- package/dist/exceptions/Web3GatewayTransactionException.js +0 -8
- package/dist/exceptions/Web3GatewayTransactionException.js.map +0 -1
package/dist/messages.js
CHANGED
|
@@ -1,548 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.chainCodeErrorMessagesMap = exports.
|
|
3
|
+
exports.chainCodeErrorMessagesMap = exports.chainModuleCodeErrorMessagesMap = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'
|
|
8
|
-
message: 'You do not have enough funds to cover the transaction fees.',
|
|
9
|
-
code: types_1.ChainCosmosErrorCode.ErrInsufficientFee,
|
|
10
|
-
},
|
|
11
|
-
'insufficient funds': {
|
|
12
|
-
message: 'You do not have enough funds.',
|
|
13
|
-
code: types_1.ChainCosmosErrorCode.ErrInsufficientFunds,
|
|
14
|
-
},
|
|
15
|
-
'tx timeout height': {
|
|
16
|
-
message: 'The transaction failed to be included within a block on time.',
|
|
17
|
-
code: types_1.ChainCosmosErrorCode.ErrTxTimeoutHeight,
|
|
18
|
-
},
|
|
19
|
-
'tx parse error': {
|
|
20
|
-
message: 'There is an issue while parsing the transaction',
|
|
21
|
-
code: types_1.ChainCosmosErrorCode.ErrTxDecode,
|
|
22
|
-
},
|
|
23
|
-
'invalid sequence': {
|
|
24
|
-
message: 'The sequence number is not valid',
|
|
25
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidSequence,
|
|
26
|
-
},
|
|
27
|
-
unauthorized: {
|
|
28
|
-
message: 'Unauthorized',
|
|
29
|
-
code: types_1.ChainCosmosErrorCode.ErrUnauthorized,
|
|
30
|
-
},
|
|
31
|
-
'unknown request': {
|
|
32
|
-
message: 'The request is not known',
|
|
33
|
-
code: types_1.ChainCosmosErrorCode.ErrUnknownRequest,
|
|
34
|
-
},
|
|
35
|
-
'invalid address': {
|
|
36
|
-
message: 'The address is not valid',
|
|
37
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidAddress,
|
|
38
|
-
},
|
|
39
|
-
'invalid pubkey': {
|
|
40
|
-
message: 'The public key is not valid',
|
|
41
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidPubKey,
|
|
42
|
-
},
|
|
43
|
-
'unknown address': {
|
|
44
|
-
message: 'The address is unknown',
|
|
45
|
-
code: types_1.ChainCosmosErrorCode.ErrUnknownAddress,
|
|
46
|
-
},
|
|
47
|
-
'invalid coins': {
|
|
48
|
-
message: 'The coins are not valid',
|
|
49
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidCoins,
|
|
50
|
-
},
|
|
51
|
-
'out of gas': {
|
|
52
|
-
message: 'The transaction run out of gas',
|
|
53
|
-
code: types_1.ChainCosmosErrorCode.ErrOutOfGas,
|
|
54
|
-
},
|
|
55
|
-
'memo too large': {
|
|
56
|
-
message: 'The memo field in the transaction is too large',
|
|
57
|
-
code: types_1.ChainCosmosErrorCode.ErrMemoTooLarge,
|
|
58
|
-
},
|
|
59
|
-
'maximum number of signatures exceeded': {
|
|
60
|
-
message: 'The transaction exceeded the maximum number of signatures',
|
|
61
|
-
code: types_1.ChainCosmosErrorCode.ErrTooManySignatures,
|
|
62
|
-
},
|
|
63
|
-
'no signatures supplied': {
|
|
64
|
-
message: 'There are no signatures appended on the transaction',
|
|
65
|
-
code: types_1.ChainCosmosErrorCode.ErrNoSignatures,
|
|
66
|
-
},
|
|
67
|
-
'failed to marshal JSON bytes': {
|
|
68
|
-
message: 'There is an issue while parsing the transaction',
|
|
69
|
-
code: types_1.ChainCosmosErrorCode.ErrJSONMarshal,
|
|
70
|
-
},
|
|
71
|
-
'failed to unmarshal JSON bytes': {
|
|
72
|
-
message: 'There is an issue while parsing the transaction',
|
|
73
|
-
code: types_1.ChainCosmosErrorCode.ErrJSONUnmarshal,
|
|
74
|
-
},
|
|
75
|
-
'invalid request': {
|
|
76
|
-
message: 'invalid request',
|
|
77
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidRequest,
|
|
78
|
-
},
|
|
79
|
-
'tx already in mempool': {
|
|
80
|
-
message: 'The transaction is already in the mempool',
|
|
81
|
-
code: types_1.ChainCosmosErrorCode.ErrTxInMempoolCache,
|
|
82
|
-
},
|
|
83
|
-
'mempool is full': {
|
|
84
|
-
message: 'The mempool is full',
|
|
85
|
-
code: types_1.ChainCosmosErrorCode.ErrMempoolIsFull,
|
|
86
|
-
},
|
|
87
|
-
'tx too large': {
|
|
88
|
-
message: 'The transaction is too large',
|
|
89
|
-
code: types_1.ChainCosmosErrorCode.ErrTxTooLarge,
|
|
90
|
-
},
|
|
91
|
-
'key not found': {
|
|
92
|
-
message: 'The key has not been found',
|
|
93
|
-
code: types_1.ChainCosmosErrorCode.ErrKeyNotFound,
|
|
94
|
-
},
|
|
95
|
-
'invalid account password': {
|
|
96
|
-
message: 'invalid account password',
|
|
97
|
-
code: types_1.ChainCosmosErrorCode.ErrWrongPassword,
|
|
98
|
-
},
|
|
99
|
-
'tx intended signer does not match the given signer': {
|
|
100
|
-
message: 'tx intended signer does not match the given signer',
|
|
101
|
-
code: types_1.ChainCosmosErrorCode.ErrorInvalidSigner,
|
|
102
|
-
},
|
|
103
|
-
'invalid gas adjustment': {
|
|
104
|
-
message: 'invalid gas adjustment',
|
|
105
|
-
code: types_1.ChainCosmosErrorCode.ErrorInvalidGasAdjustment,
|
|
106
|
-
},
|
|
107
|
-
'invalid height': {
|
|
108
|
-
message: 'The height provided in the transaction is not valid',
|
|
109
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidHeight,
|
|
110
|
-
},
|
|
111
|
-
'invalid version': {
|
|
112
|
-
message: 'The version provided in the transaction is not valid',
|
|
113
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidVersion,
|
|
114
|
-
},
|
|
115
|
-
'invalid chain-id': {
|
|
116
|
-
message: 'The chainId provided in the transaction is not valid',
|
|
117
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidChainID,
|
|
118
|
-
},
|
|
119
|
-
'invalid type': {
|
|
120
|
-
message: 'The type provided in the transaction is not valid',
|
|
121
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidType,
|
|
122
|
-
},
|
|
123
|
-
'unknown extension options': {
|
|
124
|
-
message: 'The extension options provided in the transaction is unknown',
|
|
125
|
-
code: types_1.ChainCosmosErrorCode.ErrUnknownExtensionOptions,
|
|
126
|
-
},
|
|
127
|
-
'incorrect account sequence': {
|
|
128
|
-
message: 'The sequence number provided in the transaction is incorrect',
|
|
129
|
-
code: types_1.ChainCosmosErrorCode.ErrWrongSequence,
|
|
130
|
-
},
|
|
131
|
-
'failed packing protobuf message to Any': {
|
|
132
|
-
message: 'failed packing protobuf message to Any',
|
|
133
|
-
code: types_1.ChainCosmosErrorCode.ErrPackAny,
|
|
134
|
-
},
|
|
135
|
-
'failed unpacking protobuf message from Any': {
|
|
136
|
-
message: 'failed unpacking protobuf message from Any',
|
|
137
|
-
code: types_1.ChainCosmosErrorCode.ErrUnpackAny,
|
|
138
|
-
},
|
|
139
|
-
'internal logic error': {
|
|
140
|
-
message: 'Internal logic error',
|
|
141
|
-
code: types_1.ChainCosmosErrorCode.ErrLogic,
|
|
142
|
-
},
|
|
143
|
-
conflict: { message: 'conflict', code: types_1.ChainCosmosErrorCode.ErrConflict },
|
|
144
|
-
'feature not supported': {
|
|
145
|
-
message: 'The feature is not supported',
|
|
146
|
-
code: types_1.ChainCosmosErrorCode.ErrNotSupported,
|
|
147
|
-
},
|
|
148
|
-
'not found': { message: 'not found', code: types_1.ChainCosmosErrorCode.ErrNotFound },
|
|
149
|
-
'Internal IO error': {
|
|
150
|
-
message: 'Internal IO error',
|
|
151
|
-
code: types_1.ChainCosmosErrorCode.ErrIO,
|
|
152
|
-
},
|
|
153
|
-
'error in app.toml': {
|
|
154
|
-
message: 'error in app.toml',
|
|
155
|
-
code: types_1.ChainCosmosErrorCode.ErrAppConfig,
|
|
156
|
-
},
|
|
157
|
-
'invalid gas limit': {
|
|
158
|
-
message: 'The gas limit provided in the transaction is not valid',
|
|
159
|
-
code: types_1.ChainCosmosErrorCode.ErrInvalidGasLimit,
|
|
160
|
-
},
|
|
161
|
-
// Auction Module Messages
|
|
162
|
-
'invalid bid denom': {
|
|
163
|
-
message: 'The gas limit provided in the transaction is not valid',
|
|
164
|
-
code: types_1.ChainAuctionErrorCodes.ErrBidInvalid,
|
|
165
|
-
},
|
|
166
|
-
'invalid bid round': {
|
|
167
|
-
message: 'The gas limit provided in the transaction is not valid',
|
|
168
|
-
code: types_1.ChainAuctionErrorCodes.ErrBidRound,
|
|
169
|
-
},
|
|
170
|
-
// Insurance Module Messages
|
|
171
|
-
'insurance fund already exists': {
|
|
172
|
-
message: 'The insurance fund already exists',
|
|
173
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInsuranceFundAlreadyExists,
|
|
174
|
-
},
|
|
175
|
-
'insurance fund not found': {
|
|
176
|
-
message: 'The insurance fund is not found',
|
|
177
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInsuranceFundNotFound,
|
|
178
|
-
},
|
|
179
|
-
'redemption already exists': {
|
|
180
|
-
message: 'The redemption already exists',
|
|
181
|
-
code: types_1.ChainInsuranceErrorCodes.ErrRedemptionAlreadyExists,
|
|
182
|
-
},
|
|
183
|
-
'invalid deposit amount': {
|
|
184
|
-
message: 'The deposit amount is not valid',
|
|
185
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInvalidDepositAmount,
|
|
186
|
-
},
|
|
187
|
-
'invalid deposit denom': {
|
|
188
|
-
message: 'The deposit denom is not valid',
|
|
189
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInvalidDepositDenom,
|
|
190
|
-
},
|
|
191
|
-
'insurance payout exceeds deposits': {
|
|
192
|
-
message: 'The insurance fund payout exceeds the deposits',
|
|
193
|
-
code: types_1.ChainInsuranceErrorCodes.ErrPayoutTooLarge,
|
|
194
|
-
},
|
|
195
|
-
'invalid ticker': {
|
|
196
|
-
message: 'The ticker is not valid',
|
|
197
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInvalidTicker,
|
|
198
|
-
},
|
|
199
|
-
'invalid quote denom': {
|
|
200
|
-
message: 'The quote denom is not valid',
|
|
201
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInvalidQuoteDenom,
|
|
202
|
-
},
|
|
203
|
-
'invalid oracle': {
|
|
204
|
-
message: 'The oracle is not valid',
|
|
205
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInvalidOracle,
|
|
206
|
-
},
|
|
207
|
-
'invalid expiration time': {
|
|
208
|
-
message: 'The expiration time is not valid',
|
|
209
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInvalidExpirationTime,
|
|
210
|
-
},
|
|
211
|
-
'invalid marketID': {
|
|
212
|
-
message: 'The marketId is not valid',
|
|
213
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInvalidMarketID,
|
|
214
|
-
},
|
|
215
|
-
'invalid share denom': {
|
|
216
|
-
message: 'The share denom is not valid',
|
|
217
|
-
code: types_1.ChainInsuranceErrorCodes.ErrInvalidShareDenom,
|
|
218
|
-
},
|
|
219
|
-
// Exchange Module Messages
|
|
220
|
-
'failed to validate order': {
|
|
221
|
-
message: 'Your order failed to validate',
|
|
222
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrOrderInvalid,
|
|
223
|
-
},
|
|
224
|
-
'spot market not found': {
|
|
225
|
-
message: 'The spot market has not been found',
|
|
226
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound,
|
|
227
|
-
},
|
|
228
|
-
'spot market exists': {
|
|
229
|
-
message: 'The spot market already exists',
|
|
230
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists,
|
|
231
|
-
},
|
|
232
|
-
'struct field error': {
|
|
233
|
-
message: 'There is an issue with your order',
|
|
234
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrBadField,
|
|
235
|
-
},
|
|
236
|
-
'failed to validate market': {
|
|
237
|
-
message: 'The market failed to validate',
|
|
238
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrMarketInvalid,
|
|
239
|
-
},
|
|
240
|
-
'subaccount has insufficient deposits': {
|
|
241
|
-
message: 'Your trading account has insufficient funds',
|
|
242
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientDeposit,
|
|
243
|
-
},
|
|
244
|
-
'unrecognized order type': {
|
|
245
|
-
message: 'The order type is not recognized',
|
|
246
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrUnrecognizedOrderType,
|
|
247
|
-
},
|
|
248
|
-
'position quantity insufficient for order': {
|
|
249
|
-
message: 'The position quantity is insufficient for the order',
|
|
250
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientPositionQuantity,
|
|
251
|
-
},
|
|
252
|
-
'order hash is not valid': {
|
|
253
|
-
message: 'The order hash is not valid',
|
|
254
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrOrderHashInvalid,
|
|
255
|
-
},
|
|
256
|
-
'subaccount id is not valid': {
|
|
257
|
-
message: 'The subaccount id is not valid',
|
|
258
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrBadSubaccountID,
|
|
259
|
-
},
|
|
260
|
-
'invalid base denom': {
|
|
261
|
-
message: '',
|
|
262
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidBaseDenom,
|
|
263
|
-
},
|
|
264
|
-
'invalid expiry': {
|
|
265
|
-
message: 'The expiry date is not valid',
|
|
266
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidExpiry,
|
|
267
|
-
},
|
|
268
|
-
'invalid price': {
|
|
269
|
-
message: 'The price is not valid',
|
|
270
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidPrice,
|
|
271
|
-
},
|
|
272
|
-
'invalid quantity': {
|
|
273
|
-
message: 'The quantity is not valid',
|
|
274
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantity,
|
|
275
|
-
},
|
|
276
|
-
'unsupported oracle type': {
|
|
277
|
-
message: 'The oracle type is not supported',
|
|
278
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrUnsupportedOracleType,
|
|
279
|
-
},
|
|
280
|
-
'order doesnt exist': {
|
|
281
|
-
message: 'The order does not exist',
|
|
282
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrOrderDoesntExist,
|
|
283
|
-
},
|
|
284
|
-
'spot limit orderbook fill invalid': {
|
|
285
|
-
message: '',
|
|
286
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrOrderbookFillInvalid,
|
|
287
|
-
},
|
|
288
|
-
'perpetual market exists': {
|
|
289
|
-
message: 'The perpetual market already exists',
|
|
290
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrPerpetualMarketExists,
|
|
291
|
-
},
|
|
292
|
-
'expiry futures market exists': {
|
|
293
|
-
message: 'The expiry futures market market already exists',
|
|
294
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExists,
|
|
295
|
-
},
|
|
296
|
-
'expiry futures market expired': {
|
|
297
|
-
message: 'The expiry futures market has expired',
|
|
298
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExpired,
|
|
299
|
-
},
|
|
300
|
-
'no liquidity on the orderbook': {
|
|
301
|
-
message: 'There is not enough liquidity',
|
|
302
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrNoLiquidity,
|
|
303
|
-
},
|
|
304
|
-
'orderbook liquidity cannot satisfy current worst price': {
|
|
305
|
-
message: 'There is not enough liquidity',
|
|
306
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrSlippageExceedsWorstPrice,
|
|
307
|
-
},
|
|
308
|
-
'order has insufficient margin': {
|
|
309
|
-
message: 'The order has insufficient margin',
|
|
310
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientOrderMargin,
|
|
311
|
-
},
|
|
312
|
-
'derivative market not found': {
|
|
313
|
-
message: 'The derivative market cannot be found',
|
|
314
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrDerivativeMarketNotFound,
|
|
315
|
-
},
|
|
316
|
-
'position not found': {
|
|
317
|
-
message: 'The position cannot be found',
|
|
318
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrPositionNotFound,
|
|
319
|
-
},
|
|
320
|
-
'position direction does not oppose the reduce-only order': {
|
|
321
|
-
message: 'Position direction does not oppose the reduce-only order',
|
|
322
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidReduceOnlyPositionDirection,
|
|
323
|
-
},
|
|
324
|
-
'price surpasses bankruptcy price': {
|
|
325
|
-
message: 'Your order price surpasses bankruptcy price',
|
|
326
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrPriceSurpassesBankruptcyPrice,
|
|
327
|
-
},
|
|
328
|
-
'position not liquidable': {
|
|
329
|
-
message: 'The position is not liquidable',
|
|
330
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrPositionNotLiquidable,
|
|
331
|
-
},
|
|
332
|
-
'invalid trigger price': {
|
|
333
|
-
message: 'Your order trigger price is not valid',
|
|
334
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTriggerPrice,
|
|
335
|
-
},
|
|
336
|
-
'invalid oracle type': {
|
|
337
|
-
message: 'The oracle type is not valid',
|
|
338
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidOracleType,
|
|
339
|
-
},
|
|
340
|
-
'invalid minimum price tick size': {
|
|
341
|
-
message: 'The minimum price tick size is not valid',
|
|
342
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidPriceTickSize,
|
|
343
|
-
},
|
|
344
|
-
'invalid minimum quantity tick size': {
|
|
345
|
-
message: 'The minimum quantity tick size is not valid',
|
|
346
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantityTickSize,
|
|
347
|
-
},
|
|
348
|
-
'invalid minimum order margin': {
|
|
349
|
-
message: "Your order's minimum margin is not valid ",
|
|
350
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMargin,
|
|
351
|
-
},
|
|
352
|
-
'exceeds order side count': {
|
|
353
|
-
message: 'You cannot have more orders for this market for this direction',
|
|
354
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrExceedsOrderSideCount,
|
|
355
|
-
},
|
|
356
|
-
'subaccount cannot place a market order when a market order in the same market was already placed in same block': {
|
|
357
|
-
message: 'You cannot place another market order within this block',
|
|
358
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrMarketOrderAlreadyExists,
|
|
359
|
-
},
|
|
360
|
-
'cannot place a conditional market order when a conditional market order in same relative direction already exists': {
|
|
361
|
-
message: 'You cannot place another conditional market order',
|
|
362
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrConditionalMarketOrderAlreadyExists,
|
|
363
|
-
},
|
|
364
|
-
'an equivalent market launch proposal already exists.': {
|
|
365
|
-
message: 'There is an existing equivalent market launch proposal.',
|
|
366
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrMarketLaunchProposalAlreadyExists,
|
|
367
|
-
},
|
|
368
|
-
'invalid market status': {
|
|
369
|
-
message: 'The market status is not valid',
|
|
370
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketStatus,
|
|
371
|
-
},
|
|
372
|
-
'base denom cannot be same with quote denom': {
|
|
373
|
-
message: 'The base denom and quote denom cannot be same',
|
|
374
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrSameDenoms,
|
|
375
|
-
},
|
|
376
|
-
'oracle base cannot be same with oracle quote': {
|
|
377
|
-
message: 'The oracle base and the oracle quote cannot be the same',
|
|
378
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrSameOracles,
|
|
379
|
-
},
|
|
380
|
-
'makerfeerate does not match takerfeeeate requirements': {
|
|
381
|
-
message: 'The MakerFeeRate does not match TakerFeeRate requirements',
|
|
382
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrFeeRatesRelation,
|
|
383
|
-
},
|
|
384
|
-
'maintenancemarginratio cannot be greater than initialmarginratio': {
|
|
385
|
-
message: 'The MaintenanceMarginRatio cannot be greater than InitialMarginRatio',
|
|
386
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrMarginsRelation,
|
|
387
|
-
},
|
|
388
|
-
'oraclescalefactor cannot be greater than maxoraclescalefactor': {
|
|
389
|
-
message: 'The OracleScaleFactor cannot be greater than MaxOracleScaleFactor',
|
|
390
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrExceedsMaxOracleScaleFactor,
|
|
391
|
-
},
|
|
392
|
-
'spot exchange is not enabled yet': {
|
|
393
|
-
message: 'Spot exchange is not enabled yet',
|
|
394
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrSpotExchangeNotEnabled,
|
|
395
|
-
},
|
|
396
|
-
'derivatives exchange is not enabled yet': {
|
|
397
|
-
message: 'Derivatives exchange is not enabled yet',
|
|
398
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrDerivativesExchangeNotEnabled,
|
|
399
|
-
},
|
|
400
|
-
'oracle price delta exceeds threshold': {
|
|
401
|
-
message: 'The oracle price delta exceeds threshold',
|
|
402
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrOraclePriceDeltaExceedsThreshold,
|
|
403
|
-
},
|
|
404
|
-
'invalid hourly interest rate': {
|
|
405
|
-
message: 'The hourly interest rate is not valid',
|
|
406
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyInterestRate,
|
|
407
|
-
},
|
|
408
|
-
'invalid hourly funding rate cap': {
|
|
409
|
-
message: 'The hourly funding rate cap is not valid',
|
|
410
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyFundingRateCap,
|
|
411
|
-
},
|
|
412
|
-
'only perpetual markets can update funding parameters': {
|
|
413
|
-
message: 'You can only update funding parameters on perpetual markets.',
|
|
414
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketFundingParamUpdate,
|
|
415
|
-
},
|
|
416
|
-
'invalid trading reward campaign': {
|
|
417
|
-
message: 'The trading reward campaign is not valid',
|
|
418
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardCampaign,
|
|
419
|
-
},
|
|
420
|
-
'invalid fee discount schedule': {
|
|
421
|
-
message: 'The fee discount schedule is not valid',
|
|
422
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidFeeDiscountSchedule,
|
|
423
|
-
},
|
|
424
|
-
'invalid liquidation order': {
|
|
425
|
-
message: 'The liquidation order is not valid',
|
|
426
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidLiquidationOrder,
|
|
427
|
-
},
|
|
428
|
-
'unknown error happened for campaign distributions': {
|
|
429
|
-
message: 'Unknown error happened for campaign distributions',
|
|
430
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrTradingRewardCampaignDistributionError,
|
|
431
|
-
},
|
|
432
|
-
'invalid trading reward points update': {
|
|
433
|
-
message: 'The updated trading reward points is not valid',
|
|
434
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardsPendingPointsUpdate,
|
|
435
|
-
},
|
|
436
|
-
'invalid batch msg update': {
|
|
437
|
-
message: 'The MsgBatchUpdate is not valid',
|
|
438
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidBatchMsgUpdate,
|
|
439
|
-
},
|
|
440
|
-
'post-only order exceeds top of book price': {
|
|
441
|
-
message: 'The post-only order price exceeds top of the orderbook price',
|
|
442
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrExceedsTopOfBookPrice,
|
|
443
|
-
},
|
|
444
|
-
'order type not supported for given message': {
|
|
445
|
-
message: 'The order type is not supported for this message',
|
|
446
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidOrderTypeForMessage,
|
|
447
|
-
},
|
|
448
|
-
'sender must match dmm account': {
|
|
449
|
-
message: 'The sender must match the DMM address',
|
|
450
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidDMMSender,
|
|
451
|
-
},
|
|
452
|
-
'already opted out of rewards': {
|
|
453
|
-
message: 'The DMM address already opted out of rewards',
|
|
454
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrAlreadyOptedOutOfRewards,
|
|
455
|
-
},
|
|
456
|
-
'invalid margin ratio': {
|
|
457
|
-
message: 'The margin ratio is not valid',
|
|
458
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarginRatio,
|
|
459
|
-
},
|
|
460
|
-
'provided funds are below minimum': {
|
|
461
|
-
message: 'The provided funds are below minimum',
|
|
462
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrBelowMinimalContribution,
|
|
463
|
-
},
|
|
464
|
-
'position is below initial margin requirement': {
|
|
465
|
-
message: 'The position is below initial margin requirement',
|
|
466
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrLowPositionMargin,
|
|
467
|
-
},
|
|
468
|
-
'pool has non-positive total lp token supply': {
|
|
469
|
-
message: 'The pool has non-positive total LP token supply',
|
|
470
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTotalSupply,
|
|
471
|
-
},
|
|
472
|
-
'passed lp token burn amount is greater than total lp token supply': {
|
|
473
|
-
message: 'The passed LP token burn amount is greater than total LP token supply',
|
|
474
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidLpTokenBurnAmount,
|
|
475
|
-
},
|
|
476
|
-
'unsupported action': {
|
|
477
|
-
message: 'This action is not supported',
|
|
478
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrUnsupportedAction,
|
|
479
|
-
},
|
|
480
|
-
'position quantity cannot be negative': {
|
|
481
|
-
message: 'The position quantity cannot be negative',
|
|
482
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrNegativePositionQuantity,
|
|
483
|
-
},
|
|
484
|
-
'binary options market exists': {
|
|
485
|
-
message: 'The BinaryOptions market already exists',
|
|
486
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketExists,
|
|
487
|
-
},
|
|
488
|
-
'binary options market not found': {
|
|
489
|
-
message: 'The BinaryOptions market cannot be found',
|
|
490
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketNotFound,
|
|
491
|
-
},
|
|
492
|
-
'invalid settlement': {
|
|
493
|
-
message: 'The settlement price is not valid',
|
|
494
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidSettlement,
|
|
495
|
-
},
|
|
496
|
-
'account doesnt exist': {
|
|
497
|
-
message: 'The trading account does not exist',
|
|
498
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrAccountDoesntExist,
|
|
499
|
-
},
|
|
500
|
-
'sender should be a market admin': {
|
|
501
|
-
message: 'The sender should be the admin of the market',
|
|
502
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrSenderIsNotAnAdmin,
|
|
503
|
-
},
|
|
504
|
-
'market is already scheduled to settle': {
|
|
505
|
-
message: 'The market is already scheduled to settle ',
|
|
506
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrMarketAlreadyScheduledToSettle,
|
|
507
|
-
},
|
|
508
|
-
'market not found': {
|
|
509
|
-
message: 'The market cannot be found',
|
|
510
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrGenericMarketNotFound,
|
|
511
|
-
},
|
|
512
|
-
'denom decimal cannot be below 1 or above max scale factor': {
|
|
513
|
-
message: 'The denom decimal cannot be below 1 or above max scale factor',
|
|
514
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidDenomDecimal,
|
|
515
|
-
},
|
|
516
|
-
'state is invalid': {
|
|
517
|
-
message: 'The state is not valid',
|
|
518
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidState,
|
|
519
|
-
},
|
|
520
|
-
'transient orders up to cancellation not supported': {
|
|
521
|
-
message: 'The transient orders up to cancellation not supported',
|
|
522
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrTransientOrdersUpToCancelNotSupported,
|
|
523
|
-
},
|
|
524
|
-
'invalid trade': {
|
|
525
|
-
message: 'The trade is not valid',
|
|
526
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTrade,
|
|
527
|
-
},
|
|
528
|
-
'no margin locked in subaccount': {
|
|
529
|
-
message: 'There is no margin locked in the trading account',
|
|
530
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrNoMarginLocked,
|
|
531
|
-
},
|
|
532
|
-
'Invalid access level to perform action': {
|
|
533
|
-
message: 'There is no access to perform action',
|
|
534
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel,
|
|
535
|
-
},
|
|
536
|
-
'Invalid address': {
|
|
537
|
-
message: 'The address is not valid',
|
|
538
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidAddress,
|
|
539
|
-
},
|
|
540
|
-
'Invalid argument': {
|
|
541
|
-
message: 'The argument is not valid',
|
|
542
|
-
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidArgument,
|
|
543
|
-
},
|
|
5
|
+
const auctionErrorMap = {
|
|
6
|
+
[types_1.ChainAuctionErrorCodes.ErrBidInvalid]: 'The gas limit provided in the transaction is not valid',
|
|
7
|
+
[types_1.ChainAuctionErrorCodes.ErrBidRound]: 'The gas limit provided in the transaction is not valid',
|
|
544
8
|
};
|
|
545
|
-
|
|
9
|
+
const cosmosErrorMap = {
|
|
546
10
|
[types_1.ChainCosmosErrorCode.ErrInsufficientFee]: 'You do not have enough funds to cover the transaction fees.',
|
|
547
11
|
[types_1.ChainCosmosErrorCode.ErrInsufficientFunds]: 'You do not have enough funds.',
|
|
548
12
|
[types_1.ChainCosmosErrorCode.ErrTxTimeoutHeight]: 'The transaction failed to be included within a block on time.',
|
|
@@ -583,23 +47,8 @@ exports.chainCodeErrorMessagesMap = {
|
|
|
583
47
|
[types_1.ChainCosmosErrorCode.ErrIO]: 'Internal IO error',
|
|
584
48
|
[types_1.ChainCosmosErrorCode.ErrAppConfig]: 'error in app.toml',
|
|
585
49
|
[types_1.ChainCosmosErrorCode.ErrInvalidGasLimit]: 'The gas limit provided in the transaction is not valid',
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
[types_1.ChainAuctionErrorCodes.ErrBidRound]: 'The gas limit provided in the transaction is not valid',
|
|
589
|
-
// Insurance Module Messages
|
|
590
|
-
[types_1.ChainInsuranceErrorCodes.ErrInsuranceFundAlreadyExists]: 'The insurance fund already exists',
|
|
591
|
-
[types_1.ChainInsuranceErrorCodes.ErrInsuranceFundNotFound]: 'The insurance fund is not found',
|
|
592
|
-
[types_1.ChainInsuranceErrorCodes.ErrRedemptionAlreadyExists]: 'The redemption already exists',
|
|
593
|
-
[types_1.ChainInsuranceErrorCodes.ErrInvalidDepositAmount]: 'The deposit amount is not valid',
|
|
594
|
-
[types_1.ChainInsuranceErrorCodes.ErrInvalidDepositDenom]: 'The deposit denom is not valid',
|
|
595
|
-
[types_1.ChainInsuranceErrorCodes.ErrPayoutTooLarge]: 'The insurance fund payout exceeds the deposits',
|
|
596
|
-
[types_1.ChainInsuranceErrorCodes.ErrInvalidTicker]: 'The ticker is not valid',
|
|
597
|
-
[types_1.ChainInsuranceErrorCodes.ErrInvalidQuoteDenom]: 'The quote denom is not valid',
|
|
598
|
-
[types_1.ChainInsuranceErrorCodes.ErrInvalidOracle]: 'The oracle is not valid',
|
|
599
|
-
[types_1.ChainInsuranceErrorCodes.ErrInvalidExpirationTime]: 'The expiration time is not valid',
|
|
600
|
-
[types_1.ChainInsuranceErrorCodes.ErrInvalidMarketID]: 'The marketId is not valid',
|
|
601
|
-
[types_1.ChainInsuranceErrorCodes.ErrInvalidShareDenom]: 'The share denom is not valid',
|
|
602
|
-
// Exchange Module Messages
|
|
50
|
+
};
|
|
51
|
+
const exchangeErrorMap = {
|
|
603
52
|
[types_1.ChainExchangeModuleErrorCode.ErrOrderInvalid]: 'Your order failed to validate',
|
|
604
53
|
[types_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound]: 'The spot market has not been found',
|
|
605
54
|
[types_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists]: 'The spot market already exists',
|
|
@@ -681,5 +130,138 @@ exports.chainCodeErrorMessagesMap = {
|
|
|
681
130
|
[types_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel]: 'There is no access to perform action',
|
|
682
131
|
[types_1.ChainExchangeModuleErrorCode.ErrInvalidAddress]: 'The address is not valid',
|
|
683
132
|
[types_1.ChainExchangeModuleErrorCode.ErrInvalidArgument]: 'The argument is not valid',
|
|
133
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidFundsDirection]: 'Invalid funds direction',
|
|
134
|
+
[types_1.ChainExchangeModuleErrorCode.ErrNoFundsProvided]: 'No funds provided',
|
|
135
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidSignature]: 'Invalid signature',
|
|
136
|
+
[types_1.ChainExchangeModuleErrorCode.ErrNoFundsToUnlock]: 'No funds to unlock',
|
|
137
|
+
[types_1.ChainExchangeModuleErrorCode.ErrNoMsgsProvided]: 'No msgs provided',
|
|
138
|
+
[types_1.ChainExchangeModuleErrorCode.ErrNoMsgProvided]: 'No msg provided',
|
|
139
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidAmount]: 'Invalid amount',
|
|
140
|
+
[types_1.ChainExchangeModuleErrorCode.ErrFeatureDisabled]: 'The current feature has been disabled',
|
|
141
|
+
[types_1.ChainExchangeModuleErrorCode.ErrTooMuchOrderMargin]: 'Order has too much margin',
|
|
142
|
+
};
|
|
143
|
+
const insuranceErrorMap = {
|
|
144
|
+
[types_1.ChainInsuranceErrorCodes.ErrInsuranceFundAlreadyExists]: 'The insurance fund already exists',
|
|
145
|
+
[types_1.ChainInsuranceErrorCodes.ErrInsuranceFundNotFound]: 'The insurance fund is not found',
|
|
146
|
+
[types_1.ChainInsuranceErrorCodes.ErrRedemptionAlreadyExists]: 'The redemption already exists',
|
|
147
|
+
[types_1.ChainInsuranceErrorCodes.ErrInvalidDepositAmount]: 'The deposit amount is not valid',
|
|
148
|
+
[types_1.ChainInsuranceErrorCodes.ErrInvalidDepositDenom]: 'The deposit denom is not valid',
|
|
149
|
+
[types_1.ChainInsuranceErrorCodes.ErrPayoutTooLarge]: 'The insurance fund payout exceeds the deposits',
|
|
150
|
+
[types_1.ChainInsuranceErrorCodes.ErrInvalidTicker]: 'The ticker is not valid',
|
|
151
|
+
[types_1.ChainInsuranceErrorCodes.ErrInvalidQuoteDenom]: 'The quote denom is not valid',
|
|
152
|
+
[types_1.ChainInsuranceErrorCodes.ErrInvalidOracle]: 'The oracle is not valid',
|
|
153
|
+
[types_1.ChainInsuranceErrorCodes.ErrInvalidExpirationTime]: 'The expiration time is not valid',
|
|
154
|
+
[types_1.ChainInsuranceErrorCodes.ErrInvalidMarketID]: 'The marketId is not valid',
|
|
155
|
+
[types_1.ChainInsuranceErrorCodes.ErrInvalidShareDenom]: 'The share denom is not valid',
|
|
156
|
+
};
|
|
157
|
+
const ocrErrorMap = {
|
|
158
|
+
[types_1.ChainOcrErrorCodes.ErrStaleReport]: 'stale report',
|
|
159
|
+
[types_1.ChainOcrErrorCodes.ErrIncompleteProposal]: 'incomplete proposal',
|
|
160
|
+
[types_1.ChainOcrErrorCodes.ErrRepeatedAddress]: 'repeated oracle address',
|
|
161
|
+
[types_1.ChainOcrErrorCodes.ErrTooManySigners]: 'too many signers',
|
|
162
|
+
[types_1.ChainOcrErrorCodes.ErrIncorrectConfig]: 'incorrect config',
|
|
163
|
+
[types_1.ChainOcrErrorCodes.ErrConfigDigestNotMatch]: "config digest doesn't match",
|
|
164
|
+
[types_1.ChainOcrErrorCodes.ErrWrongNumberOfSignatures]: 'wrong number of signatures',
|
|
165
|
+
[types_1.ChainOcrErrorCodes.ErrIncorrectSignature]: 'incorrect signature',
|
|
166
|
+
[types_1.ChainOcrErrorCodes.ErrNoTransmitter]: 'no transmitter specified',
|
|
167
|
+
[types_1.ChainOcrErrorCodes.ErrIncorrectTransmissionData]: 'incorrect transmission data',
|
|
168
|
+
[types_1.ChainOcrErrorCodes.ErrNoTransmissionsFound]: 'no transmissions found',
|
|
169
|
+
[types_1.ChainOcrErrorCodes.ErrMedianValueOutOfBounds]: 'median value is out of bounds',
|
|
170
|
+
[types_1.ChainOcrErrorCodes.ErrIncorrectRewardPoolDenom]: "LINK denom doesn't match",
|
|
171
|
+
[types_1.ChainOcrErrorCodes.ErrNoRewardPool]: "Reward Pool doesn't exist",
|
|
172
|
+
[types_1.ChainOcrErrorCodes.ErrInvalidPayees]: 'wrong number of payees and transmitters',
|
|
173
|
+
[types_1.ChainOcrErrorCodes.ErrModuleAdminRestricted]: 'action is restricted to the module admin',
|
|
174
|
+
[types_1.ChainOcrErrorCodes.ErrFeedAlreadyExists]: 'feed already exists',
|
|
175
|
+
[types_1.ChainOcrErrorCodes.ErrFeedDoesntExists]: 'feed doesnt exists',
|
|
176
|
+
[types_1.ChainOcrErrorCodes.ErrAdminRestricted]: 'action is admin-restricted',
|
|
177
|
+
[types_1.ChainOcrErrorCodes.ErrInsufficientRewardPool]: 'insufficient reward pool',
|
|
178
|
+
[types_1.ChainOcrErrorCodes.ErrPayeeAlreadySet]: 'payee already set',
|
|
179
|
+
[types_1.ChainOcrErrorCodes.ErrPayeeRestricted]: 'action is payee-restricted',
|
|
180
|
+
[types_1.ChainOcrErrorCodes.ErrFeedConfigNotFound]: 'feed config not found',
|
|
181
|
+
};
|
|
182
|
+
const oracleErrorMap = {
|
|
183
|
+
[types_1.ChainOracleErrorCodes.ErrEmptyRelayerAddr]: 'relayer address is empty',
|
|
184
|
+
[types_1.ChainOracleErrorCodes.ErrBadRatesCount]: 'bad rates count',
|
|
185
|
+
[types_1.ChainOracleErrorCodes.ErrBadResolveTimesCount]: 'bad resolve times',
|
|
186
|
+
[types_1.ChainOracleErrorCodes.ErrBadRequestIDsCount]: 'bad request ID',
|
|
187
|
+
[types_1.ChainOracleErrorCodes.ErrRelayerNotAuthorized]: 'relayer not authorized',
|
|
188
|
+
[types_1.ChainOracleErrorCodes.ErrBadPriceFeedBaseCount]: 'bad price feed base count',
|
|
189
|
+
[types_1.ChainOracleErrorCodes.ErrBadPriceFeedQuoteCount]: 'bad price feed quote count',
|
|
190
|
+
[types_1.ChainOracleErrorCodes.ErrUnsupportedOracleType]: 'unsupported oracle type',
|
|
191
|
+
[types_1.ChainOracleErrorCodes.ErrBadMessagesCount]: 'bad messages count',
|
|
192
|
+
[types_1.ChainOracleErrorCodes.ErrBadCoinbaseMessage]: 'bad Coinbase message',
|
|
193
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidEthereumSignature]: 'bad Ethereum signature',
|
|
194
|
+
[types_1.ChainOracleErrorCodes.ErrBadCoinbaseMessageTimestamp]: 'bad Coinbase message timestamp',
|
|
195
|
+
[types_1.ChainOracleErrorCodes.ErrCoinbasePriceNotFound]: 'Coinbase price not found',
|
|
196
|
+
[types_1.ChainOracleErrorCodes.ErrBadPrice]: 'Prices must be positive',
|
|
197
|
+
[types_1.ChainOracleErrorCodes.ErrPriceTooLarge]: 'Prices must be less than 10 million.',
|
|
198
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidBandIBCRequest]: 'Invalid Band IBC Request',
|
|
199
|
+
[types_1.ChainOracleErrorCodes.ErrSample]: 'sample error',
|
|
200
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidPacketTimeout]: 'invalid packet timeout',
|
|
201
|
+
[types_1.ChainOracleErrorCodes.ErrBadSymbolsCount]: 'invalid symbols count',
|
|
202
|
+
[types_1.ChainOracleErrorCodes.ErrBadIBCPortBind]: 'could not claim port capability',
|
|
203
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidPortID]: 'invalid IBC Port ID',
|
|
204
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidChannelID]: 'invalid IBC Channel ID',
|
|
205
|
+
[types_1.ChainOracleErrorCodes.ErrBadRequestInterval]: 'invalid Band IBC request interval',
|
|
206
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidBandIBCUpdateRequest]: 'Invalid Band IBC Update Request Proposal',
|
|
207
|
+
[types_1.ChainOracleErrorCodes.ErrBandIBCRequestNotFound]: 'Band IBC Oracle Request not found',
|
|
208
|
+
[types_1.ChainOracleErrorCodes.ErrEmptyBaseInfo]: 'Base Info is empty',
|
|
209
|
+
[types_1.ChainOracleErrorCodes.ErrEmptyProvider]: 'provider is empty',
|
|
210
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidProvider]: 'invalid provider name',
|
|
211
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidSymbol]: 'invalid symbol',
|
|
212
|
+
[types_1.ChainOracleErrorCodes.ErrRelayerAlreadyExists]: 'relayer already exists',
|
|
213
|
+
[types_1.ChainOracleErrorCodes.ErrProviderPriceNotFound]: 'provider price not found',
|
|
214
|
+
[types_1.ChainOracleErrorCodes.ErrInvalidOracleRequest]: 'invalid oracle request',
|
|
215
|
+
[types_1.ChainOracleErrorCodes.ErrOraclePriceNotFound]: 'no price for oracle was found',
|
|
216
|
+
};
|
|
217
|
+
const peggyErrorMap = {
|
|
218
|
+
[types_1.ChainPeggyErrorCodes.ErrInternal]: 'internal',
|
|
219
|
+
[types_1.ChainPeggyErrorCodes.ErrDuplicate]: 'duplicate',
|
|
220
|
+
[types_1.ChainPeggyErrorCodes.ErrInvalid]: 'invalid',
|
|
221
|
+
[types_1.ChainPeggyErrorCodes.ErrTimeout]: 'timeout',
|
|
222
|
+
[types_1.ChainPeggyErrorCodes.ErrUnknown]: 'unknown',
|
|
223
|
+
[types_1.ChainPeggyErrorCodes.ErrEmpty]: 'empty',
|
|
224
|
+
[types_1.ChainPeggyErrorCodes.ErrOutdated]: 'outdated',
|
|
225
|
+
[types_1.ChainPeggyErrorCodes.ErrUnsupported]: 'unsupported',
|
|
226
|
+
[types_1.ChainPeggyErrorCodes.ErrNonContiguousEventNonce]: 'non contiguous event nonce',
|
|
227
|
+
[types_1.ChainPeggyErrorCodes.ErrNoUnbatchedTxsFound]: 'no unbatched txs found',
|
|
228
|
+
[types_1.ChainPeggyErrorCodes.ErrResetDelegateKeys]: 'can not set orchestrator addresses more than once',
|
|
229
|
+
[types_1.ChainPeggyErrorCodes.ErrSupplyOverflow]: 'supply cannot exceed max ERC20 value',
|
|
230
|
+
[types_1.ChainPeggyErrorCodes.ErrInvalidEthSender]: 'invalid ethereum sender on claim',
|
|
231
|
+
[types_1.ChainPeggyErrorCodes.ErrInvalidEthDestination]: 'invalid ethereum destination',
|
|
232
|
+
};
|
|
233
|
+
const tokenFactoryErrorMap = {
|
|
234
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrDenomExists]: 'attempting to create a denom that already exists',
|
|
235
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrUnauthorized]: 'unauthorized account',
|
|
236
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrInvalidDenom]: 'invalid denom',
|
|
237
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrInvalidCreator]: 'invalid creator',
|
|
238
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrInvalidAuthorityMetadata]: 'invalid authority metadata',
|
|
239
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrInvalidGenesis]: 'invalid genesis',
|
|
240
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrSubdenomTooLong]: 'subdenom too long',
|
|
241
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrSubdenomTooShort]: 'subdenom too short',
|
|
242
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrSubdenomNestedTooShort]: 'nested subdenom too short, each one should have at least',
|
|
243
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrCreatorTooLong]: 'creator too long',
|
|
244
|
+
[types_1.ChainTokenFactoryErrorCodes.ErrDenomDoesNotExist]: 'denom does not exist',
|
|
245
|
+
};
|
|
246
|
+
const wamsxErrorMap = {
|
|
247
|
+
[types_1.ChainWasmXErrorCodes.ErrInvalidGasLimit]: 'invalid gas limit',
|
|
248
|
+
[types_1.ChainWasmXErrorCodes.ErrInvalidGasPrice]: 'invalid gas price',
|
|
249
|
+
[types_1.ChainWasmXErrorCodes.ErrInvalidContractAddress]: 'invalid contract address',
|
|
250
|
+
[types_1.ChainWasmXErrorCodes.ErrAlreadyRegistered]: 'contract already registered',
|
|
251
|
+
[types_1.ChainWasmXErrorCodes.ErrDuplicateContract]: 'duplicate contract',
|
|
252
|
+
[types_1.ChainWasmXErrorCodes.ErrNoContractAddresses]: 'no contract addresses found',
|
|
253
|
+
[types_1.ChainWasmXErrorCodes.ErrInvalidCodeId]: 'invalid code id',
|
|
254
|
+
};
|
|
255
|
+
exports.chainModuleCodeErrorMessagesMap = {
|
|
256
|
+
[types_1.ErrorModule.Auction]: auctionErrorMap,
|
|
257
|
+
[types_1.ErrorModule.CosmosSdk]: cosmosErrorMap,
|
|
258
|
+
[types_1.ErrorModule.Exchange]: exchangeErrorMap,
|
|
259
|
+
[types_1.ErrorModule.Insurance]: insuranceErrorMap,
|
|
260
|
+
[types_1.ErrorModule.Ocr]: ocrErrorMap,
|
|
261
|
+
[types_1.ErrorModule.Oracle]: oracleErrorMap,
|
|
262
|
+
[types_1.ErrorModule.Peggy]: peggyErrorMap,
|
|
263
|
+
[types_1.ErrorModule.TokenFactory]: tokenFactoryErrorMap,
|
|
264
|
+
[types_1.ErrorModule.Wasmx]: wamsxErrorMap,
|
|
684
265
|
};
|
|
266
|
+
exports.chainCodeErrorMessagesMap = {};
|
|
685
267
|
//# sourceMappingURL=messages.js.map
|