@injectivelabs/exceptions 1.15.0 → 1.15.2

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 (115) hide show
  1. package/dist/cjs/exceptions/base.d.ts +76 -0
  2. package/dist/cjs/exceptions/base.js +175 -0
  3. package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +7 -0
  4. package/dist/cjs/exceptions/exceptions/BitGetException.js +23 -0
  5. package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +7 -0
  6. package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +16 -0
  7. package/dist/cjs/exceptions/exceptions/GeneralException.d.ts +5 -0
  8. package/dist/cjs/exceptions/exceptions/GeneralException.js +11 -0
  9. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +7 -0
  10. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js +21 -0
  11. package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +10 -0
  12. package/dist/cjs/exceptions/exceptions/HttpRequestException.js +21 -0
  13. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +7 -0
  14. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +40 -0
  15. package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +7 -0
  16. package/dist/cjs/exceptions/exceptions/LedgerException.js +40 -0
  17. package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +7 -0
  18. package/dist/cjs/exceptions/exceptions/MetamaskException.js +23 -0
  19. package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +7 -0
  20. package/dist/cjs/exceptions/exceptions/OkxWalletException.js +23 -0
  21. package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +7 -0
  22. package/dist/cjs/exceptions/exceptions/TransactionException.js +26 -0
  23. package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +7 -0
  24. package/dist/cjs/exceptions/exceptions/TrezorException.js +16 -0
  25. package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +7 -0
  26. package/dist/cjs/exceptions/exceptions/TrustWalletException.js +25 -0
  27. package/dist/cjs/exceptions/exceptions/WalletException.d.ts +5 -0
  28. package/dist/cjs/exceptions/exceptions/WalletException.js +11 -0
  29. package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +7 -0
  30. package/dist/cjs/exceptions/exceptions/Web3Exception.js +16 -0
  31. package/dist/cjs/exceptions/exceptions/index.d.ts +15 -0
  32. package/dist/cjs/exceptions/exceptions/index.js +31 -0
  33. package/dist/cjs/exceptions/index.d.ts +2 -0
  34. package/dist/cjs/exceptions/index.js +18 -0
  35. package/dist/cjs/exceptions/messages.d.ts +12 -0
  36. package/dist/cjs/exceptions/messages.js +1600 -0
  37. package/dist/cjs/exceptions/types/codes.d.ts +424 -0
  38. package/dist/cjs/exceptions/types/codes.js +791 -0
  39. package/dist/cjs/exceptions/types/context.d.ts +85 -0
  40. package/dist/cjs/exceptions/types/context.js +23 -0
  41. package/dist/cjs/exceptions/types/index.d.ts +3 -0
  42. package/dist/cjs/exceptions/types/index.js +19 -0
  43. package/dist/cjs/exceptions/types/modules.d.ts +59 -0
  44. package/dist/cjs/exceptions/types/modules.js +66 -0
  45. package/dist/cjs/exceptions/utils/grpc.d.ts +3 -0
  46. package/dist/cjs/exceptions/utils/grpc.js +40 -0
  47. package/dist/cjs/exceptions/utils/helpers.d.ts +1 -0
  48. package/dist/cjs/exceptions/utils/helpers.js +24 -0
  49. package/dist/cjs/exceptions/utils/maps.d.ts +13 -0
  50. package/dist/cjs/exceptions/utils/maps.js +132 -0
  51. package/dist/cjs/index.d.ts +3 -0
  52. package/dist/cjs/index.js +19 -0
  53. package/dist/cjs/package.json +3 -0
  54. package/dist/cjs/types.d.ts +2 -0
  55. package/dist/cjs/types.js +2 -0
  56. package/dist/cjs/utils.d.ts +8 -0
  57. package/dist/cjs/utils.js +47 -0
  58. package/dist/esm/exceptions/base.d.ts +76 -0
  59. package/dist/esm/exceptions/base.js +171 -0
  60. package/dist/esm/exceptions/exceptions/BitGetException.d.ts +7 -0
  61. package/dist/esm/exceptions/exceptions/BitGetException.js +19 -0
  62. package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +7 -0
  63. package/dist/esm/exceptions/exceptions/CosmosWalletException.js +12 -0
  64. package/dist/esm/exceptions/exceptions/GeneralException.d.ts +5 -0
  65. package/dist/esm/exceptions/exceptions/GeneralException.js +7 -0
  66. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +7 -0
  67. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js +17 -0
  68. package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +10 -0
  69. package/dist/esm/exceptions/exceptions/HttpRequestException.js +17 -0
  70. package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +7 -0
  71. package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +36 -0
  72. package/dist/esm/exceptions/exceptions/LedgerException.d.ts +7 -0
  73. package/dist/esm/exceptions/exceptions/LedgerException.js +36 -0
  74. package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +7 -0
  75. package/dist/esm/exceptions/exceptions/MetamaskException.js +19 -0
  76. package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +7 -0
  77. package/dist/esm/exceptions/exceptions/OkxWalletException.js +19 -0
  78. package/dist/esm/exceptions/exceptions/TransactionException.d.ts +7 -0
  79. package/dist/esm/exceptions/exceptions/TransactionException.js +22 -0
  80. package/dist/esm/exceptions/exceptions/TrezorException.d.ts +7 -0
  81. package/dist/esm/exceptions/exceptions/TrezorException.js +12 -0
  82. package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +7 -0
  83. package/dist/esm/exceptions/exceptions/TrustWalletException.js +21 -0
  84. package/dist/esm/exceptions/exceptions/WalletException.d.ts +5 -0
  85. package/dist/esm/exceptions/exceptions/WalletException.js +7 -0
  86. package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +7 -0
  87. package/dist/esm/exceptions/exceptions/Web3Exception.js +12 -0
  88. package/dist/esm/exceptions/exceptions/index.d.ts +15 -0
  89. package/dist/esm/exceptions/exceptions/index.js +15 -0
  90. package/dist/esm/exceptions/index.d.ts +2 -0
  91. package/dist/esm/exceptions/index.js +2 -0
  92. package/dist/esm/exceptions/messages.d.ts +12 -0
  93. package/dist/esm/exceptions/messages.js +1597 -0
  94. package/dist/esm/exceptions/types/codes.d.ts +424 -0
  95. package/dist/esm/exceptions/types/codes.js +787 -0
  96. package/dist/esm/exceptions/types/context.d.ts +85 -0
  97. package/dist/esm/exceptions/types/context.js +20 -0
  98. package/dist/esm/exceptions/types/index.d.ts +3 -0
  99. package/dist/esm/exceptions/types/index.js +3 -0
  100. package/dist/esm/exceptions/types/modules.d.ts +59 -0
  101. package/dist/esm/exceptions/types/modules.js +63 -0
  102. package/dist/esm/exceptions/utils/grpc.d.ts +3 -0
  103. package/dist/esm/exceptions/utils/grpc.js +3 -0
  104. package/dist/esm/exceptions/utils/helpers.d.ts +1 -0
  105. package/dist/esm/exceptions/utils/helpers.js +20 -0
  106. package/dist/esm/exceptions/utils/maps.d.ts +13 -0
  107. package/dist/esm/exceptions/utils/maps.js +125 -0
  108. package/dist/esm/index.d.ts +3 -0
  109. package/dist/esm/index.js +3 -0
  110. package/dist/esm/package.json +3 -0
  111. package/dist/esm/types.d.ts +2 -0
  112. package/dist/esm/types.js +1 -0
  113. package/dist/esm/utils.d.ts +8 -0
  114. package/dist/esm/utils.js +42 -0
  115. package/package.json +2 -2
@@ -0,0 +1,424 @@
1
+ import * as grpcPkg from '@injectivelabs/grpc-web';
2
+ import { StatusCodes } from 'http-status-codes';
3
+ export declare enum GrpcErrorCode {
4
+ OK = 0,
5
+ Canceled = 1,
6
+ Unknown = 2,
7
+ InvalidArgument = 3,
8
+ DeadlineExceeded = 4,
9
+ NotFound = 5,
10
+ AlreadyExists = 6,
11
+ PermissionDenied = 7,
12
+ ResourceExhausted = 8,
13
+ FailedPrecondition = 9,
14
+ Aborted = 10,
15
+ OutOfRange = 11,
16
+ Unimplemented = 12,
17
+ Internal = 13,
18
+ Unavailable = 14,
19
+ DataLoss = 15,
20
+ Unauthenticated = 16
21
+ }
22
+ export declare const grpcErrorCodeToErrorCode: <T extends number>(grpcErrorCode: T) => GrpcErrorCode;
23
+ export declare enum TransactionChainErrorModule {
24
+ Auction = "auction",
25
+ CosmosSdk = "sdk",
26
+ Staking = "staking",
27
+ Bank = "bank",
28
+ Distribution = "distribution",
29
+ Gov = "gov",
30
+ Exchange = "exchange",
31
+ Insurance = "insurance",
32
+ Ocr = "ocr",
33
+ Oracle = "oracle",
34
+ Peggy = "peggy",
35
+ TokenFactory = "tokenfactory",
36
+ Wasmx = "wasmx",
37
+ Wasm = "wasm",
38
+ AuthZ = "authz"
39
+ }
40
+ export declare enum ChainCosmosErrorCode {
41
+ ErrTxDecode = 2,
42
+ ErrInvalidSequence = 3,
43
+ ErrUnauthorized = 4,
44
+ ErrInsufficientFunds = 5,
45
+ ErrUnknownRequest = 6,
46
+ ErrInvalidAddress = 7,
47
+ ErrInvalidPubKey = 8,
48
+ ErrUnknownAddress = 9,
49
+ ErrInvalidCoins = 10,
50
+ ErrOutOfGas = 11,
51
+ ErrMemoTooLarge = 12,
52
+ ErrInsufficientFee = 13,
53
+ ErrTooManySignatures = 14,
54
+ ErrNoSignatures = 15,
55
+ ErrJSONMarshal = 16,
56
+ ErrJSONUnmarshal = 17,
57
+ ErrInvalidRequest = 18,
58
+ ErrTxInMempoolCache = 19,
59
+ ErrMempoolIsFull = 20,
60
+ ErrTxTooLarge = 21,
61
+ ErrKeyNotFound = 22,
62
+ ErrWrongPassword = 23,
63
+ ErrorInvalidSigner = 24,
64
+ ErrorInvalidGasAdjustment = 25,
65
+ ErrInvalidHeight = 26,
66
+ ErrInvalidVersion = 27,
67
+ ErrInvalidChainID = 28,
68
+ ErrInvalidType = 29,
69
+ ErrTxTimeoutHeight = 30,
70
+ ErrUnknownExtensionOptions = 31,
71
+ ErrWrongSequence = 32,
72
+ ErrPackAny = 33,
73
+ ErrUnpackAny = 34,
74
+ ErrLogic = 35,
75
+ ErrConflict = 36,
76
+ ErrNotSupported = 37,
77
+ ErrNotFound = 38,
78
+ ErrIO = 39,
79
+ ErrAppConfig = 40,
80
+ ErrInvalidGasLimit = 41
81
+ }
82
+ export declare enum ChainExchangeModuleErrorCode {
83
+ ErrOrderInvalid = 1,
84
+ ErrSpotMarketNotFound = 2,
85
+ ErrSpotMarketExists = 3,
86
+ ErrBadField = 4,
87
+ ErrMarketInvalid = 5,
88
+ ErrInsufficientDeposit = 6,
89
+ ErrUnrecognizedOrderType = 7,
90
+ ErrInsufficientPositionQuantity = 8,
91
+ ErrOrderHashInvalid = 9,
92
+ ErrBadSubaccountID = 10,
93
+ ErrInvalidTicker = 11,
94
+ ErrInvalidBaseDenom = 12,
95
+ ErrInvalidQuoteDenom = 13,
96
+ ErrInvalidOracle = 14,
97
+ ErrInvalidExpiry = 15,
98
+ ErrInvalidPrice = 16,
99
+ ErrInvalidQuantity = 17,
100
+ ErrUnsupportedOracleType = 18,
101
+ ErrOrderDoesntExist = 19,
102
+ ErrOrderbookFillInvalid = 20,
103
+ ErrPerpetualMarketExists = 21,
104
+ ErrExpiryFuturesMarketExists = 22,
105
+ ErrExpiryFuturesMarketExpired = 23,
106
+ ErrNoLiquidity = 24,
107
+ ErrSlippageExceedsWorstPrice = 25,
108
+ ErrInsufficientOrderMargin = 26,
109
+ ErrDerivativeMarketNotFound = 27,
110
+ ErrPositionNotFound = 28,
111
+ ErrInvalidReduceOnlyPositionDirection = 29,
112
+ ErrPriceSurpassesBankruptcyPrice = 30,
113
+ ErrPositionNotLiquidable = 31,
114
+ ErrInvalidTriggerPrice = 32,
115
+ ErrInvalidOracleType = 33,
116
+ ErrInvalidPriceTickSize = 34,
117
+ ErrInvalidQuantityTickSize = 35,
118
+ ErrInvalidMargin = 36,
119
+ ErrExceedsOrderSideCount = 37,
120
+ ErrMarketOrderAlreadyExists = 38,
121
+ ErrConditionalMarketOrderAlreadyExists = 39,
122
+ ErrMarketLaunchProposalAlreadyExists = 40,
123
+ ErrInvalidMarketStatus = 41,
124
+ ErrSameDenoms = 42,
125
+ ErrSameOracles = 43,
126
+ ErrFeeRatesRelation = 44,
127
+ ErrMarginsRelation = 45,
128
+ ErrExceedsMaxOracleScaleFactor = 46,
129
+ ErrSpotExchangeNotEnabled = 47,
130
+ ErrDerivativesExchangeNotEnabled = 48,
131
+ ErrOraclePriceDeltaExceedsThreshold = 49,
132
+ ErrInvalidHourlyInterestRate = 50,
133
+ ErrInvalidHourlyFundingRateCap = 51,
134
+ ErrInvalidMarketFundingParamUpdate = 52,
135
+ ErrInvalidTradingRewardCampaign = 53,
136
+ ErrInvalidFeeDiscountSchedule = 54,
137
+ ErrInvalidLiquidationOrder = 55,
138
+ ErrTradingRewardCampaignDistributionError = 56,
139
+ ErrInvalidTradingRewardsPendingPointsUpdate = 57,
140
+ ErrInvalidBatchMsgUpdate = 58,
141
+ ErrExceedsTopOfBookPrice = 59,
142
+ ErrInvalidOrderTypeForMessage = 60,
143
+ ErrInvalidDMMSender = 61,
144
+ ErrAlreadyOptedOutOfRewards = 62,
145
+ ErrInvalidMarginRatio = 63,
146
+ ErrBelowMinimalContribution = 64,
147
+ ErrLowPositionMargin = 65,
148
+ ErrInvalidTotalSupply = 66,
149
+ ErrInvalidLpTokenBurnAmount = 67,
150
+ ErrUnsupportedAction = 68,
151
+ ErrNegativePositionQuantity = 69,
152
+ ErrBinaryOptionsMarketExists = 70,
153
+ ErrBinaryOptionsMarketNotFound = 71,
154
+ ErrInvalidSettlement = 72,
155
+ ErrAccountDoesntExist = 73,
156
+ ErrSenderIsNotAnAdmin = 74,
157
+ ErrMarketAlreadyScheduledToSettle = 75,
158
+ ErrGenericMarketNotFound = 76,
159
+ ErrInvalidDenomDecimal = 77,
160
+ ErrInvalidState = 78,
161
+ ErrTransientOrdersUpToCancelNotSupported = 79,
162
+ ErrInvalidTrade = 80,
163
+ ErrNoMarginLocked = 81,
164
+ ErrInvalidAccessLevel = 82,
165
+ ErrInvalidAddress = 83,
166
+ ErrInvalidArgument = 84,
167
+ ErrInvalidFundsDirection = 85,
168
+ ErrNoFundsProvided = 86,
169
+ ErrInvalidSignature = 87,
170
+ ErrNoFundsToUnlock = 88,
171
+ ErrNoMsgsProvided = 89,
172
+ ErrNoMsgProvided = 90,
173
+ ErrInvalidAmount = 91,
174
+ ErrFeatureDisabled = 92,
175
+ ErrTooMuchOrderMargin = 93,
176
+ ErrBadSubaccountNonce = 94,
177
+ ErrInsufficientFunds = 95,
178
+ ErrPostOnlyMode = 96,
179
+ ErrClientOrderIdAlreadyExists = 97,
180
+ ErrInvalidCid = 98
181
+ }
182
+ export declare enum ChainAuctionErrorCodes {
183
+ ErrBidInvalid = 1,
184
+ ErrBidRound = 2
185
+ }
186
+ export declare enum ChainAuthZErrorCodes {
187
+ ErrNoAuthorizationFound = 2,
188
+ ErrInvalidExpirationTime = 3,
189
+ ErrUnknownAuthorizationType = 4,
190
+ ErrNoGrantKeyFound = 5,
191
+ ErrAuthorizationExpired = 6,
192
+ ErrGranteeIsGranter = 7,
193
+ ErrAuthorizationNumOfSigners = 9,
194
+ ErrNegativeMaxTokens = 12
195
+ }
196
+ export declare enum ChainInsuranceErrorCodes {
197
+ ErrInsuranceFundAlreadyExists = 1,
198
+ ErrInsuranceFundNotFound = 2,
199
+ ErrRedemptionAlreadyExists = 3,
200
+ ErrInvalidDepositAmount = 4,
201
+ ErrInvalidDepositDenom = 5,
202
+ ErrPayoutTooLarge = 6,
203
+ ErrInvalidTicker = 7,
204
+ ErrInvalidQuoteDenom = 8,
205
+ ErrInvalidOracle = 9,
206
+ ErrInvalidExpirationTime = 10,
207
+ ErrInvalidMarketID = 11,
208
+ ErrInvalidShareDenom = 12
209
+ }
210
+ export declare enum ChainOcrErrorCodes {
211
+ ErrStaleReport = 1,
212
+ ErrIncompleteProposal = 2,
213
+ ErrRepeatedAddress = 3,
214
+ ErrTooManySigners = 4,
215
+ ErrIncorrectConfig = 5,
216
+ ErrConfigDigestNotMatch = 6,
217
+ ErrWrongNumberOfSignatures = 7,
218
+ ErrIncorrectSignature = 8,
219
+ ErrNoTransmitter = 9,
220
+ ErrIncorrectTransmissionData = 10,
221
+ ErrNoTransmissionsFound = 11,
222
+ ErrMedianValueOutOfBounds = 12,
223
+ ErrIncorrectRewardPoolDenom = 13,
224
+ ErrNoRewardPool = 14,
225
+ ErrInvalidPayees = 15,
226
+ ErrModuleAdminRestricted = 16,
227
+ ErrFeedAlreadyExists = 17,
228
+ ErrFeedDoesntExists = 19,
229
+ ErrAdminRestricted = 20,
230
+ ErrInsufficientRewardPool = 21,
231
+ ErrPayeeAlreadySet = 22,
232
+ ErrPayeeRestricted = 23,
233
+ ErrFeedConfigNotFound = 24
234
+ }
235
+ export declare enum ChainOracleErrorCodes {
236
+ ErrEmptyRelayerAddr = 1,
237
+ ErrBadRatesCount = 2,
238
+ ErrBadResolveTimesCount = 3,
239
+ ErrBadRequestIDsCount = 4,
240
+ ErrRelayerNotAuthorized = 5,
241
+ ErrBadPriceFeedBaseCount = 6,
242
+ ErrBadPriceFeedQuoteCount = 7,
243
+ ErrUnsupportedOracleType = 8,
244
+ ErrBadMessagesCount = 9,
245
+ ErrBadCoinbaseMessage = 10,
246
+ ErrInvalidEthereumSignature = 11,
247
+ ErrBadCoinbaseMessageTimestamp = 12,
248
+ ErrCoinbasePriceNotFound = 13,
249
+ ErrBadPrice = 14,
250
+ ErrPriceTooLarge = 15,
251
+ ErrInvalidBandIBCRequest = 16,
252
+ ErrSample = 17,
253
+ ErrInvalidPacketTimeout = 18,
254
+ ErrBadSymbolsCount = 19,
255
+ ErrBadIBCPortBind = 20,
256
+ ErrInvalidPortID = 21,
257
+ ErrInvalidChannelID = 22,
258
+ ErrBadRequestInterval = 23,
259
+ ErrInvalidBandIBCUpdateRequest = 24,
260
+ ErrBandIBCRequestNotFound = 25,
261
+ ErrEmptyBaseInfo = 26,
262
+ ErrEmptyProvider = 27,
263
+ ErrInvalidProvider = 28,
264
+ ErrInvalidSymbol = 29,
265
+ ErrRelayerAlreadyExists = 30,
266
+ ErrProviderPriceNotFound = 31,
267
+ ErrInvalidOracleRequest = 32,
268
+ ErrOraclePriceNotFound = 33
269
+ }
270
+ export declare enum ChainPeggyErrorCodes {
271
+ ErrInternal = 1,
272
+ ErrDuplicate = 2,
273
+ ErrInvalid = 3,
274
+ ErrTimeout = 4,
275
+ ErrUnknown = 5,
276
+ ErrEmpty = 6,
277
+ ErrOutdated = 7,
278
+ ErrUnsupported = 8,
279
+ ErrNonContiguousEventNonce = 9,
280
+ ErrNoUnbatchedTxsFound = 10,
281
+ ErrResetDelegateKeys = 11,
282
+ ErrSupplyOverflow = 12,
283
+ ErrInvalidEthSender = 13,
284
+ ErrInvalidEthDestination = 14
285
+ }
286
+ export declare enum ChainTokenFactoryErrorCodes {
287
+ ErrDenomExists = 2,
288
+ ErrUnauthorized = 3,
289
+ ErrInvalidDenom = 4,
290
+ ErrInvalidCreator = 5,
291
+ ErrInvalidAuthorityMetadata = 6,
292
+ ErrInvalidGenesis = 7,
293
+ ErrSubdenomTooLong = 8,
294
+ ErrSubdenomTooShort = 9,
295
+ ErrSubdenomNestedTooShort = 10,
296
+ ErrCreatorTooLong = 11,
297
+ ErrDenomDoesNotExist = 12,
298
+ ErrAmountNotPositive = 13
299
+ }
300
+ export declare enum ChainWasmXErrorCodes {
301
+ ErrInvalidGasLimit = 1,
302
+ ErrInvalidGasPrice = 2,
303
+ ErrInvalidContractAddress = 3,
304
+ ErrAlreadyRegistered = 4,
305
+ ErrDuplicateContract = 5,
306
+ ErrNoContractAddresses = 6,
307
+ ErrInvalidCodeId = 7
308
+ }
309
+ export declare enum ChainStakingErrorCodes {
310
+ ErrEmptyValidatorAddr = 2,
311
+ ErrNoValidatorFound = 3,
312
+ ErrValidatorOwnerExists = 4,
313
+ ErrValidatorPubKeyExists = 5,
314
+ ErrValidatorPubKeyTypeNotSupported = 6,
315
+ ErrValidatorJailed = 7,
316
+ ErrBadRemoveValidator = 8,
317
+ ErrCommissionNegative = 9,
318
+ ErrCommissionHuge = 10,
319
+ ErrCommissionGTMaxRate = 11,
320
+ ErrCommissionUpdateTime = 12,
321
+ ErrCommissionChangeRateNegative = 13,
322
+ ErrCommissionChangeRateGTMaxRate = 14,
323
+ ErrCommissionGTMaxChangeRate = 15,
324
+ ErrSelfDelegationBelowMinimum = 16,
325
+ ErrMinSelfDelegationDecreased = 17,
326
+ ErrEmptyDelegatorAddr = 18,
327
+ ErrNoDelegation = 19,
328
+ ErrBadDelegatorAddr = 20,
329
+ ErrNoDelegatorForAddress = 21,
330
+ ErrInsufficientShares = 22,
331
+ ErrDelegationValidatorEmpty = 23,
332
+ ErrNotEnoughDelegationShares = 24,
333
+ ErrNotMature = 25,
334
+ ErrNoUnbondingDelegation = 26,
335
+ ErrMaxUnbondingDelegationEntries = 27,
336
+ ErrNoRedelegation = 28,
337
+ ErrSelfRedelegation = 29,
338
+ ErrTinyRedelegationAmount = 30,
339
+ ErrBadRedelegationDst = 31,
340
+ ErrTransitiveRedelegation = 32,
341
+ ErrMaxRedelegationEntries = 33,
342
+ ErrDelegatorShareExRateInvalid = 34,
343
+ ErrBothShareMsgsGiven = 35,
344
+ ErrNeitherShareMsgsGiven = 36,
345
+ ErrInvalidHistoricalInfo = 37,
346
+ ErrNoHistoricalInfo = 38,
347
+ ErrEmptyValidatorPubKey = 39,
348
+ ErrCommissionLTMinRate = 40,
349
+ ErrUnbondingNotFound = 41,
350
+ ErrUnbondingOnHoldRefCountNegative = 42
351
+ }
352
+ export declare enum ChainGovErrorCodes {
353
+ ErrUnknownProposal = 2,
354
+ ErrInactiveProposal = 3,
355
+ ErrAlreadyActiveProposal = 4,
356
+ ErrInvalidProposalContent = 5,
357
+ ErrInvalidProposalType = 6,
358
+ ErrInvalidVote = 7,
359
+ ErrInvalidGenesis = 8,
360
+ ErrNoProposalHandlerExists = 9,
361
+ ErrUnroutableProposalMsg = 10,
362
+ ErrNoProposalMsgs = 11,
363
+ ErrInvalidProposalMsg = 12,
364
+ ErrInvalidSigner = 13,
365
+ ErrInvalidSignalMsg = 14,
366
+ ErrMetadataTooLong = 15,
367
+ ErrMinDepositTooSmall = 16,
368
+ ErrProposalNotFound = 17,
369
+ ErrInvalidProposer = 18,
370
+ ErrNoDeposits = 19,
371
+ ErrVotingPeriodEnded = 20,
372
+ ErrInvalidProposal = 21
373
+ }
374
+ export declare enum ChainDistributionErrorCodes {
375
+ ErrEmptyDelegatorAddr = 2,
376
+ ErrEmptyWithdrawAddr = 3,
377
+ ErrEmptyValidatorAddr = 4,
378
+ ErrEmptyDelegationDistInfo = 5,
379
+ ErrNoValidatorDistInfo = 6,
380
+ ErrNoValidatorCommission = 7,
381
+ ErrSetWithdrawAddrDisabled = 8,
382
+ ErrBadDistribution = 9,
383
+ ErrInvalidProposalAmount = 10,
384
+ ErrEmptyProposalRecipient = 11,
385
+ ErrNoValidatorExists = 12,
386
+ ErrNoDelegationExists = 13
387
+ }
388
+ export declare enum ChainBankErrorCodes {
389
+ ErrNoInputs = 2,
390
+ ErrNoOutputs = 3,
391
+ ErrInputOutputMismatch = 4,
392
+ ErrSendDisabled = 5,
393
+ ErrDenomMetadataNotFound = 6,
394
+ ErrInvalidKey = 7,
395
+ ErrDuplicateEntry = 8,
396
+ ErrMultipleSenders = 9
397
+ }
398
+ export declare enum ChainWasmErrorCodes {
399
+ ErrCreateFailed = 2,
400
+ ErrAccountExists = 3,
401
+ ErrInstantiateFailed = 4,
402
+ ErrExecuteFailed = 5,
403
+ ErrGasLimit = 6,
404
+ ErrInvalidGenesis = 7,
405
+ ErrNotFound = 8,
406
+ ErrQueryFailed = 9,
407
+ ErrInvalidMsg = 10,
408
+ ErrMigrationFailed = 11,
409
+ ErrEmpty = 12,
410
+ ErrLimit = 13,
411
+ ErrInvalid = 14,
412
+ ErrDuplicate = 15,
413
+ ErrMaxIBCChannels = 16,
414
+ ErrUnsupportedForContract = 17,
415
+ ErrPinContractFailed = 18,
416
+ ErrUnpinContractFailed = 19,
417
+ ErrUnknownMsg = 20,
418
+ ErrInvalidEvent = 21
419
+ }
420
+ export type IndexerApiErrorCode = number;
421
+ export declare const UnspecifiedErrorCode = -1;
422
+ export type ErrorCode = grpcPkg.grpc.Code | StatusCodes | typeof UnspecifiedErrorCode | GrpcErrorCode;
423
+ export declare const GRPC_REQUEST_FAILED = GrpcErrorCode.Unavailable;
424
+ export type ErrorContextCode = ChainAuctionErrorCodes | ChainAuthZErrorCodes | ChainCosmosErrorCode | ChainExchangeModuleErrorCode | ChainInsuranceErrorCodes | ChainOcrErrorCodes | ChainOracleErrorCodes | ChainPeggyErrorCodes | ChainTokenFactoryErrorCodes | ChainWasmXErrorCodes | ChainDistributionErrorCodes | ChainBankErrorCodes | ChainGovErrorCodes | ChainStakingErrorCodes | ChainWasmErrorCodes | ErrorCode | typeof UnspecifiedErrorCode;