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