@hashgraph/hedera-wallet-connect 1.4.3-canary.2e9a326.0 → 1.4.3-canary.42ecd84.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.
@@ -1,11 +1,10 @@
1
1
  import { AccountId, LedgerId, Transaction } from '@hashgraph/sdk';
2
- import { EngineTypes, SessionTypes, SignClientTypes } from '@walletconnect/types';
2
+ import { SessionTypes, SignClientTypes } from '@walletconnect/types';
3
3
  import { WalletConnectModal } from '@walletconnect/modal';
4
4
  import SignClient from '@walletconnect/sign-client';
5
5
  import { LogLevel } from '../shared/logger';
6
6
  import { GetNodeAddressesResult, ExecuteTransactionParams, ExecuteTransactionResult, SignMessageParams, SignMessageResult, SignAndExecuteQueryResult, SignAndExecuteQueryParams, SignAndExecuteTransactionParams, SignAndExecuteTransactionResult, SignTransactionParams, SignTransactionResult, ExtensionData } from '../shared';
7
7
  import { DAppSigner } from './DAppSigner';
8
- import { JsonRpcResult } from '@walletconnect/jsonrpc-types';
9
8
  export * from './DAppSigner';
10
9
  export { SessionNotFoundError } from './SessionNotFoundError';
11
10
  type BaseLogger = 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'fatal';
@@ -113,7 +112,7 @@ export declare class DAppConnector {
113
112
  private createSigners;
114
113
  private onSessionConnected;
115
114
  private connectURI;
116
- request<Req extends EngineTypes.RequestParams, Res extends JsonRpcResult>({ method, params, }: Req['request']): Promise<Res>;
115
+ private request;
117
116
  /**
118
117
  * Retrieves the node addresses associated with the current Hedera network.
119
118
  *
@@ -7,8 +7,7 @@ export interface ILogger {
7
7
  export type LogLevel = 'error' | 'warn' | 'info' | 'debug' | 'off';
8
8
  export declare class DefaultLogger implements ILogger {
9
9
  private logLevel;
10
- name: string;
11
- constructor(logLevel?: LogLevel, name?: string);
10
+ constructor(logLevel?: LogLevel);
12
11
  setLogLevel(level: LogLevel): void;
13
12
  getLogLevel(): LogLevel;
14
13
  error(message: string, ...args: any[]): void;
@@ -1,8 +1,7 @@
1
1
  export class DefaultLogger {
2
- constructor(logLevel = 'info', name) {
2
+ constructor(logLevel = 'info') {
3
3
  this.logLevel = 'info';
4
4
  this.logLevel = logLevel;
5
- this.name = name || 'Logger';
6
5
  }
7
6
  setLogLevel(level) {
8
7
  this.logLevel = level;
@@ -12,22 +11,22 @@ export class DefaultLogger {
12
11
  }
13
12
  error(message, ...args) {
14
13
  if (['error', 'warn', 'info', 'debug'].includes(this.logLevel)) {
15
- console.error(`[ERROR - ${this.name}] ${message}`, ...args);
14
+ console.error(`[ERROR] ${message}`, ...args);
16
15
  }
17
16
  }
18
17
  warn(message, ...args) {
19
18
  if (['warn', 'info', 'debug'].includes(this.logLevel)) {
20
- console.warn(`[WARN - ${this.name}] ${message}`, ...args);
19
+ console.warn(`[WARN] ${message}`, ...args);
21
20
  }
22
21
  }
23
22
  info(message, ...args) {
24
23
  if (['info', 'debug'].includes(this.logLevel)) {
25
- console.info(`[INFO - ${this.name}] ${message}`, ...args);
24
+ console.info(`[INFO] ${message}`, ...args);
26
25
  }
27
26
  }
28
27
  debug(message, ...args) {
29
28
  if (this.logLevel === 'debug') {
30
- console.debug(`[DEBUG - ${this.name}] ${message}`, ...args);
29
+ console.debug(`[DEBUG] ${message}`, ...args);
31
30
  }
32
31
  }
33
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraph/hedera-wallet-connect",
3
- "version": "1.4.3-canary.2e9a326.0",
3
+ "version": "1.4.3-canary.42ecd84.0",
4
4
  "description": "A library to facilitate integrating Hedera with WalletConnect",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,17 +16,15 @@
16
16
  ],
17
17
  "license": "Apache-2.0",
18
18
  "devDependencies": {
19
- "@hashgraph/hedera-wallet-connect": "^1.4.2",
20
- "@reown/appkit": "^1.5.3",
19
+ "@hashgraph/hedera-wallet-connect": "^1.3.4",
21
20
  "@swc/core": "^1.7.40",
22
21
  "@swc/jest": "^0.2.36",
23
22
  "@types/jest": "^29.5.3",
24
23
  "@types/node": "^22.5.0",
25
- "@types/react-dom": "^18.2.21",
26
- "@walletconnect/ethereum-provider": "^2.17.2",
24
+ "@types/react-dom": "^19.0.3",
27
25
  "@walletconnect/modal": "^2.7.0",
28
- "@walletconnect/sign-client": "^2.17.2",
29
- "@walletconnect/types": "^2.17.2",
26
+ "@walletconnect/sign-client": "^2.17.0",
27
+ "@walletconnect/types": "^2.17.0",
30
28
  "concurrently": "^9.0.1",
31
29
  "esbuild": "^0.24.0",
32
30
  "esbuild-plugin-copy": "^2.1.1",
@@ -42,10 +40,10 @@
42
40
  "react-dom": "^19.0.0",
43
41
  "rimraf": "^5.0.5",
44
42
  "ts-node": "^10.9.2",
45
- "tweetnacl": "^1.0.3",
46
- "typedoc": "^0.26.3",
47
- "typedoc-theme-hierarchy": "^4.1.2",
48
- "typescript": "^5.2.2"
43
+ "typedoc": "^0.27.6",
44
+ "typedoc-theme-hierarchy": "^5.0.0",
45
+ "typescript": "^5.2.2",
46
+ "tweetnacl": "^1.0.3"
49
47
  },
50
48
  "scripts": {
51
49
  "build": "rimraf dist && tsc",