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