@injectivelabs/exceptions 1.15.0 → 1.15.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/base.d.ts +76 -0
- package/dist/cjs/exceptions/base.js +176 -0
- package/dist/cjs/exceptions/base.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/BitGetException.js +24 -0
- package/dist/cjs/exceptions/exceptions/BitGetException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +17 -0
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/GeneralException.d.ts +5 -0
- package/dist/cjs/exceptions/exceptions/GeneralException.js +12 -0
- package/dist/cjs/exceptions/exceptions/GeneralException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js +22 -0
- package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +10 -0
- package/dist/cjs/exceptions/exceptions/HttpRequestException.js +22 -0
- package/dist/cjs/exceptions/exceptions/HttpRequestException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +41 -0
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/LedgerException.js +41 -0
- package/dist/cjs/exceptions/exceptions/LedgerException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/MetamaskException.js +24 -0
- package/dist/cjs/exceptions/exceptions/MetamaskException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/OkxWalletException.js +24 -0
- package/dist/cjs/exceptions/exceptions/OkxWalletException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/TransactionException.js +27 -0
- package/dist/cjs/exceptions/exceptions/TransactionException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/TrezorException.js +17 -0
- package/dist/cjs/exceptions/exceptions/TrezorException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/TrustWalletException.js +26 -0
- package/dist/cjs/exceptions/exceptions/TrustWalletException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/WalletException.d.ts +5 -0
- package/dist/cjs/exceptions/exceptions/WalletException.js +12 -0
- package/dist/cjs/exceptions/exceptions/WalletException.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +7 -0
- package/dist/cjs/exceptions/exceptions/Web3Exception.js +17 -0
- package/dist/cjs/exceptions/exceptions/Web3Exception.js.map +1 -0
- package/dist/cjs/exceptions/exceptions/index.d.ts +15 -0
- package/dist/cjs/exceptions/exceptions/index.js +32 -0
- package/dist/cjs/exceptions/exceptions/index.js.map +1 -0
- package/dist/cjs/exceptions/index.d.ts +2 -0
- package/dist/cjs/exceptions/index.js +19 -0
- package/dist/cjs/exceptions/index.js.map +1 -0
- package/dist/cjs/exceptions/messages.d.ts +12 -0
- package/dist/cjs/exceptions/messages.js +1601 -0
- package/dist/cjs/exceptions/messages.js.map +1 -0
- package/dist/cjs/exceptions/types/codes.d.ts +424 -0
- package/dist/cjs/exceptions/types/codes.js +792 -0
- package/dist/cjs/exceptions/types/codes.js.map +1 -0
- package/dist/cjs/exceptions/types/context.d.ts +85 -0
- package/dist/cjs/exceptions/types/context.js +24 -0
- package/dist/cjs/exceptions/types/context.js.map +1 -0
- package/dist/cjs/exceptions/types/index.d.ts +3 -0
- package/dist/cjs/exceptions/types/index.js +20 -0
- package/dist/cjs/exceptions/types/index.js.map +1 -0
- package/dist/cjs/exceptions/types/modules.d.ts +59 -0
- package/dist/cjs/exceptions/types/modules.js +67 -0
- package/dist/cjs/exceptions/types/modules.js.map +1 -0
- package/dist/cjs/exceptions/utils/grpc.d.ts +3 -0
- package/dist/cjs/exceptions/utils/grpc.js +41 -0
- package/dist/cjs/exceptions/utils/grpc.js.map +1 -0
- package/dist/cjs/exceptions/utils/helpers.d.ts +1 -0
- package/dist/cjs/exceptions/utils/helpers.js +25 -0
- package/dist/cjs/exceptions/utils/helpers.js.map +1 -0
- package/dist/cjs/exceptions/utils/maps.d.ts +13 -0
- package/dist/cjs/exceptions/utils/maps.js +133 -0
- package/dist/cjs/exceptions/utils/maps.js.map +1 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +20 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/types.d.ts +2 -0
- package/dist/cjs/types.js +3 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/cjs/utils.d.ts +8 -0
- package/dist/cjs/utils.js +48 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/esm/exceptions/base.d.ts +76 -0
- package/dist/esm/exceptions/base.js +172 -0
- package/dist/esm/exceptions/base.js.map +1 -0
- package/dist/esm/exceptions/exceptions/BitGetException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/BitGetException.js +20 -0
- package/dist/esm/exceptions/exceptions/BitGetException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/CosmosWalletException.js +13 -0
- package/dist/esm/exceptions/exceptions/CosmosWalletException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/GeneralException.d.ts +5 -0
- package/dist/esm/exceptions/exceptions/GeneralException.js +8 -0
- package/dist/esm/exceptions/exceptions/GeneralException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js +18 -0
- package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +10 -0
- package/dist/esm/exceptions/exceptions/HttpRequestException.js +18 -0
- package/dist/esm/exceptions/exceptions/HttpRequestException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +37 -0
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/LedgerException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/LedgerException.js +37 -0
- package/dist/esm/exceptions/exceptions/LedgerException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/MetamaskException.js +20 -0
- package/dist/esm/exceptions/exceptions/MetamaskException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/OkxWalletException.js +20 -0
- package/dist/esm/exceptions/exceptions/OkxWalletException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/TransactionException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/TransactionException.js +23 -0
- package/dist/esm/exceptions/exceptions/TransactionException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/TrezorException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/TrezorException.js +13 -0
- package/dist/esm/exceptions/exceptions/TrezorException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/TrustWalletException.js +22 -0
- package/dist/esm/exceptions/exceptions/TrustWalletException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/WalletException.d.ts +5 -0
- package/dist/esm/exceptions/exceptions/WalletException.js +8 -0
- package/dist/esm/exceptions/exceptions/WalletException.js.map +1 -0
- package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +7 -0
- package/dist/esm/exceptions/exceptions/Web3Exception.js +13 -0
- package/dist/esm/exceptions/exceptions/Web3Exception.js.map +1 -0
- package/dist/esm/exceptions/exceptions/index.d.ts +15 -0
- package/dist/esm/exceptions/exceptions/index.js +16 -0
- package/dist/esm/exceptions/exceptions/index.js.map +1 -0
- package/dist/esm/exceptions/index.d.ts +2 -0
- package/dist/esm/exceptions/index.js +3 -0
- package/dist/esm/exceptions/index.js.map +1 -0
- package/dist/esm/exceptions/messages.d.ts +12 -0
- package/dist/esm/exceptions/messages.js +1598 -0
- package/dist/esm/exceptions/messages.js.map +1 -0
- package/dist/esm/exceptions/types/codes.d.ts +424 -0
- package/dist/esm/exceptions/types/codes.js +788 -0
- package/dist/esm/exceptions/types/codes.js.map +1 -0
- package/dist/esm/exceptions/types/context.d.ts +85 -0
- package/dist/esm/exceptions/types/context.js +21 -0
- package/dist/esm/exceptions/types/context.js.map +1 -0
- package/dist/esm/exceptions/types/index.d.ts +3 -0
- package/dist/esm/exceptions/types/index.js +4 -0
- package/dist/esm/exceptions/types/index.js.map +1 -0
- package/dist/esm/exceptions/types/modules.d.ts +59 -0
- package/dist/esm/exceptions/types/modules.js +64 -0
- package/dist/esm/exceptions/types/modules.js.map +1 -0
- package/dist/esm/exceptions/utils/grpc.d.ts +3 -0
- package/dist/esm/exceptions/utils/grpc.js +4 -0
- package/dist/esm/exceptions/utils/grpc.js.map +1 -0
- package/dist/esm/exceptions/utils/helpers.d.ts +1 -0
- package/dist/esm/exceptions/utils/helpers.js +21 -0
- package/dist/esm/exceptions/utils/helpers.js.map +1 -0
- package/dist/esm/exceptions/utils/maps.d.ts +13 -0
- package/dist/esm/exceptions/utils/maps.js +126 -0
- package/dist/esm/exceptions/utils/maps.js.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/types.d.ts +2 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/utils.d.ts +8 -0
- package/dist/esm/utils.js +43 -0
- package/dist/esm/utils.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ConcreteException } from '../base.js';
|
|
2
|
+
import { ErrorType } from '../types/index.js';
|
|
3
|
+
import { mapFailedTransactionMessage, parseErrorMessage } from '../utils/maps.js';
|
|
4
|
+
export class TransactionException extends ConcreteException {
|
|
5
|
+
static errorClass = 'TransactionException';
|
|
6
|
+
constructor(error, context) {
|
|
7
|
+
super(error, context);
|
|
8
|
+
this.type = ErrorType.ChainError;
|
|
9
|
+
}
|
|
10
|
+
parse() {
|
|
11
|
+
const { message, context, contextModule, contextCode } = this;
|
|
12
|
+
const { code, message: parsedMessage, contextModule: parsedContextModule, } = mapFailedTransactionMessage(message, { contextCode, contextModule });
|
|
13
|
+
this.setContext(context || 'Unknown');
|
|
14
|
+
this.setMessage(parsedMessage);
|
|
15
|
+
this.setContextCode(code);
|
|
16
|
+
this.setOriginalMessage(parseErrorMessage(message));
|
|
17
|
+
if (parsedContextModule) {
|
|
18
|
+
this.setContextModule(parsedContextModule);
|
|
19
|
+
}
|
|
20
|
+
this.setName(TransactionException.errorClass);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=TransactionException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TransactionException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAgB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEjF,MAAM,OAAO,oBAAqB,SAAQ,iBAAiB;IAClD,MAAM,CAAC,UAAU,GAAW,sBAAsB,CAAA;IAEzD,YAAY,KAAY,EAAE,OAAsB;QAC9C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAErB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,UAAU,CAAA;IAClC,CAAC;IAEM,KAAK;QACV,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,IAAI,CAAA;QAE7D,MAAM,EACJ,IAAI,EACJ,OAAO,EAAE,aAAa,EACtB,aAAa,EAAE,mBAAmB,GACnC,GAAG,2BAA2B,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC,CAAA;QAExE,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,SAAS,CAAC,CAAA;QACrC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;QAC9B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;QACzB,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAA;QAEnD,IAAI,mBAAmB,EAAE,CAAC;YACxB,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAA;QAC5C,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAC/C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConcreteException } from '../base.js';
|
|
2
|
+
import { ErrorContext } from '../types/index.js';
|
|
3
|
+
export declare class TrezorException extends ConcreteException {
|
|
4
|
+
static errorClass: string;
|
|
5
|
+
constructor(error: Error, context?: ErrorContext);
|
|
6
|
+
parse(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConcreteException } from '../base.js';
|
|
2
|
+
import { ErrorType } from '../types/index.js';
|
|
3
|
+
export class TrezorException extends ConcreteException {
|
|
4
|
+
static errorClass = 'TrezorException';
|
|
5
|
+
constructor(error, context) {
|
|
6
|
+
super(error, context);
|
|
7
|
+
this.type = ErrorType.WalletError;
|
|
8
|
+
}
|
|
9
|
+
parse() {
|
|
10
|
+
this.setName(TrezorException.errorClass);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=TrezorException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrezorException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TrezorException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAgB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE3D,MAAM,OAAO,eAAgB,SAAQ,iBAAiB;IAC7C,MAAM,CAAC,UAAU,GAAW,iBAAiB,CAAA;IAEpD,YAAY,KAAY,EAAE,OAAsB;QAC9C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAErB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,WAAW,CAAA;IACnC,CAAC;IAEM,KAAK;QACV,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAA;IAC1C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConcreteException } from '../base.js';
|
|
2
|
+
import { ErrorContext } from '../types/index.js';
|
|
3
|
+
export declare class TrustWalletException extends ConcreteException {
|
|
4
|
+
static errorClass: string;
|
|
5
|
+
constructor(error: Error, context?: ErrorContext);
|
|
6
|
+
parse(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ConcreteException } from '../base.js';
|
|
2
|
+
import { ErrorType } from '../types/index.js';
|
|
3
|
+
import { mapMetamaskMessage } from '../utils/maps.js';
|
|
4
|
+
const removeTrustWalletFromErrorString = (message) => message
|
|
5
|
+
.replaceAll('TrustWallet', '')
|
|
6
|
+
.replaceAll('Trust Wallet', '')
|
|
7
|
+
.replaceAll('Trustwallet', '')
|
|
8
|
+
.replaceAll('TrustWallet:', '')
|
|
9
|
+
.replaceAll('Trust Wallet:', '');
|
|
10
|
+
export class TrustWalletException extends ConcreteException {
|
|
11
|
+
static errorClass = 'TrustWalletException';
|
|
12
|
+
constructor(error, context) {
|
|
13
|
+
super(error, context);
|
|
14
|
+
this.type = ErrorType.WalletError;
|
|
15
|
+
}
|
|
16
|
+
parse() {
|
|
17
|
+
const { message } = this;
|
|
18
|
+
this.setMessage(mapMetamaskMessage(removeTrustWalletFromErrorString(message)));
|
|
19
|
+
this.setName(TrustWalletException.errorClass);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=TrustWalletException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrustWalletException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TrustWalletException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAgB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAErD,MAAM,gCAAgC,GAAG,CAAC,OAAe,EAAU,EAAE,CACnE,OAAO;KACJ,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC;KAC7B,UAAU,CAAC,cAAc,EAAE,EAAE,CAAC;KAC9B,UAAU,CAAC,aAAa,EAAE,EAAE,CAAC;KAC7B,UAAU,CAAC,cAAc,EAAE,EAAE,CAAC;KAC9B,UAAU,CAAC,eAAe,EAAE,EAAE,CAAC,CAAA;AAEpC,MAAM,OAAO,oBAAqB,SAAQ,iBAAiB;IAClD,MAAM,CAAC,UAAU,GAAW,sBAAsB,CAAA;IAEzD,YAAY,KAAY,EAAE,OAAsB;QAC9C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAErB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,WAAW,CAAA;IACnC,CAAC;IAEM,KAAK;QACV,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QAExB,IAAI,CAAC,UAAU,CACb,kBAAkB,CAAC,gCAAgC,CAAC,OAAO,CAAC,CAAC,CAC9D,CAAA;QAED,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/WalletException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,OAAO,eAAgB,SAAQ,iBAAiB;IAC7C,MAAM,CAAC,UAAU,GAAW,iBAAiB,CAAA;IAE7C,KAAK;QACV,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAA;IAC1C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConcreteException } from '../base.js';
|
|
2
|
+
import { ErrorType } from '../types/index.js';
|
|
3
|
+
export class Web3Exception extends ConcreteException {
|
|
4
|
+
static errorClass = 'Web3Exception';
|
|
5
|
+
constructor(error, context) {
|
|
6
|
+
super(error, context);
|
|
7
|
+
this.type = ErrorType.Web3;
|
|
8
|
+
}
|
|
9
|
+
parse() {
|
|
10
|
+
this.setName(Web3Exception.errorClass);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=Web3Exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Web3Exception.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/Web3Exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAgB,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE3D,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IAC3C,MAAM,CAAC,UAAU,GAAW,eAAe,CAAA;IAElD,YAAY,KAAY,EAAE,OAAsB;QAC9C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAErB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAA;IAC5B,CAAC;IAEM,KAAK;QACV,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;IACxC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GrpcUnaryRequestException } from './GrpcUnaryRequestException.js';
|
|
2
|
+
import { HttpRequestException } from './HttpRequestException.js';
|
|
3
|
+
import { Web3Exception } from './Web3Exception.js';
|
|
4
|
+
import { GeneralException } from './GeneralException.js';
|
|
5
|
+
import { LedgerException } from './LedgerException.js';
|
|
6
|
+
import { LedgerCosmosException } from './LedgerCosmosException.js';
|
|
7
|
+
import { MetamaskException } from './MetamaskException.js';
|
|
8
|
+
import { TrustWalletException } from './TrustWalletException.js';
|
|
9
|
+
import { OkxWalletException } from './OkxWalletException.js';
|
|
10
|
+
import { TrezorException } from './TrezorException.js';
|
|
11
|
+
import { CosmosWalletException } from './CosmosWalletException.js';
|
|
12
|
+
import { TransactionException } from './TransactionException.js';
|
|
13
|
+
import { WalletException } from './WalletException.js';
|
|
14
|
+
import { BitGetException } from './BitGetException.js';
|
|
15
|
+
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GrpcUnaryRequestException } from './GrpcUnaryRequestException.js';
|
|
2
|
+
import { HttpRequestException } from './HttpRequestException.js';
|
|
3
|
+
import { Web3Exception } from './Web3Exception.js';
|
|
4
|
+
import { GeneralException } from './GeneralException.js';
|
|
5
|
+
import { LedgerException } from './LedgerException.js';
|
|
6
|
+
import { LedgerCosmosException } from './LedgerCosmosException.js';
|
|
7
|
+
import { MetamaskException } from './MetamaskException.js';
|
|
8
|
+
import { TrustWalletException } from './TrustWalletException.js';
|
|
9
|
+
import { OkxWalletException } from './OkxWalletException.js';
|
|
10
|
+
import { TrezorException } from './TrezorException.js';
|
|
11
|
+
import { CosmosWalletException } from './CosmosWalletException.js';
|
|
12
|
+
import { TransactionException } from './TransactionException.js';
|
|
13
|
+
import { WalletException } from './WalletException.js';
|
|
14
|
+
import { BitGetException } from './BitGetException.js';
|
|
15
|
+
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, };
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,GAC1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ErrorContextCode, TransactionChainErrorModule } from './types/index.js';
|
|
2
|
+
export declare const chainModuleCodeErrorMessagesMap: Record<string, Record<number, string>>;
|
|
3
|
+
/**
|
|
4
|
+
* **Legacy** but needed for error messages from broadcasting transactions
|
|
5
|
+
* where we don't control the response and only have the message
|
|
6
|
+
* i.e Keplr, Leap, etc
|
|
7
|
+
*/
|
|
8
|
+
export declare const chainErrorMessagesMap: Record<string, {
|
|
9
|
+
message: string;
|
|
10
|
+
code: ErrorContextCode;
|
|
11
|
+
module: TransactionChainErrorModule;
|
|
12
|
+
}>;
|