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