@injectivelabs/exceptions 1.16.13-alpha.0 → 1.16.13-alpha.1
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/dist/cjs/exceptions/types/codes.d.ts +17 -17
- package/dist/cjs/exceptions/types/context.d.ts +2 -2
- package/dist/cjs/exceptions/types/modules.d.ts +4 -4
- package/dist/cjs/exceptions/utils/grpc.js +4 -1
- package/dist/esm/exceptions/exceptions/TransactionException.js +1 -1
- package/dist/esm/exceptions/types/codes.d.ts +17 -17
- package/dist/esm/exceptions/types/context.d.ts +2 -2
- package/dist/esm/exceptions/types/modules.d.ts +4 -4
- package/dist/esm/exceptions/utils/grpc.js +4 -1
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ export declare const GrpcErrorCode: {
|
|
|
19
19
|
readonly DataLoss: 15;
|
|
20
20
|
readonly Unauthenticated: 16;
|
|
21
21
|
};
|
|
22
|
-
export type GrpcErrorCode = typeof GrpcErrorCode[keyof typeof GrpcErrorCode];
|
|
22
|
+
export type GrpcErrorCode = (typeof GrpcErrorCode)[keyof typeof GrpcErrorCode];
|
|
23
23
|
export declare const grpcErrorCodeToErrorCode: <T extends number>(grpcErrorCode: T) => GrpcErrorCode;
|
|
24
24
|
export declare const TransactionChainErrorModule: {
|
|
25
25
|
readonly Auction: "auction";
|
|
@@ -38,7 +38,7 @@ export declare const TransactionChainErrorModule: {
|
|
|
38
38
|
readonly Wasm: "wasm";
|
|
39
39
|
readonly AuthZ: "authz";
|
|
40
40
|
};
|
|
41
|
-
export type TransactionChainErrorModule = typeof TransactionChainErrorModule[keyof typeof TransactionChainErrorModule];
|
|
41
|
+
export type TransactionChainErrorModule = (typeof TransactionChainErrorModule)[keyof typeof TransactionChainErrorModule];
|
|
42
42
|
export declare const ChainCosmosErrorCode: {
|
|
43
43
|
readonly ErrTxDecode: 2;
|
|
44
44
|
readonly ErrInvalidSequence: 3;
|
|
@@ -81,7 +81,7 @@ export declare const ChainCosmosErrorCode: {
|
|
|
81
81
|
readonly ErrAppConfig: 40;
|
|
82
82
|
readonly ErrInvalidGasLimit: 41;
|
|
83
83
|
};
|
|
84
|
-
export type ChainCosmosErrorCode = typeof ChainCosmosErrorCode[keyof typeof ChainCosmosErrorCode];
|
|
84
|
+
export type ChainCosmosErrorCode = (typeof ChainCosmosErrorCode)[keyof typeof ChainCosmosErrorCode];
|
|
85
85
|
export declare const ChainExchangeModuleErrorCode: {
|
|
86
86
|
readonly ErrOrderInvalid: 1;
|
|
87
87
|
readonly ErrSpotMarketNotFound: 2;
|
|
@@ -182,12 +182,12 @@ export declare const ChainExchangeModuleErrorCode: {
|
|
|
182
182
|
readonly ErrClientOrderIdAlreadyExists: 97;
|
|
183
183
|
readonly ErrInvalidCid: 98;
|
|
184
184
|
};
|
|
185
|
-
export type ChainExchangeModuleErrorCode = typeof ChainExchangeModuleErrorCode[keyof typeof ChainExchangeModuleErrorCode];
|
|
185
|
+
export type ChainExchangeModuleErrorCode = (typeof ChainExchangeModuleErrorCode)[keyof typeof ChainExchangeModuleErrorCode];
|
|
186
186
|
export declare const ChainAuctionErrorCodes: {
|
|
187
187
|
readonly ErrBidInvalid: 1;
|
|
188
188
|
readonly ErrBidRound: 2;
|
|
189
189
|
};
|
|
190
|
-
export type ChainAuctionErrorCodes = typeof ChainAuctionErrorCodes[keyof typeof ChainAuctionErrorCodes];
|
|
190
|
+
export type ChainAuctionErrorCodes = (typeof ChainAuctionErrorCodes)[keyof typeof ChainAuctionErrorCodes];
|
|
191
191
|
export declare const ChainAuthZErrorCodes: {
|
|
192
192
|
readonly ErrNoAuthorizationFound: 2;
|
|
193
193
|
readonly ErrInvalidExpirationTime: 3;
|
|
@@ -198,7 +198,7 @@ export declare const ChainAuthZErrorCodes: {
|
|
|
198
198
|
readonly ErrAuthorizationNumOfSigners: 9;
|
|
199
199
|
readonly ErrNegativeMaxTokens: 12;
|
|
200
200
|
};
|
|
201
|
-
export type ChainAuthZErrorCodes = typeof ChainAuthZErrorCodes[keyof typeof ChainAuthZErrorCodes];
|
|
201
|
+
export type ChainAuthZErrorCodes = (typeof ChainAuthZErrorCodes)[keyof typeof ChainAuthZErrorCodes];
|
|
202
202
|
export declare const ChainInsuranceErrorCodes: {
|
|
203
203
|
readonly ErrInsuranceFundAlreadyExists: 1;
|
|
204
204
|
readonly ErrInsuranceFundNotFound: 2;
|
|
@@ -213,7 +213,7 @@ export declare const ChainInsuranceErrorCodes: {
|
|
|
213
213
|
readonly ErrInvalidMarketID: 11;
|
|
214
214
|
readonly ErrInvalidShareDenom: 12;
|
|
215
215
|
};
|
|
216
|
-
export type ChainInsuranceErrorCodes = typeof ChainInsuranceErrorCodes[keyof typeof ChainInsuranceErrorCodes];
|
|
216
|
+
export type ChainInsuranceErrorCodes = (typeof ChainInsuranceErrorCodes)[keyof typeof ChainInsuranceErrorCodes];
|
|
217
217
|
export declare const ChainOcrErrorCodes: {
|
|
218
218
|
readonly ErrStaleReport: 1;
|
|
219
219
|
readonly ErrIncompleteProposal: 2;
|
|
@@ -239,7 +239,7 @@ export declare const ChainOcrErrorCodes: {
|
|
|
239
239
|
readonly ErrPayeeRestricted: 23;
|
|
240
240
|
readonly ErrFeedConfigNotFound: 24;
|
|
241
241
|
};
|
|
242
|
-
export type ChainOcrErrorCodes = typeof ChainOcrErrorCodes[keyof typeof ChainOcrErrorCodes];
|
|
242
|
+
export type ChainOcrErrorCodes = (typeof ChainOcrErrorCodes)[keyof typeof ChainOcrErrorCodes];
|
|
243
243
|
export declare const ChainOracleErrorCodes: {
|
|
244
244
|
readonly ErrEmptyRelayerAddr: 1;
|
|
245
245
|
readonly ErrBadRatesCount: 2;
|
|
@@ -275,7 +275,7 @@ export declare const ChainOracleErrorCodes: {
|
|
|
275
275
|
readonly ErrInvalidOracleRequest: 32;
|
|
276
276
|
readonly ErrOraclePriceNotFound: 33;
|
|
277
277
|
};
|
|
278
|
-
export type ChainOracleErrorCodes = typeof ChainOracleErrorCodes[keyof typeof ChainOracleErrorCodes];
|
|
278
|
+
export type ChainOracleErrorCodes = (typeof ChainOracleErrorCodes)[keyof typeof ChainOracleErrorCodes];
|
|
279
279
|
export declare const ChainPeggyErrorCodes: {
|
|
280
280
|
readonly ErrInternal: 1;
|
|
281
281
|
readonly ErrDuplicate: 2;
|
|
@@ -292,7 +292,7 @@ export declare const ChainPeggyErrorCodes: {
|
|
|
292
292
|
readonly ErrInvalidEthSender: 13;
|
|
293
293
|
readonly ErrInvalidEthDestination: 14;
|
|
294
294
|
};
|
|
295
|
-
export type ChainPeggyErrorCodes = typeof ChainPeggyErrorCodes[keyof typeof ChainPeggyErrorCodes];
|
|
295
|
+
export type ChainPeggyErrorCodes = (typeof ChainPeggyErrorCodes)[keyof typeof ChainPeggyErrorCodes];
|
|
296
296
|
export declare const ChainTokenFactoryErrorCodes: {
|
|
297
297
|
readonly ErrDenomExists: 2;
|
|
298
298
|
readonly ErrUnauthorized: 3;
|
|
@@ -307,7 +307,7 @@ export declare const ChainTokenFactoryErrorCodes: {
|
|
|
307
307
|
readonly ErrDenomDoesNotExist: 12;
|
|
308
308
|
readonly ErrAmountNotPositive: 13;
|
|
309
309
|
};
|
|
310
|
-
export type ChainTokenFactoryErrorCodes = typeof ChainTokenFactoryErrorCodes[keyof typeof ChainTokenFactoryErrorCodes];
|
|
310
|
+
export type ChainTokenFactoryErrorCodes = (typeof ChainTokenFactoryErrorCodes)[keyof typeof ChainTokenFactoryErrorCodes];
|
|
311
311
|
export declare const ChainWasmXErrorCodes: {
|
|
312
312
|
readonly ErrInvalidGasLimit: 1;
|
|
313
313
|
readonly ErrInvalidGasPrice: 2;
|
|
@@ -317,7 +317,7 @@ export declare const ChainWasmXErrorCodes: {
|
|
|
317
317
|
readonly ErrNoContractAddresses: 6;
|
|
318
318
|
readonly ErrInvalidCodeId: 7;
|
|
319
319
|
};
|
|
320
|
-
export type ChainWasmXErrorCodes = typeof ChainWasmXErrorCodes[keyof typeof ChainWasmXErrorCodes];
|
|
320
|
+
export type ChainWasmXErrorCodes = (typeof ChainWasmXErrorCodes)[keyof typeof ChainWasmXErrorCodes];
|
|
321
321
|
export declare const ChainStakingErrorCodes: {
|
|
322
322
|
readonly ErrEmptyValidatorAddr: 2;
|
|
323
323
|
readonly ErrNoValidatorFound: 3;
|
|
@@ -361,7 +361,7 @@ export declare const ChainStakingErrorCodes: {
|
|
|
361
361
|
readonly ErrUnbondingNotFound: 41;
|
|
362
362
|
readonly ErrUnbondingOnHoldRefCountNegative: 42;
|
|
363
363
|
};
|
|
364
|
-
export type ChainStakingErrorCodes = typeof ChainStakingErrorCodes[keyof typeof ChainStakingErrorCodes];
|
|
364
|
+
export type ChainStakingErrorCodes = (typeof ChainStakingErrorCodes)[keyof typeof ChainStakingErrorCodes];
|
|
365
365
|
export declare const ChainGovErrorCodes: {
|
|
366
366
|
readonly ErrUnknownProposal: 2;
|
|
367
367
|
readonly ErrInactiveProposal: 3;
|
|
@@ -384,7 +384,7 @@ export declare const ChainGovErrorCodes: {
|
|
|
384
384
|
readonly ErrVotingPeriodEnded: 20;
|
|
385
385
|
readonly ErrInvalidProposal: 21;
|
|
386
386
|
};
|
|
387
|
-
export type ChainGovErrorCodes = typeof ChainGovErrorCodes[keyof typeof ChainGovErrorCodes];
|
|
387
|
+
export type ChainGovErrorCodes = (typeof ChainGovErrorCodes)[keyof typeof ChainGovErrorCodes];
|
|
388
388
|
export declare const ChainDistributionErrorCodes: {
|
|
389
389
|
readonly ErrEmptyDelegatorAddr: 2;
|
|
390
390
|
readonly ErrEmptyWithdrawAddr: 3;
|
|
@@ -399,7 +399,7 @@ export declare const ChainDistributionErrorCodes: {
|
|
|
399
399
|
readonly ErrNoValidatorExists: 12;
|
|
400
400
|
readonly ErrNoDelegationExists: 13;
|
|
401
401
|
};
|
|
402
|
-
export type ChainDistributionErrorCodes = typeof ChainDistributionErrorCodes[keyof typeof ChainDistributionErrorCodes];
|
|
402
|
+
export type ChainDistributionErrorCodes = (typeof ChainDistributionErrorCodes)[keyof typeof ChainDistributionErrorCodes];
|
|
403
403
|
export declare const ChainBankErrorCodes: {
|
|
404
404
|
readonly ErrNoInputs: 2;
|
|
405
405
|
readonly ErrNoOutputs: 3;
|
|
@@ -410,7 +410,7 @@ export declare const ChainBankErrorCodes: {
|
|
|
410
410
|
readonly ErrDuplicateEntry: 8;
|
|
411
411
|
readonly ErrMultipleSenders: 9;
|
|
412
412
|
};
|
|
413
|
-
export type ChainBankErrorCodes = typeof ChainBankErrorCodes[keyof typeof ChainBankErrorCodes];
|
|
413
|
+
export type ChainBankErrorCodes = (typeof ChainBankErrorCodes)[keyof typeof ChainBankErrorCodes];
|
|
414
414
|
export declare const ChainWasmErrorCodes: {
|
|
415
415
|
readonly ErrCreateFailed: 2;
|
|
416
416
|
readonly ErrAccountExists: 3;
|
|
@@ -433,7 +433,7 @@ export declare const ChainWasmErrorCodes: {
|
|
|
433
433
|
readonly ErrUnknownMsg: 20;
|
|
434
434
|
readonly ErrInvalidEvent: 21;
|
|
435
435
|
};
|
|
436
|
-
export type ChainWasmErrorCodes = typeof ChainWasmErrorCodes[keyof typeof ChainWasmErrorCodes];
|
|
436
|
+
export type ChainWasmErrorCodes = (typeof ChainWasmErrorCodes)[keyof typeof ChainWasmErrorCodes];
|
|
437
437
|
export type IndexerApiErrorCode = number;
|
|
438
438
|
export declare const UnspecifiedErrorCode = -1;
|
|
439
439
|
export type ErrorCode = grpc.Code | StatusCodes | typeof UnspecifiedErrorCode | GrpcErrorCode;
|
|
@@ -4,7 +4,7 @@ export declare const HttpRequestMethod: {
|
|
|
4
4
|
readonly Post: "POST";
|
|
5
5
|
readonly Options: "OPTIONS";
|
|
6
6
|
};
|
|
7
|
-
export type HttpRequestMethod = typeof HttpRequestMethod[keyof typeof HttpRequestMethod];
|
|
7
|
+
export type HttpRequestMethod = (typeof HttpRequestMethod)[keyof typeof HttpRequestMethod];
|
|
8
8
|
export declare const ErrorType: {
|
|
9
9
|
readonly Unspecified: "unspecified";
|
|
10
10
|
readonly ChainError: "chain-error";
|
|
@@ -18,7 +18,7 @@ export declare const ErrorType: {
|
|
|
18
18
|
readonly Web3: "web3";
|
|
19
19
|
readonly Web3Gateway: "web3-gateway";
|
|
20
20
|
};
|
|
21
|
-
export type ErrorType = typeof ErrorType[keyof typeof ErrorType];
|
|
21
|
+
export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
22
22
|
export interface ErrorContext {
|
|
23
23
|
code?: ErrorCode;
|
|
24
24
|
type?: ErrorType;
|
|
@@ -3,7 +3,7 @@ export declare const ContractErrorModule: {
|
|
|
3
3
|
readonly Peggy: "peggy-contract";
|
|
4
4
|
readonly PeggyOld: "peggy-old-contract";
|
|
5
5
|
};
|
|
6
|
-
export type ContractErrorModule = typeof ContractErrorModule[keyof typeof ContractErrorModule];
|
|
6
|
+
export type ContractErrorModule = (typeof ContractErrorModule)[keyof typeof ContractErrorModule];
|
|
7
7
|
export declare const ChainErrorModule: {
|
|
8
8
|
readonly Auction: "chain-auction";
|
|
9
9
|
readonly Auth: "chain-auth";
|
|
@@ -24,7 +24,7 @@ export declare const ChainErrorModule: {
|
|
|
24
24
|
readonly Permissions: "chain-permissions";
|
|
25
25
|
readonly TxFees: "chain-tx-fees";
|
|
26
26
|
};
|
|
27
|
-
export type ChainErrorModule = typeof ChainErrorModule[keyof typeof ChainErrorModule];
|
|
27
|
+
export type ChainErrorModule = (typeof ChainErrorModule)[keyof typeof ChainErrorModule];
|
|
28
28
|
export declare const IndexerErrorModule: {
|
|
29
29
|
readonly Account: "indexer-account";
|
|
30
30
|
readonly Auction: "indexer-auction";
|
|
@@ -49,7 +49,7 @@ export declare const IndexerErrorModule: {
|
|
|
49
49
|
readonly Web3Gw: "web3-gateway";
|
|
50
50
|
readonly Abacus: "abacus";
|
|
51
51
|
};
|
|
52
|
-
export type IndexerErrorModule = typeof IndexerErrorModule[keyof typeof IndexerErrorModule];
|
|
52
|
+
export type IndexerErrorModule = (typeof IndexerErrorModule)[keyof typeof IndexerErrorModule];
|
|
53
53
|
export declare const WalletErrorActionModule: {
|
|
54
54
|
readonly GetChainId: "get-chain-id";
|
|
55
55
|
readonly GetAccounts: "get-accounts";
|
|
@@ -61,4 +61,4 @@ export declare const WalletErrorActionModule: {
|
|
|
61
61
|
readonly SignEvmTransaction: "sign-evm-transaction";
|
|
62
62
|
readonly GetEvmTransactionReceipt: "get-evm-transaction-receipt";
|
|
63
63
|
};
|
|
64
|
-
export type WalletErrorActionModule = typeof WalletErrorActionModule[keyof typeof WalletErrorActionModule];
|
|
64
|
+
export type WalletErrorActionModule = (typeof WalletErrorActionModule)[keyof typeof WalletErrorActionModule];
|
|
@@ -36,5 +36,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.grpcPkg = exports.grpc = void 0;
|
|
37
37
|
const grpcPkg = __importStar(require("@injectivelabs/grpc-web"));
|
|
38
38
|
exports.grpcPkg = grpcPkg;
|
|
39
|
-
const grpc = grpcPkg.grpc ??
|
|
39
|
+
const grpc = grpcPkg.grpc ??
|
|
40
|
+
grpcPkg.default
|
|
41
|
+
.grpc ??
|
|
42
|
+
grpcPkg;
|
|
40
43
|
exports.grpc = grpc;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorType } from '../types/index.js';
|
|
2
2
|
import { ConcreteException } from '../base.js';
|
|
3
|
-
import { mapFailedTransactionMessage, parseErrorMessage } from '../utils/maps.js';
|
|
3
|
+
import { mapFailedTransactionMessage, parseErrorMessage, } from '../utils/maps.js';
|
|
4
4
|
export class TransactionException extends ConcreteException {
|
|
5
5
|
static errorClass = 'TransactionException';
|
|
6
6
|
constructor(error, context) {
|
|
@@ -19,7 +19,7 @@ export declare const GrpcErrorCode: {
|
|
|
19
19
|
readonly DataLoss: 15;
|
|
20
20
|
readonly Unauthenticated: 16;
|
|
21
21
|
};
|
|
22
|
-
export type GrpcErrorCode = typeof GrpcErrorCode[keyof typeof GrpcErrorCode];
|
|
22
|
+
export type GrpcErrorCode = (typeof GrpcErrorCode)[keyof typeof GrpcErrorCode];
|
|
23
23
|
export declare const grpcErrorCodeToErrorCode: <T extends number>(grpcErrorCode: T) => GrpcErrorCode;
|
|
24
24
|
export declare const TransactionChainErrorModule: {
|
|
25
25
|
readonly Auction: "auction";
|
|
@@ -38,7 +38,7 @@ export declare const TransactionChainErrorModule: {
|
|
|
38
38
|
readonly Wasm: "wasm";
|
|
39
39
|
readonly AuthZ: "authz";
|
|
40
40
|
};
|
|
41
|
-
export type TransactionChainErrorModule = typeof TransactionChainErrorModule[keyof typeof TransactionChainErrorModule];
|
|
41
|
+
export type TransactionChainErrorModule = (typeof TransactionChainErrorModule)[keyof typeof TransactionChainErrorModule];
|
|
42
42
|
export declare const ChainCosmosErrorCode: {
|
|
43
43
|
readonly ErrTxDecode: 2;
|
|
44
44
|
readonly ErrInvalidSequence: 3;
|
|
@@ -81,7 +81,7 @@ export declare const ChainCosmosErrorCode: {
|
|
|
81
81
|
readonly ErrAppConfig: 40;
|
|
82
82
|
readonly ErrInvalidGasLimit: 41;
|
|
83
83
|
};
|
|
84
|
-
export type ChainCosmosErrorCode = typeof ChainCosmosErrorCode[keyof typeof ChainCosmosErrorCode];
|
|
84
|
+
export type ChainCosmosErrorCode = (typeof ChainCosmosErrorCode)[keyof typeof ChainCosmosErrorCode];
|
|
85
85
|
export declare const ChainExchangeModuleErrorCode: {
|
|
86
86
|
readonly ErrOrderInvalid: 1;
|
|
87
87
|
readonly ErrSpotMarketNotFound: 2;
|
|
@@ -182,12 +182,12 @@ export declare const ChainExchangeModuleErrorCode: {
|
|
|
182
182
|
readonly ErrClientOrderIdAlreadyExists: 97;
|
|
183
183
|
readonly ErrInvalidCid: 98;
|
|
184
184
|
};
|
|
185
|
-
export type ChainExchangeModuleErrorCode = typeof ChainExchangeModuleErrorCode[keyof typeof ChainExchangeModuleErrorCode];
|
|
185
|
+
export type ChainExchangeModuleErrorCode = (typeof ChainExchangeModuleErrorCode)[keyof typeof ChainExchangeModuleErrorCode];
|
|
186
186
|
export declare const ChainAuctionErrorCodes: {
|
|
187
187
|
readonly ErrBidInvalid: 1;
|
|
188
188
|
readonly ErrBidRound: 2;
|
|
189
189
|
};
|
|
190
|
-
export type ChainAuctionErrorCodes = typeof ChainAuctionErrorCodes[keyof typeof ChainAuctionErrorCodes];
|
|
190
|
+
export type ChainAuctionErrorCodes = (typeof ChainAuctionErrorCodes)[keyof typeof ChainAuctionErrorCodes];
|
|
191
191
|
export declare const ChainAuthZErrorCodes: {
|
|
192
192
|
readonly ErrNoAuthorizationFound: 2;
|
|
193
193
|
readonly ErrInvalidExpirationTime: 3;
|
|
@@ -198,7 +198,7 @@ export declare const ChainAuthZErrorCodes: {
|
|
|
198
198
|
readonly ErrAuthorizationNumOfSigners: 9;
|
|
199
199
|
readonly ErrNegativeMaxTokens: 12;
|
|
200
200
|
};
|
|
201
|
-
export type ChainAuthZErrorCodes = typeof ChainAuthZErrorCodes[keyof typeof ChainAuthZErrorCodes];
|
|
201
|
+
export type ChainAuthZErrorCodes = (typeof ChainAuthZErrorCodes)[keyof typeof ChainAuthZErrorCodes];
|
|
202
202
|
export declare const ChainInsuranceErrorCodes: {
|
|
203
203
|
readonly ErrInsuranceFundAlreadyExists: 1;
|
|
204
204
|
readonly ErrInsuranceFundNotFound: 2;
|
|
@@ -213,7 +213,7 @@ export declare const ChainInsuranceErrorCodes: {
|
|
|
213
213
|
readonly ErrInvalidMarketID: 11;
|
|
214
214
|
readonly ErrInvalidShareDenom: 12;
|
|
215
215
|
};
|
|
216
|
-
export type ChainInsuranceErrorCodes = typeof ChainInsuranceErrorCodes[keyof typeof ChainInsuranceErrorCodes];
|
|
216
|
+
export type ChainInsuranceErrorCodes = (typeof ChainInsuranceErrorCodes)[keyof typeof ChainInsuranceErrorCodes];
|
|
217
217
|
export declare const ChainOcrErrorCodes: {
|
|
218
218
|
readonly ErrStaleReport: 1;
|
|
219
219
|
readonly ErrIncompleteProposal: 2;
|
|
@@ -239,7 +239,7 @@ export declare const ChainOcrErrorCodes: {
|
|
|
239
239
|
readonly ErrPayeeRestricted: 23;
|
|
240
240
|
readonly ErrFeedConfigNotFound: 24;
|
|
241
241
|
};
|
|
242
|
-
export type ChainOcrErrorCodes = typeof ChainOcrErrorCodes[keyof typeof ChainOcrErrorCodes];
|
|
242
|
+
export type ChainOcrErrorCodes = (typeof ChainOcrErrorCodes)[keyof typeof ChainOcrErrorCodes];
|
|
243
243
|
export declare const ChainOracleErrorCodes: {
|
|
244
244
|
readonly ErrEmptyRelayerAddr: 1;
|
|
245
245
|
readonly ErrBadRatesCount: 2;
|
|
@@ -275,7 +275,7 @@ export declare const ChainOracleErrorCodes: {
|
|
|
275
275
|
readonly ErrInvalidOracleRequest: 32;
|
|
276
276
|
readonly ErrOraclePriceNotFound: 33;
|
|
277
277
|
};
|
|
278
|
-
export type ChainOracleErrorCodes = typeof ChainOracleErrorCodes[keyof typeof ChainOracleErrorCodes];
|
|
278
|
+
export type ChainOracleErrorCodes = (typeof ChainOracleErrorCodes)[keyof typeof ChainOracleErrorCodes];
|
|
279
279
|
export declare const ChainPeggyErrorCodes: {
|
|
280
280
|
readonly ErrInternal: 1;
|
|
281
281
|
readonly ErrDuplicate: 2;
|
|
@@ -292,7 +292,7 @@ export declare const ChainPeggyErrorCodes: {
|
|
|
292
292
|
readonly ErrInvalidEthSender: 13;
|
|
293
293
|
readonly ErrInvalidEthDestination: 14;
|
|
294
294
|
};
|
|
295
|
-
export type ChainPeggyErrorCodes = typeof ChainPeggyErrorCodes[keyof typeof ChainPeggyErrorCodes];
|
|
295
|
+
export type ChainPeggyErrorCodes = (typeof ChainPeggyErrorCodes)[keyof typeof ChainPeggyErrorCodes];
|
|
296
296
|
export declare const ChainTokenFactoryErrorCodes: {
|
|
297
297
|
readonly ErrDenomExists: 2;
|
|
298
298
|
readonly ErrUnauthorized: 3;
|
|
@@ -307,7 +307,7 @@ export declare const ChainTokenFactoryErrorCodes: {
|
|
|
307
307
|
readonly ErrDenomDoesNotExist: 12;
|
|
308
308
|
readonly ErrAmountNotPositive: 13;
|
|
309
309
|
};
|
|
310
|
-
export type ChainTokenFactoryErrorCodes = typeof ChainTokenFactoryErrorCodes[keyof typeof ChainTokenFactoryErrorCodes];
|
|
310
|
+
export type ChainTokenFactoryErrorCodes = (typeof ChainTokenFactoryErrorCodes)[keyof typeof ChainTokenFactoryErrorCodes];
|
|
311
311
|
export declare const ChainWasmXErrorCodes: {
|
|
312
312
|
readonly ErrInvalidGasLimit: 1;
|
|
313
313
|
readonly ErrInvalidGasPrice: 2;
|
|
@@ -317,7 +317,7 @@ export declare const ChainWasmXErrorCodes: {
|
|
|
317
317
|
readonly ErrNoContractAddresses: 6;
|
|
318
318
|
readonly ErrInvalidCodeId: 7;
|
|
319
319
|
};
|
|
320
|
-
export type ChainWasmXErrorCodes = typeof ChainWasmXErrorCodes[keyof typeof ChainWasmXErrorCodes];
|
|
320
|
+
export type ChainWasmXErrorCodes = (typeof ChainWasmXErrorCodes)[keyof typeof ChainWasmXErrorCodes];
|
|
321
321
|
export declare const ChainStakingErrorCodes: {
|
|
322
322
|
readonly ErrEmptyValidatorAddr: 2;
|
|
323
323
|
readonly ErrNoValidatorFound: 3;
|
|
@@ -361,7 +361,7 @@ export declare const ChainStakingErrorCodes: {
|
|
|
361
361
|
readonly ErrUnbondingNotFound: 41;
|
|
362
362
|
readonly ErrUnbondingOnHoldRefCountNegative: 42;
|
|
363
363
|
};
|
|
364
|
-
export type ChainStakingErrorCodes = typeof ChainStakingErrorCodes[keyof typeof ChainStakingErrorCodes];
|
|
364
|
+
export type ChainStakingErrorCodes = (typeof ChainStakingErrorCodes)[keyof typeof ChainStakingErrorCodes];
|
|
365
365
|
export declare const ChainGovErrorCodes: {
|
|
366
366
|
readonly ErrUnknownProposal: 2;
|
|
367
367
|
readonly ErrInactiveProposal: 3;
|
|
@@ -384,7 +384,7 @@ export declare const ChainGovErrorCodes: {
|
|
|
384
384
|
readonly ErrVotingPeriodEnded: 20;
|
|
385
385
|
readonly ErrInvalidProposal: 21;
|
|
386
386
|
};
|
|
387
|
-
export type ChainGovErrorCodes = typeof ChainGovErrorCodes[keyof typeof ChainGovErrorCodes];
|
|
387
|
+
export type ChainGovErrorCodes = (typeof ChainGovErrorCodes)[keyof typeof ChainGovErrorCodes];
|
|
388
388
|
export declare const ChainDistributionErrorCodes: {
|
|
389
389
|
readonly ErrEmptyDelegatorAddr: 2;
|
|
390
390
|
readonly ErrEmptyWithdrawAddr: 3;
|
|
@@ -399,7 +399,7 @@ export declare const ChainDistributionErrorCodes: {
|
|
|
399
399
|
readonly ErrNoValidatorExists: 12;
|
|
400
400
|
readonly ErrNoDelegationExists: 13;
|
|
401
401
|
};
|
|
402
|
-
export type ChainDistributionErrorCodes = typeof ChainDistributionErrorCodes[keyof typeof ChainDistributionErrorCodes];
|
|
402
|
+
export type ChainDistributionErrorCodes = (typeof ChainDistributionErrorCodes)[keyof typeof ChainDistributionErrorCodes];
|
|
403
403
|
export declare const ChainBankErrorCodes: {
|
|
404
404
|
readonly ErrNoInputs: 2;
|
|
405
405
|
readonly ErrNoOutputs: 3;
|
|
@@ -410,7 +410,7 @@ export declare const ChainBankErrorCodes: {
|
|
|
410
410
|
readonly ErrDuplicateEntry: 8;
|
|
411
411
|
readonly ErrMultipleSenders: 9;
|
|
412
412
|
};
|
|
413
|
-
export type ChainBankErrorCodes = typeof ChainBankErrorCodes[keyof typeof ChainBankErrorCodes];
|
|
413
|
+
export type ChainBankErrorCodes = (typeof ChainBankErrorCodes)[keyof typeof ChainBankErrorCodes];
|
|
414
414
|
export declare const ChainWasmErrorCodes: {
|
|
415
415
|
readonly ErrCreateFailed: 2;
|
|
416
416
|
readonly ErrAccountExists: 3;
|
|
@@ -433,7 +433,7 @@ export declare const ChainWasmErrorCodes: {
|
|
|
433
433
|
readonly ErrUnknownMsg: 20;
|
|
434
434
|
readonly ErrInvalidEvent: 21;
|
|
435
435
|
};
|
|
436
|
-
export type ChainWasmErrorCodes = typeof ChainWasmErrorCodes[keyof typeof ChainWasmErrorCodes];
|
|
436
|
+
export type ChainWasmErrorCodes = (typeof ChainWasmErrorCodes)[keyof typeof ChainWasmErrorCodes];
|
|
437
437
|
export type IndexerApiErrorCode = number;
|
|
438
438
|
export declare const UnspecifiedErrorCode = -1;
|
|
439
439
|
export type ErrorCode = grpc.Code | StatusCodes | typeof UnspecifiedErrorCode | GrpcErrorCode;
|
|
@@ -4,7 +4,7 @@ export declare const HttpRequestMethod: {
|
|
|
4
4
|
readonly Post: "POST";
|
|
5
5
|
readonly Options: "OPTIONS";
|
|
6
6
|
};
|
|
7
|
-
export type HttpRequestMethod = typeof HttpRequestMethod[keyof typeof HttpRequestMethod];
|
|
7
|
+
export type HttpRequestMethod = (typeof HttpRequestMethod)[keyof typeof HttpRequestMethod];
|
|
8
8
|
export declare const ErrorType: {
|
|
9
9
|
readonly Unspecified: "unspecified";
|
|
10
10
|
readonly ChainError: "chain-error";
|
|
@@ -18,7 +18,7 @@ export declare const ErrorType: {
|
|
|
18
18
|
readonly Web3: "web3";
|
|
19
19
|
readonly Web3Gateway: "web3-gateway";
|
|
20
20
|
};
|
|
21
|
-
export type ErrorType = typeof ErrorType[keyof typeof ErrorType];
|
|
21
|
+
export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
22
22
|
export interface ErrorContext {
|
|
23
23
|
code?: ErrorCode;
|
|
24
24
|
type?: ErrorType;
|
|
@@ -3,7 +3,7 @@ export declare const ContractErrorModule: {
|
|
|
3
3
|
readonly Peggy: "peggy-contract";
|
|
4
4
|
readonly PeggyOld: "peggy-old-contract";
|
|
5
5
|
};
|
|
6
|
-
export type ContractErrorModule = typeof ContractErrorModule[keyof typeof ContractErrorModule];
|
|
6
|
+
export type ContractErrorModule = (typeof ContractErrorModule)[keyof typeof ContractErrorModule];
|
|
7
7
|
export declare const ChainErrorModule: {
|
|
8
8
|
readonly Auction: "chain-auction";
|
|
9
9
|
readonly Auth: "chain-auth";
|
|
@@ -24,7 +24,7 @@ export declare const ChainErrorModule: {
|
|
|
24
24
|
readonly Permissions: "chain-permissions";
|
|
25
25
|
readonly TxFees: "chain-tx-fees";
|
|
26
26
|
};
|
|
27
|
-
export type ChainErrorModule = typeof ChainErrorModule[keyof typeof ChainErrorModule];
|
|
27
|
+
export type ChainErrorModule = (typeof ChainErrorModule)[keyof typeof ChainErrorModule];
|
|
28
28
|
export declare const IndexerErrorModule: {
|
|
29
29
|
readonly Account: "indexer-account";
|
|
30
30
|
readonly Auction: "indexer-auction";
|
|
@@ -49,7 +49,7 @@ export declare const IndexerErrorModule: {
|
|
|
49
49
|
readonly Web3Gw: "web3-gateway";
|
|
50
50
|
readonly Abacus: "abacus";
|
|
51
51
|
};
|
|
52
|
-
export type IndexerErrorModule = typeof IndexerErrorModule[keyof typeof IndexerErrorModule];
|
|
52
|
+
export type IndexerErrorModule = (typeof IndexerErrorModule)[keyof typeof IndexerErrorModule];
|
|
53
53
|
export declare const WalletErrorActionModule: {
|
|
54
54
|
readonly GetChainId: "get-chain-id";
|
|
55
55
|
readonly GetAccounts: "get-accounts";
|
|
@@ -61,4 +61,4 @@ export declare const WalletErrorActionModule: {
|
|
|
61
61
|
readonly SignEvmTransaction: "sign-evm-transaction";
|
|
62
62
|
readonly GetEvmTransactionReceipt: "get-evm-transaction-receipt";
|
|
63
63
|
};
|
|
64
|
-
export type WalletErrorActionModule = typeof WalletErrorActionModule[keyof typeof WalletErrorActionModule];
|
|
64
|
+
export type WalletErrorActionModule = (typeof WalletErrorActionModule)[keyof typeof WalletErrorActionModule];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/exceptions",
|
|
3
3
|
"description": "List of exceptions that can be reused throughout Injective's projects.",
|
|
4
|
-
"version": "1.16.13-alpha.
|
|
4
|
+
"version": "1.16.13-alpha.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"shx": "^0.3.4"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "feb3e8f6bd6fa67bb489c94f6373a8d68a9846ae"
|
|
65
65
|
}
|