@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.
Files changed (86) hide show
  1. package/dist/cjs/exceptions/base.d.ts +2 -1
  2. package/dist/cjs/exceptions/base.js +1 -2
  3. package/dist/cjs/exceptions/exceptions/BitGetException.d.ts +1 -1
  4. package/dist/cjs/exceptions/exceptions/BitGetException.js +1 -1
  5. package/dist/cjs/exceptions/exceptions/CosmosWalletException.d.ts +1 -1
  6. package/dist/cjs/exceptions/exceptions/CosmosWalletException.js +1 -1
  7. package/dist/cjs/exceptions/exceptions/GrpcUnaryRequestException.d.ts +1 -1
  8. package/dist/cjs/exceptions/exceptions/HttpRequestException.d.ts +2 -1
  9. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.d.ts +1 -1
  10. package/dist/cjs/exceptions/exceptions/LedgerCosmosException.js +1 -1
  11. package/dist/cjs/exceptions/exceptions/LedgerException.d.ts +1 -1
  12. package/dist/cjs/exceptions/exceptions/LedgerException.js +1 -1
  13. package/dist/cjs/exceptions/exceptions/MetamaskException.d.ts +1 -1
  14. package/dist/cjs/exceptions/exceptions/MetamaskException.js +1 -1
  15. package/dist/cjs/exceptions/exceptions/OkxWalletException.d.ts +1 -1
  16. package/dist/cjs/exceptions/exceptions/OkxWalletException.js +1 -1
  17. package/dist/cjs/exceptions/exceptions/RabbyWalletException.d.ts +1 -1
  18. package/dist/cjs/exceptions/exceptions/RabbyWalletException.js +1 -1
  19. package/dist/cjs/exceptions/exceptions/RainbowWalletException.d.ts +1 -1
  20. package/dist/cjs/exceptions/exceptions/RainbowWalletException.js +1 -1
  21. package/dist/cjs/exceptions/exceptions/TransactionException.d.ts +1 -1
  22. package/dist/cjs/exceptions/exceptions/TransactionException.js +1 -1
  23. package/dist/cjs/exceptions/exceptions/TrezorException.d.ts +1 -1
  24. package/dist/cjs/exceptions/exceptions/TrezorException.js +1 -1
  25. package/dist/cjs/exceptions/exceptions/TrustWalletException.d.ts +1 -1
  26. package/dist/cjs/exceptions/exceptions/TrustWalletException.js +1 -1
  27. package/dist/cjs/exceptions/exceptions/Web3Exception.d.ts +1 -1
  28. package/dist/cjs/exceptions/exceptions/Web3Exception.js +1 -1
  29. package/dist/cjs/exceptions/exceptions/index.d.ts +3 -3
  30. package/dist/cjs/exceptions/exceptions/index.js +6 -6
  31. package/dist/cjs/exceptions/messages.d.ts +2 -1
  32. package/dist/cjs/exceptions/types/codes.d.ts +437 -420
  33. package/dist/cjs/exceptions/types/codes.js +418 -435
  34. package/dist/cjs/exceptions/types/context.d.ts +21 -19
  35. package/dist/cjs/exceptions/types/context.js +18 -20
  36. package/dist/cjs/exceptions/types/modules.d.ts +64 -60
  37. package/dist/cjs/exceptions/types/modules.js +60 -64
  38. package/dist/cjs/exceptions/utils/maps.d.ts +1 -1
  39. package/dist/cjs/index.d.ts +1 -1
  40. package/dist/cjs/index.js +0 -1
  41. package/dist/cjs/types.d.ts +1 -1
  42. package/dist/cjs/utils.d.ts +2 -2
  43. package/dist/esm/exceptions/base.d.ts +2 -1
  44. package/dist/esm/exceptions/base.js +2 -3
  45. package/dist/esm/exceptions/exceptions/BitGetException.d.ts +1 -1
  46. package/dist/esm/exceptions/exceptions/BitGetException.js +1 -1
  47. package/dist/esm/exceptions/exceptions/CosmosWalletException.d.ts +1 -1
  48. package/dist/esm/exceptions/exceptions/CosmosWalletException.js +1 -1
  49. package/dist/esm/exceptions/exceptions/GrpcUnaryRequestException.d.ts +1 -1
  50. package/dist/esm/exceptions/exceptions/HttpRequestException.d.ts +2 -1
  51. package/dist/esm/exceptions/exceptions/LedgerCosmosException.d.ts +1 -1
  52. package/dist/esm/exceptions/exceptions/LedgerCosmosException.js +1 -1
  53. package/dist/esm/exceptions/exceptions/LedgerException.d.ts +1 -1
  54. package/dist/esm/exceptions/exceptions/LedgerException.js +1 -1
  55. package/dist/esm/exceptions/exceptions/MetamaskException.d.ts +1 -1
  56. package/dist/esm/exceptions/exceptions/MetamaskException.js +1 -1
  57. package/dist/esm/exceptions/exceptions/OkxWalletException.d.ts +1 -1
  58. package/dist/esm/exceptions/exceptions/OkxWalletException.js +1 -1
  59. package/dist/esm/exceptions/exceptions/RabbyWalletException.d.ts +1 -1
  60. package/dist/esm/exceptions/exceptions/RabbyWalletException.js +1 -1
  61. package/dist/esm/exceptions/exceptions/RainbowWalletException.d.ts +1 -1
  62. package/dist/esm/exceptions/exceptions/RainbowWalletException.js +1 -1
  63. package/dist/esm/exceptions/exceptions/TransactionException.d.ts +1 -1
  64. package/dist/esm/exceptions/exceptions/TransactionException.js +1 -1
  65. package/dist/esm/exceptions/exceptions/TrezorException.d.ts +1 -1
  66. package/dist/esm/exceptions/exceptions/TrezorException.js +1 -1
  67. package/dist/esm/exceptions/exceptions/TrustWalletException.d.ts +1 -1
  68. package/dist/esm/exceptions/exceptions/TrustWalletException.js +1 -1
  69. package/dist/esm/exceptions/exceptions/Web3Exception.d.ts +1 -1
  70. package/dist/esm/exceptions/exceptions/Web3Exception.js +1 -1
  71. package/dist/esm/exceptions/exceptions/index.d.ts +3 -3
  72. package/dist/esm/exceptions/exceptions/index.js +3 -3
  73. package/dist/esm/exceptions/messages.d.ts +2 -1
  74. package/dist/esm/exceptions/types/codes.d.ts +437 -420
  75. package/dist/esm/exceptions/types/codes.js +417 -434
  76. package/dist/esm/exceptions/types/context.d.ts +21 -19
  77. package/dist/esm/exceptions/types/context.js +18 -20
  78. package/dist/esm/exceptions/types/modules.d.ts +64 -60
  79. package/dist/esm/exceptions/types/modules.js +60 -64
  80. package/dist/esm/exceptions/utils/maps.d.ts +1 -1
  81. package/dist/esm/exceptions/utils/maps.js +1 -1
  82. package/dist/esm/index.d.ts +1 -1
  83. package/dist/esm/index.js +0 -1
  84. package/dist/esm/types.d.ts +1 -1
  85. package/dist/esm/utils.d.ts +2 -2
  86. 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 { LedgerCosmosException } from './LedgerCosmosException.js';
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 { LedgerCosmosException } from './LedgerCosmosException.js';
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 { ErrorContextCode, TransactionChainErrorModule } from './types/index.js';
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