@injectivelabs/exceptions 1.0.52 → 1.0.54

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 (55) hide show
  1. package/dist/exception.d.ts +5 -0
  2. package/dist/exception.d.ts.map +1 -1
  3. package/dist/exception.js +9 -4
  4. package/dist/exception.js.map +1 -1
  5. package/dist/exceptions/CosmosWalletException.d.ts +1 -0
  6. package/dist/exceptions/CosmosWalletException.d.ts.map +1 -1
  7. package/dist/exceptions/CosmosWalletException.js +1 -0
  8. package/dist/exceptions/CosmosWalletException.js.map +1 -1
  9. package/dist/exceptions/GeneralException.d.ts +1 -0
  10. package/dist/exceptions/GeneralException.d.ts.map +1 -1
  11. package/dist/exceptions/GeneralException.js +4 -0
  12. package/dist/exceptions/GeneralException.js.map +1 -1
  13. package/dist/exceptions/GrpcUnaryRequestException.d.ts +1 -0
  14. package/dist/exceptions/GrpcUnaryRequestException.d.ts.map +1 -1
  15. package/dist/exceptions/GrpcUnaryRequestException.js +1 -0
  16. package/dist/exceptions/GrpcUnaryRequestException.js.map +1 -1
  17. package/dist/exceptions/HttpRequestException.d.ts +1 -0
  18. package/dist/exceptions/HttpRequestException.d.ts.map +1 -1
  19. package/dist/exceptions/HttpRequestException.js +1 -0
  20. package/dist/exceptions/HttpRequestException.js.map +1 -1
  21. package/dist/exceptions/LedgerException.d.ts +1 -0
  22. package/dist/exceptions/LedgerException.d.ts.map +1 -1
  23. package/dist/exceptions/LedgerException.js +1 -0
  24. package/dist/exceptions/LedgerException.js.map +1 -1
  25. package/dist/exceptions/MetamaskException.d.ts +1 -0
  26. package/dist/exceptions/MetamaskException.d.ts.map +1 -1
  27. package/dist/exceptions/MetamaskException.js +1 -0
  28. package/dist/exceptions/MetamaskException.js.map +1 -1
  29. package/dist/exceptions/TransactionException.d.ts +1 -0
  30. package/dist/exceptions/TransactionException.d.ts.map +1 -1
  31. package/dist/exceptions/TransactionException.js +1 -0
  32. package/dist/exceptions/TransactionException.js.map +1 -1
  33. package/dist/exceptions/TrezorException.d.ts +1 -0
  34. package/dist/exceptions/TrezorException.d.ts.map +1 -1
  35. package/dist/exceptions/TrezorException.js +1 -0
  36. package/dist/exceptions/TrezorException.js.map +1 -1
  37. package/dist/exceptions/WalletException.d.ts +1 -0
  38. package/dist/exceptions/WalletException.d.ts.map +1 -1
  39. package/dist/exceptions/WalletException.js +4 -0
  40. package/dist/exceptions/WalletException.js.map +1 -1
  41. package/dist/exceptions/Web3Exception.d.ts +1 -0
  42. package/dist/exceptions/Web3Exception.d.ts.map +1 -1
  43. package/dist/exceptions/Web3Exception.js +1 -0
  44. package/dist/exceptions/Web3Exception.js.map +1 -1
  45. package/dist/messages.d.ts.map +1 -1
  46. package/dist/messages.js +493 -0
  47. package/dist/messages.js.map +1 -1
  48. package/dist/types/codes.d.ts +94 -1
  49. package/dist/types/codes.d.ts.map +1 -1
  50. package/dist/types/codes.js +179 -1
  51. package/dist/types/codes.js.map +1 -1
  52. package/dist/utils/maps.d.ts.map +1 -1
  53. package/dist/utils/maps.js +12 -1
  54. package/dist/utils/maps.js.map +1 -1
  55. package/package.json +2 -2
package/dist/messages.js CHANGED
@@ -252,6 +252,95 @@ const wamsxErrorMap = {
252
252
  [types_1.ChainWasmXErrorCodes.ErrNoContractAddresses]: 'no contract addresses found',
253
253
  [types_1.ChainWasmXErrorCodes.ErrInvalidCodeId]: 'invalid code id',
254
254
  };
255
+ const stakingErrorMap = {
256
+ [types_1.ChainStakingErrorCodes.ErrEmptyValidatorAddr]: 'empty validator address',
257
+ [types_1.ChainStakingErrorCodes.ErrNoValidatorFound]: 'validator does not exist',
258
+ [types_1.ChainStakingErrorCodes.ErrValidatorOwnerExists]: 'validator already exist for this operator address; must use new validator operator address',
259
+ [types_1.ChainStakingErrorCodes.ErrValidatorPubKeyExists]: 'validator already exist for this pubkey; must use new validator pubkey',
260
+ [types_1.ChainStakingErrorCodes.ErrValidatorPubKeyTypeNotSupported]: 'validator pubkey type is not supported',
261
+ [types_1.ChainStakingErrorCodes.ErrValidatorJailed]: 'validator for this address is currently jailed',
262
+ [types_1.ChainStakingErrorCodes.ErrBadRemoveValidator]: 'failed to remove validator',
263
+ [types_1.ChainStakingErrorCodes.ErrCommissionNegative]: 'commission must be positive',
264
+ [types_1.ChainStakingErrorCodes.ErrCommissionHuge]: 'commission cannot be more than 100%',
265
+ [types_1.ChainStakingErrorCodes.ErrCommissionGTMaxRate]: 'commission cannot be more than the max rate',
266
+ [types_1.ChainStakingErrorCodes.ErrCommissionUpdateTime]: 'commission cannot be changed more than once in 24h',
267
+ [types_1.ChainStakingErrorCodes.ErrCommissionChangeRateNegative]: 'commission change rate must be positive',
268
+ [types_1.ChainStakingErrorCodes.ErrCommissionChangeRateGTMaxRate]: 'commission change rate cannot be more than the max rate',
269
+ [types_1.ChainStakingErrorCodes.ErrCommissionGTMaxChangeRate]: 'commission cannot be changed more than max change rate',
270
+ [types_1.ChainStakingErrorCodes.ErrSelfDelegationBelowMinimum]: "validator's self delegation must be greater than their minimum self delegation",
271
+ [types_1.ChainStakingErrorCodes.ErrMinSelfDelegationDecreased]: 'minimum self delegation cannot be decrease',
272
+ [types_1.ChainStakingErrorCodes.ErrEmptyDelegatorAddr]: 'empty delegator address',
273
+ [types_1.ChainStakingErrorCodes.ErrNoDelegation]: 'no delegation for (address, validator) tuple',
274
+ [types_1.ChainStakingErrorCodes.ErrBadDelegatorAddr]: 'delegator does not exist with address',
275
+ [types_1.ChainStakingErrorCodes.ErrNoDelegatorForAddress]: 'delegator does not contain delegation',
276
+ [types_1.ChainStakingErrorCodes.ErrInsufficientShares]: 'insufficient delegation shares',
277
+ [types_1.ChainStakingErrorCodes.ErrDelegationValidatorEmpty]: 'cannot delegate to an empty validator',
278
+ [types_1.ChainStakingErrorCodes.ErrNotEnoughDelegationShares]: 'not enough delegation shares',
279
+ [types_1.ChainStakingErrorCodes.ErrNotMature]: 'entry not mature',
280
+ [types_1.ChainStakingErrorCodes.ErrNoUnbondingDelegation]: 'no unbonding delegation found',
281
+ [types_1.ChainStakingErrorCodes.ErrMaxUnbondingDelegationEntries]: 'too many unbonding delegation entries for (delegator, validator) tuple',
282
+ [types_1.ChainStakingErrorCodes.ErrNoRedelegation]: 'no redelegation found',
283
+ [types_1.ChainStakingErrorCodes.ErrSelfRedelegation]: 'cannot redelegate to the same validator',
284
+ [types_1.ChainStakingErrorCodes.ErrTinyRedelegationAmount]: 'too few tokens to redelegate (truncates to zero tokens)',
285
+ [types_1.ChainStakingErrorCodes.ErrBadRedelegationDst]: 'redelegation destination validator not found',
286
+ [types_1.ChainStakingErrorCodes.ErrTransitiveRedelegation]: 'redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation',
287
+ [types_1.ChainStakingErrorCodes.ErrMaxRedelegationEntries]: 'too many redelegation entries for (delegator, src-validator, dst-validator) tuple',
288
+ [types_1.ChainStakingErrorCodes.ErrDelegatorShareExRateInvalid]: 'cannot delegate to validators with invalid (zero) ex-rate',
289
+ [types_1.ChainStakingErrorCodes.ErrBothShareMsgsGiven]: 'both shares amount and shares percent provided',
290
+ [types_1.ChainStakingErrorCodes.ErrNeitherShareMsgsGiven]: 'neither shares amount nor shares percent provided',
291
+ [types_1.ChainStakingErrorCodes.ErrInvalidHistoricalInfo]: 'invalid historical info',
292
+ [types_1.ChainStakingErrorCodes.ErrNoHistoricalInfo]: 'no historical info found',
293
+ [types_1.ChainStakingErrorCodes.ErrEmptyValidatorPubKey]: 'empty validator public key',
294
+ [types_1.ChainStakingErrorCodes.ErrCommissionLTMinRate]: 'commission cannot be less than min rate',
295
+ [types_1.ChainStakingErrorCodes.ErrUnbondingNotFound]: 'unbonding operation not found',
296
+ [types_1.ChainStakingErrorCodes.ErrUnbondingOnHoldRefCountNegative]: 'cannot un-hold unbonding operation that is not on hold',
297
+ };
298
+ const govErrorMap = {
299
+ [types_1.ChainGovErrorCodes.ErrUnknownProposal]: 'unknown proposal',
300
+ [types_1.ChainGovErrorCodes.ErrInactiveProposal]: 'inactive proposal',
301
+ [types_1.ChainGovErrorCodes.ErrAlreadyActiveProposal]: 'proposal already active',
302
+ [types_1.ChainGovErrorCodes.ErrInvalidProposalContent]: 'invalid proposal content',
303
+ [types_1.ChainGovErrorCodes.ErrInvalidProposalType]: 'invalid proposal type',
304
+ [types_1.ChainGovErrorCodes.ErrInvalidVote]: 'invalid vote option',
305
+ [types_1.ChainGovErrorCodes.ErrInvalidGenesis]: 'invalid genesis state',
306
+ [types_1.ChainGovErrorCodes.ErrNoProposalHandlerExists]: 'no handler exists for proposal type',
307
+ [types_1.ChainGovErrorCodes.ErrUnroutableProposalMsg]: 'proposal message not recogized by router',
308
+ [types_1.ChainGovErrorCodes.ErrNoProposalMsgs]: 'no messages proposed',
309
+ [types_1.ChainGovErrorCodes.ErrInvalidProposalMsg]: 'invalid proposal message',
310
+ [types_1.ChainGovErrorCodes.ErrInvalidSigner]: 'expected gov account as only signer for proposal message',
311
+ [types_1.ChainGovErrorCodes.ErrInvalidSignalMsg]: 'signal message is invalid',
312
+ [types_1.ChainGovErrorCodes.ErrMetadataTooLong]: 'metadata too long',
313
+ [types_1.ChainGovErrorCodes.ErrMinDepositTooSmall]: 'minimum deposit is too small',
314
+ [types_1.ChainGovErrorCodes.ErrProposalNotFound]: 'proposal is not found',
315
+ [types_1.ChainGovErrorCodes.ErrInvalidProposer]: 'invalid proposer',
316
+ [types_1.ChainGovErrorCodes.ErrNoDeposits]: 'no deposits found',
317
+ [types_1.ChainGovErrorCodes.ErrVotingPeriodEnded]: 'voting period already ended',
318
+ [types_1.ChainGovErrorCodes.ErrInvalidProposal]: 'invalid proposal',
319
+ };
320
+ const bankErrorMap = {
321
+ [types_1.ChainBankErrorCodes.ErrNoInputs]: 'no inputs to send transaction',
322
+ [types_1.ChainBankErrorCodes.ErrNoOutputs]: 'no outputs to send transaction',
323
+ [types_1.ChainBankErrorCodes.ErrInputOutputMismatch]: 'sum inputs != sum outputs',
324
+ [types_1.ChainBankErrorCodes.ErrSendDisabled]: 'send transactions are disabled',
325
+ [types_1.ChainBankErrorCodes.ErrDenomMetadataNotFound]: 'client denom metadata not found',
326
+ [types_1.ChainBankErrorCodes.ErrInvalidKey]: 'invalid key',
327
+ [types_1.ChainBankErrorCodes.ErrDuplicateEntry]: 'duplicate entry',
328
+ [types_1.ChainBankErrorCodes.ErrMultipleSenders]: 'multiple senders not allowed',
329
+ };
330
+ const distributionErrorMap = {
331
+ [types_1.ChainDistributionErrorCodes.ErrEmptyDelegatorAddr]: 'delegator address is empty',
332
+ [types_1.ChainDistributionErrorCodes.ErrEmptyWithdrawAddr]: 'withdraw address is empty',
333
+ [types_1.ChainDistributionErrorCodes.ErrEmptyValidatorAddr]: 'validator address is empty',
334
+ [types_1.ChainDistributionErrorCodes.ErrEmptyDelegationDistInfo]: 'no delegation distribution info',
335
+ [types_1.ChainDistributionErrorCodes.ErrNoValidatorDistInfo]: 'no validator distribution info',
336
+ [types_1.ChainDistributionErrorCodes.ErrNoValidatorCommission]: 'no validator commission to withdraw',
337
+ [types_1.ChainDistributionErrorCodes.ErrSetWithdrawAddrDisabled]: 'set withdraw address disabled',
338
+ [types_1.ChainDistributionErrorCodes.ErrBadDistribution]: 'community pool does not have sufficient coins to distribute',
339
+ [types_1.ChainDistributionErrorCodes.ErrInvalidProposalAmount]: 'invalid community pool spend proposal amount',
340
+ [types_1.ChainDistributionErrorCodes.ErrEmptyProposalRecipient]: 'invalid community pool spend proposal recipient',
341
+ [types_1.ChainDistributionErrorCodes.ErrNoValidatorExists]: 'validator does not exist',
342
+ [types_1.ChainDistributionErrorCodes.ErrNoDelegationExists]: 'delegation does not exist',
343
+ };
255
344
  exports.chainModuleCodeErrorMessagesMap = {
256
345
  [types_1.TransactionChainErrorModule.Auction]: auctionErrorMap,
257
346
  [types_1.TransactionChainErrorModule.CosmosSdk]: cosmosErrorMap,
@@ -262,6 +351,10 @@ exports.chainModuleCodeErrorMessagesMap = {
262
351
  [types_1.TransactionChainErrorModule.Peggy]: peggyErrorMap,
263
352
  [types_1.TransactionChainErrorModule.TokenFactory]: tokenFactoryErrorMap,
264
353
  [types_1.TransactionChainErrorModule.Wasmx]: wamsxErrorMap,
354
+ [types_1.TransactionChainErrorModule.Staking]: stakingErrorMap,
355
+ [types_1.TransactionChainErrorModule.Bank]: bankErrorMap,
356
+ [types_1.TransactionChainErrorModule.Gov]: govErrorMap,
357
+ [types_1.TransactionChainErrorModule.Distribution]: distributionErrorMap,
265
358
  };
266
359
  /**
267
360
  * **Legacy** but needed for error messages from broadcasting transactions
@@ -947,5 +1040,405 @@ exports.chainErrorMessagesMap = {
947
1040
  code: types_1.ChainExchangeModuleErrorCode.ErrInvalidArgument,
948
1041
  module: types_1.TransactionChainErrorModule.Exchange,
949
1042
  },
1043
+ 'empty validator address': {
1044
+ message: 'empty validator address',
1045
+ code: types_1.ChainStakingErrorCodes.ErrEmptyValidatorAddr,
1046
+ module: types_1.TransactionChainErrorModule.Staking,
1047
+ },
1048
+ 'validator does not exist': {
1049
+ message: 'validator does not exist',
1050
+ code: types_1.ChainStakingErrorCodes.ErrNoValidatorFound,
1051
+ module: types_1.TransactionChainErrorModule.Staking,
1052
+ },
1053
+ 'validator already exist for this operator address; must use new validator operator address': {
1054
+ message: 'validator already exist for this operator address; must use new validator operator address',
1055
+ code: types_1.ChainStakingErrorCodes.ErrValidatorOwnerExists,
1056
+ module: types_1.TransactionChainErrorModule.Staking,
1057
+ },
1058
+ 'validator already exist for this pubkey; must use new validator pubkey': {
1059
+ message: 'validator already exist for this pubkey; must use new validator pubkey',
1060
+ code: types_1.ChainStakingErrorCodes.ErrValidatorPubKeyExists,
1061
+ module: types_1.TransactionChainErrorModule.Staking,
1062
+ },
1063
+ 'validator pubkey type is not supported': {
1064
+ message: 'validator pubkey type is not supported',
1065
+ code: types_1.ChainStakingErrorCodes.ErrValidatorPubKeyTypeNotSupported,
1066
+ module: types_1.TransactionChainErrorModule.Staking,
1067
+ },
1068
+ 'validator for this address is currently jailed': {
1069
+ message: 'validator for this address is currently jailed',
1070
+ code: types_1.ChainStakingErrorCodes.ErrValidatorJailed,
1071
+ module: types_1.TransactionChainErrorModule.Staking,
1072
+ },
1073
+ 'failed to remove validator': {
1074
+ message: 'failed to remove validator',
1075
+ code: types_1.ChainStakingErrorCodes.ErrBadRemoveValidator,
1076
+ module: types_1.TransactionChainErrorModule.Staking,
1077
+ },
1078
+ 'commission must be positive': {
1079
+ message: 'commission must be positive',
1080
+ code: types_1.ChainStakingErrorCodes.ErrCommissionNegative,
1081
+ module: types_1.TransactionChainErrorModule.Staking,
1082
+ },
1083
+ 'commission cannot be more than 100%': {
1084
+ message: 'commission cannot be more than 100%',
1085
+ code: types_1.ChainStakingErrorCodes.ErrCommissionHuge,
1086
+ module: types_1.TransactionChainErrorModule.Staking,
1087
+ },
1088
+ 'commission cannot be more than the max rate': {
1089
+ message: 'commission cannot be more than the max rate',
1090
+ code: types_1.ChainStakingErrorCodes.ErrCommissionGTMaxRate,
1091
+ module: types_1.TransactionChainErrorModule.Staking,
1092
+ },
1093
+ 'commission cannot be changed more than once in 24h': {
1094
+ message: 'commission cannot be changed more than once in 24h',
1095
+ code: types_1.ChainStakingErrorCodes.ErrCommissionUpdateTime,
1096
+ module: types_1.TransactionChainErrorModule.Staking,
1097
+ },
1098
+ 'commission change rate must be positive': {
1099
+ message: 'commission change rate must be positive',
1100
+ code: types_1.ChainStakingErrorCodes.ErrCommissionChangeRateNegative,
1101
+ module: types_1.TransactionChainErrorModule.Staking,
1102
+ },
1103
+ 'commission change rate cannot be more than the max rate': {
1104
+ message: 'commission change rate cannot be more than the max rate',
1105
+ code: types_1.ChainStakingErrorCodes.ErrCommissionChangeRateGTMaxRate,
1106
+ module: types_1.TransactionChainErrorModule.Staking,
1107
+ },
1108
+ 'commission cannot be changed more than max change rate': {
1109
+ message: 'commission cannot be changed more than max change rate',
1110
+ code: types_1.ChainStakingErrorCodes.ErrCommissionGTMaxChangeRate,
1111
+ module: types_1.TransactionChainErrorModule.Staking,
1112
+ },
1113
+ "validator's self delegation must be greater than their minimum self delegation": {
1114
+ message: "validator's self delegation must be greater than their minimum self delegation",
1115
+ code: types_1.ChainStakingErrorCodes.ErrSelfDelegationBelowMinimum,
1116
+ module: types_1.TransactionChainErrorModule.Staking,
1117
+ },
1118
+ 'minimum self delegation cannot be decrease': {
1119
+ message: 'minimum self delegation cannot be decrease',
1120
+ code: types_1.ChainStakingErrorCodes.ErrMinSelfDelegationDecreased,
1121
+ module: types_1.TransactionChainErrorModule.Staking,
1122
+ },
1123
+ 'empty delegator address': {
1124
+ message: 'empty delegator address',
1125
+ code: types_1.ChainStakingErrorCodes.ErrEmptyDelegatorAddr,
1126
+ module: types_1.TransactionChainErrorModule.Staking,
1127
+ },
1128
+ 'no delegation for (address, validator) tuple': {
1129
+ message: 'no delegation for (address, validator) tuple',
1130
+ code: types_1.ChainStakingErrorCodes.ErrNoDelegation,
1131
+ module: types_1.TransactionChainErrorModule.Staking,
1132
+ },
1133
+ 'delegator does not exist with address': {
1134
+ message: 'delegator does not exist with address',
1135
+ code: types_1.ChainStakingErrorCodes.ErrBadDelegatorAddr,
1136
+ module: types_1.TransactionChainErrorModule.Staking,
1137
+ },
1138
+ 'delegator does not contain delegation': {
1139
+ message: 'delegator does not contain delegation',
1140
+ code: types_1.ChainStakingErrorCodes.ErrNoDelegatorForAddress,
1141
+ module: types_1.TransactionChainErrorModule.Staking,
1142
+ },
1143
+ 'insufficient delegation shares': {
1144
+ message: 'insufficient delegation shares',
1145
+ code: types_1.ChainStakingErrorCodes.ErrInsufficientShares,
1146
+ module: types_1.TransactionChainErrorModule.Staking,
1147
+ },
1148
+ 'cannot delegate to an empty validator': {
1149
+ message: 'cannot delegate to an empty validator',
1150
+ code: types_1.ChainStakingErrorCodes.ErrDelegationValidatorEmpty,
1151
+ module: types_1.TransactionChainErrorModule.Staking,
1152
+ },
1153
+ 'not enough delegation shares': {
1154
+ message: 'not enough delegation shares',
1155
+ code: types_1.ChainStakingErrorCodes.ErrNotEnoughDelegationShares,
1156
+ module: types_1.TransactionChainErrorModule.Staking,
1157
+ },
1158
+ 'entry not mature': {
1159
+ message: 'entry not mature',
1160
+ code: types_1.ChainStakingErrorCodes.ErrNotMature,
1161
+ module: types_1.TransactionChainErrorModule.Staking,
1162
+ },
1163
+ 'no unbonding delegation found': {
1164
+ message: 'no unbonding delegation found',
1165
+ code: types_1.ChainStakingErrorCodes.ErrNoUnbondingDelegation,
1166
+ module: types_1.TransactionChainErrorModule.Staking,
1167
+ },
1168
+ 'too many unbonding delegation entries for (delegator, validator) tuple': {
1169
+ message: 'too many unbonding delegation entries for (delegator, validator) tuple',
1170
+ code: types_1.ChainStakingErrorCodes.ErrMaxUnbondingDelegationEntries,
1171
+ module: types_1.TransactionChainErrorModule.Staking,
1172
+ },
1173
+ 'no redelegation found': {
1174
+ message: 'no redelegation found',
1175
+ code: types_1.ChainStakingErrorCodes.ErrNoRedelegation,
1176
+ module: types_1.TransactionChainErrorModule.Staking,
1177
+ },
1178
+ 'cannot redelegate to the same validator': {
1179
+ message: 'cannot redelegate to the same validator',
1180
+ code: types_1.ChainStakingErrorCodes.ErrSelfRedelegation,
1181
+ module: types_1.TransactionChainErrorModule.Staking,
1182
+ },
1183
+ 'too few tokens to redelegate (truncates to zero tokens)': {
1184
+ message: 'too few tokens to redelegate (truncates to zero tokens)',
1185
+ code: types_1.ChainStakingErrorCodes.ErrTinyRedelegationAmount,
1186
+ module: types_1.TransactionChainErrorModule.Staking,
1187
+ },
1188
+ 'redelegation destination validator not found': {
1189
+ message: 'redelegation destination validator not found',
1190
+ code: types_1.ChainStakingErrorCodes.ErrBadRedelegationDst,
1191
+ module: types_1.TransactionChainErrorModule.Staking,
1192
+ },
1193
+ 'redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation': {
1194
+ message: 'redelegation to this validator already in progress; first redelegation to this validator must complete before next redelegation',
1195
+ code: types_1.ChainStakingErrorCodes.ErrTransitiveRedelegation,
1196
+ module: types_1.TransactionChainErrorModule.Staking,
1197
+ },
1198
+ 'too many redelegation entries for (delegator, src-validator, dst-validator) tuple': {
1199
+ message: 'too many redelegation entries for (delegator, src-validator, dst-validator) tuple',
1200
+ code: types_1.ChainStakingErrorCodes.ErrMaxRedelegationEntries,
1201
+ module: types_1.TransactionChainErrorModule.Staking,
1202
+ },
1203
+ 'cannot delegate to validators with invalid (zero) ex-rate': {
1204
+ message: 'cannot delegate to validators with invalid (zero) ex-rate',
1205
+ code: types_1.ChainStakingErrorCodes.ErrDelegatorShareExRateInvalid,
1206
+ module: types_1.TransactionChainErrorModule.Staking,
1207
+ },
1208
+ 'both shares amount and shares percent provided': {
1209
+ message: 'both shares amount and shares percent provided',
1210
+ code: types_1.ChainStakingErrorCodes.ErrBothShareMsgsGiven,
1211
+ module: types_1.TransactionChainErrorModule.Staking,
1212
+ },
1213
+ 'neither shares amount nor shares percent provided': {
1214
+ message: 'neither shares amount nor shares percent provided',
1215
+ code: types_1.ChainStakingErrorCodes.ErrNeitherShareMsgsGiven,
1216
+ module: types_1.TransactionChainErrorModule.Staking,
1217
+ },
1218
+ 'invalid historical info': {
1219
+ message: 'invalid historical info',
1220
+ code: types_1.ChainStakingErrorCodes.ErrInvalidHistoricalInfo,
1221
+ module: types_1.TransactionChainErrorModule.Staking,
1222
+ },
1223
+ 'no historical info found': {
1224
+ message: 'no historical info found',
1225
+ code: types_1.ChainStakingErrorCodes.ErrNoHistoricalInfo,
1226
+ module: types_1.TransactionChainErrorModule.Staking,
1227
+ },
1228
+ 'empty validator public key': {
1229
+ message: 'empty validator public key',
1230
+ code: types_1.ChainStakingErrorCodes.ErrEmptyValidatorPubKey,
1231
+ module: types_1.TransactionChainErrorModule.Staking,
1232
+ },
1233
+ 'commission cannot be less than min rate': {
1234
+ message: 'commission cannot be less than min rate',
1235
+ code: types_1.ChainStakingErrorCodes.ErrCommissionLTMinRate,
1236
+ module: types_1.TransactionChainErrorModule.Staking,
1237
+ },
1238
+ 'unbonding operation not found': {
1239
+ message: 'unbonding operation not found',
1240
+ code: types_1.ChainStakingErrorCodes.ErrUnbondingNotFound,
1241
+ module: types_1.TransactionChainErrorModule.Staking,
1242
+ },
1243
+ 'cannot un-hold unbonding operation that is not on hold': {
1244
+ message: 'cannot un-hold unbonding operation that is not on hold',
1245
+ code: types_1.ChainStakingErrorCodes.ErrUnbondingOnHoldRefCountNegative,
1246
+ module: types_1.TransactionChainErrorModule.Staking,
1247
+ },
1248
+ 'delegator address is empty': {
1249
+ message: 'delegator address is empty',
1250
+ code: types_1.ChainDistributionErrorCodes.ErrEmptyDelegatorAddr,
1251
+ module: types_1.TransactionChainErrorModule.Distribution,
1252
+ },
1253
+ 'withdraw address is empty': {
1254
+ message: 'withdraw address is empty',
1255
+ code: types_1.ChainDistributionErrorCodes.ErrEmptyWithdrawAddr,
1256
+ module: types_1.TransactionChainErrorModule.Distribution,
1257
+ },
1258
+ 'validator address is empty': {
1259
+ message: 'validator address is empty',
1260
+ code: types_1.ChainDistributionErrorCodes.ErrEmptyValidatorAddr,
1261
+ module: types_1.TransactionChainErrorModule.Distribution,
1262
+ },
1263
+ 'no delegation distribution info': {
1264
+ message: 'no delegation distribution info',
1265
+ code: types_1.ChainDistributionErrorCodes.ErrEmptyDelegationDistInfo,
1266
+ module: types_1.TransactionChainErrorModule.Distribution,
1267
+ },
1268
+ 'no validator distribution info': {
1269
+ message: 'no validator distribution info',
1270
+ code: types_1.ChainDistributionErrorCodes.ErrNoValidatorDistInfo,
1271
+ module: types_1.TransactionChainErrorModule.Distribution,
1272
+ },
1273
+ 'no validator commission to withdraw': {
1274
+ message: 'no validator commission to withdraw',
1275
+ code: types_1.ChainDistributionErrorCodes.ErrNoValidatorCommission,
1276
+ module: types_1.TransactionChainErrorModule.Distribution,
1277
+ },
1278
+ 'set withdraw address disabled': {
1279
+ message: 'set withdraw address disabled',
1280
+ code: types_1.ChainDistributionErrorCodes.ErrSetWithdrawAddrDisabled,
1281
+ module: types_1.TransactionChainErrorModule.Distribution,
1282
+ },
1283
+ 'community pool does not have sufficient coins to distribute': {
1284
+ message: 'community pool does not have sufficient coins distribute',
1285
+ code: types_1.ChainDistributionErrorCodes.ErrBadDistribution,
1286
+ module: types_1.TransactionChainErrorModule.Distribution,
1287
+ },
1288
+ 'invalid community pool spend proposal amount': {
1289
+ message: 'invalid community pool spend proposal amount',
1290
+ code: types_1.ChainDistributionErrorCodes.ErrInvalidProposalAmount,
1291
+ module: types_1.TransactionChainErrorModule.Distribution,
1292
+ },
1293
+ 'invalid community pool spend proposal recipient': {
1294
+ message: 'invalid community pool spend proposal recipient',
1295
+ code: types_1.ChainDistributionErrorCodes.ErrEmptyProposalRecipient,
1296
+ module: types_1.TransactionChainErrorModule.Distribution,
1297
+ },
1298
+ 'delegation does not exist': {
1299
+ message: 'delegation does not exist',
1300
+ code: types_1.ChainDistributionErrorCodes.ErrNoDelegationExists,
1301
+ module: types_1.TransactionChainErrorModule.Distribution,
1302
+ },
1303
+ 'unknown proposal': {
1304
+ message: 'unknown proposal',
1305
+ code: types_1.ChainGovErrorCodes.ErrUnknownProposal,
1306
+ module: types_1.TransactionChainErrorModule.Gov,
1307
+ },
1308
+ 'inactive proposal': {
1309
+ message: 'inactive proposal',
1310
+ code: types_1.ChainGovErrorCodes.ErrInactiveProposal,
1311
+ module: types_1.TransactionChainErrorModule.Gov,
1312
+ },
1313
+ 'proposal already active': {
1314
+ message: 'proposal already active',
1315
+ code: types_1.ChainGovErrorCodes.ErrAlreadyActiveProposal,
1316
+ module: types_1.TransactionChainErrorModule.Gov,
1317
+ },
1318
+ 'invalid proposal content': {
1319
+ message: 'invalid proposal content',
1320
+ code: types_1.ChainGovErrorCodes.ErrInvalidProposalContent,
1321
+ module: types_1.TransactionChainErrorModule.Gov,
1322
+ },
1323
+ 'invalid proposal type': {
1324
+ message: 'invalid proposal type',
1325
+ code: types_1.ChainGovErrorCodes.ErrInvalidProposalType,
1326
+ module: types_1.TransactionChainErrorModule.Gov,
1327
+ },
1328
+ 'invalid vote option': {
1329
+ message: 'invalid vote option',
1330
+ code: types_1.ChainGovErrorCodes.ErrInvalidVote,
1331
+ module: types_1.TransactionChainErrorModule.Gov,
1332
+ },
1333
+ 'invalid genesis state': {
1334
+ message: 'invalid genesis state',
1335
+ code: types_1.ChainGovErrorCodes.ErrInvalidGenesis,
1336
+ module: types_1.TransactionChainErrorModule.Gov,
1337
+ },
1338
+ 'no handler exists for proposal type': {
1339
+ message: 'no handler exists for proposal type',
1340
+ code: types_1.ChainGovErrorCodes.ErrNoProposalHandlerExists,
1341
+ module: types_1.TransactionChainErrorModule.Gov,
1342
+ },
1343
+ 'proposal message not recogized by router': {
1344
+ message: 'proposal message not recogized by router',
1345
+ code: types_1.ChainGovErrorCodes.ErrUnroutableProposalMsg,
1346
+ module: types_1.TransactionChainErrorModule.Gov,
1347
+ },
1348
+ 'no messages proposed': {
1349
+ message: 'no messages proposed',
1350
+ code: types_1.ChainGovErrorCodes.ErrNoProposalMsgs,
1351
+ module: types_1.TransactionChainErrorModule.Gov,
1352
+ },
1353
+ 'invalid proposal message': {
1354
+ message: 'invalid proposal message',
1355
+ code: types_1.ChainGovErrorCodes.ErrInvalidProposalMsg,
1356
+ module: types_1.TransactionChainErrorModule.Gov,
1357
+ },
1358
+ 'expected gov account as only signer for proposal message': {
1359
+ message: 'expected gov account as only signer for proposal message',
1360
+ code: types_1.ChainGovErrorCodes.ErrInvalidSigner,
1361
+ module: types_1.TransactionChainErrorModule.Gov,
1362
+ },
1363
+ 'signal message is invalid': {
1364
+ message: 'signal message is invalid',
1365
+ code: types_1.ChainGovErrorCodes.ErrInvalidSignalMsg,
1366
+ module: types_1.TransactionChainErrorModule.Gov,
1367
+ },
1368
+ 'metadata too long': {
1369
+ message: 'metadata too long',
1370
+ code: types_1.ChainGovErrorCodes.ErrMetadataTooLong,
1371
+ module: types_1.TransactionChainErrorModule.Gov,
1372
+ },
1373
+ 'minimum deposit is too small': {
1374
+ message: 'minimum deposit is too small',
1375
+ code: types_1.ChainGovErrorCodes.ErrMinDepositTooSmall,
1376
+ module: types_1.TransactionChainErrorModule.Gov,
1377
+ },
1378
+ 'proposal is not found': {
1379
+ message: 'proposal is not found',
1380
+ code: types_1.ChainGovErrorCodes.ErrProposalNotFound,
1381
+ module: types_1.TransactionChainErrorModule.Gov,
1382
+ },
1383
+ 'invalid proposer': {
1384
+ message: 'invalid proposer',
1385
+ code: types_1.ChainGovErrorCodes.ErrInvalidProposer,
1386
+ module: types_1.TransactionChainErrorModule.Gov,
1387
+ },
1388
+ 'no deposits found': {
1389
+ message: 'no deposits found',
1390
+ code: types_1.ChainGovErrorCodes.ErrNoDeposits,
1391
+ module: types_1.TransactionChainErrorModule.Gov,
1392
+ },
1393
+ 'voting period already ended': {
1394
+ message: 'voting period already ended',
1395
+ code: types_1.ChainGovErrorCodes.ErrVotingPeriodEnded,
1396
+ module: types_1.TransactionChainErrorModule.Gov,
1397
+ },
1398
+ 'invalid proposal': {
1399
+ message: 'invalid proposal',
1400
+ code: types_1.ChainGovErrorCodes.ErrInvalidProposal,
1401
+ module: types_1.TransactionChainErrorModule.Gov,
1402
+ },
1403
+ 'no inputs to send transaction': {
1404
+ message: 'no inputs to send transaction',
1405
+ code: types_1.ChainBankErrorCodes.ErrNoInputs,
1406
+ module: types_1.TransactionChainErrorModule.Bank,
1407
+ },
1408
+ 'no outputs to send transaction': {
1409
+ message: 'no outputs to send transaction',
1410
+ code: types_1.ChainBankErrorCodes.ErrNoOutputs,
1411
+ module: types_1.TransactionChainErrorModule.Bank,
1412
+ },
1413
+ 'sum inputs != sum outputs': {
1414
+ message: 'sum inputs != sum outputs',
1415
+ code: types_1.ChainBankErrorCodes.ErrInputOutputMismatch,
1416
+ module: types_1.TransactionChainErrorModule.Bank,
1417
+ },
1418
+ 'send transactions are disabled': {
1419
+ message: 'send transactions are disabled',
1420
+ code: types_1.ChainBankErrorCodes.ErrSendDisabled,
1421
+ module: types_1.TransactionChainErrorModule.Bank,
1422
+ },
1423
+ 'client denom metadata not found': {
1424
+ message: 'client denom metadata not found',
1425
+ code: types_1.ChainBankErrorCodes.ErrDenomMetadataNotFound,
1426
+ module: types_1.TransactionChainErrorModule.Bank,
1427
+ },
1428
+ 'invalid key': {
1429
+ message: 'invalid key',
1430
+ code: types_1.ChainBankErrorCodes.ErrInvalidKey,
1431
+ module: types_1.TransactionChainErrorModule.Bank,
1432
+ },
1433
+ 'duplicate entry': {
1434
+ message: 'duplicate entry',
1435
+ code: types_1.ChainBankErrorCodes.ErrDuplicateEntry,
1436
+ module: types_1.TransactionChainErrorModule.Bank,
1437
+ },
1438
+ 'multiple senders not allowed': {
1439
+ message: 'multiple senders not allowed',
1440
+ code: types_1.ChainBankErrorCodes.ErrMultipleSenders,
1441
+ module: types_1.TransactionChainErrorModule.Bank,
1442
+ },
950
1443
  };
951
1444
  //# sourceMappingURL=messages.js.map