@injectivelabs/exceptions 1.0.47 → 1.0.49
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 +12 -544
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +410 -144
- 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 +9 -3
- package/dist/utils/maps.d.ts.map +1 -1
- package/dist/utils/maps.js +49 -41
- 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,685 +1,951 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.chainErrorMessagesMap = exports.chainModuleCodeErrorMessagesMap = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
|
5
|
-
|
|
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',
|
|
8
|
+
};
|
|
9
|
+
const cosmosErrorMap = {
|
|
10
|
+
[types_1.ChainCosmosErrorCode.ErrInsufficientFee]: 'You do not have enough funds to cover the transaction fees.',
|
|
11
|
+
[types_1.ChainCosmosErrorCode.ErrInsufficientFunds]: 'You do not have enough funds.',
|
|
12
|
+
[types_1.ChainCosmosErrorCode.ErrTxTimeoutHeight]: 'The transaction failed to be included within a block on time.',
|
|
13
|
+
[types_1.ChainCosmosErrorCode.ErrTxDecode]: 'There is an issue while parsing the transaction',
|
|
14
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidSequence]: 'The sequence number is not valid',
|
|
15
|
+
[types_1.ChainCosmosErrorCode.ErrUnauthorized]: 'Unauthorized',
|
|
16
|
+
[types_1.ChainCosmosErrorCode.ErrUnknownRequest]: 'The request is not known',
|
|
17
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidAddress]: 'The address is not valid',
|
|
18
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidPubKey]: 'The public key is not valid',
|
|
19
|
+
[types_1.ChainCosmosErrorCode.ErrUnknownAddress]: 'The address is unknown',
|
|
20
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidCoins]: 'The coins are not valid',
|
|
21
|
+
[types_1.ChainCosmosErrorCode.ErrOutOfGas]: 'The transaction run out of gas',
|
|
22
|
+
[types_1.ChainCosmosErrorCode.ErrMemoTooLarge]: 'The memo field in the transaction is too large',
|
|
23
|
+
[types_1.ChainCosmosErrorCode.ErrTooManySignatures]: 'The transaction exceeded the maximum number of signatures',
|
|
24
|
+
[types_1.ChainCosmosErrorCode.ErrNoSignatures]: 'There are no signatures appended on the transaction',
|
|
25
|
+
[types_1.ChainCosmosErrorCode.ErrJSONMarshal]: 'There is an issue while parsing the transaction',
|
|
26
|
+
[types_1.ChainCosmosErrorCode.ErrJSONUnmarshal]: 'There is an issue while parsing the transaction',
|
|
27
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidRequest]: 'invalid request',
|
|
28
|
+
[types_1.ChainCosmosErrorCode.ErrTxInMempoolCache]: 'The transaction is already in the mempool',
|
|
29
|
+
[types_1.ChainCosmosErrorCode.ErrMempoolIsFull]: 'The mempool is full',
|
|
30
|
+
[types_1.ChainCosmosErrorCode.ErrTxTooLarge]: 'The transaction is too large',
|
|
31
|
+
[types_1.ChainCosmosErrorCode.ErrKeyNotFound]: 'The key has not been found',
|
|
32
|
+
[types_1.ChainCosmosErrorCode.ErrWrongPassword]: 'invalid account password',
|
|
33
|
+
[types_1.ChainCosmosErrorCode.ErrorInvalidSigner]: 'tx intended signer does not match the given signer',
|
|
34
|
+
[types_1.ChainCosmosErrorCode.ErrorInvalidGasAdjustment]: 'invalid gas adjustment',
|
|
35
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidHeight]: 'The height provided in the transaction is not valid',
|
|
36
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidVersion]: 'The version provided in the transaction is not valid',
|
|
37
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidChainID]: 'The chainId provided in the transaction is not valid',
|
|
38
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidType]: 'The type provided in the transaction is not valid',
|
|
39
|
+
[types_1.ChainCosmosErrorCode.ErrUnknownExtensionOptions]: 'The extension options provided in the transaction is unknown',
|
|
40
|
+
[types_1.ChainCosmosErrorCode.ErrWrongSequence]: 'The sequence number provided in the transaction is incorrect',
|
|
41
|
+
[types_1.ChainCosmosErrorCode.ErrPackAny]: 'failed packing protobuf message to Any',
|
|
42
|
+
[types_1.ChainCosmosErrorCode.ErrUnpackAny]: 'failed unpacking protobuf message from Any',
|
|
43
|
+
[types_1.ChainCosmosErrorCode.ErrLogic]: 'Internal logic error',
|
|
44
|
+
[types_1.ChainCosmosErrorCode.ErrConflict]: 'conflict',
|
|
45
|
+
[types_1.ChainCosmosErrorCode.ErrNotSupported]: 'The feature is not supported',
|
|
46
|
+
[types_1.ChainCosmosErrorCode.ErrNotFound]: 'not found',
|
|
47
|
+
[types_1.ChainCosmosErrorCode.ErrIO]: 'Internal IO error',
|
|
48
|
+
[types_1.ChainCosmosErrorCode.ErrAppConfig]: 'error in app.toml',
|
|
49
|
+
[types_1.ChainCosmosErrorCode.ErrInvalidGasLimit]: 'The gas limit provided in the transaction is not valid',
|
|
50
|
+
};
|
|
51
|
+
const exchangeErrorMap = {
|
|
52
|
+
[types_1.ChainExchangeModuleErrorCode.ErrOrderInvalid]: 'Your order failed to validate',
|
|
53
|
+
[types_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound]: 'The spot market has not been found',
|
|
54
|
+
[types_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists]: 'The spot market already exists',
|
|
55
|
+
[types_1.ChainExchangeModuleErrorCode.ErrBadField]: 'There is an issue with your order',
|
|
56
|
+
[types_1.ChainExchangeModuleErrorCode.ErrMarketInvalid]: 'The market failed to validate',
|
|
57
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInsufficientDeposit]: 'Your trading account has insufficient funds',
|
|
58
|
+
[types_1.ChainExchangeModuleErrorCode.ErrUnrecognizedOrderType]: 'The order type is not recognized',
|
|
59
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInsufficientPositionQuantity]: 'The position quantity is insufficient for the order',
|
|
60
|
+
[types_1.ChainExchangeModuleErrorCode.ErrOrderHashInvalid]: 'The order hash is not valid',
|
|
61
|
+
[types_1.ChainExchangeModuleErrorCode.ErrBadSubaccountID]: 'The subaccount id is not valid',
|
|
62
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidBaseDenom]: '',
|
|
63
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidExpiry]: 'The expiry date is not valid',
|
|
64
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidPrice]: 'The price is not valid',
|
|
65
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantity]: 'The quantity is not valid',
|
|
66
|
+
[types_1.ChainExchangeModuleErrorCode.ErrUnsupportedOracleType]: 'The oracle type is not supported',
|
|
67
|
+
[types_1.ChainExchangeModuleErrorCode.ErrOrderDoesntExist]: 'The order does not exist',
|
|
68
|
+
[types_1.ChainExchangeModuleErrorCode.ErrOrderbookFillInvalid]: '',
|
|
69
|
+
[types_1.ChainExchangeModuleErrorCode.ErrPerpetualMarketExists]: 'The perpetual market already exists',
|
|
70
|
+
[types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExists]: 'The expiry futures market market already exists',
|
|
71
|
+
[types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExpired]: 'The expiry futures market has expired',
|
|
72
|
+
[types_1.ChainExchangeModuleErrorCode.ErrNoLiquidity]: 'There is not enough liquidity',
|
|
73
|
+
[types_1.ChainExchangeModuleErrorCode.ErrSlippageExceedsWorstPrice]: 'There is not enough liquidity',
|
|
74
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInsufficientOrderMargin]: 'The order has insufficient margin',
|
|
75
|
+
[types_1.ChainExchangeModuleErrorCode.ErrDerivativeMarketNotFound]: 'The derivative market cannot be found',
|
|
76
|
+
[types_1.ChainExchangeModuleErrorCode.ErrPositionNotFound]: 'The position cannot be found',
|
|
77
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidReduceOnlyPositionDirection]: 'Position direction does not oppose the reduce-only order',
|
|
78
|
+
[types_1.ChainExchangeModuleErrorCode.ErrPriceSurpassesBankruptcyPrice]: 'Your order price surpasses bankruptcy price',
|
|
79
|
+
[types_1.ChainExchangeModuleErrorCode.ErrPositionNotLiquidable]: 'The position is not liquidable',
|
|
80
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTriggerPrice]: 'Your order trigger price is not valid',
|
|
81
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidOracleType]: 'The oracle type is not valid',
|
|
82
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidPriceTickSize]: 'The minimum price tick size is not valid',
|
|
83
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantityTickSize]: 'The minimum quantity tick size is not valid',
|
|
84
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidMargin]: "Your order's minimum margin is not valid ",
|
|
85
|
+
[types_1.ChainExchangeModuleErrorCode.ErrExceedsOrderSideCount]: 'You cannot have more orders for this market for this direction',
|
|
86
|
+
[types_1.ChainExchangeModuleErrorCode.ErrMarketOrderAlreadyExists]: 'You cannot place another market order within this block',
|
|
87
|
+
[types_1.ChainExchangeModuleErrorCode.ErrConditionalMarketOrderAlreadyExists]: 'You cannot place another conditional market order',
|
|
88
|
+
[types_1.ChainExchangeModuleErrorCode.ErrMarketLaunchProposalAlreadyExists]: 'There is an existing equivalent market launch proposal.',
|
|
89
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketStatus]: 'The market status is not valid',
|
|
90
|
+
[types_1.ChainExchangeModuleErrorCode.ErrSameDenoms]: 'The base denom and quote denom cannot be same',
|
|
91
|
+
[types_1.ChainExchangeModuleErrorCode.ErrSameOracles]: 'The oracle base and the oracle quote cannot be the same',
|
|
92
|
+
[types_1.ChainExchangeModuleErrorCode.ErrFeeRatesRelation]: 'The MakerFeeRate does not match TakerFeeRate requirements',
|
|
93
|
+
[types_1.ChainExchangeModuleErrorCode.ErrMarginsRelation]: 'The MaintenanceMarginRatio cannot be greater than InitialMarginRatio',
|
|
94
|
+
[types_1.ChainExchangeModuleErrorCode.ErrExceedsMaxOracleScaleFactor]: 'The OracleScaleFactor cannot be greater than MaxOracleScaleFactor',
|
|
95
|
+
[types_1.ChainExchangeModuleErrorCode.ErrSpotExchangeNotEnabled]: 'Spot exchange is not enabled yet',
|
|
96
|
+
[types_1.ChainExchangeModuleErrorCode.ErrDerivativesExchangeNotEnabled]: 'Derivatives exchange is not enabled yet',
|
|
97
|
+
[types_1.ChainExchangeModuleErrorCode.ErrOraclePriceDeltaExceedsThreshold]: 'The oracle price delta exceeds threshold',
|
|
98
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyInterestRate]: 'The hourly interest rate is not valid',
|
|
99
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyFundingRateCap]: 'The hourly funding rate cap is not valid',
|
|
100
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketFundingParamUpdate]: 'You can only update funding parameters on perpetual markets.',
|
|
101
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardCampaign]: 'The trading reward campaign is not valid',
|
|
102
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidFeeDiscountSchedule]: 'The fee discount schedule is not valid',
|
|
103
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidLiquidationOrder]: 'The liquidation order is not valid',
|
|
104
|
+
[types_1.ChainExchangeModuleErrorCode.ErrTradingRewardCampaignDistributionError]: 'Unknown error happened for campaign distributions',
|
|
105
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardsPendingPointsUpdate]: 'The updated trading reward points is not valid',
|
|
106
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidBatchMsgUpdate]: 'The MsgBatchUpdate is not valid',
|
|
107
|
+
[types_1.ChainExchangeModuleErrorCode.ErrExceedsTopOfBookPrice]: 'The post-only order price exceeds top of the orderbook price',
|
|
108
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidOrderTypeForMessage]: 'The order type is not supported for this message',
|
|
109
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidDMMSender]: 'The sender must match the DMM address',
|
|
110
|
+
[types_1.ChainExchangeModuleErrorCode.ErrAlreadyOptedOutOfRewards]: 'The DMM address already opted out of rewards',
|
|
111
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidMarginRatio]: 'The margin ratio is not valid',
|
|
112
|
+
[types_1.ChainExchangeModuleErrorCode.ErrBelowMinimalContribution]: 'The provided funds are below minimum',
|
|
113
|
+
[types_1.ChainExchangeModuleErrorCode.ErrLowPositionMargin]: 'The position is below initial margin requirement',
|
|
114
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTotalSupply]: 'The pool has non-positive total LP token supply',
|
|
115
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidLpTokenBurnAmount]: 'The passed LP token burn amount is greater than total LP token supply',
|
|
116
|
+
[types_1.ChainExchangeModuleErrorCode.ErrUnsupportedAction]: 'This action is not supported',
|
|
117
|
+
[types_1.ChainExchangeModuleErrorCode.ErrNegativePositionQuantity]: 'The position quantity cannot be negative',
|
|
118
|
+
[types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketExists]: 'The BinaryOptions market already exists',
|
|
119
|
+
[types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketNotFound]: 'The BinaryOptions market cannot be found',
|
|
120
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidSettlement]: 'The settlement price is not valid',
|
|
121
|
+
[types_1.ChainExchangeModuleErrorCode.ErrAccountDoesntExist]: 'The trading account does not exist',
|
|
122
|
+
[types_1.ChainExchangeModuleErrorCode.ErrSenderIsNotAnAdmin]: 'The sender should be the admin of the market',
|
|
123
|
+
[types_1.ChainExchangeModuleErrorCode.ErrMarketAlreadyScheduledToSettle]: 'The market is already scheduled to settle ',
|
|
124
|
+
[types_1.ChainExchangeModuleErrorCode.ErrGenericMarketNotFound]: 'The market cannot be found',
|
|
125
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidDenomDecimal]: 'The denom decimal cannot be below 1 or above max scale factor',
|
|
126
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidState]: 'The state is not valid',
|
|
127
|
+
[types_1.ChainExchangeModuleErrorCode.ErrTransientOrdersUpToCancelNotSupported]: 'The transient orders up to cancellation not supported',
|
|
128
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTrade]: 'The trade is not valid',
|
|
129
|
+
[types_1.ChainExchangeModuleErrorCode.ErrNoMarginLocked]: 'There is no margin locked in the trading account',
|
|
130
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel]: 'There is no access to perform action',
|
|
131
|
+
[types_1.ChainExchangeModuleErrorCode.ErrInvalidAddress]: 'The address is not valid',
|
|
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.TransactionChainErrorModule.Auction]: auctionErrorMap,
|
|
257
|
+
[types_1.TransactionChainErrorModule.CosmosSdk]: cosmosErrorMap,
|
|
258
|
+
[types_1.TransactionChainErrorModule.Exchange]: exchangeErrorMap,
|
|
259
|
+
[types_1.TransactionChainErrorModule.Insurance]: insuranceErrorMap,
|
|
260
|
+
[types_1.TransactionChainErrorModule.Ocr]: ocrErrorMap,
|
|
261
|
+
[types_1.TransactionChainErrorModule.Oracle]: oracleErrorMap,
|
|
262
|
+
[types_1.TransactionChainErrorModule.Peggy]: peggyErrorMap,
|
|
263
|
+
[types_1.TransactionChainErrorModule.TokenFactory]: tokenFactoryErrorMap,
|
|
264
|
+
[types_1.TransactionChainErrorModule.Wasmx]: wamsxErrorMap,
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* **Legacy** but needed for error messages from broadcasting transactions
|
|
268
|
+
* where we don't control the response and only have the message
|
|
269
|
+
* i.e Keplr, Leap, etc
|
|
270
|
+
*/
|
|
6
271
|
exports.chainErrorMessagesMap = {
|
|
7
272
|
'insufficient fee': {
|
|
8
273
|
message: 'You do not have enough funds to cover the transaction fees.',
|
|
9
274
|
code: types_1.ChainCosmosErrorCode.ErrInsufficientFee,
|
|
275
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
10
276
|
},
|
|
11
277
|
'insufficient funds': {
|
|
12
278
|
message: 'You do not have enough funds.',
|
|
13
279
|
code: types_1.ChainCosmosErrorCode.ErrInsufficientFunds,
|
|
280
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
14
281
|
},
|
|
15
282
|
'tx timeout height': {
|
|
16
283
|
message: 'The transaction failed to be included within a block on time.',
|
|
17
284
|
code: types_1.ChainCosmosErrorCode.ErrTxTimeoutHeight,
|
|
285
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
18
286
|
},
|
|
19
287
|
'tx parse error': {
|
|
20
288
|
message: 'There is an issue while parsing the transaction',
|
|
21
289
|
code: types_1.ChainCosmosErrorCode.ErrTxDecode,
|
|
290
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
22
291
|
},
|
|
23
292
|
'invalid sequence': {
|
|
24
293
|
message: 'The sequence number is not valid',
|
|
25
294
|
code: types_1.ChainCosmosErrorCode.ErrInvalidSequence,
|
|
295
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
26
296
|
},
|
|
27
297
|
unauthorized: {
|
|
28
298
|
message: 'Unauthorized',
|
|
29
299
|
code: types_1.ChainCosmosErrorCode.ErrUnauthorized,
|
|
300
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
30
301
|
},
|
|
31
302
|
'unknown request': {
|
|
32
303
|
message: 'The request is not known',
|
|
33
304
|
code: types_1.ChainCosmosErrorCode.ErrUnknownRequest,
|
|
305
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
34
306
|
},
|
|
35
307
|
'invalid address': {
|
|
36
308
|
message: 'The address is not valid',
|
|
37
309
|
code: types_1.ChainCosmosErrorCode.ErrInvalidAddress,
|
|
310
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
38
311
|
},
|
|
39
312
|
'invalid pubkey': {
|
|
40
313
|
message: 'The public key is not valid',
|
|
41
314
|
code: types_1.ChainCosmosErrorCode.ErrInvalidPubKey,
|
|
315
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
42
316
|
},
|
|
43
317
|
'unknown address': {
|
|
44
318
|
message: 'The address is unknown',
|
|
45
319
|
code: types_1.ChainCosmosErrorCode.ErrUnknownAddress,
|
|
320
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
46
321
|
},
|
|
47
322
|
'invalid coins': {
|
|
48
323
|
message: 'The coins are not valid',
|
|
49
324
|
code: types_1.ChainCosmosErrorCode.ErrInvalidCoins,
|
|
325
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
50
326
|
},
|
|
51
327
|
'out of gas': {
|
|
52
328
|
message: 'The transaction run out of gas',
|
|
53
329
|
code: types_1.ChainCosmosErrorCode.ErrOutOfGas,
|
|
330
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
54
331
|
},
|
|
55
332
|
'memo too large': {
|
|
56
333
|
message: 'The memo field in the transaction is too large',
|
|
57
334
|
code: types_1.ChainCosmosErrorCode.ErrMemoTooLarge,
|
|
335
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
58
336
|
},
|
|
59
337
|
'maximum number of signatures exceeded': {
|
|
60
338
|
message: 'The transaction exceeded the maximum number of signatures',
|
|
61
339
|
code: types_1.ChainCosmosErrorCode.ErrTooManySignatures,
|
|
340
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
62
341
|
},
|
|
63
342
|
'no signatures supplied': {
|
|
64
343
|
message: 'There are no signatures appended on the transaction',
|
|
65
344
|
code: types_1.ChainCosmosErrorCode.ErrNoSignatures,
|
|
345
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
66
346
|
},
|
|
67
347
|
'failed to marshal JSON bytes': {
|
|
68
348
|
message: 'There is an issue while parsing the transaction',
|
|
69
349
|
code: types_1.ChainCosmosErrorCode.ErrJSONMarshal,
|
|
350
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
70
351
|
},
|
|
71
352
|
'failed to unmarshal JSON bytes': {
|
|
72
353
|
message: 'There is an issue while parsing the transaction',
|
|
73
354
|
code: types_1.ChainCosmosErrorCode.ErrJSONUnmarshal,
|
|
355
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
74
356
|
},
|
|
75
357
|
'invalid request': {
|
|
76
358
|
message: 'invalid request',
|
|
77
359
|
code: types_1.ChainCosmosErrorCode.ErrInvalidRequest,
|
|
360
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
78
361
|
},
|
|
79
362
|
'tx already in mempool': {
|
|
80
363
|
message: 'The transaction is already in the mempool',
|
|
81
364
|
code: types_1.ChainCosmosErrorCode.ErrTxInMempoolCache,
|
|
365
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
82
366
|
},
|
|
83
367
|
'mempool is full': {
|
|
84
368
|
message: 'The mempool is full',
|
|
85
369
|
code: types_1.ChainCosmosErrorCode.ErrMempoolIsFull,
|
|
370
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
86
371
|
},
|
|
87
372
|
'tx too large': {
|
|
88
373
|
message: 'The transaction is too large',
|
|
89
374
|
code: types_1.ChainCosmosErrorCode.ErrTxTooLarge,
|
|
375
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
90
376
|
},
|
|
91
377
|
'key not found': {
|
|
92
378
|
message: 'The key has not been found',
|
|
93
379
|
code: types_1.ChainCosmosErrorCode.ErrKeyNotFound,
|
|
380
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
94
381
|
},
|
|
95
382
|
'invalid account password': {
|
|
96
383
|
message: 'invalid account password',
|
|
97
384
|
code: types_1.ChainCosmosErrorCode.ErrWrongPassword,
|
|
385
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
98
386
|
},
|
|
99
387
|
'tx intended signer does not match the given signer': {
|
|
100
388
|
message: 'tx intended signer does not match the given signer',
|
|
101
389
|
code: types_1.ChainCosmosErrorCode.ErrorInvalidSigner,
|
|
390
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
102
391
|
},
|
|
103
392
|
'invalid gas adjustment': {
|
|
104
393
|
message: 'invalid gas adjustment',
|
|
105
394
|
code: types_1.ChainCosmosErrorCode.ErrorInvalidGasAdjustment,
|
|
395
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
106
396
|
},
|
|
107
397
|
'invalid height': {
|
|
108
398
|
message: 'The height provided in the transaction is not valid',
|
|
109
399
|
code: types_1.ChainCosmosErrorCode.ErrInvalidHeight,
|
|
400
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
110
401
|
},
|
|
111
402
|
'invalid version': {
|
|
112
403
|
message: 'The version provided in the transaction is not valid',
|
|
113
404
|
code: types_1.ChainCosmosErrorCode.ErrInvalidVersion,
|
|
405
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
114
406
|
},
|
|
115
407
|
'invalid chain-id': {
|
|
116
408
|
message: 'The chainId provided in the transaction is not valid',
|
|
117
409
|
code: types_1.ChainCosmosErrorCode.ErrInvalidChainID,
|
|
410
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
118
411
|
},
|
|
119
412
|
'invalid type': {
|
|
120
413
|
message: 'The type provided in the transaction is not valid',
|
|
121
414
|
code: types_1.ChainCosmosErrorCode.ErrInvalidType,
|
|
415
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
122
416
|
},
|
|
123
417
|
'unknown extension options': {
|
|
124
418
|
message: 'The extension options provided in the transaction is unknown',
|
|
125
419
|
code: types_1.ChainCosmosErrorCode.ErrUnknownExtensionOptions,
|
|
420
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
126
421
|
},
|
|
127
422
|
'incorrect account sequence': {
|
|
128
423
|
message: 'The sequence number provided in the transaction is incorrect',
|
|
129
424
|
code: types_1.ChainCosmosErrorCode.ErrWrongSequence,
|
|
425
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
130
426
|
},
|
|
131
427
|
'failed packing protobuf message to Any': {
|
|
132
428
|
message: 'failed packing protobuf message to Any',
|
|
133
429
|
code: types_1.ChainCosmosErrorCode.ErrPackAny,
|
|
430
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
134
431
|
},
|
|
135
432
|
'failed unpacking protobuf message from Any': {
|
|
136
433
|
message: 'failed unpacking protobuf message from Any',
|
|
137
434
|
code: types_1.ChainCosmosErrorCode.ErrUnpackAny,
|
|
435
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
138
436
|
},
|
|
139
437
|
'internal logic error': {
|
|
140
438
|
message: 'Internal logic error',
|
|
141
439
|
code: types_1.ChainCosmosErrorCode.ErrLogic,
|
|
440
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
441
|
+
},
|
|
442
|
+
conflict: {
|
|
443
|
+
message: 'conflict',
|
|
444
|
+
code: types_1.ChainCosmosErrorCode.ErrConflict,
|
|
445
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
142
446
|
},
|
|
143
|
-
conflict: { message: 'conflict', code: types_1.ChainCosmosErrorCode.ErrConflict },
|
|
144
447
|
'feature not supported': {
|
|
145
448
|
message: 'The feature is not supported',
|
|
146
449
|
code: types_1.ChainCosmosErrorCode.ErrNotSupported,
|
|
450
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
451
|
+
},
|
|
452
|
+
'not found': {
|
|
453
|
+
message: 'not found',
|
|
454
|
+
code: types_1.ChainCosmosErrorCode.ErrNotFound,
|
|
455
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
147
456
|
},
|
|
148
|
-
'not found': { message: 'not found', code: types_1.ChainCosmosErrorCode.ErrNotFound },
|
|
149
457
|
'Internal IO error': {
|
|
150
458
|
message: 'Internal IO error',
|
|
151
459
|
code: types_1.ChainCosmosErrorCode.ErrIO,
|
|
460
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
152
461
|
},
|
|
153
462
|
'error in app.toml': {
|
|
154
463
|
message: 'error in app.toml',
|
|
155
464
|
code: types_1.ChainCosmosErrorCode.ErrAppConfig,
|
|
465
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
156
466
|
},
|
|
157
467
|
'invalid gas limit': {
|
|
158
468
|
message: 'The gas limit provided in the transaction is not valid',
|
|
159
469
|
code: types_1.ChainCosmosErrorCode.ErrInvalidGasLimit,
|
|
470
|
+
module: types_1.TransactionChainErrorModule.CosmosSdk,
|
|
160
471
|
},
|
|
161
472
|
// Auction Module Messages
|
|
162
473
|
'invalid bid denom': {
|
|
163
474
|
message: 'The gas limit provided in the transaction is not valid',
|
|
164
475
|
code: types_1.ChainAuctionErrorCodes.ErrBidInvalid,
|
|
476
|
+
module: types_1.TransactionChainErrorModule.Auction,
|
|
165
477
|
},
|
|
166
478
|
'invalid bid round': {
|
|
167
479
|
message: 'The gas limit provided in the transaction is not valid',
|
|
168
480
|
code: types_1.ChainAuctionErrorCodes.ErrBidRound,
|
|
481
|
+
module: types_1.TransactionChainErrorModule.Auction,
|
|
169
482
|
},
|
|
170
483
|
// Insurance Module Messages
|
|
171
484
|
'insurance fund already exists': {
|
|
172
485
|
message: 'The insurance fund already exists',
|
|
173
486
|
code: types_1.ChainInsuranceErrorCodes.ErrInsuranceFundAlreadyExists,
|
|
487
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
174
488
|
},
|
|
175
489
|
'insurance fund not found': {
|
|
176
490
|
message: 'The insurance fund is not found',
|
|
177
491
|
code: types_1.ChainInsuranceErrorCodes.ErrInsuranceFundNotFound,
|
|
492
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
178
493
|
},
|
|
179
494
|
'redemption already exists': {
|
|
180
495
|
message: 'The redemption already exists',
|
|
181
496
|
code: types_1.ChainInsuranceErrorCodes.ErrRedemptionAlreadyExists,
|
|
497
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
182
498
|
},
|
|
183
499
|
'invalid deposit amount': {
|
|
184
500
|
message: 'The deposit amount is not valid',
|
|
185
501
|
code: types_1.ChainInsuranceErrorCodes.ErrInvalidDepositAmount,
|
|
502
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
186
503
|
},
|
|
187
504
|
'invalid deposit denom': {
|
|
188
505
|
message: 'The deposit denom is not valid',
|
|
189
506
|
code: types_1.ChainInsuranceErrorCodes.ErrInvalidDepositDenom,
|
|
507
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
190
508
|
},
|
|
191
509
|
'insurance payout exceeds deposits': {
|
|
192
510
|
message: 'The insurance fund payout exceeds the deposits',
|
|
193
511
|
code: types_1.ChainInsuranceErrorCodes.ErrPayoutTooLarge,
|
|
512
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
194
513
|
},
|
|
195
514
|
'invalid ticker': {
|
|
196
515
|
message: 'The ticker is not valid',
|
|
197
516
|
code: types_1.ChainInsuranceErrorCodes.ErrInvalidTicker,
|
|
517
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
198
518
|
},
|
|
199
519
|
'invalid quote denom': {
|
|
200
520
|
message: 'The quote denom is not valid',
|
|
201
521
|
code: types_1.ChainInsuranceErrorCodes.ErrInvalidQuoteDenom,
|
|
522
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
202
523
|
},
|
|
203
524
|
'invalid oracle': {
|
|
204
525
|
message: 'The oracle is not valid',
|
|
205
526
|
code: types_1.ChainInsuranceErrorCodes.ErrInvalidOracle,
|
|
527
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
206
528
|
},
|
|
207
529
|
'invalid expiration time': {
|
|
208
530
|
message: 'The expiration time is not valid',
|
|
209
531
|
code: types_1.ChainInsuranceErrorCodes.ErrInvalidExpirationTime,
|
|
532
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
210
533
|
},
|
|
211
534
|
'invalid marketID': {
|
|
212
535
|
message: 'The marketId is not valid',
|
|
213
536
|
code: types_1.ChainInsuranceErrorCodes.ErrInvalidMarketID,
|
|
537
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
214
538
|
},
|
|
215
539
|
'invalid share denom': {
|
|
216
540
|
message: 'The share denom is not valid',
|
|
217
541
|
code: types_1.ChainInsuranceErrorCodes.ErrInvalidShareDenom,
|
|
542
|
+
module: types_1.TransactionChainErrorModule.Insurance,
|
|
218
543
|
},
|
|
219
544
|
// Exchange Module Messages
|
|
220
545
|
'failed to validate order': {
|
|
221
546
|
message: 'Your order failed to validate',
|
|
222
547
|
code: types_1.ChainExchangeModuleErrorCode.ErrOrderInvalid,
|
|
548
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
223
549
|
},
|
|
224
550
|
'spot market not found': {
|
|
225
551
|
message: 'The spot market has not been found',
|
|
226
552
|
code: types_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound,
|
|
553
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
227
554
|
},
|
|
228
555
|
'spot market exists': {
|
|
229
556
|
message: 'The spot market already exists',
|
|
230
557
|
code: types_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists,
|
|
558
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
231
559
|
},
|
|
232
560
|
'struct field error': {
|
|
233
561
|
message: 'There is an issue with your order',
|
|
234
562
|
code: types_1.ChainExchangeModuleErrorCode.ErrBadField,
|
|
563
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
235
564
|
},
|
|
236
565
|
'failed to validate market': {
|
|
237
566
|
message: 'The market failed to validate',
|
|
238
567
|
code: types_1.ChainExchangeModuleErrorCode.ErrMarketInvalid,
|
|
568
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
239
569
|
},
|
|
240
570
|
'subaccount has insufficient deposits': {
|
|
241
571
|
message: 'Your trading account has insufficient funds',
|
|
242
572
|
code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientDeposit,
|
|
573
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
243
574
|
},
|
|
244
575
|
'unrecognized order type': {
|
|
245
576
|
message: 'The order type is not recognized',
|
|
246
577
|
code: types_1.ChainExchangeModuleErrorCode.ErrUnrecognizedOrderType,
|
|
578
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
247
579
|
},
|
|
248
580
|
'position quantity insufficient for order': {
|
|
249
581
|
message: 'The position quantity is insufficient for the order',
|
|
250
582
|
code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientPositionQuantity,
|
|
583
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
251
584
|
},
|
|
252
585
|
'order hash is not valid': {
|
|
253
586
|
message: 'The order hash is not valid',
|
|
254
587
|
code: types_1.ChainExchangeModuleErrorCode.ErrOrderHashInvalid,
|
|
588
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
255
589
|
},
|
|
256
590
|
'subaccount id is not valid': {
|
|
257
591
|
message: 'The subaccount id is not valid',
|
|
258
592
|
code: types_1.ChainExchangeModuleErrorCode.ErrBadSubaccountID,
|
|
593
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
259
594
|
},
|
|
260
595
|
'invalid base denom': {
|
|
261
596
|
message: '',
|
|
262
597
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidBaseDenom,
|
|
598
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
263
599
|
},
|
|
264
600
|
'invalid expiry': {
|
|
265
601
|
message: 'The expiry date is not valid',
|
|
266
602
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidExpiry,
|
|
603
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
267
604
|
},
|
|
268
605
|
'invalid price': {
|
|
269
606
|
message: 'The price is not valid',
|
|
270
607
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidPrice,
|
|
608
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
271
609
|
},
|
|
272
610
|
'invalid quantity': {
|
|
273
611
|
message: 'The quantity is not valid',
|
|
274
612
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantity,
|
|
613
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
275
614
|
},
|
|
276
615
|
'unsupported oracle type': {
|
|
277
616
|
message: 'The oracle type is not supported',
|
|
278
617
|
code: types_1.ChainExchangeModuleErrorCode.ErrUnsupportedOracleType,
|
|
618
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
279
619
|
},
|
|
280
620
|
'order doesnt exist': {
|
|
281
621
|
message: 'The order does not exist',
|
|
282
622
|
code: types_1.ChainExchangeModuleErrorCode.ErrOrderDoesntExist,
|
|
623
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
283
624
|
},
|
|
284
625
|
'spot limit orderbook fill invalid': {
|
|
285
626
|
message: '',
|
|
286
627
|
code: types_1.ChainExchangeModuleErrorCode.ErrOrderbookFillInvalid,
|
|
628
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
287
629
|
},
|
|
288
630
|
'perpetual market exists': {
|
|
289
631
|
message: 'The perpetual market already exists',
|
|
290
632
|
code: types_1.ChainExchangeModuleErrorCode.ErrPerpetualMarketExists,
|
|
633
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
291
634
|
},
|
|
292
635
|
'expiry futures market exists': {
|
|
293
636
|
message: 'The expiry futures market market already exists',
|
|
294
637
|
code: types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExists,
|
|
638
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
295
639
|
},
|
|
296
640
|
'expiry futures market expired': {
|
|
297
641
|
message: 'The expiry futures market has expired',
|
|
298
642
|
code: types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExpired,
|
|
643
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
299
644
|
},
|
|
300
645
|
'no liquidity on the orderbook': {
|
|
301
646
|
message: 'There is not enough liquidity',
|
|
302
647
|
code: types_1.ChainExchangeModuleErrorCode.ErrNoLiquidity,
|
|
648
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
303
649
|
},
|
|
304
650
|
'orderbook liquidity cannot satisfy current worst price': {
|
|
305
651
|
message: 'There is not enough liquidity',
|
|
306
652
|
code: types_1.ChainExchangeModuleErrorCode.ErrSlippageExceedsWorstPrice,
|
|
653
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
307
654
|
},
|
|
308
655
|
'order has insufficient margin': {
|
|
309
656
|
message: 'The order has insufficient margin',
|
|
310
657
|
code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientOrderMargin,
|
|
658
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
311
659
|
},
|
|
312
660
|
'derivative market not found': {
|
|
313
661
|
message: 'The derivative market cannot be found',
|
|
314
662
|
code: types_1.ChainExchangeModuleErrorCode.ErrDerivativeMarketNotFound,
|
|
663
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
315
664
|
},
|
|
316
665
|
'position not found': {
|
|
317
666
|
message: 'The position cannot be found',
|
|
318
667
|
code: types_1.ChainExchangeModuleErrorCode.ErrPositionNotFound,
|
|
668
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
319
669
|
},
|
|
320
670
|
'position direction does not oppose the reduce-only order': {
|
|
321
671
|
message: 'Position direction does not oppose the reduce-only order',
|
|
322
672
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidReduceOnlyPositionDirection,
|
|
673
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
323
674
|
},
|
|
324
675
|
'price surpasses bankruptcy price': {
|
|
325
676
|
message: 'Your order price surpasses bankruptcy price',
|
|
326
677
|
code: types_1.ChainExchangeModuleErrorCode.ErrPriceSurpassesBankruptcyPrice,
|
|
678
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
327
679
|
},
|
|
328
680
|
'position not liquidable': {
|
|
329
681
|
message: 'The position is not liquidable',
|
|
330
682
|
code: types_1.ChainExchangeModuleErrorCode.ErrPositionNotLiquidable,
|
|
683
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
331
684
|
},
|
|
332
685
|
'invalid trigger price': {
|
|
333
686
|
message: 'Your order trigger price is not valid',
|
|
334
687
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTriggerPrice,
|
|
688
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
335
689
|
},
|
|
336
690
|
'invalid oracle type': {
|
|
337
691
|
message: 'The oracle type is not valid',
|
|
338
692
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidOracleType,
|
|
693
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
339
694
|
},
|
|
340
695
|
'invalid minimum price tick size': {
|
|
341
696
|
message: 'The minimum price tick size is not valid',
|
|
342
697
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidPriceTickSize,
|
|
698
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
343
699
|
},
|
|
344
700
|
'invalid minimum quantity tick size': {
|
|
345
701
|
message: 'The minimum quantity tick size is not valid',
|
|
346
702
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantityTickSize,
|
|
703
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
347
704
|
},
|
|
348
705
|
'invalid minimum order margin': {
|
|
349
706
|
message: "Your order's minimum margin is not valid ",
|
|
350
707
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMargin,
|
|
708
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
351
709
|
},
|
|
352
710
|
'exceeds order side count': {
|
|
353
711
|
message: 'You cannot have more orders for this market for this direction',
|
|
354
712
|
code: types_1.ChainExchangeModuleErrorCode.ErrExceedsOrderSideCount,
|
|
713
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
355
714
|
},
|
|
356
715
|
'subaccount cannot place a market order when a market order in the same market was already placed in same block': {
|
|
357
716
|
message: 'You cannot place another market order within this block',
|
|
358
717
|
code: types_1.ChainExchangeModuleErrorCode.ErrMarketOrderAlreadyExists,
|
|
718
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
359
719
|
},
|
|
360
720
|
'cannot place a conditional market order when a conditional market order in same relative direction already exists': {
|
|
361
721
|
message: 'You cannot place another conditional market order',
|
|
362
722
|
code: types_1.ChainExchangeModuleErrorCode.ErrConditionalMarketOrderAlreadyExists,
|
|
723
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
363
724
|
},
|
|
364
725
|
'an equivalent market launch proposal already exists.': {
|
|
365
726
|
message: 'There is an existing equivalent market launch proposal.',
|
|
366
727
|
code: types_1.ChainExchangeModuleErrorCode.ErrMarketLaunchProposalAlreadyExists,
|
|
728
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
367
729
|
},
|
|
368
730
|
'invalid market status': {
|
|
369
731
|
message: 'The market status is not valid',
|
|
370
732
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketStatus,
|
|
733
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
371
734
|
},
|
|
372
735
|
'base denom cannot be same with quote denom': {
|
|
373
736
|
message: 'The base denom and quote denom cannot be same',
|
|
374
737
|
code: types_1.ChainExchangeModuleErrorCode.ErrSameDenoms,
|
|
738
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
375
739
|
},
|
|
376
740
|
'oracle base cannot be same with oracle quote': {
|
|
377
741
|
message: 'The oracle base and the oracle quote cannot be the same',
|
|
378
742
|
code: types_1.ChainExchangeModuleErrorCode.ErrSameOracles,
|
|
743
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
379
744
|
},
|
|
380
745
|
'makerfeerate does not match takerfeeeate requirements': {
|
|
381
746
|
message: 'The MakerFeeRate does not match TakerFeeRate requirements',
|
|
382
747
|
code: types_1.ChainExchangeModuleErrorCode.ErrFeeRatesRelation,
|
|
748
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
383
749
|
},
|
|
384
750
|
'maintenancemarginratio cannot be greater than initialmarginratio': {
|
|
385
751
|
message: 'The MaintenanceMarginRatio cannot be greater than InitialMarginRatio',
|
|
386
752
|
code: types_1.ChainExchangeModuleErrorCode.ErrMarginsRelation,
|
|
753
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
387
754
|
},
|
|
388
755
|
'oraclescalefactor cannot be greater than maxoraclescalefactor': {
|
|
389
756
|
message: 'The OracleScaleFactor cannot be greater than MaxOracleScaleFactor',
|
|
390
757
|
code: types_1.ChainExchangeModuleErrorCode.ErrExceedsMaxOracleScaleFactor,
|
|
758
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
391
759
|
},
|
|
392
760
|
'spot exchange is not enabled yet': {
|
|
393
761
|
message: 'Spot exchange is not enabled yet',
|
|
394
762
|
code: types_1.ChainExchangeModuleErrorCode.ErrSpotExchangeNotEnabled,
|
|
763
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
395
764
|
},
|
|
396
765
|
'derivatives exchange is not enabled yet': {
|
|
397
766
|
message: 'Derivatives exchange is not enabled yet',
|
|
398
767
|
code: types_1.ChainExchangeModuleErrorCode.ErrDerivativesExchangeNotEnabled,
|
|
768
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
399
769
|
},
|
|
400
770
|
'oracle price delta exceeds threshold': {
|
|
401
771
|
message: 'The oracle price delta exceeds threshold',
|
|
402
772
|
code: types_1.ChainExchangeModuleErrorCode.ErrOraclePriceDeltaExceedsThreshold,
|
|
773
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
403
774
|
},
|
|
404
775
|
'invalid hourly interest rate': {
|
|
405
776
|
message: 'The hourly interest rate is not valid',
|
|
406
777
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyInterestRate,
|
|
778
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
407
779
|
},
|
|
408
780
|
'invalid hourly funding rate cap': {
|
|
409
781
|
message: 'The hourly funding rate cap is not valid',
|
|
410
782
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyFundingRateCap,
|
|
783
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
411
784
|
},
|
|
412
785
|
'only perpetual markets can update funding parameters': {
|
|
413
786
|
message: 'You can only update funding parameters on perpetual markets.',
|
|
414
787
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketFundingParamUpdate,
|
|
788
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
415
789
|
},
|
|
416
790
|
'invalid trading reward campaign': {
|
|
417
791
|
message: 'The trading reward campaign is not valid',
|
|
418
792
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardCampaign,
|
|
793
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
419
794
|
},
|
|
420
795
|
'invalid fee discount schedule': {
|
|
421
796
|
message: 'The fee discount schedule is not valid',
|
|
422
797
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidFeeDiscountSchedule,
|
|
798
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
423
799
|
},
|
|
424
800
|
'invalid liquidation order': {
|
|
425
801
|
message: 'The liquidation order is not valid',
|
|
426
802
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidLiquidationOrder,
|
|
803
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
427
804
|
},
|
|
428
805
|
'unknown error happened for campaign distributions': {
|
|
429
806
|
message: 'Unknown error happened for campaign distributions',
|
|
430
807
|
code: types_1.ChainExchangeModuleErrorCode.ErrTradingRewardCampaignDistributionError,
|
|
808
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
431
809
|
},
|
|
432
810
|
'invalid trading reward points update': {
|
|
433
811
|
message: 'The updated trading reward points is not valid',
|
|
434
812
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardsPendingPointsUpdate,
|
|
813
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
435
814
|
},
|
|
436
815
|
'invalid batch msg update': {
|
|
437
816
|
message: 'The MsgBatchUpdate is not valid',
|
|
438
817
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidBatchMsgUpdate,
|
|
818
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
439
819
|
},
|
|
440
820
|
'post-only order exceeds top of book price': {
|
|
441
821
|
message: 'The post-only order price exceeds top of the orderbook price',
|
|
442
822
|
code: types_1.ChainExchangeModuleErrorCode.ErrExceedsTopOfBookPrice,
|
|
823
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
443
824
|
},
|
|
444
825
|
'order type not supported for given message': {
|
|
445
826
|
message: 'The order type is not supported for this message',
|
|
446
827
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidOrderTypeForMessage,
|
|
828
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
447
829
|
},
|
|
448
830
|
'sender must match dmm account': {
|
|
449
831
|
message: 'The sender must match the DMM address',
|
|
450
832
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidDMMSender,
|
|
833
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
451
834
|
},
|
|
452
835
|
'already opted out of rewards': {
|
|
453
836
|
message: 'The DMM address already opted out of rewards',
|
|
454
837
|
code: types_1.ChainExchangeModuleErrorCode.ErrAlreadyOptedOutOfRewards,
|
|
838
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
455
839
|
},
|
|
456
840
|
'invalid margin ratio': {
|
|
457
841
|
message: 'The margin ratio is not valid',
|
|
458
842
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarginRatio,
|
|
843
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
459
844
|
},
|
|
460
845
|
'provided funds are below minimum': {
|
|
461
846
|
message: 'The provided funds are below minimum',
|
|
462
847
|
code: types_1.ChainExchangeModuleErrorCode.ErrBelowMinimalContribution,
|
|
848
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
463
849
|
},
|
|
464
850
|
'position is below initial margin requirement': {
|
|
465
851
|
message: 'The position is below initial margin requirement',
|
|
466
852
|
code: types_1.ChainExchangeModuleErrorCode.ErrLowPositionMargin,
|
|
853
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
467
854
|
},
|
|
468
855
|
'pool has non-positive total lp token supply': {
|
|
469
856
|
message: 'The pool has non-positive total LP token supply',
|
|
470
857
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTotalSupply,
|
|
858
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
471
859
|
},
|
|
472
860
|
'passed lp token burn amount is greater than total lp token supply': {
|
|
473
861
|
message: 'The passed LP token burn amount is greater than total LP token supply',
|
|
474
862
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidLpTokenBurnAmount,
|
|
863
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
475
864
|
},
|
|
476
865
|
'unsupported action': {
|
|
477
866
|
message: 'This action is not supported',
|
|
478
867
|
code: types_1.ChainExchangeModuleErrorCode.ErrUnsupportedAction,
|
|
868
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
479
869
|
},
|
|
480
870
|
'position quantity cannot be negative': {
|
|
481
871
|
message: 'The position quantity cannot be negative',
|
|
482
872
|
code: types_1.ChainExchangeModuleErrorCode.ErrNegativePositionQuantity,
|
|
873
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
483
874
|
},
|
|
484
875
|
'binary options market exists': {
|
|
485
876
|
message: 'The BinaryOptions market already exists',
|
|
486
877
|
code: types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketExists,
|
|
878
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
487
879
|
},
|
|
488
880
|
'binary options market not found': {
|
|
489
881
|
message: 'The BinaryOptions market cannot be found',
|
|
490
882
|
code: types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketNotFound,
|
|
883
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
491
884
|
},
|
|
492
885
|
'invalid settlement': {
|
|
493
886
|
message: 'The settlement price is not valid',
|
|
494
887
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidSettlement,
|
|
888
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
495
889
|
},
|
|
496
890
|
'account doesnt exist': {
|
|
497
891
|
message: 'The trading account does not exist',
|
|
498
892
|
code: types_1.ChainExchangeModuleErrorCode.ErrAccountDoesntExist,
|
|
893
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
499
894
|
},
|
|
500
895
|
'sender should be a market admin': {
|
|
501
896
|
message: 'The sender should be the admin of the market',
|
|
502
897
|
code: types_1.ChainExchangeModuleErrorCode.ErrSenderIsNotAnAdmin,
|
|
898
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
503
899
|
},
|
|
504
900
|
'market is already scheduled to settle': {
|
|
505
901
|
message: 'The market is already scheduled to settle ',
|
|
506
902
|
code: types_1.ChainExchangeModuleErrorCode.ErrMarketAlreadyScheduledToSettle,
|
|
903
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
507
904
|
},
|
|
508
905
|
'market not found': {
|
|
509
906
|
message: 'The market cannot be found',
|
|
510
907
|
code: types_1.ChainExchangeModuleErrorCode.ErrGenericMarketNotFound,
|
|
908
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
511
909
|
},
|
|
512
910
|
'denom decimal cannot be below 1 or above max scale factor': {
|
|
513
911
|
message: 'The denom decimal cannot be below 1 or above max scale factor',
|
|
514
912
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidDenomDecimal,
|
|
913
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
515
914
|
},
|
|
516
915
|
'state is invalid': {
|
|
517
916
|
message: 'The state is not valid',
|
|
518
917
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidState,
|
|
918
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
519
919
|
},
|
|
520
920
|
'transient orders up to cancellation not supported': {
|
|
521
921
|
message: 'The transient orders up to cancellation not supported',
|
|
522
922
|
code: types_1.ChainExchangeModuleErrorCode.ErrTransientOrdersUpToCancelNotSupported,
|
|
923
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
523
924
|
},
|
|
524
925
|
'invalid trade': {
|
|
525
926
|
message: 'The trade is not valid',
|
|
526
927
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTrade,
|
|
928
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
527
929
|
},
|
|
528
930
|
'no margin locked in subaccount': {
|
|
529
931
|
message: 'There is no margin locked in the trading account',
|
|
530
932
|
code: types_1.ChainExchangeModuleErrorCode.ErrNoMarginLocked,
|
|
933
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
531
934
|
},
|
|
532
935
|
'Invalid access level to perform action': {
|
|
533
936
|
message: 'There is no access to perform action',
|
|
534
937
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel,
|
|
938
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
535
939
|
},
|
|
536
940
|
'Invalid address': {
|
|
537
941
|
message: 'The address is not valid',
|
|
538
942
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidAddress,
|
|
943
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
539
944
|
},
|
|
540
945
|
'Invalid argument': {
|
|
541
946
|
message: 'The argument is not valid',
|
|
542
947
|
code: types_1.ChainExchangeModuleErrorCode.ErrInvalidArgument,
|
|
948
|
+
module: types_1.TransactionChainErrorModule.Exchange,
|
|
543
949
|
},
|
|
544
950
|
};
|
|
545
|
-
exports.chainCodeErrorMessagesMap = {
|
|
546
|
-
[types_1.ChainCosmosErrorCode.ErrInsufficientFee]: 'You do not have enough funds to cover the transaction fees.',
|
|
547
|
-
[types_1.ChainCosmosErrorCode.ErrInsufficientFunds]: 'You do not have enough funds.',
|
|
548
|
-
[types_1.ChainCosmosErrorCode.ErrTxTimeoutHeight]: 'The transaction failed to be included within a block on time.',
|
|
549
|
-
[types_1.ChainCosmosErrorCode.ErrTxDecode]: 'There is an issue while parsing the transaction',
|
|
550
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidSequence]: 'The sequence number is not valid',
|
|
551
|
-
[types_1.ChainCosmosErrorCode.ErrUnauthorized]: 'Unauthorized',
|
|
552
|
-
[types_1.ChainCosmosErrorCode.ErrUnknownRequest]: 'The request is not known',
|
|
553
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidAddress]: 'The address is not valid',
|
|
554
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidPubKey]: 'The public key is not valid',
|
|
555
|
-
[types_1.ChainCosmosErrorCode.ErrUnknownAddress]: 'The address is unknown',
|
|
556
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidCoins]: 'The coins are not valid',
|
|
557
|
-
[types_1.ChainCosmosErrorCode.ErrOutOfGas]: 'The transaction run out of gas',
|
|
558
|
-
[types_1.ChainCosmosErrorCode.ErrMemoTooLarge]: 'The memo field in the transaction is too large',
|
|
559
|
-
[types_1.ChainCosmosErrorCode.ErrTooManySignatures]: 'The transaction exceeded the maximum number of signatures',
|
|
560
|
-
[types_1.ChainCosmosErrorCode.ErrNoSignatures]: 'There are no signatures appended on the transaction',
|
|
561
|
-
[types_1.ChainCosmosErrorCode.ErrJSONMarshal]: 'There is an issue while parsing the transaction',
|
|
562
|
-
[types_1.ChainCosmosErrorCode.ErrJSONUnmarshal]: 'There is an issue while parsing the transaction',
|
|
563
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidRequest]: 'invalid request',
|
|
564
|
-
[types_1.ChainCosmosErrorCode.ErrTxInMempoolCache]: 'The transaction is already in the mempool',
|
|
565
|
-
[types_1.ChainCosmosErrorCode.ErrMempoolIsFull]: 'The mempool is full',
|
|
566
|
-
[types_1.ChainCosmosErrorCode.ErrTxTooLarge]: 'The transaction is too large',
|
|
567
|
-
[types_1.ChainCosmosErrorCode.ErrKeyNotFound]: 'The key has not been found',
|
|
568
|
-
[types_1.ChainCosmosErrorCode.ErrWrongPassword]: 'invalid account password',
|
|
569
|
-
[types_1.ChainCosmosErrorCode.ErrorInvalidSigner]: 'tx intended signer does not match the given signer',
|
|
570
|
-
[types_1.ChainCosmosErrorCode.ErrorInvalidGasAdjustment]: 'invalid gas adjustment',
|
|
571
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidHeight]: 'The height provided in the transaction is not valid',
|
|
572
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidVersion]: 'The version provided in the transaction is not valid',
|
|
573
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidChainID]: 'The chainId provided in the transaction is not valid',
|
|
574
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidType]: 'The type provided in the transaction is not valid',
|
|
575
|
-
[types_1.ChainCosmosErrorCode.ErrUnknownExtensionOptions]: 'The extension options provided in the transaction is unknown',
|
|
576
|
-
[types_1.ChainCosmosErrorCode.ErrWrongSequence]: 'The sequence number provided in the transaction is incorrect',
|
|
577
|
-
[types_1.ChainCosmosErrorCode.ErrPackAny]: 'failed packing protobuf message to Any',
|
|
578
|
-
[types_1.ChainCosmosErrorCode.ErrUnpackAny]: 'failed unpacking protobuf message from Any',
|
|
579
|
-
[types_1.ChainCosmosErrorCode.ErrLogic]: 'Internal logic error',
|
|
580
|
-
[types_1.ChainCosmosErrorCode.ErrConflict]: 'conflict',
|
|
581
|
-
[types_1.ChainCosmosErrorCode.ErrNotSupported]: 'The feature is not supported',
|
|
582
|
-
[types_1.ChainCosmosErrorCode.ErrNotFound]: 'not found',
|
|
583
|
-
[types_1.ChainCosmosErrorCode.ErrIO]: 'Internal IO error',
|
|
584
|
-
[types_1.ChainCosmosErrorCode.ErrAppConfig]: 'error in app.toml',
|
|
585
|
-
[types_1.ChainCosmosErrorCode.ErrInvalidGasLimit]: 'The gas limit provided in the transaction is not valid',
|
|
586
|
-
// Auction Module Messages
|
|
587
|
-
[types_1.ChainAuctionErrorCodes.ErrBidInvalid]: 'The gas limit provided in the transaction is not valid',
|
|
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
|
|
603
|
-
[types_1.ChainExchangeModuleErrorCode.ErrOrderInvalid]: 'Your order failed to validate',
|
|
604
|
-
[types_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound]: 'The spot market has not been found',
|
|
605
|
-
[types_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists]: 'The spot market already exists',
|
|
606
|
-
[types_1.ChainExchangeModuleErrorCode.ErrBadField]: 'There is an issue with your order',
|
|
607
|
-
[types_1.ChainExchangeModuleErrorCode.ErrMarketInvalid]: 'The market failed to validate',
|
|
608
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInsufficientDeposit]: 'Your trading account has insufficient funds',
|
|
609
|
-
[types_1.ChainExchangeModuleErrorCode.ErrUnrecognizedOrderType]: 'The order type is not recognized',
|
|
610
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInsufficientPositionQuantity]: 'The position quantity is insufficient for the order',
|
|
611
|
-
[types_1.ChainExchangeModuleErrorCode.ErrOrderHashInvalid]: 'The order hash is not valid',
|
|
612
|
-
[types_1.ChainExchangeModuleErrorCode.ErrBadSubaccountID]: 'The subaccount id is not valid',
|
|
613
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidBaseDenom]: '',
|
|
614
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidExpiry]: 'The expiry date is not valid',
|
|
615
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidPrice]: 'The price is not valid',
|
|
616
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantity]: 'The quantity is not valid',
|
|
617
|
-
[types_1.ChainExchangeModuleErrorCode.ErrUnsupportedOracleType]: 'The oracle type is not supported',
|
|
618
|
-
[types_1.ChainExchangeModuleErrorCode.ErrOrderDoesntExist]: 'The order does not exist',
|
|
619
|
-
[types_1.ChainExchangeModuleErrorCode.ErrOrderbookFillInvalid]: '',
|
|
620
|
-
[types_1.ChainExchangeModuleErrorCode.ErrPerpetualMarketExists]: 'The perpetual market already exists',
|
|
621
|
-
[types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExists]: 'The expiry futures market market already exists',
|
|
622
|
-
[types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExpired]: 'The expiry futures market has expired',
|
|
623
|
-
[types_1.ChainExchangeModuleErrorCode.ErrNoLiquidity]: 'There is not enough liquidity',
|
|
624
|
-
[types_1.ChainExchangeModuleErrorCode.ErrSlippageExceedsWorstPrice]: 'There is not enough liquidity',
|
|
625
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInsufficientOrderMargin]: 'The order has insufficient margin',
|
|
626
|
-
[types_1.ChainExchangeModuleErrorCode.ErrDerivativeMarketNotFound]: 'The derivative market cannot be found',
|
|
627
|
-
[types_1.ChainExchangeModuleErrorCode.ErrPositionNotFound]: 'The position cannot be found',
|
|
628
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidReduceOnlyPositionDirection]: 'Position direction does not oppose the reduce-only order',
|
|
629
|
-
[types_1.ChainExchangeModuleErrorCode.ErrPriceSurpassesBankruptcyPrice]: 'Your order price surpasses bankruptcy price',
|
|
630
|
-
[types_1.ChainExchangeModuleErrorCode.ErrPositionNotLiquidable]: 'The position is not liquidable',
|
|
631
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTriggerPrice]: 'Your order trigger price is not valid',
|
|
632
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidOracleType]: 'The oracle type is not valid',
|
|
633
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidPriceTickSize]: 'The minimum price tick size is not valid',
|
|
634
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantityTickSize]: 'The minimum quantity tick size is not valid',
|
|
635
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidMargin]: "Your order's minimum margin is not valid ",
|
|
636
|
-
[types_1.ChainExchangeModuleErrorCode.ErrExceedsOrderSideCount]: 'You cannot have more orders for this market for this direction',
|
|
637
|
-
[types_1.ChainExchangeModuleErrorCode.ErrMarketOrderAlreadyExists]: 'You cannot place another market order within this block',
|
|
638
|
-
[types_1.ChainExchangeModuleErrorCode.ErrConditionalMarketOrderAlreadyExists]: 'You cannot place another conditional market order',
|
|
639
|
-
[types_1.ChainExchangeModuleErrorCode.ErrMarketLaunchProposalAlreadyExists]: 'There is an existing equivalent market launch proposal.',
|
|
640
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketStatus]: 'The market status is not valid',
|
|
641
|
-
[types_1.ChainExchangeModuleErrorCode.ErrSameDenoms]: 'The base denom and quote denom cannot be same',
|
|
642
|
-
[types_1.ChainExchangeModuleErrorCode.ErrSameOracles]: 'The oracle base and the oracle quote cannot be the same',
|
|
643
|
-
[types_1.ChainExchangeModuleErrorCode.ErrFeeRatesRelation]: 'The MakerFeeRate does not match TakerFeeRate requirements',
|
|
644
|
-
[types_1.ChainExchangeModuleErrorCode.ErrMarginsRelation]: 'The MaintenanceMarginRatio cannot be greater than InitialMarginRatio',
|
|
645
|
-
[types_1.ChainExchangeModuleErrorCode.ErrExceedsMaxOracleScaleFactor]: 'The OracleScaleFactor cannot be greater than MaxOracleScaleFactor',
|
|
646
|
-
[types_1.ChainExchangeModuleErrorCode.ErrSpotExchangeNotEnabled]: 'Spot exchange is not enabled yet',
|
|
647
|
-
[types_1.ChainExchangeModuleErrorCode.ErrDerivativesExchangeNotEnabled]: 'Derivatives exchange is not enabled yet',
|
|
648
|
-
[types_1.ChainExchangeModuleErrorCode.ErrOraclePriceDeltaExceedsThreshold]: 'The oracle price delta exceeds threshold',
|
|
649
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyInterestRate]: 'The hourly interest rate is not valid',
|
|
650
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyFundingRateCap]: 'The hourly funding rate cap is not valid',
|
|
651
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketFundingParamUpdate]: 'You can only update funding parameters on perpetual markets.',
|
|
652
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardCampaign]: 'The trading reward campaign is not valid',
|
|
653
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidFeeDiscountSchedule]: 'The fee discount schedule is not valid',
|
|
654
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidLiquidationOrder]: 'The liquidation order is not valid',
|
|
655
|
-
[types_1.ChainExchangeModuleErrorCode.ErrTradingRewardCampaignDistributionError]: 'Unknown error happened for campaign distributions',
|
|
656
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardsPendingPointsUpdate]: 'The updated trading reward points is not valid',
|
|
657
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidBatchMsgUpdate]: 'The MsgBatchUpdate is not valid',
|
|
658
|
-
[types_1.ChainExchangeModuleErrorCode.ErrExceedsTopOfBookPrice]: 'The post-only order price exceeds top of the orderbook price',
|
|
659
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidOrderTypeForMessage]: 'The order type is not supported for this message',
|
|
660
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidDMMSender]: 'The sender must match the DMM address',
|
|
661
|
-
[types_1.ChainExchangeModuleErrorCode.ErrAlreadyOptedOutOfRewards]: 'The DMM address already opted out of rewards',
|
|
662
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidMarginRatio]: 'The margin ratio is not valid',
|
|
663
|
-
[types_1.ChainExchangeModuleErrorCode.ErrBelowMinimalContribution]: 'The provided funds are below minimum',
|
|
664
|
-
[types_1.ChainExchangeModuleErrorCode.ErrLowPositionMargin]: 'The position is below initial margin requirement',
|
|
665
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTotalSupply]: 'The pool has non-positive total LP token supply',
|
|
666
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidLpTokenBurnAmount]: 'The passed LP token burn amount is greater than total LP token supply',
|
|
667
|
-
[types_1.ChainExchangeModuleErrorCode.ErrUnsupportedAction]: 'This action is not supported',
|
|
668
|
-
[types_1.ChainExchangeModuleErrorCode.ErrNegativePositionQuantity]: 'The position quantity cannot be negative',
|
|
669
|
-
[types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketExists]: 'The BinaryOptions market already exists',
|
|
670
|
-
[types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketNotFound]: 'The BinaryOptions market cannot be found',
|
|
671
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidSettlement]: 'The settlement price is not valid',
|
|
672
|
-
[types_1.ChainExchangeModuleErrorCode.ErrAccountDoesntExist]: 'The trading account does not exist',
|
|
673
|
-
[types_1.ChainExchangeModuleErrorCode.ErrSenderIsNotAnAdmin]: 'The sender should be the admin of the market',
|
|
674
|
-
[types_1.ChainExchangeModuleErrorCode.ErrMarketAlreadyScheduledToSettle]: 'The market is already scheduled to settle ',
|
|
675
|
-
[types_1.ChainExchangeModuleErrorCode.ErrGenericMarketNotFound]: 'The market cannot be found',
|
|
676
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidDenomDecimal]: 'The denom decimal cannot be below 1 or above max scale factor',
|
|
677
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidState]: 'The state is not valid',
|
|
678
|
-
[types_1.ChainExchangeModuleErrorCode.ErrTransientOrdersUpToCancelNotSupported]: 'The transient orders up to cancellation not supported',
|
|
679
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidTrade]: 'The trade is not valid',
|
|
680
|
-
[types_1.ChainExchangeModuleErrorCode.ErrNoMarginLocked]: 'There is no margin locked in the trading account',
|
|
681
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel]: 'There is no access to perform action',
|
|
682
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidAddress]: 'The address is not valid',
|
|
683
|
-
[types_1.ChainExchangeModuleErrorCode.ErrInvalidArgument]: 'The argument is not valid',
|
|
684
|
-
};
|
|
685
951
|
//# sourceMappingURL=messages.js.map
|