@injectivelabs/exceptions 1.14.46 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/package.json +2 -2
  2. package/dist/cjs/exceptions/base.d.ts +0 -77
  3. package/dist/cjs/exceptions/base.d.ts.map +0 -1
  4. package/dist/cjs/exceptions/base.js +0 -176
  5. package/dist/cjs/exceptions/base.js.map +0 -1
  6. package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +0 -8
  7. package/dist/cjs/exceptions/exceptions/BitGetException.d.ts.map +0 -1
  8. package/dist/cjs/exceptions/exceptions/BitGetException.js +0 -24
  9. package/dist/cjs/exceptions/exceptions/BitGetException.js.map +0 -1
  10. package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +0 -8
  11. package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts.map +0 -1
  12. package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +0 -17
  13. package/dist/cjs/exceptions/exceptions/CosmosWalletException.js.map +0 -1
  14. package/dist/cjs/exceptions/exceptions/GeneralException.d.ts +0 -6
  15. package/dist/cjs/exceptions/exceptions/GeneralException.d.ts.map +0 -1
  16. package/dist/cjs/exceptions/exceptions/GeneralException.js +0 -12
  17. package/dist/cjs/exceptions/exceptions/GeneralException.js.map +0 -1
  18. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +0 -8
  19. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts.map +0 -1
  20. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js +0 -22
  21. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js.map +0 -1
  22. package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +0 -11
  23. package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts.map +0 -1
  24. package/dist/cjs/exceptions/exceptions/HttpRequestException.js +0 -22
  25. package/dist/cjs/exceptions/exceptions/HttpRequestException.js.map +0 -1
  26. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +0 -8
  27. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts.map +0 -1
  28. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +0 -41
  29. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js.map +0 -1
  30. package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +0 -8
  31. package/dist/cjs/exceptions/exceptions/LedgerException.d.ts.map +0 -1
  32. package/dist/cjs/exceptions/exceptions/LedgerException.js +0 -41
  33. package/dist/cjs/exceptions/exceptions/LedgerException.js.map +0 -1
  34. package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +0 -8
  35. package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts.map +0 -1
  36. package/dist/cjs/exceptions/exceptions/MetamaskException.js +0 -24
  37. package/dist/cjs/exceptions/exceptions/MetamaskException.js.map +0 -1
  38. package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +0 -8
  39. package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts.map +0 -1
  40. package/dist/cjs/exceptions/exceptions/OkxWalletException.js +0 -24
  41. package/dist/cjs/exceptions/exceptions/OkxWalletException.js.map +0 -1
  42. package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +0 -8
  43. package/dist/cjs/exceptions/exceptions/TransactionException.d.ts.map +0 -1
  44. package/dist/cjs/exceptions/exceptions/TransactionException.js +0 -27
  45. package/dist/cjs/exceptions/exceptions/TransactionException.js.map +0 -1
  46. package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +0 -8
  47. package/dist/cjs/exceptions/exceptions/TrezorException.d.ts.map +0 -1
  48. package/dist/cjs/exceptions/exceptions/TrezorException.js +0 -17
  49. package/dist/cjs/exceptions/exceptions/TrezorException.js.map +0 -1
  50. package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +0 -8
  51. package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts.map +0 -1
  52. package/dist/cjs/exceptions/exceptions/TrustWalletException.js +0 -26
  53. package/dist/cjs/exceptions/exceptions/TrustWalletException.js.map +0 -1
  54. package/dist/cjs/exceptions/exceptions/WalletException.d.ts +0 -6
  55. package/dist/cjs/exceptions/exceptions/WalletException.d.ts.map +0 -1
  56. package/dist/cjs/exceptions/exceptions/WalletException.js +0 -12
  57. package/dist/cjs/exceptions/exceptions/WalletException.js.map +0 -1
  58. package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +0 -8
  59. package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts.map +0 -1
  60. package/dist/cjs/exceptions/exceptions/Web3Exception.js +0 -17
  61. package/dist/cjs/exceptions/exceptions/Web3Exception.js.map +0 -1
  62. package/dist/cjs/exceptions/exceptions/index.d.ts +0 -16
  63. package/dist/cjs/exceptions/exceptions/index.d.ts.map +0 -1
  64. package/dist/cjs/exceptions/exceptions/index.js +0 -32
  65. package/dist/cjs/exceptions/exceptions/index.js.map +0 -1
  66. package/dist/cjs/exceptions/index.d.ts +0 -3
  67. package/dist/cjs/exceptions/index.d.ts.map +0 -1
  68. package/dist/cjs/exceptions/index.js +0 -19
  69. package/dist/cjs/exceptions/index.js.map +0 -1
  70. package/dist/cjs/exceptions/messages.d.ts +0 -13
  71. package/dist/cjs/exceptions/messages.d.ts.map +0 -1
  72. package/dist/cjs/exceptions/messages.js +0 -1601
  73. package/dist/cjs/exceptions/messages.js.map +0 -1
  74. package/dist/cjs/exceptions/types/codes.d.ts +0 -425
  75. package/dist/cjs/exceptions/types/codes.d.ts.map +0 -1
  76. package/dist/cjs/exceptions/types/codes.js +0 -792
  77. package/dist/cjs/exceptions/types/codes.js.map +0 -1
  78. package/dist/cjs/exceptions/types/context.d.ts +0 -86
  79. package/dist/cjs/exceptions/types/context.d.ts.map +0 -1
  80. package/dist/cjs/exceptions/types/context.js +0 -24
  81. package/dist/cjs/exceptions/types/context.js.map +0 -1
  82. package/dist/cjs/exceptions/types/index.d.ts +0 -4
  83. package/dist/cjs/exceptions/types/index.d.ts.map +0 -1
  84. package/dist/cjs/exceptions/types/index.js +0 -20
  85. package/dist/cjs/exceptions/types/index.js.map +0 -1
  86. package/dist/cjs/exceptions/types/modules.d.ts +0 -60
  87. package/dist/cjs/exceptions/types/modules.d.ts.map +0 -1
  88. package/dist/cjs/exceptions/types/modules.js +0 -67
  89. package/dist/cjs/exceptions/types/modules.js.map +0 -1
  90. package/dist/cjs/exceptions/utils/grpc.d.ts +0 -4
  91. package/dist/cjs/exceptions/utils/grpc.d.ts.map +0 -1
  92. package/dist/cjs/exceptions/utils/grpc.js +0 -41
  93. package/dist/cjs/exceptions/utils/grpc.js.map +0 -1
  94. package/dist/cjs/exceptions/utils/helpers.d.ts +0 -2
  95. package/dist/cjs/exceptions/utils/helpers.d.ts.map +0 -1
  96. package/dist/cjs/exceptions/utils/helpers.js +0 -25
  97. package/dist/cjs/exceptions/utils/helpers.js.map +0 -1
  98. package/dist/cjs/exceptions/utils/maps.d.ts +0 -14
  99. package/dist/cjs/exceptions/utils/maps.d.ts.map +0 -1
  100. package/dist/cjs/exceptions/utils/maps.js +0 -133
  101. package/dist/cjs/exceptions/utils/maps.js.map +0 -1
  102. package/dist/cjs/index.d.ts +0 -4
  103. package/dist/cjs/index.d.ts.map +0 -1
  104. package/dist/cjs/index.js +0 -20
  105. package/dist/cjs/index.js.map +0 -1
  106. package/dist/cjs/package.json +0 -3
  107. package/dist/cjs/types.d.ts +0 -3
  108. package/dist/cjs/types.d.ts.map +0 -1
  109. package/dist/cjs/types.js +0 -3
  110. package/dist/cjs/types.js.map +0 -1
  111. package/dist/cjs/utils.d.ts +0 -9
  112. package/dist/cjs/utils.d.ts.map +0 -1
  113. package/dist/cjs/utils.js +0 -48
  114. package/dist/cjs/utils.js.map +0 -1
  115. package/dist/esm/exceptions/base.d.ts +0 -77
  116. package/dist/esm/exceptions/base.d.ts.map +0 -1
  117. package/dist/esm/exceptions/base.js +0 -172
  118. package/dist/esm/exceptions/base.js.map +0 -1
  119. package/dist/esm/exceptions/exceptions/BitGetException.d.ts +0 -8
  120. package/dist/esm/exceptions/exceptions/BitGetException.d.ts.map +0 -1
  121. package/dist/esm/exceptions/exceptions/BitGetException.js +0 -20
  122. package/dist/esm/exceptions/exceptions/BitGetException.js.map +0 -1
  123. package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +0 -8
  124. package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts.map +0 -1
  125. package/dist/esm/exceptions/exceptions/CosmosWalletException.js +0 -13
  126. package/dist/esm/exceptions/exceptions/CosmosWalletException.js.map +0 -1
  127. package/dist/esm/exceptions/exceptions/GeneralException.d.ts +0 -6
  128. package/dist/esm/exceptions/exceptions/GeneralException.d.ts.map +0 -1
  129. package/dist/esm/exceptions/exceptions/GeneralException.js +0 -8
  130. package/dist/esm/exceptions/exceptions/GeneralException.js.map +0 -1
  131. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +0 -8
  132. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts.map +0 -1
  133. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js +0 -18
  134. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js.map +0 -1
  135. package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +0 -11
  136. package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts.map +0 -1
  137. package/dist/esm/exceptions/exceptions/HttpRequestException.js +0 -18
  138. package/dist/esm/exceptions/exceptions/HttpRequestException.js.map +0 -1
  139. package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +0 -8
  140. package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts.map +0 -1
  141. package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +0 -37
  142. package/dist/esm/exceptions/exceptions/LedgerCosmosException.js.map +0 -1
  143. package/dist/esm/exceptions/exceptions/LedgerException.d.ts +0 -8
  144. package/dist/esm/exceptions/exceptions/LedgerException.d.ts.map +0 -1
  145. package/dist/esm/exceptions/exceptions/LedgerException.js +0 -37
  146. package/dist/esm/exceptions/exceptions/LedgerException.js.map +0 -1
  147. package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +0 -8
  148. package/dist/esm/exceptions/exceptions/MetamaskException.d.ts.map +0 -1
  149. package/dist/esm/exceptions/exceptions/MetamaskException.js +0 -20
  150. package/dist/esm/exceptions/exceptions/MetamaskException.js.map +0 -1
  151. package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +0 -8
  152. package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts.map +0 -1
  153. package/dist/esm/exceptions/exceptions/OkxWalletException.js +0 -20
  154. package/dist/esm/exceptions/exceptions/OkxWalletException.js.map +0 -1
  155. package/dist/esm/exceptions/exceptions/TransactionException.d.ts +0 -8
  156. package/dist/esm/exceptions/exceptions/TransactionException.d.ts.map +0 -1
  157. package/dist/esm/exceptions/exceptions/TransactionException.js +0 -23
  158. package/dist/esm/exceptions/exceptions/TransactionException.js.map +0 -1
  159. package/dist/esm/exceptions/exceptions/TrezorException.d.ts +0 -8
  160. package/dist/esm/exceptions/exceptions/TrezorException.d.ts.map +0 -1
  161. package/dist/esm/exceptions/exceptions/TrezorException.js +0 -13
  162. package/dist/esm/exceptions/exceptions/TrezorException.js.map +0 -1
  163. package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +0 -8
  164. package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts.map +0 -1
  165. package/dist/esm/exceptions/exceptions/TrustWalletException.js +0 -22
  166. package/dist/esm/exceptions/exceptions/TrustWalletException.js.map +0 -1
  167. package/dist/esm/exceptions/exceptions/WalletException.d.ts +0 -6
  168. package/dist/esm/exceptions/exceptions/WalletException.d.ts.map +0 -1
  169. package/dist/esm/exceptions/exceptions/WalletException.js +0 -8
  170. package/dist/esm/exceptions/exceptions/WalletException.js.map +0 -1
  171. package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +0 -8
  172. package/dist/esm/exceptions/exceptions/Web3Exception.d.ts.map +0 -1
  173. package/dist/esm/exceptions/exceptions/Web3Exception.js +0 -13
  174. package/dist/esm/exceptions/exceptions/Web3Exception.js.map +0 -1
  175. package/dist/esm/exceptions/exceptions/index.d.ts +0 -16
  176. package/dist/esm/exceptions/exceptions/index.d.ts.map +0 -1
  177. package/dist/esm/exceptions/exceptions/index.js +0 -16
  178. package/dist/esm/exceptions/exceptions/index.js.map +0 -1
  179. package/dist/esm/exceptions/index.d.ts +0 -3
  180. package/dist/esm/exceptions/index.d.ts.map +0 -1
  181. package/dist/esm/exceptions/index.js +0 -3
  182. package/dist/esm/exceptions/index.js.map +0 -1
  183. package/dist/esm/exceptions/messages.d.ts +0 -13
  184. package/dist/esm/exceptions/messages.d.ts.map +0 -1
  185. package/dist/esm/exceptions/messages.js +0 -1598
  186. package/dist/esm/exceptions/messages.js.map +0 -1
  187. package/dist/esm/exceptions/types/codes.d.ts +0 -425
  188. package/dist/esm/exceptions/types/codes.d.ts.map +0 -1
  189. package/dist/esm/exceptions/types/codes.js +0 -788
  190. package/dist/esm/exceptions/types/codes.js.map +0 -1
  191. package/dist/esm/exceptions/types/context.d.ts +0 -86
  192. package/dist/esm/exceptions/types/context.d.ts.map +0 -1
  193. package/dist/esm/exceptions/types/context.js +0 -21
  194. package/dist/esm/exceptions/types/context.js.map +0 -1
  195. package/dist/esm/exceptions/types/index.d.ts +0 -4
  196. package/dist/esm/exceptions/types/index.d.ts.map +0 -1
  197. package/dist/esm/exceptions/types/index.js +0 -4
  198. package/dist/esm/exceptions/types/index.js.map +0 -1
  199. package/dist/esm/exceptions/types/modules.d.ts +0 -60
  200. package/dist/esm/exceptions/types/modules.d.ts.map +0 -1
  201. package/dist/esm/exceptions/types/modules.js +0 -64
  202. package/dist/esm/exceptions/types/modules.js.map +0 -1
  203. package/dist/esm/exceptions/utils/grpc.d.ts +0 -4
  204. package/dist/esm/exceptions/utils/grpc.d.ts.map +0 -1
  205. package/dist/esm/exceptions/utils/grpc.js +0 -4
  206. package/dist/esm/exceptions/utils/grpc.js.map +0 -1
  207. package/dist/esm/exceptions/utils/helpers.d.ts +0 -2
  208. package/dist/esm/exceptions/utils/helpers.d.ts.map +0 -1
  209. package/dist/esm/exceptions/utils/helpers.js +0 -21
  210. package/dist/esm/exceptions/utils/helpers.js.map +0 -1
  211. package/dist/esm/exceptions/utils/maps.d.ts +0 -14
  212. package/dist/esm/exceptions/utils/maps.d.ts.map +0 -1
  213. package/dist/esm/exceptions/utils/maps.js +0 -126
  214. package/dist/esm/exceptions/utils/maps.js.map +0 -1
  215. package/dist/esm/index.d.ts +0 -4
  216. package/dist/esm/index.d.ts.map +0 -1
  217. package/dist/esm/index.js +0 -4
  218. package/dist/esm/index.js.map +0 -1
  219. package/dist/esm/package.json +0 -3
  220. package/dist/esm/types.d.ts +0 -3
  221. package/dist/esm/types.d.ts.map +0 -1
  222. package/dist/esm/types.js +0 -2
  223. package/dist/esm/types.js.map +0 -1
  224. package/dist/esm/utils.d.ts +0 -9
  225. package/dist/esm/utils.d.ts.map +0 -1
  226. package/dist/esm/utils.js +0 -43
  227. package/dist/esm/utils.js.map +0 -1
@@ -1,788 +0,0 @@
1
- export var GrpcErrorCode;
2
- (function (GrpcErrorCode) {
3
- GrpcErrorCode[GrpcErrorCode["OK"] = 0] = "OK";
4
- GrpcErrorCode[GrpcErrorCode["Canceled"] = 1] = "Canceled";
5
- GrpcErrorCode[GrpcErrorCode["Unknown"] = 2] = "Unknown";
6
- GrpcErrorCode[GrpcErrorCode["InvalidArgument"] = 3] = "InvalidArgument";
7
- GrpcErrorCode[GrpcErrorCode["DeadlineExceeded"] = 4] = "DeadlineExceeded";
8
- GrpcErrorCode[GrpcErrorCode["NotFound"] = 5] = "NotFound";
9
- GrpcErrorCode[GrpcErrorCode["AlreadyExists"] = 6] = "AlreadyExists";
10
- GrpcErrorCode[GrpcErrorCode["PermissionDenied"] = 7] = "PermissionDenied";
11
- GrpcErrorCode[GrpcErrorCode["ResourceExhausted"] = 8] = "ResourceExhausted";
12
- GrpcErrorCode[GrpcErrorCode["FailedPrecondition"] = 9] = "FailedPrecondition";
13
- GrpcErrorCode[GrpcErrorCode["Aborted"] = 10] = "Aborted";
14
- GrpcErrorCode[GrpcErrorCode["OutOfRange"] = 11] = "OutOfRange";
15
- GrpcErrorCode[GrpcErrorCode["Unimplemented"] = 12] = "Unimplemented";
16
- GrpcErrorCode[GrpcErrorCode["Internal"] = 13] = "Internal";
17
- GrpcErrorCode[GrpcErrorCode["Unavailable"] = 14] = "Unavailable";
18
- GrpcErrorCode[GrpcErrorCode["DataLoss"] = 15] = "DataLoss";
19
- GrpcErrorCode[GrpcErrorCode["Unauthenticated"] = 16] = "Unauthenticated";
20
- })(GrpcErrorCode || (GrpcErrorCode = {}));
21
- export const grpcErrorCodeToErrorCode = (grpcErrorCode) => {
22
- return grpcErrorCode;
23
- };
24
- export var TransactionChainErrorModule;
25
- (function (TransactionChainErrorModule) {
26
- TransactionChainErrorModule["Auction"] = "auction";
27
- TransactionChainErrorModule["CosmosSdk"] = "sdk";
28
- TransactionChainErrorModule["Staking"] = "staking";
29
- TransactionChainErrorModule["Bank"] = "bank";
30
- TransactionChainErrorModule["Distribution"] = "distribution";
31
- TransactionChainErrorModule["Gov"] = "gov";
32
- TransactionChainErrorModule["Exchange"] = "exchange";
33
- TransactionChainErrorModule["Insurance"] = "insurance";
34
- TransactionChainErrorModule["Ocr"] = "ocr";
35
- TransactionChainErrorModule["Oracle"] = "oracle";
36
- TransactionChainErrorModule["Peggy"] = "peggy";
37
- TransactionChainErrorModule["TokenFactory"] = "tokenfactory";
38
- TransactionChainErrorModule["Wasmx"] = "wasmx";
39
- TransactionChainErrorModule["Wasm"] = "wasm";
40
- TransactionChainErrorModule["AuthZ"] = "authz";
41
- })(TransactionChainErrorModule || (TransactionChainErrorModule = {}));
42
- export var ChainCosmosErrorCode;
43
- (function (ChainCosmosErrorCode) {
44
- // ErrTxDecode is returned if we cannot parse a transaction
45
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrTxDecode"] = 2] = "ErrTxDecode";
46
- // ErrInvalidSequence is used the sequence number (nonce) is incorrect for the signature
47
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidSequence"] = 3] = "ErrInvalidSequence";
48
- // ErrUnauthorized is used whenever a request without sufficient authorization is handled.
49
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrUnauthorized"] = 4] = "ErrUnauthorized";
50
- // ErrInsufficientFunds is used when the account cannot pay requested amount.
51
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInsufficientFunds"] = 5] = "ErrInsufficientFunds";
52
- // ErrUnknownRequest to doc
53
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrUnknownRequest"] = 6] = "ErrUnknownRequest";
54
- // ErrInvalidAddress to doc
55
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidAddress"] = 7] = "ErrInvalidAddress";
56
- // ErrInvalidPubKey to doc
57
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidPubKey"] = 8] = "ErrInvalidPubKey";
58
- // ErrUnknownAddress to doc
59
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrUnknownAddress"] = 9] = "ErrUnknownAddress";
60
- // ErrInvalidCoins to doc
61
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidCoins"] = 10] = "ErrInvalidCoins";
62
- // ErrOutOfGas to doc
63
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrOutOfGas"] = 11] = "ErrOutOfGas";
64
- // ErrMemoTooLarge to doc
65
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrMemoTooLarge"] = 12] = "ErrMemoTooLarge";
66
- // ErrInsufficientFee to doc
67
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInsufficientFee"] = 13] = "ErrInsufficientFee";
68
- // ErrTooManySignatures to doc
69
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrTooManySignatures"] = 14] = "ErrTooManySignatures";
70
- // ErrNoSignatures to doc
71
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrNoSignatures"] = 15] = "ErrNoSignatures";
72
- // ErrJSONMarshal defines an ABCI typed JSON marshalling error
73
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrJSONMarshal"] = 16] = "ErrJSONMarshal";
74
- // ErrJSONUnmarshal defines an ABCI typed JSON unmarshalling error
75
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrJSONUnmarshal"] = 17] = "ErrJSONUnmarshal";
76
- // ErrInvalidRequest defines an ABCI typed error where the request contains invalid data.
77
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidRequest"] = 18] = "ErrInvalidRequest";
78
- // ErrTxInMempoolCache defines an ABCI typed error where a tx already exists in the mempool.
79
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrTxInMempoolCache"] = 19] = "ErrTxInMempoolCache";
80
- // ErrMempoolIsFull defines an ABCI typed error where the mempool is full.
81
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrMempoolIsFull"] = 20] = "ErrMempoolIsFull";
82
- // ErrTxTooLarge defines an ABCI typed error where tx is too large.
83
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrTxTooLarge"] = 21] = "ErrTxTooLarge";
84
- // ErrKeyNotFound defines an error when the key doesn't exist
85
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrKeyNotFound"] = 22] = "ErrKeyNotFound";
86
- // ErrWrongPassword defines an error when the key password is invalid.
87
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrWrongPassword"] = 23] = "ErrWrongPassword";
88
- // ErrorInvalidSigner defines an error when the tx intended signer does not match the given signer.
89
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrorInvalidSigner"] = 24] = "ErrorInvalidSigner";
90
- // ErrorInvalidGasAdjustment defines an error for an invalid gas adjustment
91
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrorInvalidGasAdjustment"] = 25] = "ErrorInvalidGasAdjustment";
92
- // ErrInvalidHeight defines an error for an invalid height
93
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidHeight"] = 26] = "ErrInvalidHeight";
94
- // ErrInvalidVersion defines a general error for an invalid version
95
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidVersion"] = 27] = "ErrInvalidVersion";
96
- // ErrInvalidChainID defines an error when the chain-id is invalid.
97
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidChainID"] = 28] = "ErrInvalidChainID";
98
- // ErrInvalidType defines an error an invalid type.
99
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidType"] = 29] = "ErrInvalidType";
100
- // ErrTxTimeoutHeight defines an error for when a tx is rejected out due to an explicitly set timeout height.
101
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrTxTimeoutHeight"] = 30] = "ErrTxTimeoutHeight";
102
- // ErrUnknownExtensionOptions defines an error for unknown extension options.
103
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrUnknownExtensionOptions"] = 31] = "ErrUnknownExtensionOptions";
104
- // ErrWrongSequence defines an error where the account sequence defined in the signer info doesn't match the account's actual sequence number.
105
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrWrongSequence"] = 32] = "ErrWrongSequence";
106
- // ErrPackAny defines an error when packing a protobuf message to Any fails.
107
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrPackAny"] = 33] = "ErrPackAny";
108
- // ErrUnpackAny defines an error when unpacking a protobuf message from Any fails.
109
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrUnpackAny"] = 34] = "ErrUnpackAny";
110
- // ErrLogic defines an internal logic error, e.g. an invariant or assertion that is violated. It is a programmer error, not a user-facing error.
111
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrLogic"] = 35] = "ErrLogic";
112
- // ErrConflict defines a conflict error, e.g. when two goroutines try to access the same resource and one of them fails.
113
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrConflict"] = 36] = "ErrConflict";
114
- // ErrNotSupported is returned when we call a branch of a code which is currently not supported.
115
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrNotSupported"] = 37] = "ErrNotSupported";
116
- // ErrNotFound defines an error when requested entity doesn't exist in the state.
117
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrNotFound"] = 38] = "ErrNotFound";
118
- // ErrIO should be used to wrap internal errors caused by external operation. Examples: not DB domain error, file writing etc...
119
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrIO"] = 39] = "ErrIO";
120
- // ErrAppConfig defines an error occurred if min-gas-prices field in BaseConfig is empty.
121
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrAppConfig"] = 40] = "ErrAppConfig";
122
- // ErrInvalidGasLimit defines an error when an invalid GasWanted value is supplied.
123
- ChainCosmosErrorCode[ChainCosmosErrorCode["ErrInvalidGasLimit"] = 41] = "ErrInvalidGasLimit";
124
- })(ChainCosmosErrorCode || (ChainCosmosErrorCode = {}));
125
- export var ChainExchangeModuleErrorCode;
126
- (function (ChainExchangeModuleErrorCode) {
127
- // failed to validate order
128
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrOrderInvalid"] = 1] = "ErrOrderInvalid";
129
- // spot market not found
130
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrSpotMarketNotFound"] = 2] = "ErrSpotMarketNotFound";
131
- // spot market exists
132
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrSpotMarketExists"] = 3] = "ErrSpotMarketExists";
133
- // struct field error
134
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrBadField"] = 4] = "ErrBadField";
135
- // failed to validate market
136
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrMarketInvalid"] = 5] = "ErrMarketInvalid";
137
- // subaccount has insufficient deposits
138
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInsufficientDeposit"] = 6] = "ErrInsufficientDeposit";
139
- // unrecognized order type
140
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrUnrecognizedOrderType"] = 7] = "ErrUnrecognizedOrderType";
141
- // position quantity insufficient for order
142
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInsufficientPositionQuantity"] = 8] = "ErrInsufficientPositionQuantity";
143
- // order hash is not valid
144
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrOrderHashInvalid"] = 9] = "ErrOrderHashInvalid";
145
- // subaccount id is not valid
146
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrBadSubaccountID"] = 10] = "ErrBadSubaccountID";
147
- // invalid ticker
148
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidTicker"] = 11] = "ErrInvalidTicker";
149
- // invalid base denom
150
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidBaseDenom"] = 12] = "ErrInvalidBaseDenom";
151
- // invalid quote denom
152
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidQuoteDenom"] = 13] = "ErrInvalidQuoteDenom";
153
- // invalid oracle
154
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidOracle"] = 14] = "ErrInvalidOracle";
155
- // invalid expiry
156
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidExpiry"] = 15] = "ErrInvalidExpiry";
157
- // invalid price
158
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidPrice"] = 16] = "ErrInvalidPrice";
159
- // invalid quantity
160
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidQuantity"] = 17] = "ErrInvalidQuantity";
161
- // unsupported oracle type
162
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrUnsupportedOracleType"] = 18] = "ErrUnsupportedOracleType";
163
- // order doesnt exist
164
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrOrderDoesntExist"] = 19] = "ErrOrderDoesntExist";
165
- // spot limit orderbook fill invalid
166
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrOrderbookFillInvalid"] = 20] = "ErrOrderbookFillInvalid";
167
- // perpetual market exists
168
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrPerpetualMarketExists"] = 21] = "ErrPerpetualMarketExists";
169
- // expiry futures market exists
170
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrExpiryFuturesMarketExists"] = 22] = "ErrExpiryFuturesMarketExists";
171
- // expiry futures market expired
172
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrExpiryFuturesMarketExpired"] = 23] = "ErrExpiryFuturesMarketExpired";
173
- // no liquidity on the orderbook!
174
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrNoLiquidity"] = 24] = "ErrNoLiquidity";
175
- // Orderbook liquidity cannot satisfy current worst price
176
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrSlippageExceedsWorstPrice"] = 25] = "ErrSlippageExceedsWorstPrice";
177
- // Order has insufficient margin
178
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInsufficientOrderMargin"] = 26] = "ErrInsufficientOrderMargin";
179
- // Derivative market not found
180
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrDerivativeMarketNotFound"] = 27] = "ErrDerivativeMarketNotFound";
181
- // Position not found
182
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrPositionNotFound"] = 28] = "ErrPositionNotFound";
183
- // Position direction does not oppose the reduce-only order
184
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidReduceOnlyPositionDirection"] = 29] = "ErrInvalidReduceOnlyPositionDirection";
185
- // Price Surpasses Bankruptcy Price
186
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrPriceSurpassesBankruptcyPrice"] = 30] = "ErrPriceSurpassesBankruptcyPrice";
187
- // Position not liquidable
188
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrPositionNotLiquidable"] = 31] = "ErrPositionNotLiquidable";
189
- // invalid trigger price
190
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidTriggerPrice"] = 32] = "ErrInvalidTriggerPrice";
191
- // invalid oracle type
192
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidOracleType"] = 33] = "ErrInvalidOracleType";
193
- // invalid minimum price tick size
194
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidPriceTickSize"] = 34] = "ErrInvalidPriceTickSize";
195
- // invalid minimum quantity tick size
196
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidQuantityTickSize"] = 35] = "ErrInvalidQuantityTickSize";
197
- // invalid minimum order margin
198
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidMargin"] = 36] = "ErrInvalidMargin";
199
- // Exceeds order side count
200
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrExceedsOrderSideCount"] = 37] = "ErrExceedsOrderSideCount";
201
- // Subaccount cannot place a market order when a market order in the same market was already placed in same block
202
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrMarketOrderAlreadyExists"] = 38] = "ErrMarketOrderAlreadyExists";
203
- // cannot place a conditional market order when a conditional market order in same relative direction already exists
204
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrConditionalMarketOrderAlreadyExists"] = 39] = "ErrConditionalMarketOrderAlreadyExists";
205
- // An equivalent market launch proposal already exists.
206
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrMarketLaunchProposalAlreadyExists"] = 40] = "ErrMarketLaunchProposalAlreadyExists";
207
- // Invalid Market Status
208
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidMarketStatus"] = 41] = "ErrInvalidMarketStatus";
209
- // base denom cannot be same with quote denom
210
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrSameDenoms"] = 42] = "ErrSameDenoms";
211
- // oracle base cannot be same with oracle quote
212
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrSameOracles"] = 43] = "ErrSameOracles";
213
- // MakerFeeRate does not match TakerFeeRate requirements
214
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrFeeRatesRelation"] = 44] = "ErrFeeRatesRelation";
215
- // MaintenanceMarginRatio cannot be greater than InitialMarginRatio
216
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrMarginsRelation"] = 45] = "ErrMarginsRelation";
217
- // OracleScaleFactor cannot be greater than MaxOracleScaleFactor
218
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrExceedsMaxOracleScaleFactor"] = 46] = "ErrExceedsMaxOracleScaleFactor";
219
- // Spot exchange is not enabled yet
220
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrSpotExchangeNotEnabled"] = 47] = "ErrSpotExchangeNotEnabled";
221
- // Derivatives exchange is not enabled yet
222
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrDerivativesExchangeNotEnabled"] = 48] = "ErrDerivativesExchangeNotEnabled";
223
- // Oracle price delta exceeds threshold
224
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrOraclePriceDeltaExceedsThreshold"] = 49] = "ErrOraclePriceDeltaExceedsThreshold";
225
- // Invalid hourly interest rate
226
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidHourlyInterestRate"] = 50] = "ErrInvalidHourlyInterestRate";
227
- // Invalid hourly funding rate cap
228
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidHourlyFundingRateCap"] = 51] = "ErrInvalidHourlyFundingRateCap";
229
- // Only perpetual markets can update funding parameters
230
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidMarketFundingParamUpdate"] = 52] = "ErrInvalidMarketFundingParamUpdate";
231
- // Invalid trading reward campaign
232
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidTradingRewardCampaign"] = 53] = "ErrInvalidTradingRewardCampaign";
233
- // Invalid fee discount schedule
234
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidFeeDiscountSchedule"] = 54] = "ErrInvalidFeeDiscountSchedule";
235
- // invalid liquidation order
236
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidLiquidationOrder"] = 55] = "ErrInvalidLiquidationOrder";
237
- // Unknown error happened for campaign distributions
238
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrTradingRewardCampaignDistributionError"] = 56] = "ErrTradingRewardCampaignDistributionError";
239
- // Invalid trading reward points update
240
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidTradingRewardsPendingPointsUpdate"] = 57] = "ErrInvalidTradingRewardsPendingPointsUpdate";
241
- // Invalid batch msg update
242
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidBatchMsgUpdate"] = 58] = "ErrInvalidBatchMsgUpdate";
243
- // Post-only order exceeds top of book price
244
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrExceedsTopOfBookPrice"] = 59] = "ErrExceedsTopOfBookPrice";
245
- // Order type not supported for given message
246
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidOrderTypeForMessage"] = 60] = "ErrInvalidOrderTypeForMessage";
247
- // Sender must match dmm account
248
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidDMMSender"] = 61] = "ErrInvalidDMMSender";
249
- // already opted out of rewards
250
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrAlreadyOptedOutOfRewards"] = 62] = "ErrAlreadyOptedOutOfRewards";
251
- // Invalid margin ratio
252
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidMarginRatio"] = 63] = "ErrInvalidMarginRatio";
253
- // Provided funds are below minimum
254
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrBelowMinimalContribution"] = 64] = "ErrBelowMinimalContribution";
255
- // Position is below initial margin requirement
256
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrLowPositionMargin"] = 65] = "ErrLowPositionMargin";
257
- // Pool has non-positive total lp token supply
258
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidTotalSupply"] = 66] = "ErrInvalidTotalSupply";
259
- // Passed lp token burn amount is greater than total lp token supply
260
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidLpTokenBurnAmount"] = 67] = "ErrInvalidLpTokenBurnAmount";
261
- // unsupported action
262
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrUnsupportedAction"] = 68] = "ErrUnsupportedAction";
263
- // position quantity cannot be negative
264
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrNegativePositionQuantity"] = 69] = "ErrNegativePositionQuantity";
265
- // binary options market exists
266
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrBinaryOptionsMarketExists"] = 70] = "ErrBinaryOptionsMarketExists";
267
- // binary options market not found
268
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrBinaryOptionsMarketNotFound"] = 71] = "ErrBinaryOptionsMarketNotFound";
269
- // invalid settlement
270
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidSettlement"] = 72] = "ErrInvalidSettlement";
271
- // account doesnt exist
272
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrAccountDoesntExist"] = 73] = "ErrAccountDoesntExist";
273
- // sender should be a market admin
274
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrSenderIsNotAnAdmin"] = 74] = "ErrSenderIsNotAnAdmin";
275
- // market is already scheduled to settle
276
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrMarketAlreadyScheduledToSettle"] = 75] = "ErrMarketAlreadyScheduledToSettle";
277
- // market not found
278
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrGenericMarketNotFound"] = 76] = "ErrGenericMarketNotFound";
279
- // denom decimal cannot be below 1 or above max scale factor
280
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidDenomDecimal"] = 77] = "ErrInvalidDenomDecimal";
281
- // state is invalid
282
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidState"] = 78] = "ErrInvalidState";
283
- // transient orders up to cancellation not supported
284
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrTransientOrdersUpToCancelNotSupported"] = 79] = "ErrTransientOrdersUpToCancelNotSupported";
285
- // invalid trade
286
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidTrade"] = 80] = "ErrInvalidTrade";
287
- // no margin locked in subaccount
288
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrNoMarginLocked"] = 81] = "ErrNoMarginLocked";
289
- // Invalid access level to perform action
290
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidAccessLevel"] = 82] = "ErrInvalidAccessLevel";
291
- // Invalid address
292
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidAddress"] = 83] = "ErrInvalidAddress";
293
- // Invalid argument
294
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidArgument"] = 84] = "ErrInvalidArgument";
295
- // Invalid funds direction
296
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidFundsDirection"] = 85] = "ErrInvalidFundsDirection";
297
- // No funds provided
298
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrNoFundsProvided"] = 86] = "ErrNoFundsProvided";
299
- // Invalid signature
300
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidSignature"] = 87] = "ErrInvalidSignature";
301
- // no funds to unlock
302
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrNoFundsToUnlock"] = 88] = "ErrNoFundsToUnlock";
303
- // No msgs provided
304
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrNoMsgsProvided"] = 89] = "ErrNoMsgsProvided";
305
- // No msg provided
306
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrNoMsgProvided"] = 90] = "ErrNoMsgProvided";
307
- // Invalid amount
308
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidAmount"] = 91] = "ErrInvalidAmount";
309
- // The current feature has been disabled
310
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrFeatureDisabled"] = 92] = "ErrFeatureDisabled";
311
- // Order has too much margin
312
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrTooMuchOrderMargin"] = 93] = "ErrTooMuchOrderMargin";
313
- // Order has too much margin
314
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrBadSubaccountNonce"] = 94] = "ErrBadSubaccountNonce";
315
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInsufficientFunds"] = 95] = "ErrInsufficientFunds";
316
- // Exchange is in post-only mode
317
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrPostOnlyMode"] = 96] = "ErrPostOnlyMode";
318
- // client order id already exists
319
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrClientOrderIdAlreadyExists"] = 97] = "ErrClientOrderIdAlreadyExists";
320
- // client order id is invalid. Max length is 36 chars
321
- ChainExchangeModuleErrorCode[ChainExchangeModuleErrorCode["ErrInvalidCid"] = 98] = "ErrInvalidCid";
322
- })(ChainExchangeModuleErrorCode || (ChainExchangeModuleErrorCode = {}));
323
- export var ChainAuctionErrorCodes;
324
- (function (ChainAuctionErrorCodes) {
325
- // invalid bid denom
326
- ChainAuctionErrorCodes[ChainAuctionErrorCodes["ErrBidInvalid"] = 1] = "ErrBidInvalid";
327
- // invalid bid round
328
- ChainAuctionErrorCodes[ChainAuctionErrorCodes["ErrBidRound"] = 2] = "ErrBidRound";
329
- })(ChainAuctionErrorCodes || (ChainAuctionErrorCodes = {}));
330
- export var ChainAuthZErrorCodes;
331
- (function (ChainAuthZErrorCodes) {
332
- // ErrNoAuthorizationFound error if there is no authorization found given a grant key
333
- ChainAuthZErrorCodes[ChainAuthZErrorCodes["ErrNoAuthorizationFound"] = 2] = "ErrNoAuthorizationFound";
334
- // ErrInvalidExpirationTime error if the set expiration time is in the past
335
- ChainAuthZErrorCodes[ChainAuthZErrorCodes["ErrInvalidExpirationTime"] = 3] = "ErrInvalidExpirationTime";
336
- // ErrUnknownAuthorizationType error for unknown authorization type
337
- ChainAuthZErrorCodes[ChainAuthZErrorCodes["ErrUnknownAuthorizationType"] = 4] = "ErrUnknownAuthorizationType";
338
- // ErrNoGrantKeyFound error if the requested grant key does not exist
339
- ChainAuthZErrorCodes[ChainAuthZErrorCodes["ErrNoGrantKeyFound"] = 5] = "ErrNoGrantKeyFound";
340
- // ErrAuthorizationExpired error if the authorization has expired
341
- ChainAuthZErrorCodes[ChainAuthZErrorCodes["ErrAuthorizationExpired"] = 6] = "ErrAuthorizationExpired";
342
- // ErrGranteeIsGranter error if the grantee and the granter are the same
343
- ChainAuthZErrorCodes[ChainAuthZErrorCodes["ErrGranteeIsGranter"] = 7] = "ErrGranteeIsGranter";
344
- // ErrAuthorizationNumOfSigners error if an authorization message does not have only one signer
345
- ChainAuthZErrorCodes[ChainAuthZErrorCodes["ErrAuthorizationNumOfSigners"] = 9] = "ErrAuthorizationNumOfSigners";
346
- // ErrNegativeMaxTokens error if the max tokens is negative
347
- ChainAuthZErrorCodes[ChainAuthZErrorCodes["ErrNegativeMaxTokens"] = 12] = "ErrNegativeMaxTokens";
348
- })(ChainAuthZErrorCodes || (ChainAuthZErrorCodes = {}));
349
- export var ChainInsuranceErrorCodes;
350
- (function (ChainInsuranceErrorCodes) {
351
- // insurance fund already exists
352
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInsuranceFundAlreadyExists"] = 1] = "ErrInsuranceFundAlreadyExists";
353
- // insurance fund not found
354
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInsuranceFundNotFound"] = 2] = "ErrInsuranceFundNotFound";
355
- // redemption already exists
356
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrRedemptionAlreadyExists"] = 3] = "ErrRedemptionAlreadyExists";
357
- // invalid deposit amount
358
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInvalidDepositAmount"] = 4] = "ErrInvalidDepositAmount";
359
- // invalid deposit denom
360
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInvalidDepositDenom"] = 5] = "ErrInvalidDepositDenom";
361
- // insurance payout exceeds deposits
362
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrPayoutTooLarge"] = 6] = "ErrPayoutTooLarge";
363
- // invalid ticker
364
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInvalidTicker"] = 7] = "ErrInvalidTicker";
365
- // invalid quote denom
366
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInvalidQuoteDenom"] = 8] = "ErrInvalidQuoteDenom";
367
- // invalid oracle
368
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInvalidOracle"] = 9] = "ErrInvalidOracle";
369
- // invalid expiration time
370
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInvalidExpirationTime"] = 10] = "ErrInvalidExpirationTime";
371
- // invalid marketID
372
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInvalidMarketID"] = 11] = "ErrInvalidMarketID";
373
- // invalid share denom
374
- ChainInsuranceErrorCodes[ChainInsuranceErrorCodes["ErrInvalidShareDenom"] = 12] = "ErrInvalidShareDenom";
375
- })(ChainInsuranceErrorCodes || (ChainInsuranceErrorCodes = {}));
376
- export var ChainOcrErrorCodes;
377
- (function (ChainOcrErrorCodes) {
378
- // stale report
379
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrStaleReport"] = 1] = "ErrStaleReport";
380
- // incomplete proposal
381
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrIncompleteProposal"] = 2] = "ErrIncompleteProposal";
382
- // repeated oracle address
383
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrRepeatedAddress"] = 3] = "ErrRepeatedAddress";
384
- // too many signers
385
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrTooManySigners"] = 4] = "ErrTooManySigners";
386
- // incorrect config
387
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrIncorrectConfig"] = 5] = "ErrIncorrectConfig";
388
- // config digest doesn't match
389
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrConfigDigestNotMatch"] = 6] = "ErrConfigDigestNotMatch";
390
- // wrong number of signatures
391
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrWrongNumberOfSignatures"] = 7] = "ErrWrongNumberOfSignatures";
392
- // incorrect signature
393
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrIncorrectSignature"] = 8] = "ErrIncorrectSignature";
394
- // no transmitter specified
395
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrNoTransmitter"] = 9] = "ErrNoTransmitter";
396
- // incorrect transmission data
397
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrIncorrectTransmissionData"] = 10] = "ErrIncorrectTransmissionData";
398
- // no transmissions found
399
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrNoTransmissionsFound"] = 11] = "ErrNoTransmissionsFound";
400
- // median value is out of bounds
401
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrMedianValueOutOfBounds"] = 12] = "ErrMedianValueOutOfBounds";
402
- // LINK denom doesn't match
403
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrIncorrectRewardPoolDenom"] = 13] = "ErrIncorrectRewardPoolDenom";
404
- // Reward Pool doesn't exist
405
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrNoRewardPool"] = 14] = "ErrNoRewardPool";
406
- // wrong number of payees and transmitters
407
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrInvalidPayees"] = 15] = "ErrInvalidPayees";
408
- // action is restricted to the module admin
409
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrModuleAdminRestricted"] = 16] = "ErrModuleAdminRestricted";
410
- // feed already exists
411
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrFeedAlreadyExists"] = 17] = "ErrFeedAlreadyExists";
412
- // feed doesnt exists
413
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrFeedDoesntExists"] = 19] = "ErrFeedDoesntExists";
414
- // action is admin-restricted
415
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrAdminRestricted"] = 20] = "ErrAdminRestricted";
416
- // insufficient reward pool
417
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrInsufficientRewardPool"] = 21] = "ErrInsufficientRewardPool";
418
- // payee already set
419
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrPayeeAlreadySet"] = 22] = "ErrPayeeAlreadySet";
420
- // action is payee-restricted
421
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrPayeeRestricted"] = 23] = "ErrPayeeRestricted";
422
- // feed config not found
423
- ChainOcrErrorCodes[ChainOcrErrorCodes["ErrFeedConfigNotFound"] = 24] = "ErrFeedConfigNotFound";
424
- })(ChainOcrErrorCodes || (ChainOcrErrorCodes = {}));
425
- export var ChainOracleErrorCodes;
426
- (function (ChainOracleErrorCodes) {
427
- // relayer address is empty
428
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrEmptyRelayerAddr"] = 1] = "ErrEmptyRelayerAddr";
429
- // bad rates count
430
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadRatesCount"] = 2] = "ErrBadRatesCount";
431
- // bad resolve times
432
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadResolveTimesCount"] = 3] = "ErrBadResolveTimesCount";
433
- // bad request ID
434
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadRequestIDsCount"] = 4] = "ErrBadRequestIDsCount";
435
- // relayer not authorized
436
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrRelayerNotAuthorized"] = 5] = "ErrRelayerNotAuthorized";
437
- // bad price feed base count
438
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadPriceFeedBaseCount"] = 6] = "ErrBadPriceFeedBaseCount";
439
- // bad price feed quote count
440
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadPriceFeedQuoteCount"] = 7] = "ErrBadPriceFeedQuoteCount";
441
- // unsupported oracle type
442
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrUnsupportedOracleType"] = 8] = "ErrUnsupportedOracleType";
443
- // bad messages count
444
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadMessagesCount"] = 9] = "ErrBadMessagesCount";
445
- // bad Coinbase message
446
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadCoinbaseMessage"] = 10] = "ErrBadCoinbaseMessage";
447
- // bad Ethereum signature
448
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidEthereumSignature"] = 11] = "ErrInvalidEthereumSignature";
449
- // bad Coinbase message timestamp
450
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadCoinbaseMessageTimestamp"] = 12] = "ErrBadCoinbaseMessageTimestamp";
451
- // Coinbase price not found
452
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrCoinbasePriceNotFound"] = 13] = "ErrCoinbasePriceNotFound";
453
- // Prices must be positive
454
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadPrice"] = 14] = "ErrBadPrice";
455
- // Prices must be less than 10 million.
456
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrPriceTooLarge"] = 15] = "ErrPriceTooLarge";
457
- // Invalid Band IBC Request
458
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidBandIBCRequest"] = 16] = "ErrInvalidBandIBCRequest";
459
- // sample error
460
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrSample"] = 17] = "ErrSample";
461
- // invalid packet timeout
462
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidPacketTimeout"] = 18] = "ErrInvalidPacketTimeout";
463
- // invalid symbols count
464
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadSymbolsCount"] = 19] = "ErrBadSymbolsCount";
465
- // could not claim port capability
466
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadIBCPortBind"] = 20] = "ErrBadIBCPortBind";
467
- // invalid IBC Port ID
468
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidPortID"] = 21] = "ErrInvalidPortID";
469
- // invalid IBC Channel ID
470
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidChannelID"] = 22] = "ErrInvalidChannelID";
471
- // invalid Band IBC request interval
472
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBadRequestInterval"] = 23] = "ErrBadRequestInterval";
473
- // Invalid Band IBC Update Request Proposal
474
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidBandIBCUpdateRequest"] = 24] = "ErrInvalidBandIBCUpdateRequest";
475
- // Band IBC Oracle Request not found
476
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrBandIBCRequestNotFound"] = 25] = "ErrBandIBCRequestNotFound";
477
- // Base Info is empty
478
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrEmptyBaseInfo"] = 26] = "ErrEmptyBaseInfo";
479
- // provider is empty
480
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrEmptyProvider"] = 27] = "ErrEmptyProvider";
481
- // invalid provider name
482
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidProvider"] = 28] = "ErrInvalidProvider";
483
- // invalid symbol
484
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidSymbol"] = 29] = "ErrInvalidSymbol";
485
- // relayer already exists
486
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrRelayerAlreadyExists"] = 30] = "ErrRelayerAlreadyExists";
487
- // provider price not found
488
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrProviderPriceNotFound"] = 31] = "ErrProviderPriceNotFound";
489
- // invalid oracle request
490
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrInvalidOracleRequest"] = 32] = "ErrInvalidOracleRequest";
491
- // no price for oracle was found
492
- ChainOracleErrorCodes[ChainOracleErrorCodes["ErrOraclePriceNotFound"] = 33] = "ErrOraclePriceNotFound";
493
- })(ChainOracleErrorCodes || (ChainOracleErrorCodes = {}));
494
- export var ChainPeggyErrorCodes;
495
- (function (ChainPeggyErrorCodes) {
496
- // internal
497
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrInternal"] = 1] = "ErrInternal";
498
- // duplicate
499
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrDuplicate"] = 2] = "ErrDuplicate";
500
- // invalid
501
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrInvalid"] = 3] = "ErrInvalid";
502
- // timeout
503
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrTimeout"] = 4] = "ErrTimeout";
504
- // unknown
505
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrUnknown"] = 5] = "ErrUnknown";
506
- // empty
507
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrEmpty"] = 6] = "ErrEmpty";
508
- // outdated
509
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrOutdated"] = 7] = "ErrOutdated";
510
- // unsupported
511
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrUnsupported"] = 8] = "ErrUnsupported";
512
- // non contiguous event nonce
513
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrNonContiguousEventNonce"] = 9] = "ErrNonContiguousEventNonce";
514
- // no unbatched txs found
515
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrNoUnbatchedTxsFound"] = 10] = "ErrNoUnbatchedTxsFound";
516
- // can not set orchestrator addresses more than once
517
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrResetDelegateKeys"] = 11] = "ErrResetDelegateKeys";
518
- // supply cannot exceed max ERC20 value
519
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrSupplyOverflow"] = 12] = "ErrSupplyOverflow";
520
- // invalid ethereum sender on claim
521
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrInvalidEthSender"] = 13] = "ErrInvalidEthSender";
522
- // invalid ethereum destination
523
- ChainPeggyErrorCodes[ChainPeggyErrorCodes["ErrInvalidEthDestination"] = 14] = "ErrInvalidEthDestination";
524
- })(ChainPeggyErrorCodes || (ChainPeggyErrorCodes = {}));
525
- export var ChainTokenFactoryErrorCodes;
526
- (function (ChainTokenFactoryErrorCodes) {
527
- // attempting to create a denom that already exists (has bank metadata)
528
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrDenomExists"] = 2] = "ErrDenomExists";
529
- // unauthorized account
530
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrUnauthorized"] = 3] = "ErrUnauthorized";
531
- // invalid denom
532
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrInvalidDenom"] = 4] = "ErrInvalidDenom";
533
- // invalid creator
534
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrInvalidCreator"] = 5] = "ErrInvalidCreator";
535
- // invalid authority metadata
536
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrInvalidAuthorityMetadata"] = 6] = "ErrInvalidAuthorityMetadata";
537
- // invalid genesis
538
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrInvalidGenesis"] = 7] = "ErrInvalidGenesis";
539
- // subdenom too long, max length is %d bytes
540
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrSubdenomTooLong"] = 8] = "ErrSubdenomTooLong";
541
- // subdenom too short, min length is %d bytes
542
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrSubdenomTooShort"] = 9] = "ErrSubdenomTooShort";
543
- // nested subdenom too short, each one should have at least %d bytes
544
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrSubdenomNestedTooShort"] = 10] = "ErrSubdenomNestedTooShort";
545
- // creator too long, max length is %d bytes
546
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrCreatorTooLong"] = 11] = "ErrCreatorTooLong";
547
- // denom does not exist
548
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrDenomDoesNotExist"] = 12] = "ErrDenomDoesNotExist";
549
- // amount has to be positive
550
- ChainTokenFactoryErrorCodes[ChainTokenFactoryErrorCodes["ErrAmountNotPositive"] = 13] = "ErrAmountNotPositive";
551
- })(ChainTokenFactoryErrorCodes || (ChainTokenFactoryErrorCodes = {}));
552
- export var ChainWasmXErrorCodes;
553
- (function (ChainWasmXErrorCodes) {
554
- // invalid gas limit
555
- ChainWasmXErrorCodes[ChainWasmXErrorCodes["ErrInvalidGasLimit"] = 1] = "ErrInvalidGasLimit";
556
- // invalid gas price
557
- ChainWasmXErrorCodes[ChainWasmXErrorCodes["ErrInvalidGasPrice"] = 2] = "ErrInvalidGasPrice";
558
- // invalid contract address
559
- ChainWasmXErrorCodes[ChainWasmXErrorCodes["ErrInvalidContractAddress"] = 3] = "ErrInvalidContractAddress";
560
- // contract already registered
561
- ChainWasmXErrorCodes[ChainWasmXErrorCodes["ErrAlreadyRegistered"] = 4] = "ErrAlreadyRegistered";
562
- // duplicate contract
563
- ChainWasmXErrorCodes[ChainWasmXErrorCodes["ErrDuplicateContract"] = 5] = "ErrDuplicateContract";
564
- // no contract addresses found
565
- ChainWasmXErrorCodes[ChainWasmXErrorCodes["ErrNoContractAddresses"] = 6] = "ErrNoContractAddresses";
566
- // invalid code id
567
- ChainWasmXErrorCodes[ChainWasmXErrorCodes["ErrInvalidCodeId"] = 7] = "ErrInvalidCodeId";
568
- })(ChainWasmXErrorCodes || (ChainWasmXErrorCodes = {}));
569
- export var ChainStakingErrorCodes;
570
- (function (ChainStakingErrorCodes) {
571
- // "empty validator address"
572
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrEmptyValidatorAddr"] = 2] = "ErrEmptyValidatorAddr";
573
- // "validator does not exist"
574
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNoValidatorFound"] = 3] = "ErrNoValidatorFound";
575
- // "validator already exist for this operator address; must use new validator operator address"
576
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrValidatorOwnerExists"] = 4] = "ErrValidatorOwnerExists";
577
- // "validator already exist for this pubkey; must use new validator pubkey"
578
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrValidatorPubKeyExists"] = 5] = "ErrValidatorPubKeyExists";
579
- // "validator pubkey type is not supported"
580
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrValidatorPubKeyTypeNotSupported"] = 6] = "ErrValidatorPubKeyTypeNotSupported";
581
- // "validator for this address is currently jailed"
582
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrValidatorJailed"] = 7] = "ErrValidatorJailed";
583
- // "failed to remove validator"
584
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrBadRemoveValidator"] = 8] = "ErrBadRemoveValidator";
585
- // "commission must be positive"
586
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrCommissionNegative"] = 9] = "ErrCommissionNegative";
587
- // "commission cannot be more than 100%"
588
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrCommissionHuge"] = 10] = "ErrCommissionHuge";
589
- // "commission cannot be more than the max rate"
590
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrCommissionGTMaxRate"] = 11] = "ErrCommissionGTMaxRate";
591
- // "commission cannot be changed more than once in 24h"
592
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrCommissionUpdateTime"] = 12] = "ErrCommissionUpdateTime";
593
- // "commission change rate must be positive"
594
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrCommissionChangeRateNegative"] = 13] = "ErrCommissionChangeRateNegative";
595
- // "commission change rate cannot be more than the max rate"
596
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrCommissionChangeRateGTMaxRate"] = 14] = "ErrCommissionChangeRateGTMaxRate";
597
- // "commission cannot be changed more than max change rate"
598
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrCommissionGTMaxChangeRate"] = 15] = "ErrCommissionGTMaxChangeRate";
599
- // "validator's self delegation must be greater than their minimum self delegation"
600
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrSelfDelegationBelowMinimum"] = 16] = "ErrSelfDelegationBelowMinimum";
601
- // "minimum self delegation cannot be decrease"
602
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrMinSelfDelegationDecreased"] = 17] = "ErrMinSelfDelegationDecreased";
603
- // "empty delegator address"
604
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrEmptyDelegatorAddr"] = 18] = "ErrEmptyDelegatorAddr";
605
- // "no delegation for (address, validator) tuple"
606
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNoDelegation"] = 19] = "ErrNoDelegation";
607
- // "delegator does not exist with address"
608
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrBadDelegatorAddr"] = 20] = "ErrBadDelegatorAddr";
609
- // "delegator does not contain delegation"
610
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNoDelegatorForAddress"] = 21] = "ErrNoDelegatorForAddress";
611
- // "insufficient delegation shares"
612
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrInsufficientShares"] = 22] = "ErrInsufficientShares";
613
- // "cannot delegate to an empty validator"
614
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrDelegationValidatorEmpty"] = 23] = "ErrDelegationValidatorEmpty";
615
- // "not enough delegation shares"
616
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNotEnoughDelegationShares"] = 24] = "ErrNotEnoughDelegationShares";
617
- // "entry not mature"
618
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNotMature"] = 25] = "ErrNotMature";
619
- // "no unbonding delegation found"
620
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNoUnbondingDelegation"] = 26] = "ErrNoUnbondingDelegation";
621
- // "too many unbonding delegation entries for (delegator, validator) tuple"
622
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrMaxUnbondingDelegationEntries"] = 27] = "ErrMaxUnbondingDelegationEntries";
623
- // "no redelegation found"
624
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNoRedelegation"] = 28] = "ErrNoRedelegation";
625
- // "cannot redelegate to the same validator"
626
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrSelfRedelegation"] = 29] = "ErrSelfRedelegation";
627
- // "too few tokens to redelegate (truncates to zero tokens)"
628
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrTinyRedelegationAmount"] = 30] = "ErrTinyRedelegationAmount";
629
- // "redelegation destination validator not found"
630
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrBadRedelegationDst"] = 31] = "ErrBadRedelegationDst";
631
- // "redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation"
632
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrTransitiveRedelegation"] = 32] = "ErrTransitiveRedelegation";
633
- // "too many redelegation entries for (delegator, src-validator, dst-validator) tuple"
634
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrMaxRedelegationEntries"] = 33] = "ErrMaxRedelegationEntries";
635
- // "cannot delegate to validators with invalid (zero) ex-rate"
636
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrDelegatorShareExRateInvalid"] = 34] = "ErrDelegatorShareExRateInvalid";
637
- // "both shares amount and shares percent provided"
638
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrBothShareMsgsGiven"] = 35] = "ErrBothShareMsgsGiven";
639
- // "neither shares amount nor shares percent provided"
640
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNeitherShareMsgsGiven"] = 36] = "ErrNeitherShareMsgsGiven";
641
- // "invalid historical info"
642
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrInvalidHistoricalInfo"] = 37] = "ErrInvalidHistoricalInfo";
643
- // "no historical info found"
644
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrNoHistoricalInfo"] = 38] = "ErrNoHistoricalInfo";
645
- // "empty validator public key"
646
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrEmptyValidatorPubKey"] = 39] = "ErrEmptyValidatorPubKey";
647
- // "commission cannot be less than min rate"
648
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrCommissionLTMinRate"] = 40] = "ErrCommissionLTMinRate";
649
- // "unbonding operation not found"
650
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrUnbondingNotFound"] = 41] = "ErrUnbondingNotFound";
651
- // "cannot un-hold unbonding operation that is not on hold"
652
- ChainStakingErrorCodes[ChainStakingErrorCodes["ErrUnbondingOnHoldRefCountNegative"] = 42] = "ErrUnbondingOnHoldRefCountNegative";
653
- })(ChainStakingErrorCodes || (ChainStakingErrorCodes = {}));
654
- export var ChainGovErrorCodes;
655
- (function (ChainGovErrorCodes) {
656
- // "unknown proposal"
657
- ChainGovErrorCodes[ChainGovErrorCodes["ErrUnknownProposal"] = 2] = "ErrUnknownProposal";
658
- // "inactive proposal"
659
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInactiveProposal"] = 3] = "ErrInactiveProposal";
660
- // "proposal already active)
661
- ChainGovErrorCodes[ChainGovErrorCodes["ErrAlreadyActiveProposal"] = 4] = "ErrAlreadyActiveProposal";
662
- // "invalid proposal content"
663
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidProposalContent"] = 5] = "ErrInvalidProposalContent";
664
- // "invalid proposal type"
665
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidProposalType"] = 6] = "ErrInvalidProposalType";
666
- // "invalid vote option"
667
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidVote"] = 7] = "ErrInvalidVote";
668
- // "invalid genesis state"
669
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidGenesis"] = 8] = "ErrInvalidGenesis";
670
- // "no handler exists for proosal type")
671
- ChainGovErrorCodes[ChainGovErrorCodes["ErrNoProposalHandlerExists"] = 9] = "ErrNoProposalHandlerExists";
672
- // "proposal message not recognized by router")
673
- ChainGovErrorCodes[ChainGovErrorCodes["ErrUnroutableProposalMsg"] = 10] = "ErrUnroutableProposalMsg";
674
- // "no messages proposed"
675
- ChainGovErrorCodes[ChainGovErrorCodes["ErrNoProposalMsgs"] = 11] = "ErrNoProposalMsgs";
676
- // "invalid proposal message"
677
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidProposalMsg"] = 12] = "ErrInvalidProposalMsg";
678
- // "expected gov account as ony signer for proposal message")
679
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidSigner"] = 13] = "ErrInvalidSigner";
680
- // "signal message is invalid"
681
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidSignalMsg"] = 14] = "ErrInvalidSignalMsg";
682
- // "metadata too long"
683
- ChainGovErrorCodes[ChainGovErrorCodes["ErrMetadataTooLong"] = 15] = "ErrMetadataTooLong";
684
- // "minimum deposit is too smal")
685
- ChainGovErrorCodes[ChainGovErrorCodes["ErrMinDepositTooSmall"] = 16] = "ErrMinDepositTooSmall";
686
- // "proposal is not found"
687
- ChainGovErrorCodes[ChainGovErrorCodes["ErrProposalNotFound"] = 17] = "ErrProposalNotFound";
688
- // "invalid proposer"
689
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidProposer"] = 18] = "ErrInvalidProposer";
690
- // "no deposits found"
691
- ChainGovErrorCodes[ChainGovErrorCodes["ErrNoDeposits"] = 19] = "ErrNoDeposits";
692
- // "voting period already ende")
693
- ChainGovErrorCodes[ChainGovErrorCodes["ErrVotingPeriodEnded"] = 20] = "ErrVotingPeriodEnded";
694
- // "invalid proposal"
695
- ChainGovErrorCodes[ChainGovErrorCodes["ErrInvalidProposal"] = 21] = "ErrInvalidProposal";
696
- })(ChainGovErrorCodes || (ChainGovErrorCodes = {}));
697
- export var ChainDistributionErrorCodes;
698
- (function (ChainDistributionErrorCodes) {
699
- // "delegator address is empty"
700
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrEmptyDelegatorAddr"] = 2] = "ErrEmptyDelegatorAddr";
701
- // "withdraw address is empty"
702
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrEmptyWithdrawAddr"] = 3] = "ErrEmptyWithdrawAddr";
703
- // "validator address is empty"
704
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrEmptyValidatorAddr"] = 4] = "ErrEmptyValidatorAddr";
705
- // "no delegation distribution info"
706
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrEmptyDelegationDistInfo"] = 5] = "ErrEmptyDelegationDistInfo";
707
- // "no validator distribution info"
708
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrNoValidatorDistInfo"] = 6] = "ErrNoValidatorDistInfo";
709
- // "no validator commission to withdraw"
710
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrNoValidatorCommission"] = 7] = "ErrNoValidatorCommission";
711
- // "set withdraw address disabled"
712
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrSetWithdrawAddrDisabled"] = 8] = "ErrSetWithdrawAddrDisabled";
713
- // "community pool does not have sufficient coins to distribute"
714
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrBadDistribution"] = 9] = "ErrBadDistribution";
715
- // "invalid community pool spend proposal amount"
716
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrInvalidProposalAmount"] = 10] = "ErrInvalidProposalAmount";
717
- // "invalid community pool spend proposal recipient"
718
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrEmptyProposalRecipient"] = 11] = "ErrEmptyProposalRecipient";
719
- // "validator does not exist"
720
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrNoValidatorExists"] = 12] = "ErrNoValidatorExists";
721
- // "delegation does not exist"
722
- ChainDistributionErrorCodes[ChainDistributionErrorCodes["ErrNoDelegationExists"] = 13] = "ErrNoDelegationExists";
723
- })(ChainDistributionErrorCodes || (ChainDistributionErrorCodes = {}));
724
- export var ChainBankErrorCodes;
725
- (function (ChainBankErrorCodes) {
726
- // "no inputs to send transaction"
727
- ChainBankErrorCodes[ChainBankErrorCodes["ErrNoInputs"] = 2] = "ErrNoInputs";
728
- // "no outputs to send transaction"
729
- ChainBankErrorCodes[ChainBankErrorCodes["ErrNoOutputs"] = 3] = "ErrNoOutputs";
730
- // "sum inputs != sum outputs"
731
- ChainBankErrorCodes[ChainBankErrorCodes["ErrInputOutputMismatch"] = 4] = "ErrInputOutputMismatch";
732
- // "send transactions are disabled"
733
- ChainBankErrorCodes[ChainBankErrorCodes["ErrSendDisabled"] = 5] = "ErrSendDisabled";
734
- // "client denom metadata not found"
735
- ChainBankErrorCodes[ChainBankErrorCodes["ErrDenomMetadataNotFound"] = 6] = "ErrDenomMetadataNotFound";
736
- // "invalid key"
737
- ChainBankErrorCodes[ChainBankErrorCodes["ErrInvalidKey"] = 7] = "ErrInvalidKey";
738
- // "duplicate entry"
739
- ChainBankErrorCodes[ChainBankErrorCodes["ErrDuplicateEntry"] = 8] = "ErrDuplicateEntry";
740
- // "multiple senders not allowed"
741
- ChainBankErrorCodes[ChainBankErrorCodes["ErrMultipleSenders"] = 9] = "ErrMultipleSenders";
742
- })(ChainBankErrorCodes || (ChainBankErrorCodes = {}));
743
- export var ChainWasmErrorCodes;
744
- (function (ChainWasmErrorCodes) {
745
- // ErrCreateFailed error for wasm code that has already been uploaded or failed
746
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrCreateFailed"] = 2] = "ErrCreateFailed";
747
- // ErrAccountExists error for a contract account that already exists
748
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrAccountExists"] = 3] = "ErrAccountExists";
749
- // ErrInstantiateFailed error for rust instantiate contract failure
750
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrInstantiateFailed"] = 4] = "ErrInstantiateFailed";
751
- // ErrExecuteFailed error for rust execution contract failure
752
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrExecuteFailed"] = 5] = "ErrExecuteFailed";
753
- // ErrGasLimit error for out of gas
754
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrGasLimit"] = 6] = "ErrGasLimit";
755
- // ErrInvalidGenesis error for invalid genesis file syntax
756
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrInvalidGenesis"] = 7] = "ErrInvalidGenesis";
757
- // ErrNotFound error for an entry not found in the store
758
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrNotFound"] = 8] = "ErrNotFound";
759
- // ErrQueryFailed error for rust smart query contract failure
760
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrQueryFailed"] = 9] = "ErrQueryFailed";
761
- // ErrInvalidMsg error when we cannot process the error returned from the contract
762
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrInvalidMsg"] = 10] = "ErrInvalidMsg";
763
- // ErrMigrationFailed error for rust execution contract failure
764
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrMigrationFailed"] = 11] = "ErrMigrationFailed";
765
- // ErrEmpty error for empty content
766
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrEmpty"] = 12] = "ErrEmpty";
767
- // ErrLimit error for content that exceeds a limit
768
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrLimit"] = 13] = "ErrLimit";
769
- // ErrInvalid error for content that is invalid in this context
770
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrInvalid"] = 14] = "ErrInvalid";
771
- // ErrDuplicate error for content that exists
772
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrDuplicate"] = 15] = "ErrDuplicate";
773
- // ErrMaxIBCChannels error for maximum number of ibc channels reached
774
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrMaxIBCChannels"] = 16] = "ErrMaxIBCChannels";
775
- // ErrUnsupportedForContract error when a capability is used that is not supported for/ by this contract
776
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrUnsupportedForContract"] = 17] = "ErrUnsupportedForContract";
777
- // ErrPinContractFailed error for pinning contract failures
778
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrPinContractFailed"] = 18] = "ErrPinContractFailed";
779
- // ErrUnpinContractFailed error for unpinning contract failures
780
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrUnpinContractFailed"] = 19] = "ErrUnpinContractFailed";
781
- // ErrUnknownMsg error by a message handler to show that it is not responsible for this message type
782
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrUnknownMsg"] = 20] = "ErrUnknownMsg";
783
- // ErrInvalidEvent error if an attribute/event from the contract is invalid
784
- ChainWasmErrorCodes[ChainWasmErrorCodes["ErrInvalidEvent"] = 21] = "ErrInvalidEvent";
785
- })(ChainWasmErrorCodes || (ChainWasmErrorCodes = {}));
786
- export const UnspecifiedErrorCode = -1;
787
- export const GRPC_REQUEST_FAILED = GrpcErrorCode.Unavailable;
788
- //# sourceMappingURL=codes.js.map