@injectivelabs/exceptions 1.14.17-beta.2 → 1.14.17

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 (181) hide show
  1. package/dist/cjs/exceptions/base.d.ts +1 -1
  2. package/dist/cjs/exceptions/base.d.ts.map +1 -1
  3. package/dist/cjs/exceptions/base.js +7 -7
  4. package/dist/cjs/exceptions/base.js.map +1 -1
  5. package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +2 -2
  6. package/dist/cjs/exceptions/exceptions/BitGetException.d.ts.map +1 -1
  7. package/dist/cjs/exceptions/exceptions/BitGetException.js +6 -6
  8. package/dist/cjs/exceptions/exceptions/BitGetException.js.map +1 -1
  9. package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +2 -2
  10. package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts.map +1 -1
  11. package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +4 -4
  12. package/dist/cjs/exceptions/exceptions/CosmosWalletException.js.map +1 -1
  13. package/dist/cjs/exceptions/exceptions/GeneralException.d.ts +1 -1
  14. package/dist/cjs/exceptions/exceptions/GeneralException.d.ts.map +1 -1
  15. package/dist/cjs/exceptions/exceptions/GeneralException.js +2 -2
  16. package/dist/cjs/exceptions/exceptions/GeneralException.js.map +1 -1
  17. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +2 -2
  18. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts.map +1 -1
  19. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js +5 -5
  20. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js.map +1 -1
  21. package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +2 -2
  22. package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts.map +1 -1
  23. package/dist/cjs/exceptions/exceptions/HttpRequestException.js +7 -7
  24. package/dist/cjs/exceptions/exceptions/HttpRequestException.js.map +1 -1
  25. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +2 -2
  26. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts.map +1 -1
  27. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +6 -6
  28. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js.map +1 -1
  29. package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +2 -2
  30. package/dist/cjs/exceptions/exceptions/LedgerException.d.ts.map +1 -1
  31. package/dist/cjs/exceptions/exceptions/LedgerException.js +6 -6
  32. package/dist/cjs/exceptions/exceptions/LedgerException.js.map +1 -1
  33. package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +2 -2
  34. package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts.map +1 -1
  35. package/dist/cjs/exceptions/exceptions/MetamaskException.js +6 -6
  36. package/dist/cjs/exceptions/exceptions/MetamaskException.js.map +1 -1
  37. package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +2 -2
  38. package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts.map +1 -1
  39. package/dist/cjs/exceptions/exceptions/OkxWalletException.js +6 -6
  40. package/dist/cjs/exceptions/exceptions/OkxWalletException.js.map +1 -1
  41. package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +2 -2
  42. package/dist/cjs/exceptions/exceptions/TransactionException.d.ts.map +1 -1
  43. package/dist/cjs/exceptions/exceptions/TransactionException.js +7 -7
  44. package/dist/cjs/exceptions/exceptions/TransactionException.js.map +1 -1
  45. package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +2 -2
  46. package/dist/cjs/exceptions/exceptions/TrezorException.d.ts.map +1 -1
  47. package/dist/cjs/exceptions/exceptions/TrezorException.js +4 -4
  48. package/dist/cjs/exceptions/exceptions/TrezorException.js.map +1 -1
  49. package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +2 -2
  50. package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts.map +1 -1
  51. package/dist/cjs/exceptions/exceptions/TrustWalletException.js +6 -6
  52. package/dist/cjs/exceptions/exceptions/TrustWalletException.js.map +1 -1
  53. package/dist/cjs/exceptions/exceptions/WalletException.d.ts +1 -1
  54. package/dist/cjs/exceptions/exceptions/WalletException.d.ts.map +1 -1
  55. package/dist/cjs/exceptions/exceptions/WalletException.js +2 -2
  56. package/dist/cjs/exceptions/exceptions/WalletException.js.map +1 -1
  57. package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +2 -2
  58. package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts.map +1 -1
  59. package/dist/cjs/exceptions/exceptions/Web3Exception.js +4 -4
  60. package/dist/cjs/exceptions/exceptions/Web3Exception.js.map +1 -1
  61. package/dist/cjs/exceptions/exceptions/index.d.ts +14 -14
  62. package/dist/cjs/exceptions/exceptions/index.d.ts.map +1 -1
  63. package/dist/cjs/exceptions/exceptions/index.js +28 -28
  64. package/dist/cjs/exceptions/exceptions/index.js.map +1 -1
  65. package/dist/cjs/exceptions/index.d.ts +2 -2
  66. package/dist/cjs/exceptions/index.d.ts.map +1 -1
  67. package/dist/cjs/exceptions/index.js +2 -2
  68. package/dist/cjs/exceptions/index.js.map +1 -1
  69. package/dist/cjs/exceptions/messages.d.ts +1 -1
  70. package/dist/cjs/exceptions/messages.d.ts.map +1 -1
  71. package/dist/cjs/exceptions/messages.js +836 -836
  72. package/dist/cjs/exceptions/messages.js.map +1 -1
  73. package/dist/cjs/exceptions/types/context.d.ts +1 -1
  74. package/dist/cjs/exceptions/types/context.d.ts.map +1 -1
  75. package/dist/cjs/exceptions/types/index.d.ts +3 -3
  76. package/dist/cjs/exceptions/types/index.d.ts.map +1 -1
  77. package/dist/cjs/exceptions/types/index.js +3 -3
  78. package/dist/cjs/exceptions/types/index.js.map +1 -1
  79. package/dist/cjs/exceptions/utils/maps.d.ts +1 -1
  80. package/dist/cjs/exceptions/utils/maps.d.ts.map +1 -1
  81. package/dist/cjs/exceptions/utils/maps.js +6 -6
  82. package/dist/cjs/exceptions/utils/maps.js.map +1 -1
  83. package/dist/cjs/index.d.ts +3 -3
  84. package/dist/cjs/index.d.ts.map +1 -1
  85. package/dist/cjs/index.js +3 -3
  86. package/dist/cjs/index.js.map +1 -1
  87. package/dist/cjs/types.d.ts +1 -1
  88. package/dist/cjs/types.d.ts.map +1 -1
  89. package/dist/cjs/utils.d.ts +2 -2
  90. package/dist/cjs/utils.d.ts.map +1 -1
  91. package/dist/esm/exceptions/base.d.ts +1 -1
  92. package/dist/esm/exceptions/base.d.ts.map +1 -1
  93. package/dist/esm/exceptions/base.js +1 -1
  94. package/dist/esm/exceptions/base.js.map +1 -1
  95. package/dist/esm/exceptions/exceptions/BitGetException.d.ts +2 -2
  96. package/dist/esm/exceptions/exceptions/BitGetException.d.ts.map +1 -1
  97. package/dist/esm/exceptions/exceptions/BitGetException.js +3 -3
  98. package/dist/esm/exceptions/exceptions/BitGetException.js.map +1 -1
  99. package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +2 -2
  100. package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts.map +1 -1
  101. package/dist/esm/exceptions/exceptions/CosmosWalletException.js +2 -2
  102. package/dist/esm/exceptions/exceptions/CosmosWalletException.js.map +1 -1
  103. package/dist/esm/exceptions/exceptions/GeneralException.d.ts +1 -1
  104. package/dist/esm/exceptions/exceptions/GeneralException.d.ts.map +1 -1
  105. package/dist/esm/exceptions/exceptions/GeneralException.js +1 -1
  106. package/dist/esm/exceptions/exceptions/GeneralException.js.map +1 -1
  107. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +2 -2
  108. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts.map +1 -1
  109. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js +2 -2
  110. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js.map +1 -1
  111. package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +2 -2
  112. package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts.map +1 -1
  113. package/dist/esm/exceptions/exceptions/HttpRequestException.js +2 -2
  114. package/dist/esm/exceptions/exceptions/HttpRequestException.js.map +1 -1
  115. package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +2 -2
  116. package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts.map +1 -1
  117. package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +3 -3
  118. package/dist/esm/exceptions/exceptions/LedgerCosmosException.js.map +1 -1
  119. package/dist/esm/exceptions/exceptions/LedgerException.d.ts +2 -2
  120. package/dist/esm/exceptions/exceptions/LedgerException.d.ts.map +1 -1
  121. package/dist/esm/exceptions/exceptions/LedgerException.js +3 -3
  122. package/dist/esm/exceptions/exceptions/LedgerException.js.map +1 -1
  123. package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +2 -2
  124. package/dist/esm/exceptions/exceptions/MetamaskException.d.ts.map +1 -1
  125. package/dist/esm/exceptions/exceptions/MetamaskException.js +3 -3
  126. package/dist/esm/exceptions/exceptions/MetamaskException.js.map +1 -1
  127. package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +2 -2
  128. package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts.map +1 -1
  129. package/dist/esm/exceptions/exceptions/OkxWalletException.js +3 -3
  130. package/dist/esm/exceptions/exceptions/OkxWalletException.js.map +1 -1
  131. package/dist/esm/exceptions/exceptions/TransactionException.d.ts +2 -2
  132. package/dist/esm/exceptions/exceptions/TransactionException.d.ts.map +1 -1
  133. package/dist/esm/exceptions/exceptions/TransactionException.js +3 -3
  134. package/dist/esm/exceptions/exceptions/TransactionException.js.map +1 -1
  135. package/dist/esm/exceptions/exceptions/TrezorException.d.ts +2 -2
  136. package/dist/esm/exceptions/exceptions/TrezorException.d.ts.map +1 -1
  137. package/dist/esm/exceptions/exceptions/TrezorException.js +2 -2
  138. package/dist/esm/exceptions/exceptions/TrezorException.js.map +1 -1
  139. package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +2 -2
  140. package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts.map +1 -1
  141. package/dist/esm/exceptions/exceptions/TrustWalletException.js +3 -3
  142. package/dist/esm/exceptions/exceptions/TrustWalletException.js.map +1 -1
  143. package/dist/esm/exceptions/exceptions/WalletException.d.ts +1 -1
  144. package/dist/esm/exceptions/exceptions/WalletException.d.ts.map +1 -1
  145. package/dist/esm/exceptions/exceptions/WalletException.js +1 -1
  146. package/dist/esm/exceptions/exceptions/WalletException.js.map +1 -1
  147. package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +2 -2
  148. package/dist/esm/exceptions/exceptions/Web3Exception.d.ts.map +1 -1
  149. package/dist/esm/exceptions/exceptions/Web3Exception.js +2 -2
  150. package/dist/esm/exceptions/exceptions/Web3Exception.js.map +1 -1
  151. package/dist/esm/exceptions/exceptions/index.d.ts +14 -14
  152. package/dist/esm/exceptions/exceptions/index.d.ts.map +1 -1
  153. package/dist/esm/exceptions/exceptions/index.js +14 -14
  154. package/dist/esm/exceptions/exceptions/index.js.map +1 -1
  155. package/dist/esm/exceptions/index.d.ts +2 -2
  156. package/dist/esm/exceptions/index.d.ts.map +1 -1
  157. package/dist/esm/exceptions/index.js +2 -2
  158. package/dist/esm/exceptions/index.js.map +1 -1
  159. package/dist/esm/exceptions/messages.d.ts +1 -1
  160. package/dist/esm/exceptions/messages.d.ts.map +1 -1
  161. package/dist/esm/exceptions/messages.js +1 -1
  162. package/dist/esm/exceptions/messages.js.map +1 -1
  163. package/dist/esm/exceptions/types/context.d.ts +1 -1
  164. package/dist/esm/exceptions/types/context.d.ts.map +1 -1
  165. package/dist/esm/exceptions/types/index.d.ts +3 -3
  166. package/dist/esm/exceptions/types/index.d.ts.map +1 -1
  167. package/dist/esm/exceptions/types/index.js +3 -3
  168. package/dist/esm/exceptions/types/index.js.map +1 -1
  169. package/dist/esm/exceptions/utils/maps.d.ts +1 -1
  170. package/dist/esm/exceptions/utils/maps.d.ts.map +1 -1
  171. package/dist/esm/exceptions/utils/maps.js +2 -2
  172. package/dist/esm/exceptions/utils/maps.js.map +1 -1
  173. package/dist/esm/index.d.ts +3 -3
  174. package/dist/esm/index.d.ts.map +1 -1
  175. package/dist/esm/index.js +3 -3
  176. package/dist/esm/index.js.map +1 -1
  177. package/dist/esm/types.d.ts +1 -1
  178. package/dist/esm/types.d.ts.map +1 -1
  179. package/dist/esm/utils.d.ts +2 -2
  180. package/dist/esm/utils.d.ts.map +1 -1
  181. package/package.json +6 -4
@@ -1,407 +1,407 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.chainErrorMessagesMap = exports.chainModuleCodeErrorMessagesMap = void 0;
4
- const types_1 = require("./types");
4
+ const index_js_1 = require("./types/index.js");
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',
6
+ [index_js_1.ChainAuctionErrorCodes.ErrBidInvalid]: 'The gas limit provided in the transaction is not valid',
7
+ [index_js_1.ChainAuctionErrorCodes.ErrBidRound]: 'The gas limit provided in the transaction is not valid',
8
8
  };
9
9
  const authZErrorMap = {
10
10
  // ErrNoAuthorizationFound error if there is no authorization found given a grant key
11
- [types_1.ChainAuthZErrorCodes.ErrNoAuthorizationFound]: 'Authorization not found',
11
+ [index_js_1.ChainAuthZErrorCodes.ErrNoAuthorizationFound]: 'Authorization not found',
12
12
  // ErrInvalidExpirationTime error if the set expiration time is in the past
13
- [types_1.ChainAuthZErrorCodes.ErrInvalidExpirationTime]: 'Expiration time of authorization should be more than current time',
13
+ [index_js_1.ChainAuthZErrorCodes.ErrInvalidExpirationTime]: 'Expiration time of authorization should be more than current time',
14
14
  // ErrUnknownAuthorizationType error for unknown authorization type
15
- [types_1.ChainAuthZErrorCodes.ErrUnknownAuthorizationType]: 'Unknown authorization type',
15
+ [index_js_1.ChainAuthZErrorCodes.ErrUnknownAuthorizationType]: 'Unknown authorization type',
16
16
  // ErrNoGrantKeyFound error if the requested grant key does not exist
17
- [types_1.ChainAuthZErrorCodes.ErrNoGrantKeyFound]: 'Grant key not found',
17
+ [index_js_1.ChainAuthZErrorCodes.ErrNoGrantKeyFound]: 'Grant key not found',
18
18
  // ErrAuthorizationExpired error if the authorization has expired
19
- [types_1.ChainAuthZErrorCodes.ErrAuthorizationExpired]: 'Authorization expired',
19
+ [index_js_1.ChainAuthZErrorCodes.ErrAuthorizationExpired]: 'Authorization expired',
20
20
  // ErrGranteeIsGranter error if the grantee and the granter are the same
21
- [types_1.ChainAuthZErrorCodes.ErrGranteeIsGranter]: 'Grantee and granter should be different',
21
+ [index_js_1.ChainAuthZErrorCodes.ErrGranteeIsGranter]: 'Grantee and granter should be different',
22
22
  // ErrAuthorizationNumOfSigners error if an authorization message does not have only one signer
23
- [types_1.ChainAuthZErrorCodes.ErrAuthorizationNumOfSigners]: 'Authorization can be given to msg with only one signer',
23
+ [index_js_1.ChainAuthZErrorCodes.ErrAuthorizationNumOfSigners]: 'Authorization can be given to msg with only one signer',
24
24
  // ErrNegativeMaxTokens error if the max tokens is negative
25
- [types_1.ChainAuthZErrorCodes.ErrNegativeMaxTokens]: 'Max tokens should be positive',
25
+ [index_js_1.ChainAuthZErrorCodes.ErrNegativeMaxTokens]: 'Max tokens should be positive',
26
26
  };
27
27
  const cosmosErrorMap = {
28
- [types_1.ChainCosmosErrorCode.ErrInsufficientFee]: 'You do not have enough funds to cover the transaction fees.',
29
- [types_1.ChainCosmosErrorCode.ErrInsufficientFunds]: 'You do not have enough funds.',
30
- [types_1.ChainCosmosErrorCode.ErrTxTimeoutHeight]: 'The transaction failed to be included within a block on time.',
31
- [types_1.ChainCosmosErrorCode.ErrTxDecode]: 'There is an issue while parsing the transaction',
32
- [types_1.ChainCosmosErrorCode.ErrInvalidSequence]: 'The sequence number is not valid',
33
- [types_1.ChainCosmosErrorCode.ErrUnauthorized]: 'Unauthorized',
34
- [types_1.ChainCosmosErrorCode.ErrUnknownRequest]: 'The request is not known',
35
- [types_1.ChainCosmosErrorCode.ErrInvalidAddress]: 'The address is not valid',
36
- [types_1.ChainCosmosErrorCode.ErrInvalidPubKey]: 'The public key is not valid',
37
- [types_1.ChainCosmosErrorCode.ErrUnknownAddress]: 'The address is unknown',
38
- [types_1.ChainCosmosErrorCode.ErrInvalidCoins]: 'The coins are not valid',
39
- [types_1.ChainCosmosErrorCode.ErrOutOfGas]: 'The transaction run out of gas',
40
- [types_1.ChainCosmosErrorCode.ErrMemoTooLarge]: 'The memo field in the transaction is too large',
41
- [types_1.ChainCosmosErrorCode.ErrTooManySignatures]: 'The transaction exceeded the maximum number of signatures',
42
- [types_1.ChainCosmosErrorCode.ErrNoSignatures]: 'There are no signatures appended on the transaction',
43
- [types_1.ChainCosmosErrorCode.ErrJSONMarshal]: 'There is an issue while parsing the transaction',
44
- [types_1.ChainCosmosErrorCode.ErrJSONUnmarshal]: 'There is an issue while parsing the transaction',
45
- [types_1.ChainCosmosErrorCode.ErrInvalidRequest]: 'invalid request',
46
- [types_1.ChainCosmosErrorCode.ErrTxInMempoolCache]: 'The transaction is already in the mempool',
47
- [types_1.ChainCosmosErrorCode.ErrMempoolIsFull]: 'The mempool is full',
48
- [types_1.ChainCosmosErrorCode.ErrTxTooLarge]: 'The transaction is too large',
49
- [types_1.ChainCosmosErrorCode.ErrKeyNotFound]: 'Account does not exist on chain. To create an account, send some tokens to it',
50
- [types_1.ChainCosmosErrorCode.ErrWrongPassword]: 'invalid account password',
51
- [types_1.ChainCosmosErrorCode.ErrorInvalidSigner]: 'tx intended signer does not match the given signer',
52
- [types_1.ChainCosmosErrorCode.ErrorInvalidGasAdjustment]: 'invalid gas adjustment',
53
- [types_1.ChainCosmosErrorCode.ErrInvalidHeight]: 'The height provided in the transaction is not valid',
54
- [types_1.ChainCosmosErrorCode.ErrInvalidVersion]: 'The version provided in the transaction is not valid',
55
- [types_1.ChainCosmosErrorCode.ErrInvalidChainID]: 'The chainId provided in the transaction is not valid',
56
- [types_1.ChainCosmosErrorCode.ErrInvalidType]: 'The type provided in the transaction is not valid',
57
- [types_1.ChainCosmosErrorCode.ErrUnknownExtensionOptions]: 'The extension options provided in the transaction is unknown',
58
- [types_1.ChainCosmosErrorCode.ErrWrongSequence]: 'The sequence number provided in the transaction is incorrect',
59
- [types_1.ChainCosmosErrorCode.ErrPackAny]: 'failed packing protobuf message to Any',
60
- [types_1.ChainCosmosErrorCode.ErrUnpackAny]: 'failed unpacking protobuf message from Any',
61
- [types_1.ChainCosmosErrorCode.ErrLogic]: 'Internal logic error',
62
- [types_1.ChainCosmosErrorCode.ErrConflict]: 'conflict',
63
- [types_1.ChainCosmosErrorCode.ErrNotSupported]: 'The feature is not supported',
64
- [types_1.ChainCosmosErrorCode.ErrNotFound]: 'not found',
65
- [types_1.ChainCosmosErrorCode.ErrIO]: 'Internal IO error',
66
- [types_1.ChainCosmosErrorCode.ErrAppConfig]: 'error in app.toml',
67
- [types_1.ChainCosmosErrorCode.ErrInvalidGasLimit]: 'The gas limit provided in the transaction is not valid',
28
+ [index_js_1.ChainCosmosErrorCode.ErrInsufficientFee]: 'You do not have enough funds to cover the transaction fees.',
29
+ [index_js_1.ChainCosmosErrorCode.ErrInsufficientFunds]: 'You do not have enough funds.',
30
+ [index_js_1.ChainCosmosErrorCode.ErrTxTimeoutHeight]: 'The transaction failed to be included within a block on time.',
31
+ [index_js_1.ChainCosmosErrorCode.ErrTxDecode]: 'There is an issue while parsing the transaction',
32
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidSequence]: 'The sequence number is not valid',
33
+ [index_js_1.ChainCosmosErrorCode.ErrUnauthorized]: 'Unauthorized',
34
+ [index_js_1.ChainCosmosErrorCode.ErrUnknownRequest]: 'The request is not known',
35
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidAddress]: 'The address is not valid',
36
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidPubKey]: 'The public key is not valid',
37
+ [index_js_1.ChainCosmosErrorCode.ErrUnknownAddress]: 'The address is unknown',
38
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidCoins]: 'The coins are not valid',
39
+ [index_js_1.ChainCosmosErrorCode.ErrOutOfGas]: 'The transaction run out of gas',
40
+ [index_js_1.ChainCosmosErrorCode.ErrMemoTooLarge]: 'The memo field in the transaction is too large',
41
+ [index_js_1.ChainCosmosErrorCode.ErrTooManySignatures]: 'The transaction exceeded the maximum number of signatures',
42
+ [index_js_1.ChainCosmosErrorCode.ErrNoSignatures]: 'There are no signatures appended on the transaction',
43
+ [index_js_1.ChainCosmosErrorCode.ErrJSONMarshal]: 'There is an issue while parsing the transaction',
44
+ [index_js_1.ChainCosmosErrorCode.ErrJSONUnmarshal]: 'There is an issue while parsing the transaction',
45
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidRequest]: 'invalid request',
46
+ [index_js_1.ChainCosmosErrorCode.ErrTxInMempoolCache]: 'The transaction is already in the mempool',
47
+ [index_js_1.ChainCosmosErrorCode.ErrMempoolIsFull]: 'The mempool is full',
48
+ [index_js_1.ChainCosmosErrorCode.ErrTxTooLarge]: 'The transaction is too large',
49
+ [index_js_1.ChainCosmosErrorCode.ErrKeyNotFound]: 'Account does not exist on chain. To create an account, send some tokens to it',
50
+ [index_js_1.ChainCosmosErrorCode.ErrWrongPassword]: 'invalid account password',
51
+ [index_js_1.ChainCosmosErrorCode.ErrorInvalidSigner]: 'tx intended signer does not match the given signer',
52
+ [index_js_1.ChainCosmosErrorCode.ErrorInvalidGasAdjustment]: 'invalid gas adjustment',
53
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidHeight]: 'The height provided in the transaction is not valid',
54
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidVersion]: 'The version provided in the transaction is not valid',
55
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidChainID]: 'The chainId provided in the transaction is not valid',
56
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidType]: 'The type provided in the transaction is not valid',
57
+ [index_js_1.ChainCosmosErrorCode.ErrUnknownExtensionOptions]: 'The extension options provided in the transaction is unknown',
58
+ [index_js_1.ChainCosmosErrorCode.ErrWrongSequence]: 'The sequence number provided in the transaction is incorrect',
59
+ [index_js_1.ChainCosmosErrorCode.ErrPackAny]: 'failed packing protobuf message to Any',
60
+ [index_js_1.ChainCosmosErrorCode.ErrUnpackAny]: 'failed unpacking protobuf message from Any',
61
+ [index_js_1.ChainCosmosErrorCode.ErrLogic]: 'Internal logic error',
62
+ [index_js_1.ChainCosmosErrorCode.ErrConflict]: 'conflict',
63
+ [index_js_1.ChainCosmosErrorCode.ErrNotSupported]: 'The feature is not supported',
64
+ [index_js_1.ChainCosmosErrorCode.ErrNotFound]: 'not found',
65
+ [index_js_1.ChainCosmosErrorCode.ErrIO]: 'Internal IO error',
66
+ [index_js_1.ChainCosmosErrorCode.ErrAppConfig]: 'error in app.toml',
67
+ [index_js_1.ChainCosmosErrorCode.ErrInvalidGasLimit]: 'The gas limit provided in the transaction is not valid',
68
68
  };
69
69
  const exchangeErrorMap = {
70
- [types_1.ChainExchangeModuleErrorCode.ErrOrderInvalid]: 'Your order failed to validate',
71
- [types_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound]: 'The spot market has not been found',
72
- [types_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists]: 'The spot market already exists',
73
- [types_1.ChainExchangeModuleErrorCode.ErrBadField]: 'There is an issue with your order',
74
- [types_1.ChainExchangeModuleErrorCode.ErrMarketInvalid]: 'The market failed to validate',
75
- [types_1.ChainExchangeModuleErrorCode.ErrInsufficientDeposit]: 'Your trading account has insufficient funds',
76
- [types_1.ChainExchangeModuleErrorCode.ErrUnrecognizedOrderType]: 'The order type is not recognized',
77
- [types_1.ChainExchangeModuleErrorCode.ErrInsufficientPositionQuantity]: 'The position quantity is insufficient for the order',
78
- [types_1.ChainExchangeModuleErrorCode.ErrOrderHashInvalid]: 'The order hash is not valid',
79
- [types_1.ChainExchangeModuleErrorCode.ErrBadSubaccountID]: 'The subaccount id is not valid',
80
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidBaseDenom]: '',
81
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidExpiry]: 'The expiry date is not valid',
82
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidPrice]: 'The price is not valid',
83
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantity]: 'The quantity is not valid',
84
- [types_1.ChainExchangeModuleErrorCode.ErrUnsupportedOracleType]: 'The oracle type is not supported',
85
- [types_1.ChainExchangeModuleErrorCode.ErrOrderDoesntExist]: 'The order does not exist',
86
- [types_1.ChainExchangeModuleErrorCode.ErrOrderbookFillInvalid]: '',
87
- [types_1.ChainExchangeModuleErrorCode.ErrPerpetualMarketExists]: 'The perpetual market already exists',
88
- [types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExists]: 'The expiry futures market market already exists',
89
- [types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExpired]: 'The expiry futures market has expired',
90
- [types_1.ChainExchangeModuleErrorCode.ErrNoLiquidity]: 'There is not enough liquidity',
91
- [types_1.ChainExchangeModuleErrorCode.ErrSlippageExceedsWorstPrice]: 'There is not enough liquidity',
92
- [types_1.ChainExchangeModuleErrorCode.ErrInsufficientOrderMargin]: 'The order has insufficient margin',
93
- [types_1.ChainExchangeModuleErrorCode.ErrDerivativeMarketNotFound]: 'The derivative market cannot be found',
94
- [types_1.ChainExchangeModuleErrorCode.ErrPositionNotFound]: 'The position cannot be found',
95
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidReduceOnlyPositionDirection]: 'Position direction does not oppose the reduce-only order',
96
- [types_1.ChainExchangeModuleErrorCode.ErrPriceSurpassesBankruptcyPrice]: 'Your order price surpasses bankruptcy price',
97
- [types_1.ChainExchangeModuleErrorCode.ErrPositionNotLiquidable]: 'The position is not liquidable',
98
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidTriggerPrice]: 'Your order trigger price is not valid',
99
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidOracleType]: 'The oracle type is not valid',
100
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidPriceTickSize]: 'The minimum price tick size is not valid',
101
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantityTickSize]: 'The minimum quantity tick size is not valid',
102
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidMargin]: "Your order's minimum margin is not valid ",
103
- [types_1.ChainExchangeModuleErrorCode.ErrExceedsOrderSideCount]: 'You cannot have more orders for this market for this direction',
104
- [types_1.ChainExchangeModuleErrorCode.ErrMarketOrderAlreadyExists]: 'You cannot place another market order within this block',
105
- [types_1.ChainExchangeModuleErrorCode.ErrConditionalMarketOrderAlreadyExists]: 'You cannot place another conditional market order',
106
- [types_1.ChainExchangeModuleErrorCode.ErrMarketLaunchProposalAlreadyExists]: 'There is an existing equivalent market launch proposal.',
107
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketStatus]: 'The market status is not valid',
108
- [types_1.ChainExchangeModuleErrorCode.ErrSameDenoms]: 'The base denom and quote denom cannot be same',
109
- [types_1.ChainExchangeModuleErrorCode.ErrSameOracles]: 'The oracle base and the oracle quote cannot be the same',
110
- [types_1.ChainExchangeModuleErrorCode.ErrFeeRatesRelation]: 'The MakerFeeRate does not match TakerFeeRate requirements',
111
- [types_1.ChainExchangeModuleErrorCode.ErrMarginsRelation]: 'The MaintenanceMarginRatio cannot be greater than InitialMarginRatio',
112
- [types_1.ChainExchangeModuleErrorCode.ErrExceedsMaxOracleScaleFactor]: 'The OracleScaleFactor cannot be greater than MaxOracleScaleFactor',
113
- [types_1.ChainExchangeModuleErrorCode.ErrSpotExchangeNotEnabled]: 'Spot exchange is not enabled yet',
114
- [types_1.ChainExchangeModuleErrorCode.ErrDerivativesExchangeNotEnabled]: 'Derivatives exchange is not enabled yet',
115
- [types_1.ChainExchangeModuleErrorCode.ErrOraclePriceDeltaExceedsThreshold]: 'The oracle price delta exceeds threshold',
116
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyInterestRate]: 'The hourly interest rate is not valid',
117
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyFundingRateCap]: 'The hourly funding rate cap is not valid',
118
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketFundingParamUpdate]: 'You can only update funding parameters on perpetual markets.',
119
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardCampaign]: 'The trading reward campaign is not valid',
120
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidFeeDiscountSchedule]: 'The fee discount schedule is not valid',
121
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidLiquidationOrder]: 'The liquidation order is not valid',
122
- [types_1.ChainExchangeModuleErrorCode.ErrTradingRewardCampaignDistributionError]: 'Unknown error happened for campaign distributions',
123
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardsPendingPointsUpdate]: 'The updated trading reward points is not valid',
124
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidBatchMsgUpdate]: 'The MsgBatchUpdate is not valid',
125
- [types_1.ChainExchangeModuleErrorCode.ErrExceedsTopOfBookPrice]: 'The post-only order price exceeds top of the orderbook price',
126
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidOrderTypeForMessage]: 'The order type is not supported for this message',
127
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidDMMSender]: 'The sender must match the DMM address',
128
- [types_1.ChainExchangeModuleErrorCode.ErrAlreadyOptedOutOfRewards]: 'The DMM address already opted out of rewards',
129
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidMarginRatio]: 'The margin ratio is not valid',
130
- [types_1.ChainExchangeModuleErrorCode.ErrBelowMinimalContribution]: 'The provided funds are below minimum',
131
- [types_1.ChainExchangeModuleErrorCode.ErrLowPositionMargin]: 'The position is below initial margin requirement',
132
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidTotalSupply]: 'The pool has non-positive total LP token supply',
133
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidLpTokenBurnAmount]: 'The passed LP token burn amount is greater than total LP token supply',
134
- [types_1.ChainExchangeModuleErrorCode.ErrUnsupportedAction]: 'This action is not supported',
135
- [types_1.ChainExchangeModuleErrorCode.ErrNegativePositionQuantity]: 'The position quantity cannot be negative',
136
- [types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketExists]: 'The BinaryOptions market already exists',
137
- [types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketNotFound]: 'The BinaryOptions market cannot be found',
138
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidSettlement]: 'The settlement price is not valid',
139
- [types_1.ChainExchangeModuleErrorCode.ErrAccountDoesntExist]: 'The trading account does not exist',
140
- [types_1.ChainExchangeModuleErrorCode.ErrSenderIsNotAnAdmin]: 'The sender should be the admin of the market',
141
- [types_1.ChainExchangeModuleErrorCode.ErrMarketAlreadyScheduledToSettle]: 'The market is already scheduled to settle ',
142
- [types_1.ChainExchangeModuleErrorCode.ErrGenericMarketNotFound]: 'The market cannot be found',
143
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidDenomDecimal]: 'The denom decimal cannot be below 1 or above max scale factor',
144
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidState]: 'The state is not valid',
145
- [types_1.ChainExchangeModuleErrorCode.ErrTransientOrdersUpToCancelNotSupported]: 'The transient orders up to cancellation not supported',
146
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidTrade]: 'The trade is not valid',
147
- [types_1.ChainExchangeModuleErrorCode.ErrNoMarginLocked]: 'There is no margin locked in the trading account',
148
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel]: 'There is no access to perform action',
149
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidAddress]: 'The address is not valid',
150
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidArgument]: 'The argument is not valid',
151
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidFundsDirection]: 'Invalid funds direction',
152
- [types_1.ChainExchangeModuleErrorCode.ErrNoFundsProvided]: 'No funds provided',
153
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidSignature]: 'Invalid signature',
154
- [types_1.ChainExchangeModuleErrorCode.ErrNoFundsToUnlock]: 'No funds to unlock',
155
- [types_1.ChainExchangeModuleErrorCode.ErrNoMsgsProvided]: 'No msgs provided',
156
- [types_1.ChainExchangeModuleErrorCode.ErrNoMsgProvided]: 'No msg provided',
157
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidAmount]: 'Invalid amount',
158
- [types_1.ChainExchangeModuleErrorCode.ErrFeatureDisabled]: 'The current feature has been disabled',
159
- [types_1.ChainExchangeModuleErrorCode.ErrTooMuchOrderMargin]: 'Order has too much margin',
160
- [types_1.ChainExchangeModuleErrorCode.ErrBadSubaccountNonce]: 'Subaccount nonce is invalid',
161
- [types_1.ChainExchangeModuleErrorCode.ErrInsufficientFunds]: 'Insufficient funds',
162
- [types_1.ChainExchangeModuleErrorCode.ErrPostOnlyMode]: 'Only post-only actions available for approximately 30 minutes after a chain upgrade.',
163
- [types_1.ChainExchangeModuleErrorCode.ErrClientOrderIdAlreadyExists]: 'Client order id already exists',
164
- [types_1.ChainExchangeModuleErrorCode.ErrInvalidCid]: 'Client order id is invalid. Max length is 36 chars',
70
+ [index_js_1.ChainExchangeModuleErrorCode.ErrOrderInvalid]: 'Your order failed to validate',
71
+ [index_js_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound]: 'The spot market has not been found',
72
+ [index_js_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists]: 'The spot market already exists',
73
+ [index_js_1.ChainExchangeModuleErrorCode.ErrBadField]: 'There is an issue with your order',
74
+ [index_js_1.ChainExchangeModuleErrorCode.ErrMarketInvalid]: 'The market failed to validate',
75
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInsufficientDeposit]: 'Your trading account has insufficient funds',
76
+ [index_js_1.ChainExchangeModuleErrorCode.ErrUnrecognizedOrderType]: 'The order type is not recognized',
77
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInsufficientPositionQuantity]: 'The position quantity is insufficient for the order',
78
+ [index_js_1.ChainExchangeModuleErrorCode.ErrOrderHashInvalid]: 'The order hash is not valid',
79
+ [index_js_1.ChainExchangeModuleErrorCode.ErrBadSubaccountID]: 'The subaccount id is not valid',
80
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidBaseDenom]: '',
81
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidExpiry]: 'The expiry date is not valid',
82
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidPrice]: 'The price is not valid',
83
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidQuantity]: 'The quantity is not valid',
84
+ [index_js_1.ChainExchangeModuleErrorCode.ErrUnsupportedOracleType]: 'The oracle type is not supported',
85
+ [index_js_1.ChainExchangeModuleErrorCode.ErrOrderDoesntExist]: 'The order does not exist',
86
+ [index_js_1.ChainExchangeModuleErrorCode.ErrOrderbookFillInvalid]: '',
87
+ [index_js_1.ChainExchangeModuleErrorCode.ErrPerpetualMarketExists]: 'The perpetual market already exists',
88
+ [index_js_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExists]: 'The expiry futures market market already exists',
89
+ [index_js_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExpired]: 'The expiry futures market has expired',
90
+ [index_js_1.ChainExchangeModuleErrorCode.ErrNoLiquidity]: 'There is not enough liquidity',
91
+ [index_js_1.ChainExchangeModuleErrorCode.ErrSlippageExceedsWorstPrice]: 'There is not enough liquidity',
92
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInsufficientOrderMargin]: 'The order has insufficient margin',
93
+ [index_js_1.ChainExchangeModuleErrorCode.ErrDerivativeMarketNotFound]: 'The derivative market cannot be found',
94
+ [index_js_1.ChainExchangeModuleErrorCode.ErrPositionNotFound]: 'The position cannot be found',
95
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidReduceOnlyPositionDirection]: 'Position direction does not oppose the reduce-only order',
96
+ [index_js_1.ChainExchangeModuleErrorCode.ErrPriceSurpassesBankruptcyPrice]: 'Your order price surpasses bankruptcy price',
97
+ [index_js_1.ChainExchangeModuleErrorCode.ErrPositionNotLiquidable]: 'The position is not liquidable',
98
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTriggerPrice]: 'Your order trigger price is not valid',
99
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidOracleType]: 'The oracle type is not valid',
100
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidPriceTickSize]: 'The minimum price tick size is not valid',
101
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidQuantityTickSize]: 'The minimum quantity tick size is not valid',
102
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidMargin]: "Your order's minimum margin is not valid ",
103
+ [index_js_1.ChainExchangeModuleErrorCode.ErrExceedsOrderSideCount]: 'You cannot have more orders for this market for this direction',
104
+ [index_js_1.ChainExchangeModuleErrorCode.ErrMarketOrderAlreadyExists]: 'You cannot place another market order within this block',
105
+ [index_js_1.ChainExchangeModuleErrorCode.ErrConditionalMarketOrderAlreadyExists]: 'You cannot place another conditional market order',
106
+ [index_js_1.ChainExchangeModuleErrorCode.ErrMarketLaunchProposalAlreadyExists]: 'There is an existing equivalent market launch proposal.',
107
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidMarketStatus]: 'The market status is not valid',
108
+ [index_js_1.ChainExchangeModuleErrorCode.ErrSameDenoms]: 'The base denom and quote denom cannot be same',
109
+ [index_js_1.ChainExchangeModuleErrorCode.ErrSameOracles]: 'The oracle base and the oracle quote cannot be the same',
110
+ [index_js_1.ChainExchangeModuleErrorCode.ErrFeeRatesRelation]: 'The MakerFeeRate does not match TakerFeeRate requirements',
111
+ [index_js_1.ChainExchangeModuleErrorCode.ErrMarginsRelation]: 'The MaintenanceMarginRatio cannot be greater than InitialMarginRatio',
112
+ [index_js_1.ChainExchangeModuleErrorCode.ErrExceedsMaxOracleScaleFactor]: 'The OracleScaleFactor cannot be greater than MaxOracleScaleFactor',
113
+ [index_js_1.ChainExchangeModuleErrorCode.ErrSpotExchangeNotEnabled]: 'Spot exchange is not enabled yet',
114
+ [index_js_1.ChainExchangeModuleErrorCode.ErrDerivativesExchangeNotEnabled]: 'Derivatives exchange is not enabled yet',
115
+ [index_js_1.ChainExchangeModuleErrorCode.ErrOraclePriceDeltaExceedsThreshold]: 'The oracle price delta exceeds threshold',
116
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyInterestRate]: 'The hourly interest rate is not valid',
117
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyFundingRateCap]: 'The hourly funding rate cap is not valid',
118
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidMarketFundingParamUpdate]: 'You can only update funding parameters on perpetual markets.',
119
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardCampaign]: 'The trading reward campaign is not valid',
120
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidFeeDiscountSchedule]: 'The fee discount schedule is not valid',
121
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidLiquidationOrder]: 'The liquidation order is not valid',
122
+ [index_js_1.ChainExchangeModuleErrorCode.ErrTradingRewardCampaignDistributionError]: 'Unknown error happened for campaign distributions',
123
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardsPendingPointsUpdate]: 'The updated trading reward points is not valid',
124
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidBatchMsgUpdate]: 'The MsgBatchUpdate is not valid',
125
+ [index_js_1.ChainExchangeModuleErrorCode.ErrExceedsTopOfBookPrice]: 'The post-only order price exceeds top of the orderbook price',
126
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidOrderTypeForMessage]: 'The order type is not supported for this message',
127
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidDMMSender]: 'The sender must match the DMM address',
128
+ [index_js_1.ChainExchangeModuleErrorCode.ErrAlreadyOptedOutOfRewards]: 'The DMM address already opted out of rewards',
129
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidMarginRatio]: 'The margin ratio is not valid',
130
+ [index_js_1.ChainExchangeModuleErrorCode.ErrBelowMinimalContribution]: 'The provided funds are below minimum',
131
+ [index_js_1.ChainExchangeModuleErrorCode.ErrLowPositionMargin]: 'The position is below initial margin requirement',
132
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTotalSupply]: 'The pool has non-positive total LP token supply',
133
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidLpTokenBurnAmount]: 'The passed LP token burn amount is greater than total LP token supply',
134
+ [index_js_1.ChainExchangeModuleErrorCode.ErrUnsupportedAction]: 'This action is not supported',
135
+ [index_js_1.ChainExchangeModuleErrorCode.ErrNegativePositionQuantity]: 'The position quantity cannot be negative',
136
+ [index_js_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketExists]: 'The BinaryOptions market already exists',
137
+ [index_js_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketNotFound]: 'The BinaryOptions market cannot be found',
138
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidSettlement]: 'The settlement price is not valid',
139
+ [index_js_1.ChainExchangeModuleErrorCode.ErrAccountDoesntExist]: 'The trading account does not exist',
140
+ [index_js_1.ChainExchangeModuleErrorCode.ErrSenderIsNotAnAdmin]: 'The sender should be the admin of the market',
141
+ [index_js_1.ChainExchangeModuleErrorCode.ErrMarketAlreadyScheduledToSettle]: 'The market is already scheduled to settle ',
142
+ [index_js_1.ChainExchangeModuleErrorCode.ErrGenericMarketNotFound]: 'The market cannot be found',
143
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidDenomDecimal]: 'The denom decimal cannot be below 1 or above max scale factor',
144
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidState]: 'The state is not valid',
145
+ [index_js_1.ChainExchangeModuleErrorCode.ErrTransientOrdersUpToCancelNotSupported]: 'The transient orders up to cancellation not supported',
146
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTrade]: 'The trade is not valid',
147
+ [index_js_1.ChainExchangeModuleErrorCode.ErrNoMarginLocked]: 'There is no margin locked in the trading account',
148
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel]: 'There is no access to perform action',
149
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidAddress]: 'The address is not valid',
150
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidArgument]: 'The argument is not valid',
151
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidFundsDirection]: 'Invalid funds direction',
152
+ [index_js_1.ChainExchangeModuleErrorCode.ErrNoFundsProvided]: 'No funds provided',
153
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidSignature]: 'Invalid signature',
154
+ [index_js_1.ChainExchangeModuleErrorCode.ErrNoFundsToUnlock]: 'No funds to unlock',
155
+ [index_js_1.ChainExchangeModuleErrorCode.ErrNoMsgsProvided]: 'No msgs provided',
156
+ [index_js_1.ChainExchangeModuleErrorCode.ErrNoMsgProvided]: 'No msg provided',
157
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidAmount]: 'Invalid amount',
158
+ [index_js_1.ChainExchangeModuleErrorCode.ErrFeatureDisabled]: 'The current feature has been disabled',
159
+ [index_js_1.ChainExchangeModuleErrorCode.ErrTooMuchOrderMargin]: 'Order has too much margin',
160
+ [index_js_1.ChainExchangeModuleErrorCode.ErrBadSubaccountNonce]: 'Subaccount nonce is invalid',
161
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInsufficientFunds]: 'Insufficient funds',
162
+ [index_js_1.ChainExchangeModuleErrorCode.ErrPostOnlyMode]: 'Only post-only actions available for approximately 30 minutes after a chain upgrade.',
163
+ [index_js_1.ChainExchangeModuleErrorCode.ErrClientOrderIdAlreadyExists]: 'Client order id already exists',
164
+ [index_js_1.ChainExchangeModuleErrorCode.ErrInvalidCid]: 'Client order id is invalid. Max length is 36 chars',
165
165
  };
166
166
  const insuranceErrorMap = {
167
- [types_1.ChainInsuranceErrorCodes.ErrInsuranceFundAlreadyExists]: 'The insurance fund already exists',
168
- [types_1.ChainInsuranceErrorCodes.ErrInsuranceFundNotFound]: 'The insurance fund is not found',
169
- [types_1.ChainInsuranceErrorCodes.ErrRedemptionAlreadyExists]: 'The redemption already exists',
170
- [types_1.ChainInsuranceErrorCodes.ErrInvalidDepositAmount]: 'The deposit amount is not valid',
171
- [types_1.ChainInsuranceErrorCodes.ErrInvalidDepositDenom]: 'The deposit denom is not valid',
172
- [types_1.ChainInsuranceErrorCodes.ErrPayoutTooLarge]: 'The insurance fund payout exceeds the deposits',
173
- [types_1.ChainInsuranceErrorCodes.ErrInvalidTicker]: 'The ticker is not valid',
174
- [types_1.ChainInsuranceErrorCodes.ErrInvalidQuoteDenom]: 'The quote denom is not valid',
175
- [types_1.ChainInsuranceErrorCodes.ErrInvalidOracle]: 'The oracle is not valid',
176
- [types_1.ChainInsuranceErrorCodes.ErrInvalidExpirationTime]: 'The expiration time is not valid',
177
- [types_1.ChainInsuranceErrorCodes.ErrInvalidMarketID]: 'The marketId is not valid',
178
- [types_1.ChainInsuranceErrorCodes.ErrInvalidShareDenom]: 'The share denom is not valid',
167
+ [index_js_1.ChainInsuranceErrorCodes.ErrInsuranceFundAlreadyExists]: 'The insurance fund already exists',
168
+ [index_js_1.ChainInsuranceErrorCodes.ErrInsuranceFundNotFound]: 'The insurance fund is not found',
169
+ [index_js_1.ChainInsuranceErrorCodes.ErrRedemptionAlreadyExists]: 'The redemption already exists',
170
+ [index_js_1.ChainInsuranceErrorCodes.ErrInvalidDepositAmount]: 'The deposit amount is not valid',
171
+ [index_js_1.ChainInsuranceErrorCodes.ErrInvalidDepositDenom]: 'The deposit denom is not valid',
172
+ [index_js_1.ChainInsuranceErrorCodes.ErrPayoutTooLarge]: 'The insurance fund payout exceeds the deposits',
173
+ [index_js_1.ChainInsuranceErrorCodes.ErrInvalidTicker]: 'The ticker is not valid',
174
+ [index_js_1.ChainInsuranceErrorCodes.ErrInvalidQuoteDenom]: 'The quote denom is not valid',
175
+ [index_js_1.ChainInsuranceErrorCodes.ErrInvalidOracle]: 'The oracle is not valid',
176
+ [index_js_1.ChainInsuranceErrorCodes.ErrInvalidExpirationTime]: 'The expiration time is not valid',
177
+ [index_js_1.ChainInsuranceErrorCodes.ErrInvalidMarketID]: 'The marketId is not valid',
178
+ [index_js_1.ChainInsuranceErrorCodes.ErrInvalidShareDenom]: 'The share denom is not valid',
179
179
  };
180
180
  const ocrErrorMap = {
181
- [types_1.ChainOcrErrorCodes.ErrStaleReport]: 'stale report',
182
- [types_1.ChainOcrErrorCodes.ErrIncompleteProposal]: 'incomplete proposal',
183
- [types_1.ChainOcrErrorCodes.ErrRepeatedAddress]: 'repeated oracle address',
184
- [types_1.ChainOcrErrorCodes.ErrTooManySigners]: 'too many signers',
185
- [types_1.ChainOcrErrorCodes.ErrIncorrectConfig]: 'incorrect config',
186
- [types_1.ChainOcrErrorCodes.ErrConfigDigestNotMatch]: "config digest doesn't match",
187
- [types_1.ChainOcrErrorCodes.ErrWrongNumberOfSignatures]: 'wrong number of signatures',
188
- [types_1.ChainOcrErrorCodes.ErrIncorrectSignature]: 'incorrect signature',
189
- [types_1.ChainOcrErrorCodes.ErrNoTransmitter]: 'no transmitter specified',
190
- [types_1.ChainOcrErrorCodes.ErrIncorrectTransmissionData]: 'incorrect transmission data',
191
- [types_1.ChainOcrErrorCodes.ErrNoTransmissionsFound]: 'no transmissions found',
192
- [types_1.ChainOcrErrorCodes.ErrMedianValueOutOfBounds]: 'median value is out of bounds',
193
- [types_1.ChainOcrErrorCodes.ErrIncorrectRewardPoolDenom]: "LINK denom doesn't match",
194
- [types_1.ChainOcrErrorCodes.ErrNoRewardPool]: "Reward Pool doesn't exist",
195
- [types_1.ChainOcrErrorCodes.ErrInvalidPayees]: 'wrong number of payees and transmitters',
196
- [types_1.ChainOcrErrorCodes.ErrModuleAdminRestricted]: 'action is restricted to the module admin',
197
- [types_1.ChainOcrErrorCodes.ErrFeedAlreadyExists]: 'feed already exists',
198
- [types_1.ChainOcrErrorCodes.ErrFeedDoesntExists]: 'feed doesnt exists',
199
- [types_1.ChainOcrErrorCodes.ErrAdminRestricted]: 'action is admin-restricted',
200
- [types_1.ChainOcrErrorCodes.ErrInsufficientRewardPool]: 'insufficient reward pool',
201
- [types_1.ChainOcrErrorCodes.ErrPayeeAlreadySet]: 'payee already set',
202
- [types_1.ChainOcrErrorCodes.ErrPayeeRestricted]: 'action is payee-restricted',
203
- [types_1.ChainOcrErrorCodes.ErrFeedConfigNotFound]: 'feed config not found',
181
+ [index_js_1.ChainOcrErrorCodes.ErrStaleReport]: 'stale report',
182
+ [index_js_1.ChainOcrErrorCodes.ErrIncompleteProposal]: 'incomplete proposal',
183
+ [index_js_1.ChainOcrErrorCodes.ErrRepeatedAddress]: 'repeated oracle address',
184
+ [index_js_1.ChainOcrErrorCodes.ErrTooManySigners]: 'too many signers',
185
+ [index_js_1.ChainOcrErrorCodes.ErrIncorrectConfig]: 'incorrect config',
186
+ [index_js_1.ChainOcrErrorCodes.ErrConfigDigestNotMatch]: "config digest doesn't match",
187
+ [index_js_1.ChainOcrErrorCodes.ErrWrongNumberOfSignatures]: 'wrong number of signatures',
188
+ [index_js_1.ChainOcrErrorCodes.ErrIncorrectSignature]: 'incorrect signature',
189
+ [index_js_1.ChainOcrErrorCodes.ErrNoTransmitter]: 'no transmitter specified',
190
+ [index_js_1.ChainOcrErrorCodes.ErrIncorrectTransmissionData]: 'incorrect transmission data',
191
+ [index_js_1.ChainOcrErrorCodes.ErrNoTransmissionsFound]: 'no transmissions found',
192
+ [index_js_1.ChainOcrErrorCodes.ErrMedianValueOutOfBounds]: 'median value is out of bounds',
193
+ [index_js_1.ChainOcrErrorCodes.ErrIncorrectRewardPoolDenom]: "LINK denom doesn't match",
194
+ [index_js_1.ChainOcrErrorCodes.ErrNoRewardPool]: "Reward Pool doesn't exist",
195
+ [index_js_1.ChainOcrErrorCodes.ErrInvalidPayees]: 'wrong number of payees and transmitters',
196
+ [index_js_1.ChainOcrErrorCodes.ErrModuleAdminRestricted]: 'action is restricted to the module admin',
197
+ [index_js_1.ChainOcrErrorCodes.ErrFeedAlreadyExists]: 'feed already exists',
198
+ [index_js_1.ChainOcrErrorCodes.ErrFeedDoesntExists]: 'feed doesnt exists',
199
+ [index_js_1.ChainOcrErrorCodes.ErrAdminRestricted]: 'action is admin-restricted',
200
+ [index_js_1.ChainOcrErrorCodes.ErrInsufficientRewardPool]: 'insufficient reward pool',
201
+ [index_js_1.ChainOcrErrorCodes.ErrPayeeAlreadySet]: 'payee already set',
202
+ [index_js_1.ChainOcrErrorCodes.ErrPayeeRestricted]: 'action is payee-restricted',
203
+ [index_js_1.ChainOcrErrorCodes.ErrFeedConfigNotFound]: 'feed config not found',
204
204
  };
205
205
  const oracleErrorMap = {
206
- [types_1.ChainOracleErrorCodes.ErrEmptyRelayerAddr]: 'relayer address is empty',
207
- [types_1.ChainOracleErrorCodes.ErrBadRatesCount]: 'bad rates count',
208
- [types_1.ChainOracleErrorCodes.ErrBadResolveTimesCount]: 'bad resolve times',
209
- [types_1.ChainOracleErrorCodes.ErrBadRequestIDsCount]: 'bad request ID',
210
- [types_1.ChainOracleErrorCodes.ErrRelayerNotAuthorized]: 'relayer not authorized',
211
- [types_1.ChainOracleErrorCodes.ErrBadPriceFeedBaseCount]: 'bad price feed base count',
212
- [types_1.ChainOracleErrorCodes.ErrBadPriceFeedQuoteCount]: 'bad price feed quote count',
213
- [types_1.ChainOracleErrorCodes.ErrUnsupportedOracleType]: 'unsupported oracle type',
214
- [types_1.ChainOracleErrorCodes.ErrBadMessagesCount]: 'bad messages count',
215
- [types_1.ChainOracleErrorCodes.ErrBadCoinbaseMessage]: 'bad Coinbase message',
216
- [types_1.ChainOracleErrorCodes.ErrInvalidEthereumSignature]: 'bad Ethereum signature',
217
- [types_1.ChainOracleErrorCodes.ErrBadCoinbaseMessageTimestamp]: 'bad Coinbase message timestamp',
218
- [types_1.ChainOracleErrorCodes.ErrCoinbasePriceNotFound]: 'Coinbase price not found',
219
- [types_1.ChainOracleErrorCodes.ErrBadPrice]: 'Prices must be positive',
220
- [types_1.ChainOracleErrorCodes.ErrPriceTooLarge]: 'Prices must be less than 10 million.',
221
- [types_1.ChainOracleErrorCodes.ErrInvalidBandIBCRequest]: 'Invalid Band IBC Request',
222
- [types_1.ChainOracleErrorCodes.ErrSample]: 'sample error',
223
- [types_1.ChainOracleErrorCodes.ErrInvalidPacketTimeout]: 'invalid packet timeout',
224
- [types_1.ChainOracleErrorCodes.ErrBadSymbolsCount]: 'invalid symbols count',
225
- [types_1.ChainOracleErrorCodes.ErrBadIBCPortBind]: 'could not claim port capability',
226
- [types_1.ChainOracleErrorCodes.ErrInvalidPortID]: 'invalid IBC Port ID',
227
- [types_1.ChainOracleErrorCodes.ErrInvalidChannelID]: 'invalid IBC Channel ID',
228
- [types_1.ChainOracleErrorCodes.ErrBadRequestInterval]: 'invalid Band IBC request interval',
229
- [types_1.ChainOracleErrorCodes.ErrInvalidBandIBCUpdateRequest]: 'Invalid Band IBC Update Request Proposal',
230
- [types_1.ChainOracleErrorCodes.ErrBandIBCRequestNotFound]: 'Band IBC Oracle Request not found',
231
- [types_1.ChainOracleErrorCodes.ErrEmptyBaseInfo]: 'Base Info is empty',
232
- [types_1.ChainOracleErrorCodes.ErrEmptyProvider]: 'provider is empty',
233
- [types_1.ChainOracleErrorCodes.ErrInvalidProvider]: 'invalid provider name',
234
- [types_1.ChainOracleErrorCodes.ErrInvalidSymbol]: 'invalid symbol',
235
- [types_1.ChainOracleErrorCodes.ErrRelayerAlreadyExists]: 'relayer already exists',
236
- [types_1.ChainOracleErrorCodes.ErrProviderPriceNotFound]: 'provider price not found',
237
- [types_1.ChainOracleErrorCodes.ErrInvalidOracleRequest]: 'invalid oracle request',
238
- [types_1.ChainOracleErrorCodes.ErrOraclePriceNotFound]: 'no price for oracle was found',
206
+ [index_js_1.ChainOracleErrorCodes.ErrEmptyRelayerAddr]: 'relayer address is empty',
207
+ [index_js_1.ChainOracleErrorCodes.ErrBadRatesCount]: 'bad rates count',
208
+ [index_js_1.ChainOracleErrorCodes.ErrBadResolveTimesCount]: 'bad resolve times',
209
+ [index_js_1.ChainOracleErrorCodes.ErrBadRequestIDsCount]: 'bad request ID',
210
+ [index_js_1.ChainOracleErrorCodes.ErrRelayerNotAuthorized]: 'relayer not authorized',
211
+ [index_js_1.ChainOracleErrorCodes.ErrBadPriceFeedBaseCount]: 'bad price feed base count',
212
+ [index_js_1.ChainOracleErrorCodes.ErrBadPriceFeedQuoteCount]: 'bad price feed quote count',
213
+ [index_js_1.ChainOracleErrorCodes.ErrUnsupportedOracleType]: 'unsupported oracle type',
214
+ [index_js_1.ChainOracleErrorCodes.ErrBadMessagesCount]: 'bad messages count',
215
+ [index_js_1.ChainOracleErrorCodes.ErrBadCoinbaseMessage]: 'bad Coinbase message',
216
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidEthereumSignature]: 'bad Ethereum signature',
217
+ [index_js_1.ChainOracleErrorCodes.ErrBadCoinbaseMessageTimestamp]: 'bad Coinbase message timestamp',
218
+ [index_js_1.ChainOracleErrorCodes.ErrCoinbasePriceNotFound]: 'Coinbase price not found',
219
+ [index_js_1.ChainOracleErrorCodes.ErrBadPrice]: 'Prices must be positive',
220
+ [index_js_1.ChainOracleErrorCodes.ErrPriceTooLarge]: 'Prices must be less than 10 million.',
221
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidBandIBCRequest]: 'Invalid Band IBC Request',
222
+ [index_js_1.ChainOracleErrorCodes.ErrSample]: 'sample error',
223
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidPacketTimeout]: 'invalid packet timeout',
224
+ [index_js_1.ChainOracleErrorCodes.ErrBadSymbolsCount]: 'invalid symbols count',
225
+ [index_js_1.ChainOracleErrorCodes.ErrBadIBCPortBind]: 'could not claim port capability',
226
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidPortID]: 'invalid IBC Port ID',
227
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidChannelID]: 'invalid IBC Channel ID',
228
+ [index_js_1.ChainOracleErrorCodes.ErrBadRequestInterval]: 'invalid Band IBC request interval',
229
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidBandIBCUpdateRequest]: 'Invalid Band IBC Update Request Proposal',
230
+ [index_js_1.ChainOracleErrorCodes.ErrBandIBCRequestNotFound]: 'Band IBC Oracle Request not found',
231
+ [index_js_1.ChainOracleErrorCodes.ErrEmptyBaseInfo]: 'Base Info is empty',
232
+ [index_js_1.ChainOracleErrorCodes.ErrEmptyProvider]: 'provider is empty',
233
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidProvider]: 'invalid provider name',
234
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidSymbol]: 'invalid symbol',
235
+ [index_js_1.ChainOracleErrorCodes.ErrRelayerAlreadyExists]: 'relayer already exists',
236
+ [index_js_1.ChainOracleErrorCodes.ErrProviderPriceNotFound]: 'provider price not found',
237
+ [index_js_1.ChainOracleErrorCodes.ErrInvalidOracleRequest]: 'invalid oracle request',
238
+ [index_js_1.ChainOracleErrorCodes.ErrOraclePriceNotFound]: 'no price for oracle was found',
239
239
  };
240
240
  const peggyErrorMap = {
241
- [types_1.ChainPeggyErrorCodes.ErrInternal]: 'internal',
242
- [types_1.ChainPeggyErrorCodes.ErrDuplicate]: 'duplicate',
243
- [types_1.ChainPeggyErrorCodes.ErrInvalid]: 'invalid',
244
- [types_1.ChainPeggyErrorCodes.ErrTimeout]: 'timeout',
245
- [types_1.ChainPeggyErrorCodes.ErrUnknown]: 'unknown',
246
- [types_1.ChainPeggyErrorCodes.ErrEmpty]: 'empty',
247
- [types_1.ChainPeggyErrorCodes.ErrOutdated]: 'outdated',
248
- [types_1.ChainPeggyErrorCodes.ErrUnsupported]: 'unsupported',
249
- [types_1.ChainPeggyErrorCodes.ErrNonContiguousEventNonce]: 'non contiguous event nonce',
250
- [types_1.ChainPeggyErrorCodes.ErrNoUnbatchedTxsFound]: 'no unbatched txs found',
251
- [types_1.ChainPeggyErrorCodes.ErrResetDelegateKeys]: 'can not set orchestrator addresses more than once',
252
- [types_1.ChainPeggyErrorCodes.ErrSupplyOverflow]: 'supply cannot exceed max ERC20 value',
253
- [types_1.ChainPeggyErrorCodes.ErrInvalidEthSender]: 'invalid ethereum sender on claim',
254
- [types_1.ChainPeggyErrorCodes.ErrInvalidEthDestination]: 'invalid ethereum destination',
241
+ [index_js_1.ChainPeggyErrorCodes.ErrInternal]: 'internal',
242
+ [index_js_1.ChainPeggyErrorCodes.ErrDuplicate]: 'duplicate',
243
+ [index_js_1.ChainPeggyErrorCodes.ErrInvalid]: 'invalid',
244
+ [index_js_1.ChainPeggyErrorCodes.ErrTimeout]: 'timeout',
245
+ [index_js_1.ChainPeggyErrorCodes.ErrUnknown]: 'unknown',
246
+ [index_js_1.ChainPeggyErrorCodes.ErrEmpty]: 'empty',
247
+ [index_js_1.ChainPeggyErrorCodes.ErrOutdated]: 'outdated',
248
+ [index_js_1.ChainPeggyErrorCodes.ErrUnsupported]: 'unsupported',
249
+ [index_js_1.ChainPeggyErrorCodes.ErrNonContiguousEventNonce]: 'non contiguous event nonce',
250
+ [index_js_1.ChainPeggyErrorCodes.ErrNoUnbatchedTxsFound]: 'no unbatched txs found',
251
+ [index_js_1.ChainPeggyErrorCodes.ErrResetDelegateKeys]: 'can not set orchestrator addresses more than once',
252
+ [index_js_1.ChainPeggyErrorCodes.ErrSupplyOverflow]: 'supply cannot exceed max ERC20 value',
253
+ [index_js_1.ChainPeggyErrorCodes.ErrInvalidEthSender]: 'invalid ethereum sender on claim',
254
+ [index_js_1.ChainPeggyErrorCodes.ErrInvalidEthDestination]: 'invalid ethereum destination',
255
255
  };
256
256
  const tokenFactoryErrorMap = {
257
- [types_1.ChainTokenFactoryErrorCodes.ErrDenomExists]: 'attempting to create a denom that already exists',
258
- [types_1.ChainTokenFactoryErrorCodes.ErrUnauthorized]: 'unauthorized account',
259
- [types_1.ChainTokenFactoryErrorCodes.ErrInvalidDenom]: 'invalid denom',
260
- [types_1.ChainTokenFactoryErrorCodes.ErrInvalidCreator]: 'invalid creator',
261
- [types_1.ChainTokenFactoryErrorCodes.ErrInvalidAuthorityMetadata]: 'invalid authority metadata',
262
- [types_1.ChainTokenFactoryErrorCodes.ErrInvalidGenesis]: 'invalid genesis',
263
- [types_1.ChainTokenFactoryErrorCodes.ErrSubdenomTooLong]: 'subdenom too long',
264
- [types_1.ChainTokenFactoryErrorCodes.ErrSubdenomTooShort]: 'subdenom too short',
265
- [types_1.ChainTokenFactoryErrorCodes.ErrSubdenomNestedTooShort]: 'nested subdenom too short, each one should have at least',
266
- [types_1.ChainTokenFactoryErrorCodes.ErrCreatorTooLong]: 'creator too long',
267
- [types_1.ChainTokenFactoryErrorCodes.ErrDenomDoesNotExist]: 'denom does not exist',
257
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrDenomExists]: 'attempting to create a denom that already exists',
258
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrUnauthorized]: 'unauthorized account',
259
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrInvalidDenom]: 'invalid denom',
260
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrInvalidCreator]: 'invalid creator',
261
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrInvalidAuthorityMetadata]: 'invalid authority metadata',
262
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrInvalidGenesis]: 'invalid genesis',
263
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrSubdenomTooLong]: 'subdenom too long',
264
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrSubdenomTooShort]: 'subdenom too short',
265
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrSubdenomNestedTooShort]: 'nested subdenom too short, each one should have at least',
266
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrCreatorTooLong]: 'creator too long',
267
+ [index_js_1.ChainTokenFactoryErrorCodes.ErrDenomDoesNotExist]: 'denom does not exist',
268
268
  };
269
269
  const wasmxErrorMap = {
270
- [types_1.ChainWasmXErrorCodes.ErrInvalidGasLimit]: 'invalid gas limit',
271
- [types_1.ChainWasmXErrorCodes.ErrInvalidGasPrice]: 'invalid gas price',
272
- [types_1.ChainWasmXErrorCodes.ErrInvalidContractAddress]: 'invalid contract address',
273
- [types_1.ChainWasmXErrorCodes.ErrAlreadyRegistered]: 'contract already registered',
274
- [types_1.ChainWasmXErrorCodes.ErrDuplicateContract]: 'duplicate contract',
275
- [types_1.ChainWasmXErrorCodes.ErrNoContractAddresses]: 'no contract addresses found',
276
- [types_1.ChainWasmXErrorCodes.ErrInvalidCodeId]: 'invalid code id',
270
+ [index_js_1.ChainWasmXErrorCodes.ErrInvalidGasLimit]: 'invalid gas limit',
271
+ [index_js_1.ChainWasmXErrorCodes.ErrInvalidGasPrice]: 'invalid gas price',
272
+ [index_js_1.ChainWasmXErrorCodes.ErrInvalidContractAddress]: 'invalid contract address',
273
+ [index_js_1.ChainWasmXErrorCodes.ErrAlreadyRegistered]: 'contract already registered',
274
+ [index_js_1.ChainWasmXErrorCodes.ErrDuplicateContract]: 'duplicate contract',
275
+ [index_js_1.ChainWasmXErrorCodes.ErrNoContractAddresses]: 'no contract addresses found',
276
+ [index_js_1.ChainWasmXErrorCodes.ErrInvalidCodeId]: 'invalid code id',
277
277
  };
278
278
  const stakingErrorMap = {
279
- [types_1.ChainStakingErrorCodes.ErrEmptyValidatorAddr]: 'empty validator address',
280
- [types_1.ChainStakingErrorCodes.ErrNoValidatorFound]: 'validator does not exist',
281
- [types_1.ChainStakingErrorCodes.ErrValidatorOwnerExists]: 'validator already exist for this operator address; must use new validator operator address',
282
- [types_1.ChainStakingErrorCodes.ErrValidatorPubKeyExists]: 'validator already exist for this pubkey; must use new validator pubkey',
283
- [types_1.ChainStakingErrorCodes.ErrValidatorPubKeyTypeNotSupported]: 'validator pubkey type is not supported',
284
- [types_1.ChainStakingErrorCodes.ErrValidatorJailed]: 'validator for this address is currently jailed',
285
- [types_1.ChainStakingErrorCodes.ErrBadRemoveValidator]: 'failed to remove validator',
286
- [types_1.ChainStakingErrorCodes.ErrCommissionNegative]: 'commission must be positive',
287
- [types_1.ChainStakingErrorCodes.ErrCommissionHuge]: 'commission cannot be more than 100%',
288
- [types_1.ChainStakingErrorCodes.ErrCommissionGTMaxRate]: 'commission cannot be more than the max rate',
289
- [types_1.ChainStakingErrorCodes.ErrCommissionUpdateTime]: 'commission cannot be changed more than once in 24h',
290
- [types_1.ChainStakingErrorCodes.ErrCommissionChangeRateNegative]: 'commission change rate must be positive',
291
- [types_1.ChainStakingErrorCodes.ErrCommissionChangeRateGTMaxRate]: 'commission change rate cannot be more than the max rate',
292
- [types_1.ChainStakingErrorCodes.ErrCommissionGTMaxChangeRate]: 'commission cannot be changed more than max change rate',
293
- [types_1.ChainStakingErrorCodes.ErrSelfDelegationBelowMinimum]: "validator's self delegation must be greater than their minimum self delegation",
294
- [types_1.ChainStakingErrorCodes.ErrMinSelfDelegationDecreased]: 'minimum self delegation cannot be decrease',
295
- [types_1.ChainStakingErrorCodes.ErrEmptyDelegatorAddr]: 'empty delegator address',
296
- [types_1.ChainStakingErrorCodes.ErrNoDelegation]: 'no delegation for (address, validator) tuple',
297
- [types_1.ChainStakingErrorCodes.ErrBadDelegatorAddr]: 'delegator does not exist with address',
298
- [types_1.ChainStakingErrorCodes.ErrNoDelegatorForAddress]: 'delegator does not contain delegation',
299
- [types_1.ChainStakingErrorCodes.ErrInsufficientShares]: 'insufficient delegation shares',
300
- [types_1.ChainStakingErrorCodes.ErrDelegationValidatorEmpty]: 'cannot delegate to an empty validator',
301
- [types_1.ChainStakingErrorCodes.ErrNotEnoughDelegationShares]: 'not enough delegation shares',
302
- [types_1.ChainStakingErrorCodes.ErrNotMature]: 'entry not mature',
303
- [types_1.ChainStakingErrorCodes.ErrNoUnbondingDelegation]: 'no unbonding delegation found',
304
- [types_1.ChainStakingErrorCodes.ErrMaxUnbondingDelegationEntries]: 'too many unbonding delegation entries for (delegator, validator) tuple',
305
- [types_1.ChainStakingErrorCodes.ErrNoRedelegation]: 'no redelegation found',
306
- [types_1.ChainStakingErrorCodes.ErrSelfRedelegation]: 'cannot redelegate to the same validator',
307
- [types_1.ChainStakingErrorCodes.ErrTinyRedelegationAmount]: 'too few tokens to redelegate (truncates to zero tokens)',
308
- [types_1.ChainStakingErrorCodes.ErrBadRedelegationDst]: 'redelegation destination validator not found',
309
- [types_1.ChainStakingErrorCodes.ErrTransitiveRedelegation]: 'redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation',
310
- [types_1.ChainStakingErrorCodes.ErrMaxRedelegationEntries]: 'too many redelegation entries for (delegator, src-validator, dst-validator) tuple',
311
- [types_1.ChainStakingErrorCodes.ErrDelegatorShareExRateInvalid]: 'cannot delegate to validators with invalid (zero) ex-rate',
312
- [types_1.ChainStakingErrorCodes.ErrBothShareMsgsGiven]: 'both shares amount and shares percent provided',
313
- [types_1.ChainStakingErrorCodes.ErrNeitherShareMsgsGiven]: 'neither shares amount nor shares percent provided',
314
- [types_1.ChainStakingErrorCodes.ErrInvalidHistoricalInfo]: 'invalid historical info',
315
- [types_1.ChainStakingErrorCodes.ErrNoHistoricalInfo]: 'no historical info found',
316
- [types_1.ChainStakingErrorCodes.ErrEmptyValidatorPubKey]: 'empty validator public key',
317
- [types_1.ChainStakingErrorCodes.ErrCommissionLTMinRate]: 'commission cannot be less than min rate',
318
- [types_1.ChainStakingErrorCodes.ErrUnbondingNotFound]: 'unbonding operation not found',
319
- [types_1.ChainStakingErrorCodes.ErrUnbondingOnHoldRefCountNegative]: 'cannot un-hold unbonding operation that is not on hold',
279
+ [index_js_1.ChainStakingErrorCodes.ErrEmptyValidatorAddr]: 'empty validator address',
280
+ [index_js_1.ChainStakingErrorCodes.ErrNoValidatorFound]: 'validator does not exist',
281
+ [index_js_1.ChainStakingErrorCodes.ErrValidatorOwnerExists]: 'validator already exist for this operator address; must use new validator operator address',
282
+ [index_js_1.ChainStakingErrorCodes.ErrValidatorPubKeyExists]: 'validator already exist for this pubkey; must use new validator pubkey',
283
+ [index_js_1.ChainStakingErrorCodes.ErrValidatorPubKeyTypeNotSupported]: 'validator pubkey type is not supported',
284
+ [index_js_1.ChainStakingErrorCodes.ErrValidatorJailed]: 'validator for this address is currently jailed',
285
+ [index_js_1.ChainStakingErrorCodes.ErrBadRemoveValidator]: 'failed to remove validator',
286
+ [index_js_1.ChainStakingErrorCodes.ErrCommissionNegative]: 'commission must be positive',
287
+ [index_js_1.ChainStakingErrorCodes.ErrCommissionHuge]: 'commission cannot be more than 100%',
288
+ [index_js_1.ChainStakingErrorCodes.ErrCommissionGTMaxRate]: 'commission cannot be more than the max rate',
289
+ [index_js_1.ChainStakingErrorCodes.ErrCommissionUpdateTime]: 'commission cannot be changed more than once in 24h',
290
+ [index_js_1.ChainStakingErrorCodes.ErrCommissionChangeRateNegative]: 'commission change rate must be positive',
291
+ [index_js_1.ChainStakingErrorCodes.ErrCommissionChangeRateGTMaxRate]: 'commission change rate cannot be more than the max rate',
292
+ [index_js_1.ChainStakingErrorCodes.ErrCommissionGTMaxChangeRate]: 'commission cannot be changed more than max change rate',
293
+ [index_js_1.ChainStakingErrorCodes.ErrSelfDelegationBelowMinimum]: "validator's self delegation must be greater than their minimum self delegation",
294
+ [index_js_1.ChainStakingErrorCodes.ErrMinSelfDelegationDecreased]: 'minimum self delegation cannot be decrease',
295
+ [index_js_1.ChainStakingErrorCodes.ErrEmptyDelegatorAddr]: 'empty delegator address',
296
+ [index_js_1.ChainStakingErrorCodes.ErrNoDelegation]: 'no delegation for (address, validator) tuple',
297
+ [index_js_1.ChainStakingErrorCodes.ErrBadDelegatorAddr]: 'delegator does not exist with address',
298
+ [index_js_1.ChainStakingErrorCodes.ErrNoDelegatorForAddress]: 'delegator does not contain delegation',
299
+ [index_js_1.ChainStakingErrorCodes.ErrInsufficientShares]: 'insufficient delegation shares',
300
+ [index_js_1.ChainStakingErrorCodes.ErrDelegationValidatorEmpty]: 'cannot delegate to an empty validator',
301
+ [index_js_1.ChainStakingErrorCodes.ErrNotEnoughDelegationShares]: 'not enough delegation shares',
302
+ [index_js_1.ChainStakingErrorCodes.ErrNotMature]: 'entry not mature',
303
+ [index_js_1.ChainStakingErrorCodes.ErrNoUnbondingDelegation]: 'no unbonding delegation found',
304
+ [index_js_1.ChainStakingErrorCodes.ErrMaxUnbondingDelegationEntries]: 'too many unbonding delegation entries for (delegator, validator) tuple',
305
+ [index_js_1.ChainStakingErrorCodes.ErrNoRedelegation]: 'no redelegation found',
306
+ [index_js_1.ChainStakingErrorCodes.ErrSelfRedelegation]: 'cannot redelegate to the same validator',
307
+ [index_js_1.ChainStakingErrorCodes.ErrTinyRedelegationAmount]: 'too few tokens to redelegate (truncates to zero tokens)',
308
+ [index_js_1.ChainStakingErrorCodes.ErrBadRedelegationDst]: 'redelegation destination validator not found',
309
+ [index_js_1.ChainStakingErrorCodes.ErrTransitiveRedelegation]: 'redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation',
310
+ [index_js_1.ChainStakingErrorCodes.ErrMaxRedelegationEntries]: 'too many redelegation entries for (delegator, src-validator, dst-validator) tuple',
311
+ [index_js_1.ChainStakingErrorCodes.ErrDelegatorShareExRateInvalid]: 'cannot delegate to validators with invalid (zero) ex-rate',
312
+ [index_js_1.ChainStakingErrorCodes.ErrBothShareMsgsGiven]: 'both shares amount and shares percent provided',
313
+ [index_js_1.ChainStakingErrorCodes.ErrNeitherShareMsgsGiven]: 'neither shares amount nor shares percent provided',
314
+ [index_js_1.ChainStakingErrorCodes.ErrInvalidHistoricalInfo]: 'invalid historical info',
315
+ [index_js_1.ChainStakingErrorCodes.ErrNoHistoricalInfo]: 'no historical info found',
316
+ [index_js_1.ChainStakingErrorCodes.ErrEmptyValidatorPubKey]: 'empty validator public key',
317
+ [index_js_1.ChainStakingErrorCodes.ErrCommissionLTMinRate]: 'commission cannot be less than min rate',
318
+ [index_js_1.ChainStakingErrorCodes.ErrUnbondingNotFound]: 'unbonding operation not found',
319
+ [index_js_1.ChainStakingErrorCodes.ErrUnbondingOnHoldRefCountNegative]: 'cannot un-hold unbonding operation that is not on hold',
320
320
  };
321
321
  const govErrorMap = {
322
- [types_1.ChainGovErrorCodes.ErrUnknownProposal]: 'unknown proposal',
323
- [types_1.ChainGovErrorCodes.ErrInactiveProposal]: 'inactive proposal',
324
- [types_1.ChainGovErrorCodes.ErrAlreadyActiveProposal]: 'proposal already active',
325
- [types_1.ChainGovErrorCodes.ErrInvalidProposalContent]: 'invalid proposal content',
326
- [types_1.ChainGovErrorCodes.ErrInvalidProposalType]: 'invalid proposal type',
327
- [types_1.ChainGovErrorCodes.ErrInvalidVote]: 'invalid vote option',
328
- [types_1.ChainGovErrorCodes.ErrInvalidGenesis]: 'invalid genesis state',
329
- [types_1.ChainGovErrorCodes.ErrNoProposalHandlerExists]: 'no handler exists for proposal type',
330
- [types_1.ChainGovErrorCodes.ErrUnroutableProposalMsg]: 'proposal message not recognized by router',
331
- [types_1.ChainGovErrorCodes.ErrNoProposalMsgs]: 'no messages proposed',
332
- [types_1.ChainGovErrorCodes.ErrInvalidProposalMsg]: 'invalid proposal message',
333
- [types_1.ChainGovErrorCodes.ErrInvalidSigner]: 'expected gov account as only signer for proposal message',
334
- [types_1.ChainGovErrorCodes.ErrInvalidSignalMsg]: 'signal message is invalid',
335
- [types_1.ChainGovErrorCodes.ErrMetadataTooLong]: 'metadata too long',
336
- [types_1.ChainGovErrorCodes.ErrMinDepositTooSmall]: 'minimum deposit is too small',
337
- [types_1.ChainGovErrorCodes.ErrProposalNotFound]: 'proposal is not found',
338
- [types_1.ChainGovErrorCodes.ErrInvalidProposer]: 'invalid proposer',
339
- [types_1.ChainGovErrorCodes.ErrNoDeposits]: 'no deposits found',
340
- [types_1.ChainGovErrorCodes.ErrVotingPeriodEnded]: 'voting period already ended',
341
- [types_1.ChainGovErrorCodes.ErrInvalidProposal]: 'invalid proposal',
322
+ [index_js_1.ChainGovErrorCodes.ErrUnknownProposal]: 'unknown proposal',
323
+ [index_js_1.ChainGovErrorCodes.ErrInactiveProposal]: 'inactive proposal',
324
+ [index_js_1.ChainGovErrorCodes.ErrAlreadyActiveProposal]: 'proposal already active',
325
+ [index_js_1.ChainGovErrorCodes.ErrInvalidProposalContent]: 'invalid proposal content',
326
+ [index_js_1.ChainGovErrorCodes.ErrInvalidProposalType]: 'invalid proposal type',
327
+ [index_js_1.ChainGovErrorCodes.ErrInvalidVote]: 'invalid vote option',
328
+ [index_js_1.ChainGovErrorCodes.ErrInvalidGenesis]: 'invalid genesis state',
329
+ [index_js_1.ChainGovErrorCodes.ErrNoProposalHandlerExists]: 'no handler exists for proposal type',
330
+ [index_js_1.ChainGovErrorCodes.ErrUnroutableProposalMsg]: 'proposal message not recognized by router',
331
+ [index_js_1.ChainGovErrorCodes.ErrNoProposalMsgs]: 'no messages proposed',
332
+ [index_js_1.ChainGovErrorCodes.ErrInvalidProposalMsg]: 'invalid proposal message',
333
+ [index_js_1.ChainGovErrorCodes.ErrInvalidSigner]: 'expected gov account as only signer for proposal message',
334
+ [index_js_1.ChainGovErrorCodes.ErrInvalidSignalMsg]: 'signal message is invalid',
335
+ [index_js_1.ChainGovErrorCodes.ErrMetadataTooLong]: 'metadata too long',
336
+ [index_js_1.ChainGovErrorCodes.ErrMinDepositTooSmall]: 'minimum deposit is too small',
337
+ [index_js_1.ChainGovErrorCodes.ErrProposalNotFound]: 'proposal is not found',
338
+ [index_js_1.ChainGovErrorCodes.ErrInvalidProposer]: 'invalid proposer',
339
+ [index_js_1.ChainGovErrorCodes.ErrNoDeposits]: 'no deposits found',
340
+ [index_js_1.ChainGovErrorCodes.ErrVotingPeriodEnded]: 'voting period already ended',
341
+ [index_js_1.ChainGovErrorCodes.ErrInvalidProposal]: 'invalid proposal',
342
342
  };
343
343
  const bankErrorMap = {
344
- [types_1.ChainBankErrorCodes.ErrNoInputs]: 'no inputs to send transaction',
345
- [types_1.ChainBankErrorCodes.ErrNoOutputs]: 'no outputs to send transaction',
346
- [types_1.ChainBankErrorCodes.ErrInputOutputMismatch]: 'sum inputs != sum outputs',
347
- [types_1.ChainBankErrorCodes.ErrSendDisabled]: 'send transactions are disabled',
348
- [types_1.ChainBankErrorCodes.ErrDenomMetadataNotFound]: 'client denom metadata not found',
349
- [types_1.ChainBankErrorCodes.ErrInvalidKey]: 'invalid key',
350
- [types_1.ChainBankErrorCodes.ErrDuplicateEntry]: 'duplicate entry',
351
- [types_1.ChainBankErrorCodes.ErrMultipleSenders]: 'multiple senders not allowed',
344
+ [index_js_1.ChainBankErrorCodes.ErrNoInputs]: 'no inputs to send transaction',
345
+ [index_js_1.ChainBankErrorCodes.ErrNoOutputs]: 'no outputs to send transaction',
346
+ [index_js_1.ChainBankErrorCodes.ErrInputOutputMismatch]: 'sum inputs != sum outputs',
347
+ [index_js_1.ChainBankErrorCodes.ErrSendDisabled]: 'send transactions are disabled',
348
+ [index_js_1.ChainBankErrorCodes.ErrDenomMetadataNotFound]: 'client denom metadata not found',
349
+ [index_js_1.ChainBankErrorCodes.ErrInvalidKey]: 'invalid key',
350
+ [index_js_1.ChainBankErrorCodes.ErrDuplicateEntry]: 'duplicate entry',
351
+ [index_js_1.ChainBankErrorCodes.ErrMultipleSenders]: 'multiple senders not allowed',
352
352
  };
353
353
  const distributionErrorMap = {
354
- [types_1.ChainDistributionErrorCodes.ErrEmptyDelegatorAddr]: 'delegator address is empty',
355
- [types_1.ChainDistributionErrorCodes.ErrEmptyWithdrawAddr]: 'withdraw address is empty',
356
- [types_1.ChainDistributionErrorCodes.ErrEmptyValidatorAddr]: 'validator address is empty',
357
- [types_1.ChainDistributionErrorCodes.ErrEmptyDelegationDistInfo]: 'no delegation distribution info',
358
- [types_1.ChainDistributionErrorCodes.ErrNoValidatorDistInfo]: 'no validator distribution info',
359
- [types_1.ChainDistributionErrorCodes.ErrNoValidatorCommission]: 'no validator commission to withdraw',
360
- [types_1.ChainDistributionErrorCodes.ErrSetWithdrawAddrDisabled]: 'set withdraw address disabled',
361
- [types_1.ChainDistributionErrorCodes.ErrBadDistribution]: 'community pool does not have sufficient coins to distribute',
362
- [types_1.ChainDistributionErrorCodes.ErrInvalidProposalAmount]: 'invalid community pool spend proposal amount',
363
- [types_1.ChainDistributionErrorCodes.ErrEmptyProposalRecipient]: 'invalid community pool spend proposal recipient',
364
- [types_1.ChainDistributionErrorCodes.ErrNoValidatorExists]: 'validator does not exist',
365
- [types_1.ChainDistributionErrorCodes.ErrNoDelegationExists]: 'delegation does not exist',
354
+ [index_js_1.ChainDistributionErrorCodes.ErrEmptyDelegatorAddr]: 'delegator address is empty',
355
+ [index_js_1.ChainDistributionErrorCodes.ErrEmptyWithdrawAddr]: 'withdraw address is empty',
356
+ [index_js_1.ChainDistributionErrorCodes.ErrEmptyValidatorAddr]: 'validator address is empty',
357
+ [index_js_1.ChainDistributionErrorCodes.ErrEmptyDelegationDistInfo]: 'no delegation distribution info',
358
+ [index_js_1.ChainDistributionErrorCodes.ErrNoValidatorDistInfo]: 'no validator distribution info',
359
+ [index_js_1.ChainDistributionErrorCodes.ErrNoValidatorCommission]: 'no validator commission to withdraw',
360
+ [index_js_1.ChainDistributionErrorCodes.ErrSetWithdrawAddrDisabled]: 'set withdraw address disabled',
361
+ [index_js_1.ChainDistributionErrorCodes.ErrBadDistribution]: 'community pool does not have sufficient coins to distribute',
362
+ [index_js_1.ChainDistributionErrorCodes.ErrInvalidProposalAmount]: 'invalid community pool spend proposal amount',
363
+ [index_js_1.ChainDistributionErrorCodes.ErrEmptyProposalRecipient]: 'invalid community pool spend proposal recipient',
364
+ [index_js_1.ChainDistributionErrorCodes.ErrNoValidatorExists]: 'validator does not exist',
365
+ [index_js_1.ChainDistributionErrorCodes.ErrNoDelegationExists]: 'delegation does not exist',
366
366
  };
367
367
  const wasmErrorMap = {
368
- [types_1.ChainWasmErrorCodes.ErrCreateFailed]: 'create wasm contract failed',
369
- [types_1.ChainWasmErrorCodes.ErrAccountExists]: 'contract account already exists',
370
- [types_1.ChainWasmErrorCodes.ErrInstantiateFailed]: 'instantiate wasm contract failed',
371
- [types_1.ChainWasmErrorCodes.ErrExecuteFailed]: 'Contract execution failed',
372
- [types_1.ChainWasmErrorCodes.ErrGasLimit]: 'insufficient gas',
373
- [types_1.ChainWasmErrorCodes.ErrInvalidGenesis]: 'invalid genesis',
374
- [types_1.ChainWasmErrorCodes.ErrNotFound]: 'not found',
375
- [types_1.ChainWasmErrorCodes.ErrQueryFailed]: 'query wasm contract failed',
376
- [types_1.ChainWasmErrorCodes.ErrInvalidMsg]: 'invalid CosmosMsg from the contract',
377
- [types_1.ChainWasmErrorCodes.ErrMigrationFailed]: 'migrate wasm contract failed',
378
- [types_1.ChainWasmErrorCodes.ErrEmpty]: 'empty',
379
- [types_1.ChainWasmErrorCodes.ErrLimit]: 'exceeds limit',
380
- [types_1.ChainWasmErrorCodes.ErrInvalid]: 'invalid',
381
- [types_1.ChainWasmErrorCodes.ErrDuplicate]: 'duplicate',
382
- [types_1.ChainWasmErrorCodes.ErrMaxIBCChannels]: 'max transfer channels',
383
- [types_1.ChainWasmErrorCodes.ErrUnsupportedForContract]: 'unsupported for this contract',
384
- [types_1.ChainWasmErrorCodes.ErrPinContractFailed]: 'pinning contract failed',
385
- [types_1.ChainWasmErrorCodes.ErrUnpinContractFailed]: 'unpinning contract failed',
386
- [types_1.ChainWasmErrorCodes.ErrUnknownMsg]: 'unknown message from the contract',
387
- [types_1.ChainWasmErrorCodes.ErrInvalidEvent]: 'invalid event',
368
+ [index_js_1.ChainWasmErrorCodes.ErrCreateFailed]: 'create wasm contract failed',
369
+ [index_js_1.ChainWasmErrorCodes.ErrAccountExists]: 'contract account already exists',
370
+ [index_js_1.ChainWasmErrorCodes.ErrInstantiateFailed]: 'instantiate wasm contract failed',
371
+ [index_js_1.ChainWasmErrorCodes.ErrExecuteFailed]: 'Contract execution failed',
372
+ [index_js_1.ChainWasmErrorCodes.ErrGasLimit]: 'insufficient gas',
373
+ [index_js_1.ChainWasmErrorCodes.ErrInvalidGenesis]: 'invalid genesis',
374
+ [index_js_1.ChainWasmErrorCodes.ErrNotFound]: 'not found',
375
+ [index_js_1.ChainWasmErrorCodes.ErrQueryFailed]: 'query wasm contract failed',
376
+ [index_js_1.ChainWasmErrorCodes.ErrInvalidMsg]: 'invalid CosmosMsg from the contract',
377
+ [index_js_1.ChainWasmErrorCodes.ErrMigrationFailed]: 'migrate wasm contract failed',
378
+ [index_js_1.ChainWasmErrorCodes.ErrEmpty]: 'empty',
379
+ [index_js_1.ChainWasmErrorCodes.ErrLimit]: 'exceeds limit',
380
+ [index_js_1.ChainWasmErrorCodes.ErrInvalid]: 'invalid',
381
+ [index_js_1.ChainWasmErrorCodes.ErrDuplicate]: 'duplicate',
382
+ [index_js_1.ChainWasmErrorCodes.ErrMaxIBCChannels]: 'max transfer channels',
383
+ [index_js_1.ChainWasmErrorCodes.ErrUnsupportedForContract]: 'unsupported for this contract',
384
+ [index_js_1.ChainWasmErrorCodes.ErrPinContractFailed]: 'pinning contract failed',
385
+ [index_js_1.ChainWasmErrorCodes.ErrUnpinContractFailed]: 'unpinning contract failed',
386
+ [index_js_1.ChainWasmErrorCodes.ErrUnknownMsg]: 'unknown message from the contract',
387
+ [index_js_1.ChainWasmErrorCodes.ErrInvalidEvent]: 'invalid event',
388
388
  };
389
389
  exports.chainModuleCodeErrorMessagesMap = {
390
- [types_1.TransactionChainErrorModule.AuthZ]: authZErrorMap,
391
- [types_1.TransactionChainErrorModule.Auction]: auctionErrorMap,
392
- [types_1.TransactionChainErrorModule.CosmosSdk]: cosmosErrorMap,
393
- [types_1.TransactionChainErrorModule.Exchange]: exchangeErrorMap,
394
- [types_1.TransactionChainErrorModule.Insurance]: insuranceErrorMap,
395
- [types_1.TransactionChainErrorModule.Ocr]: ocrErrorMap,
396
- [types_1.TransactionChainErrorModule.Oracle]: oracleErrorMap,
397
- [types_1.TransactionChainErrorModule.Peggy]: peggyErrorMap,
398
- [types_1.TransactionChainErrorModule.TokenFactory]: tokenFactoryErrorMap,
399
- [types_1.TransactionChainErrorModule.Wasmx]: wasmxErrorMap,
400
- [types_1.TransactionChainErrorModule.Wasm]: wasmErrorMap,
401
- [types_1.TransactionChainErrorModule.Staking]: stakingErrorMap,
402
- [types_1.TransactionChainErrorModule.Bank]: bankErrorMap,
403
- [types_1.TransactionChainErrorModule.Gov]: govErrorMap,
404
- [types_1.TransactionChainErrorModule.Distribution]: distributionErrorMap,
390
+ [index_js_1.TransactionChainErrorModule.AuthZ]: authZErrorMap,
391
+ [index_js_1.TransactionChainErrorModule.Auction]: auctionErrorMap,
392
+ [index_js_1.TransactionChainErrorModule.CosmosSdk]: cosmosErrorMap,
393
+ [index_js_1.TransactionChainErrorModule.Exchange]: exchangeErrorMap,
394
+ [index_js_1.TransactionChainErrorModule.Insurance]: insuranceErrorMap,
395
+ [index_js_1.TransactionChainErrorModule.Ocr]: ocrErrorMap,
396
+ [index_js_1.TransactionChainErrorModule.Oracle]: oracleErrorMap,
397
+ [index_js_1.TransactionChainErrorModule.Peggy]: peggyErrorMap,
398
+ [index_js_1.TransactionChainErrorModule.TokenFactory]: tokenFactoryErrorMap,
399
+ [index_js_1.TransactionChainErrorModule.Wasmx]: wasmxErrorMap,
400
+ [index_js_1.TransactionChainErrorModule.Wasm]: wasmErrorMap,
401
+ [index_js_1.TransactionChainErrorModule.Staking]: stakingErrorMap,
402
+ [index_js_1.TransactionChainErrorModule.Bank]: bankErrorMap,
403
+ [index_js_1.TransactionChainErrorModule.Gov]: govErrorMap,
404
+ [index_js_1.TransactionChainErrorModule.Distribution]: distributionErrorMap,
405
405
  };
406
406
  /**
407
407
  * **Legacy** but needed for error messages from broadcasting transactions
@@ -411,1191 +411,1191 @@ exports.chainModuleCodeErrorMessagesMap = {
411
411
  exports.chainErrorMessagesMap = {
412
412
  'insufficient fee': {
413
413
  message: 'You do not have enough funds to cover the transaction fees.',
414
- code: types_1.ChainCosmosErrorCode.ErrInsufficientFee,
415
- module: types_1.TransactionChainErrorModule.CosmosSdk,
414
+ code: index_js_1.ChainCosmosErrorCode.ErrInsufficientFee,
415
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
416
416
  },
417
417
  'insufficient funds': {
418
418
  message: 'You do not have enough funds.',
419
- code: types_1.ChainCosmosErrorCode.ErrInsufficientFunds,
420
- module: types_1.TransactionChainErrorModule.CosmosSdk,
419
+ code: index_js_1.ChainCosmosErrorCode.ErrInsufficientFunds,
420
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
421
421
  },
422
422
  'tx timeout height': {
423
423
  message: 'The transaction failed to be included within a block on time.',
424
- code: types_1.ChainCosmosErrorCode.ErrTxTimeoutHeight,
425
- module: types_1.TransactionChainErrorModule.CosmosSdk,
424
+ code: index_js_1.ChainCosmosErrorCode.ErrTxTimeoutHeight,
425
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
426
426
  },
427
427
  'tx parse error': {
428
428
  message: 'There is an issue while parsing the transaction',
429
- code: types_1.ChainCosmosErrorCode.ErrTxDecode,
430
- module: types_1.TransactionChainErrorModule.CosmosSdk,
429
+ code: index_js_1.ChainCosmosErrorCode.ErrTxDecode,
430
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
431
431
  },
432
432
  'invalid sequence': {
433
433
  message: 'The sequence number is not valid',
434
- code: types_1.ChainCosmosErrorCode.ErrInvalidSequence,
435
- module: types_1.TransactionChainErrorModule.CosmosSdk,
434
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidSequence,
435
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
436
436
  },
437
437
  unauthorized: {
438
438
  message: 'Unauthorized',
439
- code: types_1.ChainCosmosErrorCode.ErrUnauthorized,
440
- module: types_1.TransactionChainErrorModule.CosmosSdk,
439
+ code: index_js_1.ChainCosmosErrorCode.ErrUnauthorized,
440
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
441
441
  },
442
442
  'invalid address': {
443
443
  message: 'The address is not valid',
444
- code: types_1.ChainCosmosErrorCode.ErrInvalidAddress,
445
- module: types_1.TransactionChainErrorModule.CosmosSdk,
444
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidAddress,
445
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
446
446
  },
447
447
  'cosmos account not exists': {
448
448
  message: 'You need to create your address on Injective by transferring funds',
449
- code: types_1.ChainCosmosErrorCode.ErrInsufficientFee,
450
- module: types_1.TransactionChainErrorModule.CosmosSdk,
449
+ code: index_js_1.ChainCosmosErrorCode.ErrInsufficientFee,
450
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
451
451
  },
452
452
  'invalid pubkey': {
453
453
  message: 'The public key is not valid',
454
- code: types_1.ChainCosmosErrorCode.ErrInvalidPubKey,
455
- module: types_1.TransactionChainErrorModule.CosmosSdk,
454
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidPubKey,
455
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
456
456
  },
457
457
  'unknown address': {
458
458
  message: 'The address is unknown',
459
- code: types_1.ChainCosmosErrorCode.ErrUnknownAddress,
460
- module: types_1.TransactionChainErrorModule.CosmosSdk,
459
+ code: index_js_1.ChainCosmosErrorCode.ErrUnknownAddress,
460
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
461
461
  },
462
462
  'invalid coins': {
463
463
  message: 'The coins are not valid',
464
- code: types_1.ChainCosmosErrorCode.ErrInvalidCoins,
465
- module: types_1.TransactionChainErrorModule.CosmosSdk,
464
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidCoins,
465
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
466
466
  },
467
467
  'out of gas': {
468
468
  message: 'The transaction run out of gas',
469
- code: types_1.ChainCosmosErrorCode.ErrOutOfGas,
470
- module: types_1.TransactionChainErrorModule.CosmosSdk,
469
+ code: index_js_1.ChainCosmosErrorCode.ErrOutOfGas,
470
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
471
471
  },
472
472
  'memo too large': {
473
473
  message: 'The memo field in the transaction is too large',
474
- code: types_1.ChainCosmosErrorCode.ErrMemoTooLarge,
475
- module: types_1.TransactionChainErrorModule.CosmosSdk,
474
+ code: index_js_1.ChainCosmosErrorCode.ErrMemoTooLarge,
475
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
476
476
  },
477
477
  'maximum number of signatures exceeded': {
478
478
  message: 'The transaction exceeded the maximum number of signatures',
479
- code: types_1.ChainCosmosErrorCode.ErrTooManySignatures,
480
- module: types_1.TransactionChainErrorModule.CosmosSdk,
479
+ code: index_js_1.ChainCosmosErrorCode.ErrTooManySignatures,
480
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
481
481
  },
482
482
  'no signatures supplied': {
483
483
  message: 'There are no signatures appended on the transaction',
484
- code: types_1.ChainCosmosErrorCode.ErrNoSignatures,
485
- module: types_1.TransactionChainErrorModule.CosmosSdk,
484
+ code: index_js_1.ChainCosmosErrorCode.ErrNoSignatures,
485
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
486
486
  },
487
487
  'failed to marshal JSON bytes': {
488
488
  message: 'There is an issue while parsing the transaction',
489
- code: types_1.ChainCosmosErrorCode.ErrJSONMarshal,
490
- module: types_1.TransactionChainErrorModule.CosmosSdk,
489
+ code: index_js_1.ChainCosmosErrorCode.ErrJSONMarshal,
490
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
491
491
  },
492
492
  'failed to unmarshal JSON bytes': {
493
493
  message: 'There is an issue while parsing the transaction',
494
- code: types_1.ChainCosmosErrorCode.ErrJSONUnmarshal,
495
- module: types_1.TransactionChainErrorModule.CosmosSdk,
494
+ code: index_js_1.ChainCosmosErrorCode.ErrJSONUnmarshal,
495
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
496
496
  },
497
497
  'invalid request': {
498
498
  message: 'invalid request',
499
- code: types_1.ChainCosmosErrorCode.ErrInvalidRequest,
500
- module: types_1.TransactionChainErrorModule.CosmosSdk,
499
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidRequest,
500
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
501
501
  },
502
502
  'tx already in mempool': {
503
503
  message: 'The transaction is already in the mempool',
504
- code: types_1.ChainCosmosErrorCode.ErrTxInMempoolCache,
505
- module: types_1.TransactionChainErrorModule.CosmosSdk,
504
+ code: index_js_1.ChainCosmosErrorCode.ErrTxInMempoolCache,
505
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
506
506
  },
507
507
  'mempool is full': {
508
508
  message: 'The mempool is full',
509
- code: types_1.ChainCosmosErrorCode.ErrMempoolIsFull,
510
- module: types_1.TransactionChainErrorModule.CosmosSdk,
509
+ code: index_js_1.ChainCosmosErrorCode.ErrMempoolIsFull,
510
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
511
511
  },
512
512
  'tx too large': {
513
513
  message: 'The transaction is too large',
514
- code: types_1.ChainCosmosErrorCode.ErrTxTooLarge,
515
- module: types_1.TransactionChainErrorModule.CosmosSdk,
514
+ code: index_js_1.ChainCosmosErrorCode.ErrTxTooLarge,
515
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
516
516
  },
517
517
  'key not found': {
518
518
  message: 'Account does not exist on chain. To create an account, send some tokens to it',
519
- code: types_1.ChainCosmosErrorCode.ErrKeyNotFound,
520
- module: types_1.TransactionChainErrorModule.CosmosSdk,
519
+ code: index_js_1.ChainCosmosErrorCode.ErrKeyNotFound,
520
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
521
521
  },
522
522
  'invalid account password': {
523
523
  message: 'invalid account password',
524
- code: types_1.ChainCosmosErrorCode.ErrWrongPassword,
525
- module: types_1.TransactionChainErrorModule.CosmosSdk,
524
+ code: index_js_1.ChainCosmosErrorCode.ErrWrongPassword,
525
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
526
526
  },
527
527
  'tx intended signer does not match the given signer': {
528
528
  message: 'tx intended signer does not match the given signer',
529
- code: types_1.ChainCosmosErrorCode.ErrorInvalidSigner,
530
- module: types_1.TransactionChainErrorModule.CosmosSdk,
529
+ code: index_js_1.ChainCosmosErrorCode.ErrorInvalidSigner,
530
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
531
531
  },
532
532
  'invalid gas adjustment': {
533
533
  message: 'invalid gas adjustment',
534
- code: types_1.ChainCosmosErrorCode.ErrorInvalidGasAdjustment,
535
- module: types_1.TransactionChainErrorModule.CosmosSdk,
534
+ code: index_js_1.ChainCosmosErrorCode.ErrorInvalidGasAdjustment,
535
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
536
536
  },
537
537
  'invalid height': {
538
538
  message: 'The height provided in the transaction is not valid',
539
- code: types_1.ChainCosmosErrorCode.ErrInvalidHeight,
540
- module: types_1.TransactionChainErrorModule.CosmosSdk,
539
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidHeight,
540
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
541
541
  },
542
542
  'invalid version': {
543
543
  message: 'The version provided in the transaction is not valid',
544
- code: types_1.ChainCosmosErrorCode.ErrInvalidVersion,
545
- module: types_1.TransactionChainErrorModule.CosmosSdk,
544
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidVersion,
545
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
546
546
  },
547
547
  'invalid chain-id': {
548
548
  message: 'The chainId provided in the transaction is not valid',
549
- code: types_1.ChainCosmosErrorCode.ErrInvalidChainID,
550
- module: types_1.TransactionChainErrorModule.CosmosSdk,
549
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidChainID,
550
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
551
551
  },
552
552
  'invalid type': {
553
553
  message: 'The type provided in the transaction is not valid',
554
- code: types_1.ChainCosmosErrorCode.ErrInvalidType,
555
- module: types_1.TransactionChainErrorModule.CosmosSdk,
554
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidType,
555
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
556
556
  },
557
557
  'unknown extension options': {
558
558
  message: 'The extension options provided in the transaction is unknown',
559
- code: types_1.ChainCosmosErrorCode.ErrUnknownExtensionOptions,
560
- module: types_1.TransactionChainErrorModule.CosmosSdk,
559
+ code: index_js_1.ChainCosmosErrorCode.ErrUnknownExtensionOptions,
560
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
561
561
  },
562
562
  'incorrect account sequence': {
563
563
  message: 'The sequence number provided in the transaction is incorrect',
564
- code: types_1.ChainCosmosErrorCode.ErrWrongSequence,
565
- module: types_1.TransactionChainErrorModule.CosmosSdk,
564
+ code: index_js_1.ChainCosmosErrorCode.ErrWrongSequence,
565
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
566
566
  },
567
567
  'failed packing protobuf message to Any': {
568
568
  message: 'failed packing protobuf message to Any',
569
- code: types_1.ChainCosmosErrorCode.ErrPackAny,
570
- module: types_1.TransactionChainErrorModule.CosmosSdk,
569
+ code: index_js_1.ChainCosmosErrorCode.ErrPackAny,
570
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
571
571
  },
572
572
  'failed unpacking protobuf message from Any': {
573
573
  message: 'failed unpacking protobuf message from Any',
574
- code: types_1.ChainCosmosErrorCode.ErrUnpackAny,
575
- module: types_1.TransactionChainErrorModule.CosmosSdk,
574
+ code: index_js_1.ChainCosmosErrorCode.ErrUnpackAny,
575
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
576
576
  },
577
577
  'internal logic error': {
578
578
  message: 'Internal logic error',
579
- code: types_1.ChainCosmosErrorCode.ErrLogic,
580
- module: types_1.TransactionChainErrorModule.CosmosSdk,
579
+ code: index_js_1.ChainCosmosErrorCode.ErrLogic,
580
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
581
581
  },
582
582
  conflict: {
583
583
  message: 'conflict',
584
- code: types_1.ChainCosmosErrorCode.ErrConflict,
585
- module: types_1.TransactionChainErrorModule.CosmosSdk,
584
+ code: index_js_1.ChainCosmosErrorCode.ErrConflict,
585
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
586
586
  },
587
587
  'feature not supported': {
588
588
  message: 'The feature is not supported',
589
- code: types_1.ChainCosmosErrorCode.ErrNotSupported,
590
- module: types_1.TransactionChainErrorModule.CosmosSdk,
589
+ code: index_js_1.ChainCosmosErrorCode.ErrNotSupported,
590
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
591
591
  },
592
592
  'Internal IO error': {
593
593
  message: 'Internal IO error',
594
- code: types_1.ChainCosmosErrorCode.ErrIO,
595
- module: types_1.TransactionChainErrorModule.CosmosSdk,
594
+ code: index_js_1.ChainCosmosErrorCode.ErrIO,
595
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
596
596
  },
597
597
  'error in app.toml': {
598
598
  message: 'error in app.toml',
599
- code: types_1.ChainCosmosErrorCode.ErrAppConfig,
600
- module: types_1.TransactionChainErrorModule.CosmosSdk,
599
+ code: index_js_1.ChainCosmosErrorCode.ErrAppConfig,
600
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
601
601
  },
602
602
  'invalid gas limit': {
603
603
  message: 'The gas limit provided in the transaction is not valid',
604
- code: types_1.ChainCosmosErrorCode.ErrInvalidGasLimit,
605
- module: types_1.TransactionChainErrorModule.CosmosSdk,
604
+ code: index_js_1.ChainCosmosErrorCode.ErrInvalidGasLimit,
605
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
606
606
  },
607
607
  // Auction Module Messages
608
608
  'invalid bid denom': {
609
609
  message: 'The gas limit provided in the transaction is not valid',
610
- code: types_1.ChainAuctionErrorCodes.ErrBidInvalid,
611
- module: types_1.TransactionChainErrorModule.Auction,
610
+ code: index_js_1.ChainAuctionErrorCodes.ErrBidInvalid,
611
+ module: index_js_1.TransactionChainErrorModule.Auction,
612
612
  },
613
613
  'invalid bid round': {
614
614
  message: 'The gas limit provided in the transaction is not valid',
615
- code: types_1.ChainAuctionErrorCodes.ErrBidRound,
616
- module: types_1.TransactionChainErrorModule.Auction,
615
+ code: index_js_1.ChainAuctionErrorCodes.ErrBidRound,
616
+ module: index_js_1.TransactionChainErrorModule.Auction,
617
617
  },
618
618
  // Insurance Module Messages
619
619
  'insurance fund already exists': {
620
620
  message: 'The insurance fund already exists',
621
- code: types_1.ChainInsuranceErrorCodes.ErrInsuranceFundAlreadyExists,
622
- module: types_1.TransactionChainErrorModule.Insurance,
621
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInsuranceFundAlreadyExists,
622
+ module: index_js_1.TransactionChainErrorModule.Insurance,
623
623
  },
624
624
  'insurance fund not found': {
625
625
  message: 'The insurance fund is not found',
626
- code: types_1.ChainInsuranceErrorCodes.ErrInsuranceFundNotFound,
627
- module: types_1.TransactionChainErrorModule.Insurance,
626
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInsuranceFundNotFound,
627
+ module: index_js_1.TransactionChainErrorModule.Insurance,
628
628
  },
629
629
  'redemption already exists': {
630
630
  message: 'The redemption already exists',
631
- code: types_1.ChainInsuranceErrorCodes.ErrRedemptionAlreadyExists,
632
- module: types_1.TransactionChainErrorModule.Insurance,
631
+ code: index_js_1.ChainInsuranceErrorCodes.ErrRedemptionAlreadyExists,
632
+ module: index_js_1.TransactionChainErrorModule.Insurance,
633
633
  },
634
634
  'invalid deposit amount': {
635
635
  message: 'The deposit amount is not valid',
636
- code: types_1.ChainInsuranceErrorCodes.ErrInvalidDepositAmount,
637
- module: types_1.TransactionChainErrorModule.Insurance,
636
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInvalidDepositAmount,
637
+ module: index_js_1.TransactionChainErrorModule.Insurance,
638
638
  },
639
639
  'invalid deposit denom': {
640
640
  message: 'The deposit denom is not valid',
641
- code: types_1.ChainInsuranceErrorCodes.ErrInvalidDepositDenom,
642
- module: types_1.TransactionChainErrorModule.Insurance,
641
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInvalidDepositDenom,
642
+ module: index_js_1.TransactionChainErrorModule.Insurance,
643
643
  },
644
644
  'insurance payout exceeds deposits': {
645
645
  message: 'The insurance fund payout exceeds the deposits',
646
- code: types_1.ChainInsuranceErrorCodes.ErrPayoutTooLarge,
647
- module: types_1.TransactionChainErrorModule.Insurance,
646
+ code: index_js_1.ChainInsuranceErrorCodes.ErrPayoutTooLarge,
647
+ module: index_js_1.TransactionChainErrorModule.Insurance,
648
648
  },
649
649
  'invalid ticker': {
650
650
  message: 'The ticker is not valid',
651
- code: types_1.ChainInsuranceErrorCodes.ErrInvalidTicker,
652
- module: types_1.TransactionChainErrorModule.Insurance,
651
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInvalidTicker,
652
+ module: index_js_1.TransactionChainErrorModule.Insurance,
653
653
  },
654
654
  'invalid quote denom': {
655
655
  message: 'The quote denom is not valid',
656
- code: types_1.ChainInsuranceErrorCodes.ErrInvalidQuoteDenom,
657
- module: types_1.TransactionChainErrorModule.Insurance,
656
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInvalidQuoteDenom,
657
+ module: index_js_1.TransactionChainErrorModule.Insurance,
658
658
  },
659
659
  'invalid oracle': {
660
660
  message: 'The oracle is not valid',
661
- code: types_1.ChainInsuranceErrorCodes.ErrInvalidOracle,
662
- module: types_1.TransactionChainErrorModule.Insurance,
661
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInvalidOracle,
662
+ module: index_js_1.TransactionChainErrorModule.Insurance,
663
663
  },
664
664
  'invalid expiration time': {
665
665
  message: 'The expiration time is not valid',
666
- code: types_1.ChainInsuranceErrorCodes.ErrInvalidExpirationTime,
667
- module: types_1.TransactionChainErrorModule.Insurance,
666
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInvalidExpirationTime,
667
+ module: index_js_1.TransactionChainErrorModule.Insurance,
668
668
  },
669
669
  'invalid marketID': {
670
670
  message: 'The marketId is not valid',
671
- code: types_1.ChainInsuranceErrorCodes.ErrInvalidMarketID,
672
- module: types_1.TransactionChainErrorModule.Insurance,
671
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInvalidMarketID,
672
+ module: index_js_1.TransactionChainErrorModule.Insurance,
673
673
  },
674
674
  'invalid share denom': {
675
675
  message: 'The share denom is not valid',
676
- code: types_1.ChainInsuranceErrorCodes.ErrInvalidShareDenom,
677
- module: types_1.TransactionChainErrorModule.Insurance,
676
+ code: index_js_1.ChainInsuranceErrorCodes.ErrInvalidShareDenom,
677
+ module: index_js_1.TransactionChainErrorModule.Insurance,
678
678
  },
679
679
  // Exchange Module Messages
680
680
  'failed to validate order': {
681
681
  message: 'Your order failed to validate',
682
- code: types_1.ChainExchangeModuleErrorCode.ErrOrderInvalid,
683
- module: types_1.TransactionChainErrorModule.Exchange,
682
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrOrderInvalid,
683
+ module: index_js_1.TransactionChainErrorModule.Exchange,
684
684
  },
685
685
  'spot market not found': {
686
686
  message: 'The spot market has not been found',
687
- code: types_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound,
688
- module: types_1.TransactionChainErrorModule.Exchange,
687
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrSpotMarketNotFound,
688
+ module: index_js_1.TransactionChainErrorModule.Exchange,
689
689
  },
690
690
  'spot market exists': {
691
691
  message: 'The spot market already exists',
692
- code: types_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists,
693
- module: types_1.TransactionChainErrorModule.Exchange,
692
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrSpotMarketExists,
693
+ module: index_js_1.TransactionChainErrorModule.Exchange,
694
694
  },
695
695
  'struct field error': {
696
696
  message: 'There is an issue with your order',
697
- code: types_1.ChainExchangeModuleErrorCode.ErrBadField,
698
- module: types_1.TransactionChainErrorModule.Exchange,
697
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrBadField,
698
+ module: index_js_1.TransactionChainErrorModule.Exchange,
699
699
  },
700
700
  'failed to validate market': {
701
701
  message: 'The market failed to validate',
702
- code: types_1.ChainExchangeModuleErrorCode.ErrMarketInvalid,
703
- module: types_1.TransactionChainErrorModule.Exchange,
702
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrMarketInvalid,
703
+ module: index_js_1.TransactionChainErrorModule.Exchange,
704
704
  },
705
705
  'subaccount has insufficient deposits': {
706
706
  message: 'Your trading account has insufficient funds',
707
- code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientDeposit,
708
- module: types_1.TransactionChainErrorModule.Exchange,
707
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInsufficientDeposit,
708
+ module: index_js_1.TransactionChainErrorModule.Exchange,
709
709
  },
710
710
  'unrecognized order type': {
711
711
  message: 'The order type is not recognized',
712
- code: types_1.ChainExchangeModuleErrorCode.ErrUnrecognizedOrderType,
713
- module: types_1.TransactionChainErrorModule.Exchange,
712
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrUnrecognizedOrderType,
713
+ module: index_js_1.TransactionChainErrorModule.Exchange,
714
714
  },
715
715
  'position quantity insufficient for order': {
716
716
  message: 'The position quantity is insufficient for the order',
717
- code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientPositionQuantity,
718
- module: types_1.TransactionChainErrorModule.Exchange,
717
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInsufficientPositionQuantity,
718
+ module: index_js_1.TransactionChainErrorModule.Exchange,
719
719
  },
720
720
  'order hash is not valid': {
721
721
  message: 'The order hash is not valid',
722
- code: types_1.ChainExchangeModuleErrorCode.ErrOrderHashInvalid,
723
- module: types_1.TransactionChainErrorModule.Exchange,
722
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrOrderHashInvalid,
723
+ module: index_js_1.TransactionChainErrorModule.Exchange,
724
724
  },
725
725
  'subaccount id is not valid': {
726
726
  message: 'The subaccount id is not valid',
727
- code: types_1.ChainExchangeModuleErrorCode.ErrBadSubaccountID,
728
- module: types_1.TransactionChainErrorModule.Exchange,
727
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrBadSubaccountID,
728
+ module: index_js_1.TransactionChainErrorModule.Exchange,
729
729
  },
730
730
  'invalid base denom': {
731
731
  message: '',
732
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidBaseDenom,
733
- module: types_1.TransactionChainErrorModule.Exchange,
732
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidBaseDenom,
733
+ module: index_js_1.TransactionChainErrorModule.Exchange,
734
734
  },
735
735
  'invalid expiry': {
736
736
  message: 'The expiry date is not valid',
737
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidExpiry,
738
- module: types_1.TransactionChainErrorModule.Exchange,
737
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidExpiry,
738
+ module: index_js_1.TransactionChainErrorModule.Exchange,
739
739
  },
740
740
  'invalid price': {
741
741
  message: 'The price is not valid',
742
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidPrice,
743
- module: types_1.TransactionChainErrorModule.Exchange,
742
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidPrice,
743
+ module: index_js_1.TransactionChainErrorModule.Exchange,
744
744
  },
745
745
  'invalid quantity': {
746
746
  message: 'The quantity is not valid',
747
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantity,
748
- module: types_1.TransactionChainErrorModule.Exchange,
747
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidQuantity,
748
+ module: index_js_1.TransactionChainErrorModule.Exchange,
749
749
  },
750
750
  'unsupported oracle type': {
751
751
  message: 'The oracle type is not supported',
752
- code: types_1.ChainExchangeModuleErrorCode.ErrUnsupportedOracleType,
753
- module: types_1.TransactionChainErrorModule.Exchange,
752
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrUnsupportedOracleType,
753
+ module: index_js_1.TransactionChainErrorModule.Exchange,
754
754
  },
755
755
  'order doesnt exist': {
756
756
  message: 'The order does not exist',
757
- code: types_1.ChainExchangeModuleErrorCode.ErrOrderDoesntExist,
758
- module: types_1.TransactionChainErrorModule.Exchange,
757
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrOrderDoesntExist,
758
+ module: index_js_1.TransactionChainErrorModule.Exchange,
759
759
  },
760
760
  'spot limit orderbook fill invalid': {
761
761
  message: '',
762
- code: types_1.ChainExchangeModuleErrorCode.ErrOrderbookFillInvalid,
763
- module: types_1.TransactionChainErrorModule.Exchange,
762
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrOrderbookFillInvalid,
763
+ module: index_js_1.TransactionChainErrorModule.Exchange,
764
764
  },
765
765
  'perpetual market exists': {
766
766
  message: 'The perpetual market already exists',
767
- code: types_1.ChainExchangeModuleErrorCode.ErrPerpetualMarketExists,
768
- module: types_1.TransactionChainErrorModule.Exchange,
767
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrPerpetualMarketExists,
768
+ module: index_js_1.TransactionChainErrorModule.Exchange,
769
769
  },
770
770
  'expiry futures market exists': {
771
771
  message: 'The expiry futures market market already exists',
772
- code: types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExists,
773
- module: types_1.TransactionChainErrorModule.Exchange,
772
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExists,
773
+ module: index_js_1.TransactionChainErrorModule.Exchange,
774
774
  },
775
775
  'expiry futures market expired': {
776
776
  message: 'The expiry futures market has expired',
777
- code: types_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExpired,
778
- module: types_1.TransactionChainErrorModule.Exchange,
777
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrExpiryFuturesMarketExpired,
778
+ module: index_js_1.TransactionChainErrorModule.Exchange,
779
779
  },
780
780
  'no liquidity on the orderbook': {
781
781
  message: 'There is not enough liquidity',
782
- code: types_1.ChainExchangeModuleErrorCode.ErrNoLiquidity,
783
- module: types_1.TransactionChainErrorModule.Exchange,
782
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrNoLiquidity,
783
+ module: index_js_1.TransactionChainErrorModule.Exchange,
784
784
  },
785
785
  'orderbook liquidity cannot satisfy current worst price': {
786
786
  message: 'There is not enough liquidity',
787
- code: types_1.ChainExchangeModuleErrorCode.ErrSlippageExceedsWorstPrice,
788
- module: types_1.TransactionChainErrorModule.Exchange,
787
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrSlippageExceedsWorstPrice,
788
+ module: index_js_1.TransactionChainErrorModule.Exchange,
789
789
  },
790
790
  'order has insufficient margin': {
791
791
  message: 'The order has insufficient margin',
792
- code: types_1.ChainExchangeModuleErrorCode.ErrInsufficientOrderMargin,
793
- module: types_1.TransactionChainErrorModule.Exchange,
792
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInsufficientOrderMargin,
793
+ module: index_js_1.TransactionChainErrorModule.Exchange,
794
794
  },
795
795
  'derivative market not found': {
796
796
  message: 'The derivative market cannot be found',
797
- code: types_1.ChainExchangeModuleErrorCode.ErrDerivativeMarketNotFound,
798
- module: types_1.TransactionChainErrorModule.Exchange,
797
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrDerivativeMarketNotFound,
798
+ module: index_js_1.TransactionChainErrorModule.Exchange,
799
799
  },
800
800
  'position not found': {
801
801
  message: 'The position cannot be found',
802
- code: types_1.ChainExchangeModuleErrorCode.ErrPositionNotFound,
803
- module: types_1.TransactionChainErrorModule.Exchange,
802
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrPositionNotFound,
803
+ module: index_js_1.TransactionChainErrorModule.Exchange,
804
804
  },
805
805
  'position direction does not oppose the reduce-only order': {
806
806
  message: 'Position direction does not oppose the reduce-only order',
807
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidReduceOnlyPositionDirection,
808
- module: types_1.TransactionChainErrorModule.Exchange,
807
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidReduceOnlyPositionDirection,
808
+ module: index_js_1.TransactionChainErrorModule.Exchange,
809
809
  },
810
810
  'price surpasses bankruptcy price': {
811
811
  message: 'Your order price surpasses bankruptcy price',
812
- code: types_1.ChainExchangeModuleErrorCode.ErrPriceSurpassesBankruptcyPrice,
813
- module: types_1.TransactionChainErrorModule.Exchange,
812
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrPriceSurpassesBankruptcyPrice,
813
+ module: index_js_1.TransactionChainErrorModule.Exchange,
814
814
  },
815
815
  'position not liquidable': {
816
816
  message: 'The position is not liquidable',
817
- code: types_1.ChainExchangeModuleErrorCode.ErrPositionNotLiquidable,
818
- module: types_1.TransactionChainErrorModule.Exchange,
817
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrPositionNotLiquidable,
818
+ module: index_js_1.TransactionChainErrorModule.Exchange,
819
819
  },
820
820
  'invalid trigger price': {
821
821
  message: 'Your order trigger price is not valid',
822
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTriggerPrice,
823
- module: types_1.TransactionChainErrorModule.Exchange,
822
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTriggerPrice,
823
+ module: index_js_1.TransactionChainErrorModule.Exchange,
824
824
  },
825
825
  'invalid oracle type': {
826
826
  message: 'The oracle type is not valid',
827
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidOracleType,
828
- module: types_1.TransactionChainErrorModule.Exchange,
827
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidOracleType,
828
+ module: index_js_1.TransactionChainErrorModule.Exchange,
829
829
  },
830
830
  'invalid minimum price tick size': {
831
831
  message: 'The minimum price tick size is not valid',
832
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidPriceTickSize,
833
- module: types_1.TransactionChainErrorModule.Exchange,
832
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidPriceTickSize,
833
+ module: index_js_1.TransactionChainErrorModule.Exchange,
834
834
  },
835
835
  'invalid minimum quantity tick size': {
836
836
  message: 'The minimum quantity tick size is not valid',
837
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidQuantityTickSize,
838
- module: types_1.TransactionChainErrorModule.Exchange,
837
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidQuantityTickSize,
838
+ module: index_js_1.TransactionChainErrorModule.Exchange,
839
839
  },
840
840
  'invalid minimum order margin': {
841
841
  message: "Your order's minimum margin is not valid ",
842
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMargin,
843
- module: types_1.TransactionChainErrorModule.Exchange,
842
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidMargin,
843
+ module: index_js_1.TransactionChainErrorModule.Exchange,
844
844
  },
845
845
  'exceeds order side count': {
846
846
  message: 'You cannot have more orders for this market for this direction',
847
- code: types_1.ChainExchangeModuleErrorCode.ErrExceedsOrderSideCount,
848
- module: types_1.TransactionChainErrorModule.Exchange,
847
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrExceedsOrderSideCount,
848
+ module: index_js_1.TransactionChainErrorModule.Exchange,
849
849
  },
850
850
  'subaccount cannot place a market order when a market order in the same market was already placed in same block': {
851
851
  message: 'You cannot place another market order within this block',
852
- code: types_1.ChainExchangeModuleErrorCode.ErrMarketOrderAlreadyExists,
853
- module: types_1.TransactionChainErrorModule.Exchange,
852
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrMarketOrderAlreadyExists,
853
+ module: index_js_1.TransactionChainErrorModule.Exchange,
854
854
  },
855
855
  'cannot place a conditional market order when a conditional market order in same relative direction already exists': {
856
856
  message: 'You cannot place another conditional market order',
857
- code: types_1.ChainExchangeModuleErrorCode.ErrConditionalMarketOrderAlreadyExists,
858
- module: types_1.TransactionChainErrorModule.Exchange,
857
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrConditionalMarketOrderAlreadyExists,
858
+ module: index_js_1.TransactionChainErrorModule.Exchange,
859
859
  },
860
860
  'an equivalent market launch proposal already exists.': {
861
861
  message: 'There is an existing equivalent market launch proposal.',
862
- code: types_1.ChainExchangeModuleErrorCode.ErrMarketLaunchProposalAlreadyExists,
863
- module: types_1.TransactionChainErrorModule.Exchange,
862
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrMarketLaunchProposalAlreadyExists,
863
+ module: index_js_1.TransactionChainErrorModule.Exchange,
864
864
  },
865
865
  'invalid market status': {
866
866
  message: 'The market status is not valid',
867
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketStatus,
868
- module: types_1.TransactionChainErrorModule.Exchange,
867
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidMarketStatus,
868
+ module: index_js_1.TransactionChainErrorModule.Exchange,
869
869
  },
870
870
  'base denom cannot be same with quote denom': {
871
871
  message: 'The base denom and quote denom cannot be same',
872
- code: types_1.ChainExchangeModuleErrorCode.ErrSameDenoms,
873
- module: types_1.TransactionChainErrorModule.Exchange,
872
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrSameDenoms,
873
+ module: index_js_1.TransactionChainErrorModule.Exchange,
874
874
  },
875
875
  'oracle base cannot be same with oracle quote': {
876
876
  message: 'The oracle base and the oracle quote cannot be the same',
877
- code: types_1.ChainExchangeModuleErrorCode.ErrSameOracles,
878
- module: types_1.TransactionChainErrorModule.Exchange,
877
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrSameOracles,
878
+ module: index_js_1.TransactionChainErrorModule.Exchange,
879
879
  },
880
880
  'makerfeerate does not match takerfeeeate requirements': {
881
881
  message: 'The MakerFeeRate does not match TakerFeeRate requirements',
882
- code: types_1.ChainExchangeModuleErrorCode.ErrFeeRatesRelation,
883
- module: types_1.TransactionChainErrorModule.Exchange,
882
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrFeeRatesRelation,
883
+ module: index_js_1.TransactionChainErrorModule.Exchange,
884
884
  },
885
885
  'maintenancemarginratio cannot be greater than initialmarginratio': {
886
886
  message: 'The MaintenanceMarginRatio cannot be greater than InitialMarginRatio',
887
- code: types_1.ChainExchangeModuleErrorCode.ErrMarginsRelation,
888
- module: types_1.TransactionChainErrorModule.Exchange,
887
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrMarginsRelation,
888
+ module: index_js_1.TransactionChainErrorModule.Exchange,
889
889
  },
890
890
  'oraclescalefactor cannot be greater than maxoraclescalefactor': {
891
891
  message: 'The OracleScaleFactor cannot be greater than MaxOracleScaleFactor',
892
- code: types_1.ChainExchangeModuleErrorCode.ErrExceedsMaxOracleScaleFactor,
893
- module: types_1.TransactionChainErrorModule.Exchange,
892
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrExceedsMaxOracleScaleFactor,
893
+ module: index_js_1.TransactionChainErrorModule.Exchange,
894
894
  },
895
895
  'spot exchange is not enabled yet': {
896
896
  message: 'Spot exchange is not enabled yet',
897
- code: types_1.ChainExchangeModuleErrorCode.ErrSpotExchangeNotEnabled,
898
- module: types_1.TransactionChainErrorModule.Exchange,
897
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrSpotExchangeNotEnabled,
898
+ module: index_js_1.TransactionChainErrorModule.Exchange,
899
899
  },
900
900
  'derivatives exchange is not enabled yet': {
901
901
  message: 'Derivatives exchange is not enabled yet',
902
- code: types_1.ChainExchangeModuleErrorCode.ErrDerivativesExchangeNotEnabled,
903
- module: types_1.TransactionChainErrorModule.Exchange,
902
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrDerivativesExchangeNotEnabled,
903
+ module: index_js_1.TransactionChainErrorModule.Exchange,
904
904
  },
905
905
  'oracle price delta exceeds threshold': {
906
906
  message: 'The oracle price delta exceeds threshold',
907
- code: types_1.ChainExchangeModuleErrorCode.ErrOraclePriceDeltaExceedsThreshold,
908
- module: types_1.TransactionChainErrorModule.Exchange,
907
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrOraclePriceDeltaExceedsThreshold,
908
+ module: index_js_1.TransactionChainErrorModule.Exchange,
909
909
  },
910
910
  'invalid hourly interest rate': {
911
911
  message: 'The hourly interest rate is not valid',
912
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyInterestRate,
913
- module: types_1.TransactionChainErrorModule.Exchange,
912
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyInterestRate,
913
+ module: index_js_1.TransactionChainErrorModule.Exchange,
914
914
  },
915
915
  'invalid hourly funding rate cap': {
916
916
  message: 'The hourly funding rate cap is not valid',
917
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyFundingRateCap,
918
- module: types_1.TransactionChainErrorModule.Exchange,
917
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidHourlyFundingRateCap,
918
+ module: index_js_1.TransactionChainErrorModule.Exchange,
919
919
  },
920
920
  'only perpetual markets can update funding parameters': {
921
921
  message: 'You can only update funding parameters on perpetual markets.',
922
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarketFundingParamUpdate,
923
- module: types_1.TransactionChainErrorModule.Exchange,
922
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidMarketFundingParamUpdate,
923
+ module: index_js_1.TransactionChainErrorModule.Exchange,
924
924
  },
925
925
  'invalid trading reward campaign': {
926
926
  message: 'The trading reward campaign is not valid',
927
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardCampaign,
928
- module: types_1.TransactionChainErrorModule.Exchange,
927
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardCampaign,
928
+ module: index_js_1.TransactionChainErrorModule.Exchange,
929
929
  },
930
930
  'invalid fee discount schedule': {
931
931
  message: 'The fee discount schedule is not valid',
932
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidFeeDiscountSchedule,
933
- module: types_1.TransactionChainErrorModule.Exchange,
932
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidFeeDiscountSchedule,
933
+ module: index_js_1.TransactionChainErrorModule.Exchange,
934
934
  },
935
935
  'invalid liquidation order': {
936
936
  message: 'The liquidation order is not valid',
937
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidLiquidationOrder,
938
- module: types_1.TransactionChainErrorModule.Exchange,
937
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidLiquidationOrder,
938
+ module: index_js_1.TransactionChainErrorModule.Exchange,
939
939
  },
940
940
  'unknown error happened for campaign distributions': {
941
941
  message: 'Unknown error happened for campaign distributions',
942
- code: types_1.ChainExchangeModuleErrorCode.ErrTradingRewardCampaignDistributionError,
943
- module: types_1.TransactionChainErrorModule.Exchange,
942
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrTradingRewardCampaignDistributionError,
943
+ module: index_js_1.TransactionChainErrorModule.Exchange,
944
944
  },
945
945
  'invalid trading reward points update': {
946
946
  message: 'The updated trading reward points is not valid',
947
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardsPendingPointsUpdate,
948
- module: types_1.TransactionChainErrorModule.Exchange,
947
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTradingRewardsPendingPointsUpdate,
948
+ module: index_js_1.TransactionChainErrorModule.Exchange,
949
949
  },
950
950
  'invalid batch msg update': {
951
951
  message: 'The MsgBatchUpdate is not valid',
952
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidBatchMsgUpdate,
953
- module: types_1.TransactionChainErrorModule.Exchange,
952
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidBatchMsgUpdate,
953
+ module: index_js_1.TransactionChainErrorModule.Exchange,
954
954
  },
955
955
  'post-only order exceeds top of book price': {
956
956
  message: 'The post-only order price exceeds top of the orderbook price',
957
- code: types_1.ChainExchangeModuleErrorCode.ErrExceedsTopOfBookPrice,
958
- module: types_1.TransactionChainErrorModule.Exchange,
957
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrExceedsTopOfBookPrice,
958
+ module: index_js_1.TransactionChainErrorModule.Exchange,
959
959
  },
960
960
  'order type not supported for given message': {
961
961
  message: 'The order type is not supported for this message',
962
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidOrderTypeForMessage,
963
- module: types_1.TransactionChainErrorModule.Exchange,
962
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidOrderTypeForMessage,
963
+ module: index_js_1.TransactionChainErrorModule.Exchange,
964
964
  },
965
965
  'sender must match dmm account': {
966
966
  message: 'The sender must match the DMM address',
967
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidDMMSender,
968
- module: types_1.TransactionChainErrorModule.Exchange,
967
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidDMMSender,
968
+ module: index_js_1.TransactionChainErrorModule.Exchange,
969
969
  },
970
970
  'already opted out of rewards': {
971
971
  message: 'The DMM address already opted out of rewards',
972
- code: types_1.ChainExchangeModuleErrorCode.ErrAlreadyOptedOutOfRewards,
973
- module: types_1.TransactionChainErrorModule.Exchange,
972
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrAlreadyOptedOutOfRewards,
973
+ module: index_js_1.TransactionChainErrorModule.Exchange,
974
974
  },
975
975
  'invalid margin ratio': {
976
976
  message: 'The margin ratio is not valid',
977
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidMarginRatio,
978
- module: types_1.TransactionChainErrorModule.Exchange,
977
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidMarginRatio,
978
+ module: index_js_1.TransactionChainErrorModule.Exchange,
979
979
  },
980
980
  'provided funds are below minimum': {
981
981
  message: 'The provided funds are below minimum',
982
- code: types_1.ChainExchangeModuleErrorCode.ErrBelowMinimalContribution,
983
- module: types_1.TransactionChainErrorModule.Exchange,
982
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrBelowMinimalContribution,
983
+ module: index_js_1.TransactionChainErrorModule.Exchange,
984
984
  },
985
985
  'position is below initial margin requirement': {
986
986
  message: 'The position is below initial margin requirement',
987
- code: types_1.ChainExchangeModuleErrorCode.ErrLowPositionMargin,
988
- module: types_1.TransactionChainErrorModule.Exchange,
987
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrLowPositionMargin,
988
+ module: index_js_1.TransactionChainErrorModule.Exchange,
989
989
  },
990
990
  'pool has non-positive total lp token supply': {
991
991
  message: 'The pool has non-positive total LP token supply',
992
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTotalSupply,
993
- module: types_1.TransactionChainErrorModule.Exchange,
992
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTotalSupply,
993
+ module: index_js_1.TransactionChainErrorModule.Exchange,
994
994
  },
995
995
  'passed lp token burn amount is greater than total lp token supply': {
996
996
  message: 'The passed LP token burn amount is greater than total LP token supply',
997
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidLpTokenBurnAmount,
998
- module: types_1.TransactionChainErrorModule.Exchange,
997
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidLpTokenBurnAmount,
998
+ module: index_js_1.TransactionChainErrorModule.Exchange,
999
999
  },
1000
1000
  'unsupported action': {
1001
1001
  message: 'This action is not supported',
1002
- code: types_1.ChainExchangeModuleErrorCode.ErrUnsupportedAction,
1003
- module: types_1.TransactionChainErrorModule.Exchange,
1002
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrUnsupportedAction,
1003
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1004
1004
  },
1005
1005
  'position quantity cannot be negative': {
1006
1006
  message: 'The position quantity cannot be negative',
1007
- code: types_1.ChainExchangeModuleErrorCode.ErrNegativePositionQuantity,
1008
- module: types_1.TransactionChainErrorModule.Exchange,
1007
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrNegativePositionQuantity,
1008
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1009
1009
  },
1010
1010
  'binary options market exists': {
1011
1011
  message: 'The BinaryOptions market already exists',
1012
- code: types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketExists,
1013
- module: types_1.TransactionChainErrorModule.Exchange,
1012
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketExists,
1013
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1014
1014
  },
1015
1015
  'binary options market not found': {
1016
1016
  message: 'The BinaryOptions market cannot be found',
1017
- code: types_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketNotFound,
1018
- module: types_1.TransactionChainErrorModule.Exchange,
1017
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrBinaryOptionsMarketNotFound,
1018
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1019
1019
  },
1020
1020
  'invalid settlement': {
1021
1021
  message: 'The settlement price is not valid',
1022
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidSettlement,
1023
- module: types_1.TransactionChainErrorModule.Exchange,
1022
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidSettlement,
1023
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1024
1024
  },
1025
1025
  'account doesnt exist': {
1026
1026
  message: 'The trading account does not exist',
1027
- code: types_1.ChainExchangeModuleErrorCode.ErrAccountDoesntExist,
1028
- module: types_1.TransactionChainErrorModule.Exchange,
1027
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrAccountDoesntExist,
1028
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1029
1029
  },
1030
1030
  'sender should be a market admin': {
1031
1031
  message: 'The sender should be the admin of the market',
1032
- code: types_1.ChainExchangeModuleErrorCode.ErrSenderIsNotAnAdmin,
1033
- module: types_1.TransactionChainErrorModule.Exchange,
1032
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrSenderIsNotAnAdmin,
1033
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1034
1034
  },
1035
1035
  'market is already scheduled to settle': {
1036
1036
  message: 'The market is already scheduled to settle ',
1037
- code: types_1.ChainExchangeModuleErrorCode.ErrMarketAlreadyScheduledToSettle,
1038
- module: types_1.TransactionChainErrorModule.Exchange,
1037
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrMarketAlreadyScheduledToSettle,
1038
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1039
1039
  },
1040
1040
  'market not found': {
1041
1041
  message: 'The market cannot be found',
1042
- code: types_1.ChainExchangeModuleErrorCode.ErrGenericMarketNotFound,
1043
- module: types_1.TransactionChainErrorModule.Exchange,
1042
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrGenericMarketNotFound,
1043
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1044
1044
  },
1045
1045
  'denom decimal cannot be below 1 or above max scale factor': {
1046
1046
  message: 'The denom decimal cannot be below 1 or above max scale factor',
1047
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidDenomDecimal,
1048
- module: types_1.TransactionChainErrorModule.Exchange,
1047
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidDenomDecimal,
1048
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1049
1049
  },
1050
1050
  'state is invalid': {
1051
1051
  message: 'The state is not valid',
1052
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidState,
1053
- module: types_1.TransactionChainErrorModule.Exchange,
1052
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidState,
1053
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1054
1054
  },
1055
1055
  'transient orders up to cancellation not supported': {
1056
1056
  message: 'The transient orders up to cancellation not supported',
1057
- code: types_1.ChainExchangeModuleErrorCode.ErrTransientOrdersUpToCancelNotSupported,
1058
- module: types_1.TransactionChainErrorModule.Exchange,
1057
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrTransientOrdersUpToCancelNotSupported,
1058
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1059
1059
  },
1060
1060
  'invalid trade': {
1061
1061
  message: 'The trade is not valid',
1062
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidTrade,
1063
- module: types_1.TransactionChainErrorModule.Exchange,
1062
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidTrade,
1063
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1064
1064
  },
1065
1065
  'no margin locked in subaccount': {
1066
1066
  message: 'There is no margin locked in the trading account',
1067
- code: types_1.ChainExchangeModuleErrorCode.ErrNoMarginLocked,
1068
- module: types_1.TransactionChainErrorModule.Exchange,
1067
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrNoMarginLocked,
1068
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1069
1069
  },
1070
1070
  'Invalid access level to perform action': {
1071
1071
  message: 'There is no access to perform action',
1072
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel,
1073
- module: types_1.TransactionChainErrorModule.Exchange,
1072
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidAccessLevel,
1073
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1074
1074
  },
1075
1075
  'Invalid address': {
1076
1076
  message: 'The address is not valid',
1077
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidAddress,
1078
- module: types_1.TransactionChainErrorModule.Exchange,
1077
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidAddress,
1078
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1079
1079
  },
1080
1080
  'Invalid argument': {
1081
1081
  message: 'The argument is not valid',
1082
- code: types_1.ChainExchangeModuleErrorCode.ErrInvalidArgument,
1083
- module: types_1.TransactionChainErrorModule.Exchange,
1082
+ code: index_js_1.ChainExchangeModuleErrorCode.ErrInvalidArgument,
1083
+ module: index_js_1.TransactionChainErrorModule.Exchange,
1084
1084
  },
1085
1085
  'empty validator address': {
1086
1086
  message: 'empty validator address',
1087
- code: types_1.ChainStakingErrorCodes.ErrEmptyValidatorAddr,
1088
- module: types_1.TransactionChainErrorModule.Staking,
1087
+ code: index_js_1.ChainStakingErrorCodes.ErrEmptyValidatorAddr,
1088
+ module: index_js_1.TransactionChainErrorModule.Staking,
1089
1089
  },
1090
1090
  'validator does not exist': {
1091
1091
  message: 'validator does not exist',
1092
- code: types_1.ChainStakingErrorCodes.ErrNoValidatorFound,
1093
- module: types_1.TransactionChainErrorModule.Staking,
1092
+ code: index_js_1.ChainStakingErrorCodes.ErrNoValidatorFound,
1093
+ module: index_js_1.TransactionChainErrorModule.Staking,
1094
1094
  },
1095
1095
  'validator already exist for this operator address; must use new validator operator address': {
1096
1096
  message: 'validator already exist for this operator address; must use new validator operator address',
1097
- code: types_1.ChainStakingErrorCodes.ErrValidatorOwnerExists,
1098
- module: types_1.TransactionChainErrorModule.Staking,
1097
+ code: index_js_1.ChainStakingErrorCodes.ErrValidatorOwnerExists,
1098
+ module: index_js_1.TransactionChainErrorModule.Staking,
1099
1099
  },
1100
1100
  'validator already exist for this pubkey; must use new validator pubkey': {
1101
1101
  message: 'validator already exist for this pubkey; must use new validator pubkey',
1102
- code: types_1.ChainStakingErrorCodes.ErrValidatorPubKeyExists,
1103
- module: types_1.TransactionChainErrorModule.Staking,
1102
+ code: index_js_1.ChainStakingErrorCodes.ErrValidatorPubKeyExists,
1103
+ module: index_js_1.TransactionChainErrorModule.Staking,
1104
1104
  },
1105
1105
  'validator pubkey type is not supported': {
1106
1106
  message: 'validator pubkey type is not supported',
1107
- code: types_1.ChainStakingErrorCodes.ErrValidatorPubKeyTypeNotSupported,
1108
- module: types_1.TransactionChainErrorModule.Staking,
1107
+ code: index_js_1.ChainStakingErrorCodes.ErrValidatorPubKeyTypeNotSupported,
1108
+ module: index_js_1.TransactionChainErrorModule.Staking,
1109
1109
  },
1110
1110
  'validator for this address is currently jailed': {
1111
1111
  message: 'validator for this address is currently jailed',
1112
- code: types_1.ChainStakingErrorCodes.ErrValidatorJailed,
1113
- module: types_1.TransactionChainErrorModule.Staking,
1112
+ code: index_js_1.ChainStakingErrorCodes.ErrValidatorJailed,
1113
+ module: index_js_1.TransactionChainErrorModule.Staking,
1114
1114
  },
1115
1115
  'failed to remove validator': {
1116
1116
  message: 'failed to remove validator',
1117
- code: types_1.ChainStakingErrorCodes.ErrBadRemoveValidator,
1118
- module: types_1.TransactionChainErrorModule.Staking,
1117
+ code: index_js_1.ChainStakingErrorCodes.ErrBadRemoveValidator,
1118
+ module: index_js_1.TransactionChainErrorModule.Staking,
1119
1119
  },
1120
1120
  'commission must be positive': {
1121
1121
  message: 'commission must be positive',
1122
- code: types_1.ChainStakingErrorCodes.ErrCommissionNegative,
1123
- module: types_1.TransactionChainErrorModule.Staking,
1122
+ code: index_js_1.ChainStakingErrorCodes.ErrCommissionNegative,
1123
+ module: index_js_1.TransactionChainErrorModule.Staking,
1124
1124
  },
1125
1125
  'commission cannot be more than 100%': {
1126
1126
  message: 'commission cannot be more than 100%',
1127
- code: types_1.ChainStakingErrorCodes.ErrCommissionHuge,
1128
- module: types_1.TransactionChainErrorModule.Staking,
1127
+ code: index_js_1.ChainStakingErrorCodes.ErrCommissionHuge,
1128
+ module: index_js_1.TransactionChainErrorModule.Staking,
1129
1129
  },
1130
1130
  'commission cannot be more than the max rate': {
1131
1131
  message: 'commission cannot be more than the max rate',
1132
- code: types_1.ChainStakingErrorCodes.ErrCommissionGTMaxRate,
1133
- module: types_1.TransactionChainErrorModule.Staking,
1132
+ code: index_js_1.ChainStakingErrorCodes.ErrCommissionGTMaxRate,
1133
+ module: index_js_1.TransactionChainErrorModule.Staking,
1134
1134
  },
1135
1135
  'commission cannot be changed more than once in 24h': {
1136
1136
  message: 'commission cannot be changed more than once in 24h',
1137
- code: types_1.ChainStakingErrorCodes.ErrCommissionUpdateTime,
1138
- module: types_1.TransactionChainErrorModule.Staking,
1137
+ code: index_js_1.ChainStakingErrorCodes.ErrCommissionUpdateTime,
1138
+ module: index_js_1.TransactionChainErrorModule.Staking,
1139
1139
  },
1140
1140
  'commission change rate must be positive': {
1141
1141
  message: 'commission change rate must be positive',
1142
- code: types_1.ChainStakingErrorCodes.ErrCommissionChangeRateNegative,
1143
- module: types_1.TransactionChainErrorModule.Staking,
1142
+ code: index_js_1.ChainStakingErrorCodes.ErrCommissionChangeRateNegative,
1143
+ module: index_js_1.TransactionChainErrorModule.Staking,
1144
1144
  },
1145
1145
  'commission change rate cannot be more than the max rate': {
1146
1146
  message: 'commission change rate cannot be more than the max rate',
1147
- code: types_1.ChainStakingErrorCodes.ErrCommissionChangeRateGTMaxRate,
1148
- module: types_1.TransactionChainErrorModule.Staking,
1147
+ code: index_js_1.ChainStakingErrorCodes.ErrCommissionChangeRateGTMaxRate,
1148
+ module: index_js_1.TransactionChainErrorModule.Staking,
1149
1149
  },
1150
1150
  'commission cannot be changed more than max change rate': {
1151
1151
  message: 'commission cannot be changed more than max change rate',
1152
- code: types_1.ChainStakingErrorCodes.ErrCommissionGTMaxChangeRate,
1153
- module: types_1.TransactionChainErrorModule.Staking,
1152
+ code: index_js_1.ChainStakingErrorCodes.ErrCommissionGTMaxChangeRate,
1153
+ module: index_js_1.TransactionChainErrorModule.Staking,
1154
1154
  },
1155
1155
  "validator's self delegation must be greater than their minimum self delegation": {
1156
1156
  message: "validator's self delegation must be greater than their minimum self delegation",
1157
- code: types_1.ChainStakingErrorCodes.ErrSelfDelegationBelowMinimum,
1158
- module: types_1.TransactionChainErrorModule.Staking,
1157
+ code: index_js_1.ChainStakingErrorCodes.ErrSelfDelegationBelowMinimum,
1158
+ module: index_js_1.TransactionChainErrorModule.Staking,
1159
1159
  },
1160
1160
  'minimum self delegation cannot be decrease': {
1161
1161
  message: 'minimum self delegation cannot be decrease',
1162
- code: types_1.ChainStakingErrorCodes.ErrMinSelfDelegationDecreased,
1163
- module: types_1.TransactionChainErrorModule.Staking,
1162
+ code: index_js_1.ChainStakingErrorCodes.ErrMinSelfDelegationDecreased,
1163
+ module: index_js_1.TransactionChainErrorModule.Staking,
1164
1164
  },
1165
1165
  'empty delegator address': {
1166
1166
  message: 'empty delegator address',
1167
- code: types_1.ChainStakingErrorCodes.ErrEmptyDelegatorAddr,
1168
- module: types_1.TransactionChainErrorModule.Staking,
1167
+ code: index_js_1.ChainStakingErrorCodes.ErrEmptyDelegatorAddr,
1168
+ module: index_js_1.TransactionChainErrorModule.Staking,
1169
1169
  },
1170
1170
  'no delegation for (address, validator) tuple': {
1171
1171
  message: 'no delegation for (address, validator) tuple',
1172
- code: types_1.ChainStakingErrorCodes.ErrNoDelegation,
1173
- module: types_1.TransactionChainErrorModule.Staking,
1172
+ code: index_js_1.ChainStakingErrorCodes.ErrNoDelegation,
1173
+ module: index_js_1.TransactionChainErrorModule.Staking,
1174
1174
  },
1175
1175
  'delegator does not exist with address': {
1176
1176
  message: 'delegator does not exist with address',
1177
- code: types_1.ChainStakingErrorCodes.ErrBadDelegatorAddr,
1178
- module: types_1.TransactionChainErrorModule.Staking,
1177
+ code: index_js_1.ChainStakingErrorCodes.ErrBadDelegatorAddr,
1178
+ module: index_js_1.TransactionChainErrorModule.Staking,
1179
1179
  },
1180
1180
  'delegator does not contain delegation': {
1181
1181
  message: 'delegator does not contain delegation',
1182
- code: types_1.ChainStakingErrorCodes.ErrNoDelegatorForAddress,
1183
- module: types_1.TransactionChainErrorModule.Staking,
1182
+ code: index_js_1.ChainStakingErrorCodes.ErrNoDelegatorForAddress,
1183
+ module: index_js_1.TransactionChainErrorModule.Staking,
1184
1184
  },
1185
1185
  'insufficient delegation shares': {
1186
1186
  message: 'insufficient delegation shares',
1187
- code: types_1.ChainStakingErrorCodes.ErrInsufficientShares,
1188
- module: types_1.TransactionChainErrorModule.Staking,
1187
+ code: index_js_1.ChainStakingErrorCodes.ErrInsufficientShares,
1188
+ module: index_js_1.TransactionChainErrorModule.Staking,
1189
1189
  },
1190
1190
  'cannot delegate to an empty validator': {
1191
1191
  message: 'cannot delegate to an empty validator',
1192
- code: types_1.ChainStakingErrorCodes.ErrDelegationValidatorEmpty,
1193
- module: types_1.TransactionChainErrorModule.Staking,
1192
+ code: index_js_1.ChainStakingErrorCodes.ErrDelegationValidatorEmpty,
1193
+ module: index_js_1.TransactionChainErrorModule.Staking,
1194
1194
  },
1195
1195
  'not enough delegation shares': {
1196
1196
  message: 'not enough delegation shares',
1197
- code: types_1.ChainStakingErrorCodes.ErrNotEnoughDelegationShares,
1198
- module: types_1.TransactionChainErrorModule.Staking,
1197
+ code: index_js_1.ChainStakingErrorCodes.ErrNotEnoughDelegationShares,
1198
+ module: index_js_1.TransactionChainErrorModule.Staking,
1199
1199
  },
1200
1200
  'entry not mature': {
1201
1201
  message: 'entry not mature',
1202
- code: types_1.ChainStakingErrorCodes.ErrNotMature,
1203
- module: types_1.TransactionChainErrorModule.Staking,
1202
+ code: index_js_1.ChainStakingErrorCodes.ErrNotMature,
1203
+ module: index_js_1.TransactionChainErrorModule.Staking,
1204
1204
  },
1205
1205
  'no unbonding delegation found': {
1206
1206
  message: 'no unbonding delegation found',
1207
- code: types_1.ChainStakingErrorCodes.ErrNoUnbondingDelegation,
1208
- module: types_1.TransactionChainErrorModule.Staking,
1207
+ code: index_js_1.ChainStakingErrorCodes.ErrNoUnbondingDelegation,
1208
+ module: index_js_1.TransactionChainErrorModule.Staking,
1209
1209
  },
1210
1210
  'too many unbonding delegation entries for (delegator, validator) tuple': {
1211
1211
  message: 'too many unbonding delegation entries for (delegator, validator) tuple',
1212
- code: types_1.ChainStakingErrorCodes.ErrMaxUnbondingDelegationEntries,
1213
- module: types_1.TransactionChainErrorModule.Staking,
1212
+ code: index_js_1.ChainStakingErrorCodes.ErrMaxUnbondingDelegationEntries,
1213
+ module: index_js_1.TransactionChainErrorModule.Staking,
1214
1214
  },
1215
1215
  'no redelegation found': {
1216
1216
  message: 'no redelegation found',
1217
- code: types_1.ChainStakingErrorCodes.ErrNoRedelegation,
1218
- module: types_1.TransactionChainErrorModule.Staking,
1217
+ code: index_js_1.ChainStakingErrorCodes.ErrNoRedelegation,
1218
+ module: index_js_1.TransactionChainErrorModule.Staking,
1219
1219
  },
1220
1220
  'cannot redelegate to the same validator': {
1221
1221
  message: 'cannot redelegate to the same validator',
1222
- code: types_1.ChainStakingErrorCodes.ErrSelfRedelegation,
1223
- module: types_1.TransactionChainErrorModule.Staking,
1222
+ code: index_js_1.ChainStakingErrorCodes.ErrSelfRedelegation,
1223
+ module: index_js_1.TransactionChainErrorModule.Staking,
1224
1224
  },
1225
1225
  'too few tokens to redelegate (truncates to zero tokens)': {
1226
1226
  message: 'too few tokens to redelegate (truncates to zero tokens)',
1227
- code: types_1.ChainStakingErrorCodes.ErrTinyRedelegationAmount,
1228
- module: types_1.TransactionChainErrorModule.Staking,
1227
+ code: index_js_1.ChainStakingErrorCodes.ErrTinyRedelegationAmount,
1228
+ module: index_js_1.TransactionChainErrorModule.Staking,
1229
1229
  },
1230
1230
  'redelegation destination validator not found': {
1231
1231
  message: 'redelegation destination validator not found',
1232
- code: types_1.ChainStakingErrorCodes.ErrBadRedelegationDst,
1233
- module: types_1.TransactionChainErrorModule.Staking,
1232
+ code: index_js_1.ChainStakingErrorCodes.ErrBadRedelegationDst,
1233
+ module: index_js_1.TransactionChainErrorModule.Staking,
1234
1234
  },
1235
1235
  'redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation': {
1236
1236
  message: 'redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation',
1237
- code: types_1.ChainStakingErrorCodes.ErrTransitiveRedelegation,
1238
- module: types_1.TransactionChainErrorModule.Staking,
1237
+ code: index_js_1.ChainStakingErrorCodes.ErrTransitiveRedelegation,
1238
+ module: index_js_1.TransactionChainErrorModule.Staking,
1239
1239
  },
1240
1240
  'too many redelegation entries for (delegator, src-validator, dst-validator) tuple': {
1241
1241
  message: 'too many redelegation entries for (delegator, src-validator, dst-validator) tuple',
1242
- code: types_1.ChainStakingErrorCodes.ErrMaxRedelegationEntries,
1243
- module: types_1.TransactionChainErrorModule.Staking,
1242
+ code: index_js_1.ChainStakingErrorCodes.ErrMaxRedelegationEntries,
1243
+ module: index_js_1.TransactionChainErrorModule.Staking,
1244
1244
  },
1245
1245
  'cannot delegate to validators with invalid (zero) ex-rate': {
1246
1246
  message: 'cannot delegate to validators with invalid (zero) ex-rate',
1247
- code: types_1.ChainStakingErrorCodes.ErrDelegatorShareExRateInvalid,
1248
- module: types_1.TransactionChainErrorModule.Staking,
1247
+ code: index_js_1.ChainStakingErrorCodes.ErrDelegatorShareExRateInvalid,
1248
+ module: index_js_1.TransactionChainErrorModule.Staking,
1249
1249
  },
1250
1250
  'both shares amount and shares percent provided': {
1251
1251
  message: 'both shares amount and shares percent provided',
1252
- code: types_1.ChainStakingErrorCodes.ErrBothShareMsgsGiven,
1253
- module: types_1.TransactionChainErrorModule.Staking,
1252
+ code: index_js_1.ChainStakingErrorCodes.ErrBothShareMsgsGiven,
1253
+ module: index_js_1.TransactionChainErrorModule.Staking,
1254
1254
  },
1255
1255
  'neither shares amount nor shares percent provided': {
1256
1256
  message: 'neither shares amount nor shares percent provided',
1257
- code: types_1.ChainStakingErrorCodes.ErrNeitherShareMsgsGiven,
1258
- module: types_1.TransactionChainErrorModule.Staking,
1257
+ code: index_js_1.ChainStakingErrorCodes.ErrNeitherShareMsgsGiven,
1258
+ module: index_js_1.TransactionChainErrorModule.Staking,
1259
1259
  },
1260
1260
  'invalid historical info': {
1261
1261
  message: 'invalid historical info',
1262
- code: types_1.ChainStakingErrorCodes.ErrInvalidHistoricalInfo,
1263
- module: types_1.TransactionChainErrorModule.Staking,
1262
+ code: index_js_1.ChainStakingErrorCodes.ErrInvalidHistoricalInfo,
1263
+ module: index_js_1.TransactionChainErrorModule.Staking,
1264
1264
  },
1265
1265
  'no historical info found': {
1266
1266
  message: 'no historical info found',
1267
- code: types_1.ChainStakingErrorCodes.ErrNoHistoricalInfo,
1268
- module: types_1.TransactionChainErrorModule.Staking,
1267
+ code: index_js_1.ChainStakingErrorCodes.ErrNoHistoricalInfo,
1268
+ module: index_js_1.TransactionChainErrorModule.Staking,
1269
1269
  },
1270
1270
  'empty validator public key': {
1271
1271
  message: 'empty validator public key',
1272
- code: types_1.ChainStakingErrorCodes.ErrEmptyValidatorPubKey,
1273
- module: types_1.TransactionChainErrorModule.Staking,
1272
+ code: index_js_1.ChainStakingErrorCodes.ErrEmptyValidatorPubKey,
1273
+ module: index_js_1.TransactionChainErrorModule.Staking,
1274
1274
  },
1275
1275
  'commission cannot be less than min rate': {
1276
1276
  message: 'commission cannot be less than min rate',
1277
- code: types_1.ChainStakingErrorCodes.ErrCommissionLTMinRate,
1278
- module: types_1.TransactionChainErrorModule.Staking,
1277
+ code: index_js_1.ChainStakingErrorCodes.ErrCommissionLTMinRate,
1278
+ module: index_js_1.TransactionChainErrorModule.Staking,
1279
1279
  },
1280
1280
  'unbonding operation not found': {
1281
1281
  message: 'unbonding operation not found',
1282
- code: types_1.ChainStakingErrorCodes.ErrUnbondingNotFound,
1283
- module: types_1.TransactionChainErrorModule.Staking,
1282
+ code: index_js_1.ChainStakingErrorCodes.ErrUnbondingNotFound,
1283
+ module: index_js_1.TransactionChainErrorModule.Staking,
1284
1284
  },
1285
1285
  'cannot un-hold unbonding operation that is not on hold': {
1286
1286
  message: 'cannot un-hold unbonding operation that is not on hold',
1287
- code: types_1.ChainStakingErrorCodes.ErrUnbondingOnHoldRefCountNegative,
1288
- module: types_1.TransactionChainErrorModule.Staking,
1287
+ code: index_js_1.ChainStakingErrorCodes.ErrUnbondingOnHoldRefCountNegative,
1288
+ module: index_js_1.TransactionChainErrorModule.Staking,
1289
1289
  },
1290
1290
  'delegator address is empty': {
1291
1291
  message: 'delegator address is empty',
1292
- code: types_1.ChainDistributionErrorCodes.ErrEmptyDelegatorAddr,
1293
- module: types_1.TransactionChainErrorModule.Distribution,
1292
+ code: index_js_1.ChainDistributionErrorCodes.ErrEmptyDelegatorAddr,
1293
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1294
1294
  },
1295
1295
  'withdraw address is empty': {
1296
1296
  message: 'withdraw address is empty',
1297
- code: types_1.ChainDistributionErrorCodes.ErrEmptyWithdrawAddr,
1298
- module: types_1.TransactionChainErrorModule.Distribution,
1297
+ code: index_js_1.ChainDistributionErrorCodes.ErrEmptyWithdrawAddr,
1298
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1299
1299
  },
1300
1300
  'validator address is empty': {
1301
1301
  message: 'validator address is empty',
1302
- code: types_1.ChainDistributionErrorCodes.ErrEmptyValidatorAddr,
1303
- module: types_1.TransactionChainErrorModule.Distribution,
1302
+ code: index_js_1.ChainDistributionErrorCodes.ErrEmptyValidatorAddr,
1303
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1304
1304
  },
1305
1305
  'no delegation distribution info': {
1306
1306
  message: 'no delegation distribution info',
1307
- code: types_1.ChainDistributionErrorCodes.ErrEmptyDelegationDistInfo,
1308
- module: types_1.TransactionChainErrorModule.Distribution,
1307
+ code: index_js_1.ChainDistributionErrorCodes.ErrEmptyDelegationDistInfo,
1308
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1309
1309
  },
1310
1310
  'no validator distribution info': {
1311
1311
  message: 'no validator distribution info',
1312
- code: types_1.ChainDistributionErrorCodes.ErrNoValidatorDistInfo,
1313
- module: types_1.TransactionChainErrorModule.Distribution,
1312
+ code: index_js_1.ChainDistributionErrorCodes.ErrNoValidatorDistInfo,
1313
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1314
1314
  },
1315
1315
  'no validator commission to withdraw': {
1316
1316
  message: 'no validator commission to withdraw',
1317
- code: types_1.ChainDistributionErrorCodes.ErrNoValidatorCommission,
1318
- module: types_1.TransactionChainErrorModule.Distribution,
1317
+ code: index_js_1.ChainDistributionErrorCodes.ErrNoValidatorCommission,
1318
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1319
1319
  },
1320
1320
  'set withdraw address disabled': {
1321
1321
  message: 'set withdraw address disabled',
1322
- code: types_1.ChainDistributionErrorCodes.ErrSetWithdrawAddrDisabled,
1323
- module: types_1.TransactionChainErrorModule.Distribution,
1322
+ code: index_js_1.ChainDistributionErrorCodes.ErrSetWithdrawAddrDisabled,
1323
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1324
1324
  },
1325
1325
  'community pool does not have sufficient coins to distribute': {
1326
1326
  message: 'community pool does not have sufficient coins distribute',
1327
- code: types_1.ChainDistributionErrorCodes.ErrBadDistribution,
1328
- module: types_1.TransactionChainErrorModule.Distribution,
1327
+ code: index_js_1.ChainDistributionErrorCodes.ErrBadDistribution,
1328
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1329
1329
  },
1330
1330
  'invalid community pool spend proposal amount': {
1331
1331
  message: 'invalid community pool spend proposal amount',
1332
- code: types_1.ChainDistributionErrorCodes.ErrInvalidProposalAmount,
1333
- module: types_1.TransactionChainErrorModule.Distribution,
1332
+ code: index_js_1.ChainDistributionErrorCodes.ErrInvalidProposalAmount,
1333
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1334
1334
  },
1335
1335
  'invalid community pool spend proposal recipient': {
1336
1336
  message: 'invalid community pool spend proposal recipient',
1337
- code: types_1.ChainDistributionErrorCodes.ErrEmptyProposalRecipient,
1338
- module: types_1.TransactionChainErrorModule.Distribution,
1337
+ code: index_js_1.ChainDistributionErrorCodes.ErrEmptyProposalRecipient,
1338
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1339
1339
  },
1340
1340
  'delegation does not exist': {
1341
1341
  message: 'delegation does not exist',
1342
- code: types_1.ChainDistributionErrorCodes.ErrNoDelegationExists,
1343
- module: types_1.TransactionChainErrorModule.Distribution,
1342
+ code: index_js_1.ChainDistributionErrorCodes.ErrNoDelegationExists,
1343
+ module: index_js_1.TransactionChainErrorModule.Distribution,
1344
1344
  },
1345
1345
  'unknown proposal': {
1346
1346
  message: 'unknown proposal',
1347
- code: types_1.ChainGovErrorCodes.ErrUnknownProposal,
1348
- module: types_1.TransactionChainErrorModule.Gov,
1347
+ code: index_js_1.ChainGovErrorCodes.ErrUnknownProposal,
1348
+ module: index_js_1.TransactionChainErrorModule.Gov,
1349
1349
  },
1350
1350
  'inactive proposal': {
1351
1351
  message: 'inactive proposal',
1352
- code: types_1.ChainGovErrorCodes.ErrInactiveProposal,
1353
- module: types_1.TransactionChainErrorModule.Gov,
1352
+ code: index_js_1.ChainGovErrorCodes.ErrInactiveProposal,
1353
+ module: index_js_1.TransactionChainErrorModule.Gov,
1354
1354
  },
1355
1355
  'proposal already active': {
1356
1356
  message: 'proposal already active',
1357
- code: types_1.ChainGovErrorCodes.ErrAlreadyActiveProposal,
1358
- module: types_1.TransactionChainErrorModule.Gov,
1357
+ code: index_js_1.ChainGovErrorCodes.ErrAlreadyActiveProposal,
1358
+ module: index_js_1.TransactionChainErrorModule.Gov,
1359
1359
  },
1360
1360
  'invalid proposal content': {
1361
1361
  message: 'invalid proposal content',
1362
- code: types_1.ChainGovErrorCodes.ErrInvalidProposalContent,
1363
- module: types_1.TransactionChainErrorModule.Gov,
1362
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidProposalContent,
1363
+ module: index_js_1.TransactionChainErrorModule.Gov,
1364
1364
  },
1365
1365
  'invalid proposal type': {
1366
1366
  message: 'invalid proposal type',
1367
- code: types_1.ChainGovErrorCodes.ErrInvalidProposalType,
1368
- module: types_1.TransactionChainErrorModule.Gov,
1367
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidProposalType,
1368
+ module: index_js_1.TransactionChainErrorModule.Gov,
1369
1369
  },
1370
1370
  'invalid vote option': {
1371
1371
  message: 'invalid vote option',
1372
- code: types_1.ChainGovErrorCodes.ErrInvalidVote,
1373
- module: types_1.TransactionChainErrorModule.Gov,
1372
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidVote,
1373
+ module: index_js_1.TransactionChainErrorModule.Gov,
1374
1374
  },
1375
1375
  'invalid genesis state': {
1376
1376
  message: 'invalid genesis state',
1377
- code: types_1.ChainGovErrorCodes.ErrInvalidGenesis,
1378
- module: types_1.TransactionChainErrorModule.Gov,
1377
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidGenesis,
1378
+ module: index_js_1.TransactionChainErrorModule.Gov,
1379
1379
  },
1380
1380
  'no handler exists for proposal type': {
1381
1381
  message: 'no handler exists for proposal type',
1382
- code: types_1.ChainGovErrorCodes.ErrNoProposalHandlerExists,
1383
- module: types_1.TransactionChainErrorModule.Gov,
1382
+ code: index_js_1.ChainGovErrorCodes.ErrNoProposalHandlerExists,
1383
+ module: index_js_1.TransactionChainErrorModule.Gov,
1384
1384
  },
1385
1385
  'proposal message not recognized by router': {
1386
1386
  message: 'proposal message not recognized by router',
1387
- code: types_1.ChainGovErrorCodes.ErrUnroutableProposalMsg,
1388
- module: types_1.TransactionChainErrorModule.Gov,
1387
+ code: index_js_1.ChainGovErrorCodes.ErrUnroutableProposalMsg,
1388
+ module: index_js_1.TransactionChainErrorModule.Gov,
1389
1389
  },
1390
1390
  'no messages proposed': {
1391
1391
  message: 'no messages proposed',
1392
- code: types_1.ChainGovErrorCodes.ErrNoProposalMsgs,
1393
- module: types_1.TransactionChainErrorModule.Gov,
1392
+ code: index_js_1.ChainGovErrorCodes.ErrNoProposalMsgs,
1393
+ module: index_js_1.TransactionChainErrorModule.Gov,
1394
1394
  },
1395
1395
  'invalid proposal message': {
1396
1396
  message: 'invalid proposal message',
1397
- code: types_1.ChainGovErrorCodes.ErrInvalidProposalMsg,
1398
- module: types_1.TransactionChainErrorModule.Gov,
1397
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidProposalMsg,
1398
+ module: index_js_1.TransactionChainErrorModule.Gov,
1399
1399
  },
1400
1400
  'expected gov account as only signer for proposal message': {
1401
1401
  message: 'expected gov account as only signer for proposal message',
1402
- code: types_1.ChainGovErrorCodes.ErrInvalidSigner,
1403
- module: types_1.TransactionChainErrorModule.Gov,
1402
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidSigner,
1403
+ module: index_js_1.TransactionChainErrorModule.Gov,
1404
1404
  },
1405
1405
  'signal message is invalid': {
1406
1406
  message: 'signal message is invalid',
1407
- code: types_1.ChainGovErrorCodes.ErrInvalidSignalMsg,
1408
- module: types_1.TransactionChainErrorModule.Gov,
1407
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidSignalMsg,
1408
+ module: index_js_1.TransactionChainErrorModule.Gov,
1409
1409
  },
1410
1410
  'metadata too long': {
1411
1411
  message: 'metadata too long',
1412
- code: types_1.ChainGovErrorCodes.ErrMetadataTooLong,
1413
- module: types_1.TransactionChainErrorModule.Gov,
1412
+ code: index_js_1.ChainGovErrorCodes.ErrMetadataTooLong,
1413
+ module: index_js_1.TransactionChainErrorModule.Gov,
1414
1414
  },
1415
1415
  'minimum deposit is too small': {
1416
1416
  message: 'minimum deposit is too small',
1417
- code: types_1.ChainGovErrorCodes.ErrMinDepositTooSmall,
1418
- module: types_1.TransactionChainErrorModule.Gov,
1417
+ code: index_js_1.ChainGovErrorCodes.ErrMinDepositTooSmall,
1418
+ module: index_js_1.TransactionChainErrorModule.Gov,
1419
1419
  },
1420
1420
  'proposal is not found': {
1421
1421
  message: 'proposal is not found',
1422
- code: types_1.ChainGovErrorCodes.ErrProposalNotFound,
1423
- module: types_1.TransactionChainErrorModule.Gov,
1422
+ code: index_js_1.ChainGovErrorCodes.ErrProposalNotFound,
1423
+ module: index_js_1.TransactionChainErrorModule.Gov,
1424
1424
  },
1425
1425
  'invalid proposer': {
1426
1426
  message: 'invalid proposer',
1427
- code: types_1.ChainGovErrorCodes.ErrInvalidProposer,
1428
- module: types_1.TransactionChainErrorModule.Gov,
1427
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidProposer,
1428
+ module: index_js_1.TransactionChainErrorModule.Gov,
1429
1429
  },
1430
1430
  'no deposits found': {
1431
1431
  message: 'no deposits found',
1432
- code: types_1.ChainGovErrorCodes.ErrNoDeposits,
1433
- module: types_1.TransactionChainErrorModule.Gov,
1432
+ code: index_js_1.ChainGovErrorCodes.ErrNoDeposits,
1433
+ module: index_js_1.TransactionChainErrorModule.Gov,
1434
1434
  },
1435
1435
  'voting period already ended': {
1436
1436
  message: 'voting period already ended',
1437
- code: types_1.ChainGovErrorCodes.ErrVotingPeriodEnded,
1438
- module: types_1.TransactionChainErrorModule.Gov,
1437
+ code: index_js_1.ChainGovErrorCodes.ErrVotingPeriodEnded,
1438
+ module: index_js_1.TransactionChainErrorModule.Gov,
1439
1439
  },
1440
1440
  'invalid proposal': {
1441
1441
  message: 'invalid proposal',
1442
- code: types_1.ChainGovErrorCodes.ErrInvalidProposal,
1443
- module: types_1.TransactionChainErrorModule.Gov,
1442
+ code: index_js_1.ChainGovErrorCodes.ErrInvalidProposal,
1443
+ module: index_js_1.TransactionChainErrorModule.Gov,
1444
1444
  },
1445
1445
  'no inputs to send transaction': {
1446
1446
  message: 'no inputs to send transaction',
1447
- code: types_1.ChainBankErrorCodes.ErrNoInputs,
1448
- module: types_1.TransactionChainErrorModule.Bank,
1447
+ code: index_js_1.ChainBankErrorCodes.ErrNoInputs,
1448
+ module: index_js_1.TransactionChainErrorModule.Bank,
1449
1449
  },
1450
1450
  'no outputs to send transaction': {
1451
1451
  message: 'no outputs to send transaction',
1452
- code: types_1.ChainBankErrorCodes.ErrNoOutputs,
1453
- module: types_1.TransactionChainErrorModule.Bank,
1452
+ code: index_js_1.ChainBankErrorCodes.ErrNoOutputs,
1453
+ module: index_js_1.TransactionChainErrorModule.Bank,
1454
1454
  },
1455
1455
  'sum inputs != sum outputs': {
1456
1456
  message: 'sum inputs != sum outputs',
1457
- code: types_1.ChainBankErrorCodes.ErrInputOutputMismatch,
1458
- module: types_1.TransactionChainErrorModule.Bank,
1457
+ code: index_js_1.ChainBankErrorCodes.ErrInputOutputMismatch,
1458
+ module: index_js_1.TransactionChainErrorModule.Bank,
1459
1459
  },
1460
1460
  'send transactions are disabled': {
1461
1461
  message: 'send transactions are disabled',
1462
- code: types_1.ChainBankErrorCodes.ErrSendDisabled,
1463
- module: types_1.TransactionChainErrorModule.Bank,
1462
+ code: index_js_1.ChainBankErrorCodes.ErrSendDisabled,
1463
+ module: index_js_1.TransactionChainErrorModule.Bank,
1464
1464
  },
1465
1465
  'client denom metadata not found': {
1466
1466
  message: 'client denom metadata not found',
1467
- code: types_1.ChainBankErrorCodes.ErrDenomMetadataNotFound,
1468
- module: types_1.TransactionChainErrorModule.Bank,
1467
+ code: index_js_1.ChainBankErrorCodes.ErrDenomMetadataNotFound,
1468
+ module: index_js_1.TransactionChainErrorModule.Bank,
1469
1469
  },
1470
1470
  'invalid key': {
1471
1471
  message: 'invalid key',
1472
- code: types_1.ChainBankErrorCodes.ErrInvalidKey,
1473
- module: types_1.TransactionChainErrorModule.Bank,
1472
+ code: index_js_1.ChainBankErrorCodes.ErrInvalidKey,
1473
+ module: index_js_1.TransactionChainErrorModule.Bank,
1474
1474
  },
1475
1475
  'duplicate entry': {
1476
1476
  message: 'duplicate entry',
1477
- code: types_1.ChainBankErrorCodes.ErrDuplicateEntry,
1478
- module: types_1.TransactionChainErrorModule.Bank,
1477
+ code: index_js_1.ChainBankErrorCodes.ErrDuplicateEntry,
1478
+ module: index_js_1.TransactionChainErrorModule.Bank,
1479
1479
  },
1480
1480
  'multiple senders not allowed': {
1481
1481
  message: 'multiple senders not allowed',
1482
- code: types_1.ChainBankErrorCodes.ErrMultipleSenders,
1483
- module: types_1.TransactionChainErrorModule.Bank,
1482
+ code: index_js_1.ChainBankErrorCodes.ErrMultipleSenders,
1483
+ module: index_js_1.TransactionChainErrorModule.Bank,
1484
1484
  },
1485
1485
  'create wasm contract failed': {
1486
- code: types_1.ChainWasmErrorCodes.ErrCreateFailed,
1486
+ code: index_js_1.ChainWasmErrorCodes.ErrCreateFailed,
1487
1487
  message: 'create wasm contract failed',
1488
- module: types_1.TransactionChainErrorModule.Wasm,
1488
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1489
1489
  },
1490
1490
  'contract account already exists': {
1491
- code: types_1.ChainWasmErrorCodes.ErrAccountExists,
1491
+ code: index_js_1.ChainWasmErrorCodes.ErrAccountExists,
1492
1492
  message: 'contract account already exists',
1493
- module: types_1.TransactionChainErrorModule.Wasm,
1493
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1494
1494
  },
1495
1495
  'instantiate wasm contract failed': {
1496
- code: types_1.ChainWasmErrorCodes.ErrInstantiateFailed,
1496
+ code: index_js_1.ChainWasmErrorCodes.ErrInstantiateFailed,
1497
1497
  message: 'instantiate wasm contract failed',
1498
- module: types_1.TransactionChainErrorModule.Wasm,
1498
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1499
1499
  },
1500
1500
  'execute wasm contract failed': {
1501
- code: types_1.ChainWasmErrorCodes.ErrExecuteFailed,
1501
+ code: index_js_1.ChainWasmErrorCodes.ErrExecuteFailed,
1502
1502
  message: 'Contract execution failed',
1503
- module: types_1.TransactionChainErrorModule.Wasm,
1503
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1504
1504
  },
1505
1505
  'insufficient gas': {
1506
- code: types_1.ChainWasmErrorCodes.ErrGasLimit,
1506
+ code: index_js_1.ChainWasmErrorCodes.ErrGasLimit,
1507
1507
  message: 'insufficient gas',
1508
- module: types_1.TransactionChainErrorModule.Wasm,
1508
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1509
1509
  },
1510
1510
  'invalid genesis': {
1511
- code: types_1.ChainWasmErrorCodes.ErrInvalidGenesis,
1511
+ code: index_js_1.ChainWasmErrorCodes.ErrInvalidGenesis,
1512
1512
  message: 'invalid genesis',
1513
- module: types_1.TransactionChainErrorModule.Wasm,
1513
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1514
1514
  },
1515
1515
  'query wasm contract failed': {
1516
- code: types_1.ChainWasmErrorCodes.ErrQueryFailed,
1516
+ code: index_js_1.ChainWasmErrorCodes.ErrQueryFailed,
1517
1517
  message: 'query wasm contract failed',
1518
- module: types_1.TransactionChainErrorModule.Wasm,
1518
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1519
1519
  },
1520
1520
  'invalid CosmosMsg from the contract': {
1521
- code: types_1.ChainWasmErrorCodes.ErrInvalidMsg,
1521
+ code: index_js_1.ChainWasmErrorCodes.ErrInvalidMsg,
1522
1522
  message: 'invalid CosmosMsg from the contract',
1523
- module: types_1.TransactionChainErrorModule.Wasm,
1523
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1524
1524
  },
1525
1525
  'migrate wasm contract failed': {
1526
- code: types_1.ChainWasmErrorCodes.ErrMigrationFailed,
1526
+ code: index_js_1.ChainWasmErrorCodes.ErrMigrationFailed,
1527
1527
  message: 'migrate wasm contract failed',
1528
- module: types_1.TransactionChainErrorModule.Wasm,
1528
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1529
1529
  },
1530
1530
  empty: {
1531
- code: types_1.ChainWasmErrorCodes.ErrEmpty,
1531
+ code: index_js_1.ChainWasmErrorCodes.ErrEmpty,
1532
1532
  message: 'empty',
1533
- module: types_1.TransactionChainErrorModule.Wasm,
1533
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1534
1534
  },
1535
1535
  'exceeds limit': {
1536
- code: types_1.ChainWasmErrorCodes.ErrLimit,
1536
+ code: index_js_1.ChainWasmErrorCodes.ErrLimit,
1537
1537
  message: 'exceeds limit',
1538
- module: types_1.TransactionChainErrorModule.Wasm,
1538
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1539
1539
  },
1540
1540
  invalid: {
1541
- code: types_1.ChainWasmErrorCodes.ErrInvalid,
1541
+ code: index_js_1.ChainWasmErrorCodes.ErrInvalid,
1542
1542
  message: 'invalid',
1543
- module: types_1.TransactionChainErrorModule.Wasm,
1543
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1544
1544
  },
1545
1545
  duplicate: {
1546
- code: types_1.ChainWasmErrorCodes.ErrDuplicate,
1546
+ code: index_js_1.ChainWasmErrorCodes.ErrDuplicate,
1547
1547
  message: 'duplicate',
1548
- module: types_1.TransactionChainErrorModule.Wasm,
1548
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1549
1549
  },
1550
1550
  'max transfer channels': {
1551
- code: types_1.ChainWasmErrorCodes.ErrMaxIBCChannels,
1551
+ code: index_js_1.ChainWasmErrorCodes.ErrMaxIBCChannels,
1552
1552
  message: 'max transfer channels',
1553
- module: types_1.TransactionChainErrorModule.Wasm,
1553
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1554
1554
  },
1555
1555
  'unsupported for this contract': {
1556
- code: types_1.ChainWasmErrorCodes.ErrUnsupportedForContract,
1556
+ code: index_js_1.ChainWasmErrorCodes.ErrUnsupportedForContract,
1557
1557
  message: 'unsupported for this contract',
1558
- module: types_1.TransactionChainErrorModule.Wasm,
1558
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1559
1559
  },
1560
1560
  'pinning contract failed': {
1561
- code: types_1.ChainWasmErrorCodes.ErrPinContractFailed,
1561
+ code: index_js_1.ChainWasmErrorCodes.ErrPinContractFailed,
1562
1562
  message: 'pinning contract failed',
1563
- module: types_1.TransactionChainErrorModule.Wasm,
1563
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1564
1564
  },
1565
1565
  'unpinning contract failed': {
1566
- code: types_1.ChainWasmErrorCodes.ErrUnpinContractFailed,
1566
+ code: index_js_1.ChainWasmErrorCodes.ErrUnpinContractFailed,
1567
1567
  message: 'unpinning contract failed',
1568
- module: types_1.TransactionChainErrorModule.Wasm,
1568
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1569
1569
  },
1570
1570
  'unknown message from the contract': {
1571
- code: types_1.ChainWasmErrorCodes.ErrUnknownMsg,
1571
+ code: index_js_1.ChainWasmErrorCodes.ErrUnknownMsg,
1572
1572
  message: 'unknown message from the contract',
1573
- module: types_1.TransactionChainErrorModule.Wasm,
1573
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1574
1574
  },
1575
1575
  'invalid event': {
1576
- code: types_1.ChainWasmErrorCodes.ErrInvalidEvent,
1576
+ code: index_js_1.ChainWasmErrorCodes.ErrInvalidEvent,
1577
1577
  message: 'invalid event',
1578
- module: types_1.TransactionChainErrorModule.Wasm,
1578
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1579
1579
  },
1580
1580
  'authorization not found': {
1581
- code: types_1.ChainAuthZErrorCodes.ErrNoAuthorizationFound,
1581
+ code: index_js_1.ChainAuthZErrorCodes.ErrNoAuthorizationFound,
1582
1582
  message: 'Authorization not found',
1583
- module: types_1.TransactionChainErrorModule.Wasm,
1583
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1584
1584
  },
1585
1585
  'expiration time of authorization': {
1586
- code: types_1.ChainAuthZErrorCodes.ErrAuthorizationExpired,
1586
+ code: index_js_1.ChainAuthZErrorCodes.ErrAuthorizationExpired,
1587
1587
  message: 'Authorization expired',
1588
- module: types_1.TransactionChainErrorModule.Wasm,
1588
+ module: index_js_1.TransactionChainErrorModule.Wasm,
1589
1589
  },
1590
1590
  'not found': {
1591
1591
  message: 'not found',
1592
- code: types_1.ChainCosmosErrorCode.ErrNotFound,
1593
- module: types_1.TransactionChainErrorModule.CosmosSdk,
1592
+ code: index_js_1.ChainCosmosErrorCode.ErrNotFound,
1593
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
1594
1594
  },
1595
1595
  'failed to fetch account num/seq': {
1596
1596
  message: 'Account does not exist on chain. Create it by send funds.',
1597
- code: types_1.ChainCosmosErrorCode.ErrKeyNotFound,
1598
- module: types_1.TransactionChainErrorModule.CosmosSdk,
1597
+ code: index_js_1.ChainCosmosErrorCode.ErrKeyNotFound,
1598
+ module: index_js_1.TransactionChainErrorModule.CosmosSdk,
1599
1599
  },
1600
1600
  };
1601
1601
  //# sourceMappingURL=messages.js.map