@injectivelabs/exceptions 1.16.11 → 1.16.13-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/exceptions/base.d.ts +2 -1
- package/dist/cjs/exceptions/base.js +1 -2
- package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/BitGetException.js +1 -1
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +1 -1
- package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +2 -1
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +1 -1
- package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/LedgerException.js +1 -1
- package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/MetamaskException.js +1 -1
- package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/OkxWalletException.js +1 -1
- package/dist/cjs/exceptions/exceptions/RabbyWalletException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/RabbyWalletException.js +1 -1
- package/dist/cjs/exceptions/exceptions/RainbowWalletException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/RainbowWalletException.js +1 -1
- package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/TransactionException.js +1 -1
- package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/TrezorException.js +1 -1
- package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/TrustWalletException.js +1 -1
- package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +1 -1
- package/dist/cjs/exceptions/exceptions/Web3Exception.js +1 -1
- package/dist/cjs/exceptions/exceptions/index.d.ts +3 -3
- package/dist/cjs/exceptions/exceptions/index.js +6 -6
- package/dist/cjs/exceptions/messages.d.ts +2 -1
- package/dist/cjs/exceptions/types/codes.d.ts +437 -420
- package/dist/cjs/exceptions/types/codes.js +418 -435
- package/dist/cjs/exceptions/types/context.d.ts +21 -19
- package/dist/cjs/exceptions/types/context.js +18 -20
- package/dist/cjs/exceptions/types/modules.d.ts +64 -60
- package/dist/cjs/exceptions/types/modules.js +60 -64
- package/dist/cjs/exceptions/utils/maps.d.ts +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/types.d.ts +1 -1
- package/dist/cjs/utils.d.ts +2 -2
- package/dist/esm/exceptions/base.d.ts +2 -1
- package/dist/esm/exceptions/base.js +2 -3
- package/dist/esm/exceptions/exceptions/BitGetException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/BitGetException.js +1 -1
- package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/CosmosWalletException.js +1 -1
- package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +2 -1
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +1 -1
- package/dist/esm/exceptions/exceptions/LedgerException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/LedgerException.js +1 -1
- package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/MetamaskException.js +1 -1
- package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/OkxWalletException.js +1 -1
- package/dist/esm/exceptions/exceptions/RabbyWalletException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/RabbyWalletException.js +1 -1
- package/dist/esm/exceptions/exceptions/RainbowWalletException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/RainbowWalletException.js +1 -1
- package/dist/esm/exceptions/exceptions/TransactionException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/TransactionException.js +1 -1
- package/dist/esm/exceptions/exceptions/TrezorException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/TrezorException.js +1 -1
- package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/TrustWalletException.js +1 -1
- package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +1 -1
- package/dist/esm/exceptions/exceptions/Web3Exception.js +1 -1
- package/dist/esm/exceptions/exceptions/index.d.ts +3 -3
- package/dist/esm/exceptions/exceptions/index.js +3 -3
- package/dist/esm/exceptions/messages.d.ts +2 -1
- package/dist/esm/exceptions/types/codes.d.ts +437 -420
- package/dist/esm/exceptions/types/codes.js +417 -434
- package/dist/esm/exceptions/types/context.d.ts +21 -19
- package/dist/esm/exceptions/types/context.js +18 -20
- package/dist/esm/exceptions/types/modules.d.ts +64 -60
- package/dist/esm/exceptions/types/modules.js +60 -64
- package/dist/esm/exceptions/utils/maps.d.ts +1 -1
- package/dist/esm/exceptions/utils/maps.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/utils.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ErrorType } from '../types/index.js';
|
|
1
2
|
import { ConcreteException } from '../base.js';
|
|
2
3
|
import { mapErrorMessage } from '../utils/maps.js';
|
|
3
|
-
import { ErrorType } from '../types/index.js';
|
|
4
4
|
const removeTrustWalletFromErrorString = (message) => message
|
|
5
5
|
.replaceAll('Trust Wallet', '')
|
|
6
6
|
.replaceAll('TrustWallet', '')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConcreteException } from '../base.js';
|
|
2
|
-
import { ErrorContext } from '../types/index.js';
|
|
2
|
+
import type { 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,5 +1,5 @@
|
|
|
1
|
-
import { ConcreteException } from '../base.js';
|
|
2
1
|
import { ErrorType } from '../types/index.js';
|
|
2
|
+
import { ConcreteException } from '../base.js';
|
|
3
3
|
export class Web3Exception extends ConcreteException {
|
|
4
4
|
static errorClass = 'Web3Exception';
|
|
5
5
|
constructor(error, context) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Web3Exception } from './Web3Exception.js';
|
|
2
|
+
import { BitGetException } from './BitGetException.js';
|
|
2
3
|
import { LedgerException } from './LedgerException.js';
|
|
3
4
|
import { TrezorException } from './TrezorException.js';
|
|
4
5
|
import { WalletException } from './WalletException.js';
|
|
5
|
-
import { BitGetException } from './BitGetException.js';
|
|
6
6
|
import { GeneralException } from './GeneralException.js';
|
|
7
7
|
import { MetamaskException } from './MetamaskException.js';
|
|
8
8
|
import { OkxWalletException } from './OkxWalletException.js';
|
|
9
9
|
import { HttpRequestException } from './HttpRequestException.js';
|
|
10
|
-
import { TrustWalletException } from './TrustWalletException.js';
|
|
11
10
|
import { TransactionException } from './TransactionException.js';
|
|
12
|
-
import {
|
|
11
|
+
import { TrustWalletException } from './TrustWalletException.js';
|
|
13
12
|
import { CosmosWalletException } from './CosmosWalletException.js';
|
|
13
|
+
import { LedgerCosmosException } from './LedgerCosmosException.js';
|
|
14
14
|
import { RainbowWalletException } from './RainbowWalletException.js';
|
|
15
15
|
import { GrpcUnaryRequestException } from './GrpcUnaryRequestException.js';
|
|
16
16
|
import { TurnkeyWalletSessionException } from './TurnkeyWalletSessionException.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Web3Exception } from './Web3Exception.js';
|
|
2
|
+
import { BitGetException } from './BitGetException.js';
|
|
2
3
|
import { LedgerException } from './LedgerException.js';
|
|
3
4
|
import { TrezorException } from './TrezorException.js';
|
|
4
5
|
import { WalletException } from './WalletException.js';
|
|
5
|
-
import { BitGetException } from './BitGetException.js';
|
|
6
6
|
import { GeneralException } from './GeneralException.js';
|
|
7
7
|
import { MetamaskException } from './MetamaskException.js';
|
|
8
8
|
import { OkxWalletException } from './OkxWalletException.js';
|
|
9
9
|
import { HttpRequestException } from './HttpRequestException.js';
|
|
10
|
-
import { TrustWalletException } from './TrustWalletException.js';
|
|
11
10
|
import { TransactionException } from './TransactionException.js';
|
|
12
|
-
import {
|
|
11
|
+
import { TrustWalletException } from './TrustWalletException.js';
|
|
13
12
|
import { CosmosWalletException } from './CosmosWalletException.js';
|
|
13
|
+
import { LedgerCosmosException } from './LedgerCosmosException.js';
|
|
14
14
|
import { RainbowWalletException } from './RainbowWalletException.js';
|
|
15
15
|
import { GrpcUnaryRequestException } from './GrpcUnaryRequestException.js';
|
|
16
16
|
import { TurnkeyWalletSessionException } from './TurnkeyWalletSessionException.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TransactionChainErrorModule } from './types/index.js';
|
|
2
|
+
import type { ErrorContextCode } from './types/index.js';
|
|
2
3
|
export declare const chainModuleCodeErrorMessagesMap: Record<string, Record<number, string>>;
|
|
3
4
|
/**
|
|
4
5
|
* **Legacy** but needed for error messages from broadcasting transactions
|