@injectivelabs/exceptions 1.14.17-beta.2 → 1.14.18
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 +1 -1
- package/dist/cjs/exceptions/base.d.ts.map +1 -1
- package/dist/cjs/exceptions/base.js +7 -7
- package/dist/cjs/exceptions/base.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/BitGetException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/BitGetException.js +6 -6
- package/dist/cjs/exceptions/exceptions/BitGetException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +4 -4
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/GeneralException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/GeneralException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/GeneralException.js +2 -2
- package/dist/cjs/exceptions/exceptions/GeneralException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js +5 -5
- package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/HttpRequestException.js +7 -7
- package/dist/cjs/exceptions/exceptions/HttpRequestException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +6 -6
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/LedgerException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/LedgerException.js +6 -6
- package/dist/cjs/exceptions/exceptions/LedgerException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/MetamaskException.js +6 -6
- package/dist/cjs/exceptions/exceptions/MetamaskException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/OkxWalletException.js +6 -6
- package/dist/cjs/exceptions/exceptions/OkxWalletException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/TransactionException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/TransactionException.js +7 -7
- package/dist/cjs/exceptions/exceptions/TransactionException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/TrezorException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/TrezorException.js +4 -4
- package/dist/cjs/exceptions/exceptions/TrezorException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/TrustWalletException.js +6 -6
- package/dist/cjs/exceptions/exceptions/TrustWalletException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/WalletException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/WalletException.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/WalletException.js +2 -2
- package/dist/cjs/exceptions/exceptions/WalletException.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +2 -2
- package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/Web3Exception.js +4 -4
- package/dist/cjs/exceptions/exceptions/Web3Exception.js.map +1 -1
- package/dist/cjs/exceptions/exceptions/index.d.ts +14 -14
- package/dist/cjs/exceptions/exceptions/index.d.ts.map +1 -1
- package/dist/cjs/exceptions/exceptions/index.js +28 -28
- package/dist/cjs/exceptions/exceptions/index.js.map +1 -1
- package/dist/cjs/exceptions/index.d.ts +2 -2
- package/dist/cjs/exceptions/index.d.ts.map +1 -1
- package/dist/cjs/exceptions/index.js +2 -2
- package/dist/cjs/exceptions/index.js.map +1 -1
- package/dist/cjs/exceptions/messages.d.ts +1 -1
- package/dist/cjs/exceptions/messages.d.ts.map +1 -1
- package/dist/cjs/exceptions/messages.js +836 -836
- package/dist/cjs/exceptions/messages.js.map +1 -1
- package/dist/cjs/exceptions/types/context.d.ts +1 -1
- package/dist/cjs/exceptions/types/context.d.ts.map +1 -1
- package/dist/cjs/exceptions/types/index.d.ts +3 -3
- package/dist/cjs/exceptions/types/index.d.ts.map +1 -1
- package/dist/cjs/exceptions/types/index.js +3 -3
- package/dist/cjs/exceptions/types/index.js.map +1 -1
- package/dist/cjs/exceptions/utils/maps.d.ts +1 -1
- package/dist/cjs/exceptions/utils/maps.d.ts.map +1 -1
- package/dist/cjs/exceptions/utils/maps.js +6 -6
- package/dist/cjs/exceptions/utils/maps.js.map +1 -1
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types.d.ts +1 -1
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/utils.d.ts +2 -2
- package/dist/cjs/utils.d.ts.map +1 -1
- package/dist/esm/exceptions/base.d.ts +1 -1
- package/dist/esm/exceptions/base.d.ts.map +1 -1
- package/dist/esm/exceptions/base.js +1 -1
- package/dist/esm/exceptions/base.js.map +1 -1
- package/dist/esm/exceptions/exceptions/BitGetException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/BitGetException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/BitGetException.js +3 -3
- package/dist/esm/exceptions/exceptions/BitGetException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/CosmosWalletException.js +2 -2
- package/dist/esm/exceptions/exceptions/CosmosWalletException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/GeneralException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/GeneralException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/GeneralException.js +1 -1
- package/dist/esm/exceptions/exceptions/GeneralException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js +2 -2
- package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/HttpRequestException.js +2 -2
- package/dist/esm/exceptions/exceptions/HttpRequestException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +3 -3
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/LedgerException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/LedgerException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/LedgerException.js +3 -3
- package/dist/esm/exceptions/exceptions/LedgerException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/MetamaskException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/MetamaskException.js +3 -3
- package/dist/esm/exceptions/exceptions/MetamaskException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/OkxWalletException.js +3 -3
- package/dist/esm/exceptions/exceptions/OkxWalletException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/TransactionException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/TransactionException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/TransactionException.js +3 -3
- package/dist/esm/exceptions/exceptions/TransactionException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/TrezorException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/TrezorException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/TrezorException.js +2 -2
- package/dist/esm/exceptions/exceptions/TrezorException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/TrustWalletException.js +3 -3
- package/dist/esm/exceptions/exceptions/TrustWalletException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/WalletException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/WalletException.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/WalletException.js +1 -1
- package/dist/esm/exceptions/exceptions/WalletException.js.map +1 -1
- package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +2 -2
- package/dist/esm/exceptions/exceptions/Web3Exception.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/Web3Exception.js +2 -2
- package/dist/esm/exceptions/exceptions/Web3Exception.js.map +1 -1
- package/dist/esm/exceptions/exceptions/index.d.ts +14 -14
- package/dist/esm/exceptions/exceptions/index.d.ts.map +1 -1
- package/dist/esm/exceptions/exceptions/index.js +14 -14
- package/dist/esm/exceptions/exceptions/index.js.map +1 -1
- package/dist/esm/exceptions/index.d.ts +2 -2
- package/dist/esm/exceptions/index.d.ts.map +1 -1
- package/dist/esm/exceptions/index.js +2 -2
- package/dist/esm/exceptions/index.js.map +1 -1
- package/dist/esm/exceptions/messages.d.ts +1 -1
- package/dist/esm/exceptions/messages.d.ts.map +1 -1
- package/dist/esm/exceptions/messages.js +1 -1
- package/dist/esm/exceptions/messages.js.map +1 -1
- package/dist/esm/exceptions/types/context.d.ts +1 -1
- package/dist/esm/exceptions/types/context.d.ts.map +1 -1
- package/dist/esm/exceptions/types/index.d.ts +3 -3
- package/dist/esm/exceptions/types/index.d.ts.map +1 -1
- package/dist/esm/exceptions/types/index.js +3 -3
- package/dist/esm/exceptions/types/index.js.map +1 -1
- package/dist/esm/exceptions/utils/maps.d.ts +1 -1
- package/dist/esm/exceptions/utils/maps.d.ts.map +1 -1
- package/dist/esm/exceptions/utils/maps.js +2 -2
- package/dist/esm/exceptions/utils/maps.js.map +1 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/utils.d.ts +2 -2
- package/dist/esm/utils.d.ts.map +1 -1
- package/package.json +6 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrezorException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TrezorException.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"TrezorException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TrezorException.ts"],"names":[],"mappings":";;;AAAA,wCAA8C;AAC9C,gDAA2D;AAE3D,MAAa,eAAgB,SAAQ,2BAAiB;IAGpD,YAAY,KAAY,EAAE,OAAsB;QAC9C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAErB,IAAI,CAAC,IAAI,GAAG,oBAAS,CAAC,WAAW,CAAA;IACnC,CAAC;IAEM,KAAK;QACV,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAA;IAC1C,CAAC;;AAXH,0CAYC;AAXe,0BAAU,GAAW,iBAAiB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConcreteException } from '../base';
|
|
2
|
-
import { ErrorContext } from '../types';
|
|
1
|
+
import { ConcreteException } from '../base.js';
|
|
2
|
+
import { ErrorContext } from '../types/index.js';
|
|
3
3
|
export declare class TrustWalletException extends ConcreteException {
|
|
4
4
|
static errorClass: string;
|
|
5
5
|
constructor(error: Error, context?: ErrorContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrustWalletException.d.ts","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TrustWalletException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TrustWalletException.d.ts","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TrustWalletException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAa,MAAM,mBAAmB,CAAA;AAW3D,qBAAa,oBAAqB,SAAQ,iBAAiB;IACzD,OAAc,UAAU,EAAE,MAAM,CAAyB;gBAE7C,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,YAAY;IAMzC,KAAK,IAAI,IAAI;CASrB"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TrustWalletException = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const base_js_1 = require("../base.js");
|
|
5
|
+
const index_js_1 = require("../types/index.js");
|
|
6
|
+
const maps_js_1 = require("../utils/maps.js");
|
|
7
7
|
const removeTrustWalletFromErrorString = (message) => message
|
|
8
8
|
.replaceAll('TrustWallet', '')
|
|
9
9
|
.replaceAll('Trust Wallet', '')
|
|
10
10
|
.replaceAll('Trustwallet', '')
|
|
11
11
|
.replaceAll('TrustWallet:', '')
|
|
12
12
|
.replaceAll('Trust Wallet:', '');
|
|
13
|
-
class TrustWalletException extends
|
|
13
|
+
class TrustWalletException extends base_js_1.ConcreteException {
|
|
14
14
|
constructor(error, context) {
|
|
15
15
|
super(error, context);
|
|
16
|
-
this.type =
|
|
16
|
+
this.type = index_js_1.ErrorType.WalletError;
|
|
17
17
|
}
|
|
18
18
|
parse() {
|
|
19
19
|
const { message } = this;
|
|
20
|
-
this.setMessage((0,
|
|
20
|
+
this.setMessage((0, maps_js_1.mapMetamaskMessage)(removeTrustWalletFromErrorString(message)));
|
|
21
21
|
this.setName(TrustWalletException.errorClass);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrustWalletException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TrustWalletException.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"TrustWalletException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/TrustWalletException.ts"],"names":[],"mappings":";;;AAAA,wCAA8C;AAC9C,gDAA2D;AAC3D,8CAAqD;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,MAAa,oBAAqB,SAAQ,2BAAiB;IAGzD,YAAY,KAAY,EAAE,OAAsB;QAC9C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAErB,IAAI,CAAC,IAAI,GAAG,oBAAS,CAAC,WAAW,CAAA;IACnC,CAAC;IAEM,KAAK;QACV,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QAExB,IAAI,CAAC,UAAU,CACb,IAAA,4BAAkB,EAAC,gCAAgC,CAAC,OAAO,CAAC,CAAC,CAC9D,CAAA;QAED,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAC/C,CAAC;;AAjBH,oDAkBC;AAjBe,+BAAU,GAAW,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletException.d.ts","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/WalletException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WalletException.d.ts","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/WalletException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,qBAAa,eAAgB,SAAQ,iBAAiB;IACpD,OAAc,UAAU,EAAE,MAAM,CAAoB;IAE7C,KAAK,IAAI,IAAI;CAGrB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WalletException = void 0;
|
|
4
|
-
const
|
|
5
|
-
class WalletException extends
|
|
4
|
+
const base_js_1 = require("../base.js");
|
|
5
|
+
class WalletException extends base_js_1.ConcreteException {
|
|
6
6
|
parse() {
|
|
7
7
|
this.setName(WalletException.errorClass);
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/WalletException.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"WalletException.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/WalletException.ts"],"names":[],"mappings":";;;AAAA,wCAA8C;AAE9C,MAAa,eAAgB,SAAQ,2BAAiB;IAG7C,KAAK;QACV,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAA;IAC1C,CAAC;;AALH,0CAMC;AALe,0BAAU,GAAW,iBAAiB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConcreteException } from '../base';
|
|
2
|
-
import { ErrorContext } from '../types';
|
|
1
|
+
import { ConcreteException } from '../base.js';
|
|
2
|
+
import { ErrorContext } from '../types/index.js';
|
|
3
3
|
export declare class Web3Exception extends ConcreteException {
|
|
4
4
|
static errorClass: string;
|
|
5
5
|
constructor(error: Error, context?: ErrorContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Web3Exception.d.ts","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/Web3Exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Web3Exception.d.ts","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/Web3Exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAa,MAAM,mBAAmB,CAAA;AAE3D,qBAAa,aAAc,SAAQ,iBAAiB;IAClD,OAAc,UAAU,EAAE,MAAM,CAAkB;gBAEtC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,YAAY;IAMzC,KAAK,IAAI,IAAI;CAGrB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Web3Exception = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
class Web3Exception extends
|
|
4
|
+
const base_js_1 = require("../base.js");
|
|
5
|
+
const index_js_1 = require("../types/index.js");
|
|
6
|
+
class Web3Exception extends base_js_1.ConcreteException {
|
|
7
7
|
constructor(error, context) {
|
|
8
8
|
super(error, context);
|
|
9
|
-
this.type =
|
|
9
|
+
this.type = index_js_1.ErrorType.Web3;
|
|
10
10
|
}
|
|
11
11
|
parse() {
|
|
12
12
|
this.setName(Web3Exception.errorClass);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Web3Exception.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/Web3Exception.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Web3Exception.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/Web3Exception.ts"],"names":[],"mappings":";;;AAAA,wCAA8C;AAC9C,gDAA2D;AAE3D,MAAa,aAAc,SAAQ,2BAAiB;IAGlD,YAAY,KAAY,EAAE,OAAsB;QAC9C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAErB,IAAI,CAAC,IAAI,GAAG,oBAAS,CAAC,IAAI,CAAA;IAC5B,CAAC;IAEM,KAAK;QACV,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;IACxC,CAAC;;AAXH,sCAYC;AAXe,wBAAU,GAAW,eAAe,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { GrpcUnaryRequestException } from './GrpcUnaryRequestException';
|
|
2
|
-
import { HttpRequestException } from './HttpRequestException';
|
|
3
|
-
import { Web3Exception } from './Web3Exception';
|
|
4
|
-
import { GeneralException } from './GeneralException';
|
|
5
|
-
import { LedgerException } from './LedgerException';
|
|
6
|
-
import { LedgerCosmosException } from './LedgerCosmosException';
|
|
7
|
-
import { MetamaskException } from './MetamaskException';
|
|
8
|
-
import { TrustWalletException } from './TrustWalletException';
|
|
9
|
-
import { OkxWalletException } from './OkxWalletException';
|
|
10
|
-
import { TrezorException } from './TrezorException';
|
|
11
|
-
import { CosmosWalletException } from './CosmosWalletException';
|
|
12
|
-
import { TransactionException } from './TransactionException';
|
|
13
|
-
import { WalletException } from './WalletException';
|
|
14
|
-
import { BitGetException } from './BitGetException';
|
|
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
15
|
export { Web3Exception, LedgerException, TrezorException, WalletException, GeneralException, BitGetException, MetamaskException, TransactionException, TrustWalletException, OkxWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, GrpcUnaryRequestException, };
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","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"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GrpcUnaryRequestException = exports.CosmosWalletException = exports.LedgerCosmosException = exports.HttpRequestException = exports.OkxWalletException = exports.TrustWalletException = exports.TransactionException = exports.MetamaskException = exports.BitGetException = exports.GeneralException = exports.WalletException = exports.TrezorException = exports.LedgerException = exports.Web3Exception = void 0;
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "GrpcUnaryRequestException", { enumerable: true, get: function () { return
|
|
6
|
-
const
|
|
7
|
-
Object.defineProperty(exports, "HttpRequestException", { enumerable: true, get: function () { return
|
|
8
|
-
const
|
|
9
|
-
Object.defineProperty(exports, "Web3Exception", { enumerable: true, get: function () { return
|
|
10
|
-
const
|
|
11
|
-
Object.defineProperty(exports, "GeneralException", { enumerable: true, get: function () { return
|
|
12
|
-
const
|
|
13
|
-
Object.defineProperty(exports, "LedgerException", { enumerable: true, get: function () { return
|
|
14
|
-
const
|
|
15
|
-
Object.defineProperty(exports, "LedgerCosmosException", { enumerable: true, get: function () { return
|
|
16
|
-
const
|
|
17
|
-
Object.defineProperty(exports, "MetamaskException", { enumerable: true, get: function () { return
|
|
18
|
-
const
|
|
19
|
-
Object.defineProperty(exports, "TrustWalletException", { enumerable: true, get: function () { return
|
|
20
|
-
const
|
|
21
|
-
Object.defineProperty(exports, "OkxWalletException", { enumerable: true, get: function () { return
|
|
22
|
-
const
|
|
23
|
-
Object.defineProperty(exports, "TrezorException", { enumerable: true, get: function () { return
|
|
24
|
-
const
|
|
25
|
-
Object.defineProperty(exports, "CosmosWalletException", { enumerable: true, get: function () { return
|
|
26
|
-
const
|
|
27
|
-
Object.defineProperty(exports, "TransactionException", { enumerable: true, get: function () { return
|
|
28
|
-
const
|
|
29
|
-
Object.defineProperty(exports, "WalletException", { enumerable: true, get: function () { return
|
|
30
|
-
const
|
|
31
|
-
Object.defineProperty(exports, "BitGetException", { enumerable: true, get: function () { return
|
|
4
|
+
const GrpcUnaryRequestException_js_1 = require("./GrpcUnaryRequestException.js");
|
|
5
|
+
Object.defineProperty(exports, "GrpcUnaryRequestException", { enumerable: true, get: function () { return GrpcUnaryRequestException_js_1.GrpcUnaryRequestException; } });
|
|
6
|
+
const HttpRequestException_js_1 = require("./HttpRequestException.js");
|
|
7
|
+
Object.defineProperty(exports, "HttpRequestException", { enumerable: true, get: function () { return HttpRequestException_js_1.HttpRequestException; } });
|
|
8
|
+
const Web3Exception_js_1 = require("./Web3Exception.js");
|
|
9
|
+
Object.defineProperty(exports, "Web3Exception", { enumerable: true, get: function () { return Web3Exception_js_1.Web3Exception; } });
|
|
10
|
+
const GeneralException_js_1 = require("./GeneralException.js");
|
|
11
|
+
Object.defineProperty(exports, "GeneralException", { enumerable: true, get: function () { return GeneralException_js_1.GeneralException; } });
|
|
12
|
+
const LedgerException_js_1 = require("./LedgerException.js");
|
|
13
|
+
Object.defineProperty(exports, "LedgerException", { enumerable: true, get: function () { return LedgerException_js_1.LedgerException; } });
|
|
14
|
+
const LedgerCosmosException_js_1 = require("./LedgerCosmosException.js");
|
|
15
|
+
Object.defineProperty(exports, "LedgerCosmosException", { enumerable: true, get: function () { return LedgerCosmosException_js_1.LedgerCosmosException; } });
|
|
16
|
+
const MetamaskException_js_1 = require("./MetamaskException.js");
|
|
17
|
+
Object.defineProperty(exports, "MetamaskException", { enumerable: true, get: function () { return MetamaskException_js_1.MetamaskException; } });
|
|
18
|
+
const TrustWalletException_js_1 = require("./TrustWalletException.js");
|
|
19
|
+
Object.defineProperty(exports, "TrustWalletException", { enumerable: true, get: function () { return TrustWalletException_js_1.TrustWalletException; } });
|
|
20
|
+
const OkxWalletException_js_1 = require("./OkxWalletException.js");
|
|
21
|
+
Object.defineProperty(exports, "OkxWalletException", { enumerable: true, get: function () { return OkxWalletException_js_1.OkxWalletException; } });
|
|
22
|
+
const TrezorException_js_1 = require("./TrezorException.js");
|
|
23
|
+
Object.defineProperty(exports, "TrezorException", { enumerable: true, get: function () { return TrezorException_js_1.TrezorException; } });
|
|
24
|
+
const CosmosWalletException_js_1 = require("./CosmosWalletException.js");
|
|
25
|
+
Object.defineProperty(exports, "CosmosWalletException", { enumerable: true, get: function () { return CosmosWalletException_js_1.CosmosWalletException; } });
|
|
26
|
+
const TransactionException_js_1 = require("./TransactionException.js");
|
|
27
|
+
Object.defineProperty(exports, "TransactionException", { enumerable: true, get: function () { return TransactionException_js_1.TransactionException; } });
|
|
28
|
+
const WalletException_js_1 = require("./WalletException.js");
|
|
29
|
+
Object.defineProperty(exports, "WalletException", { enumerable: true, get: function () { return WalletException_js_1.WalletException; } });
|
|
30
|
+
const BitGetException_js_1 = require("./BitGetException.js");
|
|
31
|
+
Object.defineProperty(exports, "BitGetException", { enumerable: true, get: function () { return BitGetException_js_1.BitGetException; } });
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/exceptions/exceptions/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AA6BxE,0GA7BO,wDAAyB,OA6BP;AA5B3B,uEAAgE;AAyB9D,qGAzBO,8CAAoB,OAyBP;AAxBtB,yDAAkD;AAchD,8FAdO,gCAAa,OAcP;AAbf,+DAAwD;AAiBtD,iGAjBO,sCAAgB,OAiBP;AAhBlB,6DAAsD;AAapD,gGAbO,oCAAe,OAaP;AAZjB,yEAAkE;AAsBhE,sGAtBO,gDAAqB,OAsBP;AArBvB,iEAA0D;AAgBxD,kGAhBO,wCAAiB,OAgBP;AAfnB,uEAAgE;AAiB9D,qGAjBO,8CAAoB,OAiBP;AAhBtB,mEAA4D;AAiB1D,mGAjBO,0CAAkB,OAiBP;AAhBpB,6DAAsD;AASpD,gGATO,oCAAe,OASP;AARjB,yEAAkE;AAkBhE,sGAlBO,gDAAqB,OAkBP;AAjBvB,uEAAgE;AAY9D,qGAZO,8CAAoB,OAYP;AAXtB,6DAAsD;AAOpD,gGAPO,oCAAe,OAOP;AANjB,6DAAsD;AAQpD,gGARO,oCAAe,OAQP"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './exceptions';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './exceptions/index.js';
|
|
2
|
+
export * from './types/index.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./exceptions"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
17
|
+
__exportStar(require("./exceptions/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exceptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAqC;AACrC,mDAAgC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorContextCode, TransactionChainErrorModule } from './types';
|
|
1
|
+
import { ErrorContextCode, TransactionChainErrorModule } from './types/index.js';
|
|
2
2
|
export declare const chainModuleCodeErrorMessagesMap: Record<string, Record<number, string>>;
|
|
3
3
|
/**
|
|
4
4
|
* **Legacy** but needed for error messages from broadcasting transactions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/exceptions/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAehB,2BAA2B,EAE5B,MAAM,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/exceptions/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAehB,2BAA2B,EAE5B,MAAM,kBAAkB,CAAA;AA0kBzB,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAClD,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiBvB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,MAAM,EACN;IACE,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,2BAA2B,CAAA;CACpC,CA64CF,CAAA"}
|