@injectivelabs/exceptions 1.16.38-alpha.4 → 1.16.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/cjs/exceptions/base.d.ts +81 -0
  2. package/dist/cjs/exceptions/base.js +179 -0
  3. package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +7 -0
  4. package/dist/cjs/exceptions/exceptions/BitGetException.js +31 -0
  5. package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +7 -0
  6. package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +16 -0
  7. package/dist/cjs/exceptions/exceptions/GeneralException.d.ts +5 -0
  8. package/dist/cjs/exceptions/exceptions/GeneralException.js +11 -0
  9. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +7 -0
  10. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.js +21 -0
  11. package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +11 -0
  12. package/dist/cjs/exceptions/exceptions/HttpRequestException.js +21 -0
  13. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +7 -0
  14. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +40 -0
  15. package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +7 -0
  16. package/dist/cjs/exceptions/exceptions/LedgerException.js +40 -0
  17. package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +7 -0
  18. package/dist/cjs/exceptions/exceptions/MetamaskException.js +31 -0
  19. package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +7 -0
  20. package/dist/cjs/exceptions/exceptions/OkxWalletException.js +31 -0
  21. package/dist/cjs/exceptions/exceptions/RabbyWalletException.d.ts +7 -0
  22. package/dist/cjs/exceptions/exceptions/RabbyWalletException.js +33 -0
  23. package/dist/cjs/exceptions/exceptions/RainbowWalletException.d.ts +7 -0
  24. package/dist/cjs/exceptions/exceptions/RainbowWalletException.js +31 -0
  25. package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +7 -0
  26. package/dist/cjs/exceptions/exceptions/TransactionException.js +34 -0
  27. package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +7 -0
  28. package/dist/cjs/exceptions/exceptions/TrezorException.js +16 -0
  29. package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +7 -0
  30. package/dist/cjs/exceptions/exceptions/TrustWalletException.js +33 -0
  31. package/dist/cjs/exceptions/exceptions/TurnkeyWalletSessionException.d.ts +5 -0
  32. package/dist/cjs/exceptions/exceptions/TurnkeyWalletSessionException.js +11 -0
  33. package/dist/cjs/exceptions/exceptions/WalletConnectException.d.ts +7 -0
  34. package/dist/cjs/exceptions/exceptions/WalletConnectException.js +31 -0
  35. package/dist/cjs/exceptions/exceptions/WalletException.d.ts +5 -0
  36. package/dist/cjs/exceptions/exceptions/WalletException.js +11 -0
  37. package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +7 -0
  38. package/dist/cjs/exceptions/exceptions/Web3Exception.js +16 -0
  39. package/dist/cjs/exceptions/exceptions/index.d.ts +18 -0
  40. package/dist/cjs/exceptions/exceptions/index.js +37 -0
  41. package/dist/cjs/exceptions/index.d.ts +2 -0
  42. package/dist/cjs/exceptions/index.js +18 -0
  43. package/dist/cjs/exceptions/messages.d.ts +13 -0
  44. package/dist/cjs/exceptions/messages.js +1600 -0
  45. package/dist/cjs/exceptions/types/codes.d.ts +441 -0
  46. package/dist/cjs/exceptions/types/codes.js +774 -0
  47. package/dist/cjs/exceptions/types/context.d.ts +93 -0
  48. package/dist/cjs/exceptions/types/context.js +21 -0
  49. package/dist/cjs/exceptions/types/index.d.ts +3 -0
  50. package/dist/cjs/exceptions/types/index.js +19 -0
  51. package/dist/cjs/exceptions/types/modules.d.ts +67 -0
  52. package/dist/cjs/exceptions/types/modules.js +66 -0
  53. package/dist/cjs/exceptions/utils/grpc.d.ts +3 -0
  54. package/dist/cjs/exceptions/utils/grpc.js +43 -0
  55. package/dist/cjs/exceptions/utils/helpers.d.ts +1 -0
  56. package/dist/cjs/exceptions/utils/helpers.js +24 -0
  57. package/dist/cjs/exceptions/utils/maps.d.ts +13 -0
  58. package/dist/cjs/exceptions/utils/maps.js +127 -0
  59. package/dist/cjs/index.d.ts +3 -0
  60. package/dist/cjs/index.js +18 -0
  61. package/dist/cjs/package.json +2 -2
  62. package/dist/cjs/types.d.ts +2 -0
  63. package/dist/cjs/types.js +2 -0
  64. package/dist/cjs/utils.d.ts +8 -0
  65. package/dist/cjs/utils.js +49 -0
  66. package/dist/esm/exceptions/base.d.ts +81 -0
  67. package/dist/esm/exceptions/base.js +175 -0
  68. package/dist/esm/exceptions/exceptions/BitGetException.d.ts +7 -0
  69. package/dist/esm/exceptions/exceptions/BitGetException.js +27 -0
  70. package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +7 -0
  71. package/dist/esm/exceptions/exceptions/CosmosWalletException.js +12 -0
  72. package/dist/esm/exceptions/exceptions/GeneralException.d.ts +5 -0
  73. package/dist/esm/exceptions/exceptions/GeneralException.js +7 -0
  74. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +7 -0
  75. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.js +17 -0
  76. package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +11 -0
  77. package/dist/esm/exceptions/exceptions/HttpRequestException.js +17 -0
  78. package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +7 -0
  79. package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +36 -0
  80. package/dist/esm/exceptions/exceptions/LedgerException.d.ts +7 -0
  81. package/dist/esm/exceptions/exceptions/LedgerException.js +36 -0
  82. package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +7 -0
  83. package/dist/esm/exceptions/exceptions/MetamaskException.js +27 -0
  84. package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +7 -0
  85. package/dist/esm/exceptions/exceptions/OkxWalletException.js +27 -0
  86. package/dist/esm/exceptions/exceptions/RabbyWalletException.d.ts +7 -0
  87. package/dist/esm/exceptions/exceptions/RabbyWalletException.js +29 -0
  88. package/dist/esm/exceptions/exceptions/RainbowWalletException.d.ts +7 -0
  89. package/dist/esm/exceptions/exceptions/RainbowWalletException.js +27 -0
  90. package/dist/esm/exceptions/exceptions/TransactionException.d.ts +7 -0
  91. package/dist/esm/exceptions/exceptions/TransactionException.js +30 -0
  92. package/dist/esm/exceptions/exceptions/TrezorException.d.ts +7 -0
  93. package/dist/esm/exceptions/exceptions/TrezorException.js +12 -0
  94. package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +7 -0
  95. package/dist/esm/exceptions/exceptions/TrustWalletException.js +29 -0
  96. package/dist/esm/exceptions/exceptions/TurnkeyWalletSessionException.d.ts +5 -0
  97. package/dist/esm/exceptions/exceptions/TurnkeyWalletSessionException.js +7 -0
  98. package/dist/esm/exceptions/exceptions/WalletConnectException.d.ts +7 -0
  99. package/dist/esm/exceptions/exceptions/WalletConnectException.js +27 -0
  100. package/dist/esm/exceptions/exceptions/WalletException.d.ts +5 -0
  101. package/dist/esm/exceptions/exceptions/WalletException.js +7 -0
  102. package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +7 -0
  103. package/dist/esm/exceptions/exceptions/Web3Exception.js +12 -0
  104. package/dist/esm/exceptions/exceptions/index.d.ts +18 -0
  105. package/dist/esm/exceptions/exceptions/index.js +18 -0
  106. package/dist/esm/exceptions/index.d.ts +2 -0
  107. package/dist/esm/exceptions/index.js +2 -0
  108. package/dist/esm/exceptions/messages.d.ts +13 -0
  109. package/dist/esm/exceptions/messages.js +1597 -0
  110. package/dist/esm/exceptions/types/codes.d.ts +441 -0
  111. package/dist/esm/exceptions/types/codes.js +770 -0
  112. package/dist/esm/exceptions/types/context.d.ts +93 -0
  113. package/dist/esm/exceptions/types/context.js +18 -0
  114. package/dist/esm/exceptions/types/index.d.ts +3 -0
  115. package/dist/esm/exceptions/types/index.js +3 -0
  116. package/dist/esm/exceptions/types/modules.d.ts +67 -0
  117. package/dist/esm/exceptions/types/modules.js +63 -0
  118. package/dist/esm/exceptions/utils/grpc.d.ts +3 -0
  119. package/dist/esm/exceptions/utils/grpc.js +6 -0
  120. package/dist/esm/exceptions/utils/helpers.d.ts +1 -0
  121. package/dist/esm/exceptions/utils/helpers.js +20 -0
  122. package/dist/esm/exceptions/utils/maps.d.ts +13 -0
  123. package/dist/esm/exceptions/utils/maps.js +120 -0
  124. package/dist/esm/index.d.ts +3 -826
  125. package/dist/esm/index.js +2 -2712
  126. package/dist/esm/package.json +2 -2
  127. package/dist/esm/types.d.ts +2 -0
  128. package/dist/esm/types.js +1 -0
  129. package/dist/esm/utils.d.ts +8 -0
  130. package/dist/esm/utils.js +44 -0
  131. package/package.json +38 -37
  132. package/dist/cjs/index.cjs +0 -2759
  133. package/dist/cjs/index.d.cts +0 -826
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RainbowWalletException = void 0;
4
+ const index_js_1 = require("../types/index.js");
5
+ const base_js_1 = require("../base.js");
6
+ const maps_js_1 = require("../utils/maps.js");
7
+ const removeMetamaskFromErrorString = (message) => message
8
+ .replaceAll('Rainbow', '')
9
+ .replaceAll('RainBow', '')
10
+ .replaceAll('Rainbow:', '');
11
+ class RainbowWalletException extends base_js_1.ConcreteException {
12
+ static errorClass = 'RainbowWalletException';
13
+ constructor(error, context) {
14
+ super(error, context);
15
+ this.type = index_js_1.ErrorType.WalletError;
16
+ }
17
+ parse() {
18
+ const { message } = this;
19
+ if (message
20
+ .trim()
21
+ .toLowerCase()
22
+ .includes('missing or invalid parameters'.toLowerCase())) {
23
+ this.setMessage('Please make sure you are using Rainbow Wallet');
24
+ }
25
+ else {
26
+ this.setMessage((0, maps_js_1.mapErrorMessage)(removeMetamaskFromErrorString(message)));
27
+ }
28
+ this.setName(RainbowWalletException.errorClass);
29
+ }
30
+ }
31
+ exports.RainbowWalletException = RainbowWalletException;
@@ -0,0 +1,7 @@
1
+ import { ConcreteException } from '../base.js';
2
+ import type { ErrorContext } from '../types/index.js';
3
+ export declare class TransactionException extends ConcreteException {
4
+ static errorClass: string;
5
+ constructor(error: Error, context?: ErrorContext);
6
+ parse(): void;
7
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionException = void 0;
4
+ const index_js_1 = require("../types/index.js");
5
+ const base_js_1 = require("../base.js");
6
+ const maps_js_1 = require("../utils/maps.js");
7
+ class TransactionException extends base_js_1.ConcreteException {
8
+ static errorClass = 'TransactionException';
9
+ constructor(error, context) {
10
+ super(error, context);
11
+ this.type = index_js_1.ErrorType.ChainError;
12
+ }
13
+ parse() {
14
+ const { message, context, contextModule, contextCode } = this;
15
+ // If skipParsing is true, just use the raw message
16
+ if (this.skipParsing) {
17
+ this.setContext(context || 'Unknown');
18
+ this.setMessage(message);
19
+ this.setOriginalMessage(message);
20
+ this.setName(TransactionException.errorClass);
21
+ return;
22
+ }
23
+ const { code, message: parsedMessage, contextModule: parsedContextModule, } = (0, maps_js_1.mapFailedTransactionMessage)(message, { contextCode, contextModule });
24
+ this.setContext(context || 'Unknown');
25
+ this.setMessage(parsedMessage);
26
+ this.setContextCode(code);
27
+ this.setOriginalMessage((0, maps_js_1.parseErrorMessage)(message));
28
+ if (parsedContextModule) {
29
+ this.setContextModule(parsedContextModule);
30
+ }
31
+ this.setName(TransactionException.errorClass);
32
+ }
33
+ }
34
+ exports.TransactionException = TransactionException;
@@ -0,0 +1,7 @@
1
+ import { ConcreteException } from '../base.js';
2
+ import type { 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,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TrezorException = void 0;
4
+ const index_js_1 = require("../types/index.js");
5
+ const base_js_1 = require("../base.js");
6
+ class TrezorException extends base_js_1.ConcreteException {
7
+ static errorClass = 'TrezorException';
8
+ constructor(error, context) {
9
+ super(error, context);
10
+ this.type = index_js_1.ErrorType.WalletError;
11
+ }
12
+ parse() {
13
+ this.setName(TrezorException.errorClass);
14
+ }
15
+ }
16
+ exports.TrezorException = TrezorException;
@@ -0,0 +1,7 @@
1
+ import { ConcreteException } from '../base.js';
2
+ import type { 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,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TrustWalletException = void 0;
4
+ const index_js_1 = require("../types/index.js");
5
+ const base_js_1 = require("../base.js");
6
+ const maps_js_1 = require("../utils/maps.js");
7
+ const removeTrustWalletFromErrorString = (message) => message
8
+ .replaceAll('Trust Wallet', '')
9
+ .replaceAll('TrustWallet', '')
10
+ .replaceAll('Trustwallet', '')
11
+ .replaceAll('TrustWallet:', '')
12
+ .replaceAll('Trust Wallet:', '');
13
+ class TrustWalletException extends base_js_1.ConcreteException {
14
+ static errorClass = 'TrustWalletException';
15
+ constructor(error, context) {
16
+ super(error, context);
17
+ this.type = index_js_1.ErrorType.WalletError;
18
+ }
19
+ parse() {
20
+ const { message } = this;
21
+ if (message
22
+ .trim()
23
+ .toLowerCase()
24
+ .includes('missing or invalid parameters'.toLowerCase())) {
25
+ this.setMessage('Please make sure you are using TrustWallet');
26
+ }
27
+ else {
28
+ this.setMessage((0, maps_js_1.mapErrorMessage)(removeTrustWalletFromErrorString(message)));
29
+ }
30
+ this.setName(TrustWalletException.errorClass);
31
+ }
32
+ }
33
+ exports.TrustWalletException = TrustWalletException;
@@ -0,0 +1,5 @@
1
+ import { ConcreteException } from '../base.js';
2
+ export declare class TurnkeyWalletSessionException extends ConcreteException {
3
+ static errorClass: string;
4
+ parse(): void;
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TurnkeyWalletSessionException = void 0;
4
+ const base_js_1 = require("../base.js");
5
+ class TurnkeyWalletSessionException extends base_js_1.ConcreteException {
6
+ static errorClass = 'TurnkeyWalletSessionException';
7
+ parse() {
8
+ this.setName(TurnkeyWalletSessionException.errorClass);
9
+ }
10
+ }
11
+ exports.TurnkeyWalletSessionException = TurnkeyWalletSessionException;
@@ -0,0 +1,7 @@
1
+ import { ConcreteException } from '../base.js';
2
+ import type { ErrorContext } from '../types/index.js';
3
+ export declare class WalletConnectException extends ConcreteException {
4
+ static errorClass: string;
5
+ constructor(error: Error, context?: ErrorContext);
6
+ parse(): void;
7
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletConnectException = void 0;
4
+ const index_js_1 = require("../types/index.js");
5
+ const base_js_1 = require("../base.js");
6
+ const maps_js_1 = require("../utils/maps.js");
7
+ const removeWalletConnectFromErrorString = (message) => message
8
+ .replaceAll('WalletConnect', '')
9
+ .replaceAll('WalletConnect', '')
10
+ .replaceAll('WalletConnect:', '');
11
+ class WalletConnectException extends base_js_1.ConcreteException {
12
+ static errorClass = 'WalletConnectException';
13
+ constructor(error, context) {
14
+ super(error, context);
15
+ this.type = index_js_1.ErrorType.WalletError;
16
+ }
17
+ parse() {
18
+ const { message } = this;
19
+ if (message
20
+ .trim()
21
+ .toLowerCase()
22
+ .includes('missing or invalid parameters'.toLowerCase())) {
23
+ this.setMessage('Please make sure you are using WalletConnect');
24
+ }
25
+ else {
26
+ this.setMessage((0, maps_js_1.mapErrorMessage)(removeWalletConnectFromErrorString(message)));
27
+ }
28
+ this.setName(WalletConnectException.errorClass);
29
+ }
30
+ }
31
+ exports.WalletConnectException = WalletConnectException;
@@ -0,0 +1,5 @@
1
+ import { ConcreteException } from '../base.js';
2
+ export declare class WalletException extends ConcreteException {
3
+ static errorClass: string;
4
+ parse(): void;
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletException = void 0;
4
+ const base_js_1 = require("../base.js");
5
+ class WalletException extends base_js_1.ConcreteException {
6
+ static errorClass = 'WalletException';
7
+ parse() {
8
+ this.setName(WalletException.errorClass);
9
+ }
10
+ }
11
+ exports.WalletException = WalletException;
@@ -0,0 +1,7 @@
1
+ import { ConcreteException } from '../base.js';
2
+ import type { ErrorContext } from '../types/index.js';
3
+ export declare class Web3Exception extends ConcreteException {
4
+ static errorClass: string;
5
+ constructor(error: Error, context?: ErrorContext);
6
+ parse(): void;
7
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Web3Exception = void 0;
4
+ const index_js_1 = require("../types/index.js");
5
+ const base_js_1 = require("../base.js");
6
+ class Web3Exception extends base_js_1.ConcreteException {
7
+ static errorClass = 'Web3Exception';
8
+ constructor(error, context) {
9
+ super(error, context);
10
+ this.type = index_js_1.ErrorType.Web3;
11
+ }
12
+ parse() {
13
+ this.setName(Web3Exception.errorClass);
14
+ }
15
+ }
16
+ exports.Web3Exception = Web3Exception;
@@ -0,0 +1,18 @@
1
+ import { Web3Exception } from './Web3Exception.js';
2
+ import { BitGetException } from './BitGetException.js';
3
+ import { LedgerException } from './LedgerException.js';
4
+ import { TrezorException } from './TrezorException.js';
5
+ import { WalletException } from './WalletException.js';
6
+ import { GeneralException } from './GeneralException.js';
7
+ import { MetamaskException } from './MetamaskException.js';
8
+ import { OkxWalletException } from './OkxWalletException.js';
9
+ import { HttpRequestException } from './HttpRequestException.js';
10
+ import { TransactionException } from './TransactionException.js';
11
+ import { TrustWalletException } from './TrustWalletException.js';
12
+ import { CosmosWalletException } from './CosmosWalletException.js';
13
+ import { LedgerCosmosException } from './LedgerCosmosException.js';
14
+ import { RainbowWalletException } from './RainbowWalletException.js';
15
+ import { WalletConnectException } from './WalletConnectException.js';
16
+ import { GrpcUnaryRequestException } from './GrpcUnaryRequestException.js';
17
+ import { TurnkeyWalletSessionException } from './TurnkeyWalletSessionException.js';
18
+ export { Web3Exception, LedgerException, TrezorException, WalletException, BitGetException, GeneralException, MetamaskException, OkxWalletException, TransactionException, TrustWalletException, HttpRequestException, LedgerCosmosException, CosmosWalletException, RainbowWalletException, WalletConnectException, GrpcUnaryRequestException, TurnkeyWalletSessionException, };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TurnkeyWalletSessionException = exports.GrpcUnaryRequestException = exports.WalletConnectException = exports.RainbowWalletException = exports.CosmosWalletException = exports.LedgerCosmosException = exports.HttpRequestException = exports.TrustWalletException = exports.TransactionException = exports.OkxWalletException = exports.MetamaskException = exports.GeneralException = exports.BitGetException = exports.WalletException = exports.TrezorException = exports.LedgerException = exports.Web3Exception = void 0;
4
+ const Web3Exception_js_1 = require("./Web3Exception.js");
5
+ Object.defineProperty(exports, "Web3Exception", { enumerable: true, get: function () { return Web3Exception_js_1.Web3Exception; } });
6
+ const BitGetException_js_1 = require("./BitGetException.js");
7
+ Object.defineProperty(exports, "BitGetException", { enumerable: true, get: function () { return BitGetException_js_1.BitGetException; } });
8
+ const LedgerException_js_1 = require("./LedgerException.js");
9
+ Object.defineProperty(exports, "LedgerException", { enumerable: true, get: function () { return LedgerException_js_1.LedgerException; } });
10
+ const TrezorException_js_1 = require("./TrezorException.js");
11
+ Object.defineProperty(exports, "TrezorException", { enumerable: true, get: function () { return TrezorException_js_1.TrezorException; } });
12
+ const WalletException_js_1 = require("./WalletException.js");
13
+ Object.defineProperty(exports, "WalletException", { enumerable: true, get: function () { return WalletException_js_1.WalletException; } });
14
+ const GeneralException_js_1 = require("./GeneralException.js");
15
+ Object.defineProperty(exports, "GeneralException", { enumerable: true, get: function () { return GeneralException_js_1.GeneralException; } });
16
+ const MetamaskException_js_1 = require("./MetamaskException.js");
17
+ Object.defineProperty(exports, "MetamaskException", { enumerable: true, get: function () { return MetamaskException_js_1.MetamaskException; } });
18
+ const OkxWalletException_js_1 = require("./OkxWalletException.js");
19
+ Object.defineProperty(exports, "OkxWalletException", { enumerable: true, get: function () { return OkxWalletException_js_1.OkxWalletException; } });
20
+ const HttpRequestException_js_1 = require("./HttpRequestException.js");
21
+ Object.defineProperty(exports, "HttpRequestException", { enumerable: true, get: function () { return HttpRequestException_js_1.HttpRequestException; } });
22
+ const TransactionException_js_1 = require("./TransactionException.js");
23
+ Object.defineProperty(exports, "TransactionException", { enumerable: true, get: function () { return TransactionException_js_1.TransactionException; } });
24
+ const TrustWalletException_js_1 = require("./TrustWalletException.js");
25
+ Object.defineProperty(exports, "TrustWalletException", { enumerable: true, get: function () { return TrustWalletException_js_1.TrustWalletException; } });
26
+ const CosmosWalletException_js_1 = require("./CosmosWalletException.js");
27
+ Object.defineProperty(exports, "CosmosWalletException", { enumerable: true, get: function () { return CosmosWalletException_js_1.CosmosWalletException; } });
28
+ const LedgerCosmosException_js_1 = require("./LedgerCosmosException.js");
29
+ Object.defineProperty(exports, "LedgerCosmosException", { enumerable: true, get: function () { return LedgerCosmosException_js_1.LedgerCosmosException; } });
30
+ const RainbowWalletException_js_1 = require("./RainbowWalletException.js");
31
+ Object.defineProperty(exports, "RainbowWalletException", { enumerable: true, get: function () { return RainbowWalletException_js_1.RainbowWalletException; } });
32
+ const WalletConnectException_js_1 = require("./WalletConnectException.js");
33
+ Object.defineProperty(exports, "WalletConnectException", { enumerable: true, get: function () { return WalletConnectException_js_1.WalletConnectException; } });
34
+ const GrpcUnaryRequestException_js_1 = require("./GrpcUnaryRequestException.js");
35
+ Object.defineProperty(exports, "GrpcUnaryRequestException", { enumerable: true, get: function () { return GrpcUnaryRequestException_js_1.GrpcUnaryRequestException; } });
36
+ const TurnkeyWalletSessionException_js_1 = require("./TurnkeyWalletSessionException.js");
37
+ Object.defineProperty(exports, "TurnkeyWalletSessionException", { enumerable: true, get: function () { return TurnkeyWalletSessionException_js_1.TurnkeyWalletSessionException; } });
@@ -0,0 +1,2 @@
1
+ export * from './exceptions/index.js';
2
+ export * from './types/index.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./exceptions/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,13 @@
1
+ import { TransactionChainErrorModule } from './types/index.js';
2
+ import type { ErrorContextCode } from './types/index.js';
3
+ export declare const chainModuleCodeErrorMessagesMap: Record<string, Record<number, string>>;
4
+ /**
5
+ * **Legacy** but needed for error messages from broadcasting transactions
6
+ * where we don't control the response and only have the message
7
+ * i.e Keplr, Leap, etc
8
+ */
9
+ export declare const chainErrorMessagesMap: Record<string, {
10
+ message: string;
11
+ code: ErrorContextCode;
12
+ module: TransactionChainErrorModule;
13
+ }>;