@babylonlabs-io/wallet-connector 1.1.1 → 1.1.2

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.
@@ -0,0 +1,21 @@
1
+ export declare const ERROR_CODES: {
2
+ UNKNOWN_ERROR: string;
3
+ INVALID_PARAMS: string;
4
+ EXTENSION_NOT_FOUND: string;
5
+ CONNECTION_REJECTED: string;
6
+ CHAIN_ID_NOT_INITIALIZED: string;
7
+ RPC_URL_NOT_INITIALIZED: string;
8
+ FAILED_TO_ADD_CHAIN: string;
9
+ FAILED_TO_GET_KEY: string;
10
+ CONNECTION_FAILED: string;
11
+ WALLET_NOT_CONNECTED: string;
12
+ INVALID_PUBLIC_KEY: string;
13
+ ADDRESS_GENERATION_FAILED: string;
14
+ UNSUPPORTED_NETWORK: string;
15
+ INVALID_ADDRESS_PREFIX: string;
16
+ MISSING_PSBT_HEX: string;
17
+ INCOMPATIBLE_WALLET_VERSION: string;
18
+ EXTENSION_CONTEXT_INVALIDATED: string;
19
+ NETWORK_NOT_ENABLED_IN_WALLET: string;
20
+ INSCRIPTIONS_UNSUPPORTED_NETWORK: string;
21
+ };
@@ -0,0 +1,15 @@
1
+ interface ErrorParams {
2
+ code: string;
3
+ message: string;
4
+ wallet: string;
5
+ version?: string;
6
+ chainId?: string;
7
+ }
8
+ export declare class WalletError extends Error {
9
+ readonly code: string;
10
+ readonly wallet: string;
11
+ readonly version?: string;
12
+ readonly chainId?: string;
13
+ constructor({ code, message, wallet, version, chainId }: ErrorParams, options?: ErrorOptions);
14
+ }
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonlabs-io/wallet-connector",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "types": "dist/index.d.ts",
6
6
  "publishConfig": {