@hashgraphonline/hashinal-wc 2.0.4 → 2.0.5
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/README.md +34 -1
- package/dist/es/index.d.ts +7 -2
- package/dist/es/index.js +46 -21
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/umd/hashinal-wc.umd.js +17 -17
- package/dist/umd/hashinal-wc.umd.js.map +1 -1
- package/dist/umd/index.d.ts +7 -2
- package/package.json +2 -1
package/dist/umd/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SessionTypes, SignClientTypes } from '@walletconnect/types';
|
|
2
2
|
import { Transaction, AccountId, ContractId, LedgerId, TransactionReceipt, ContractFunctionParameters, PrivateKey } from '@hashgraph/sdk';
|
|
3
|
+
import { AppKit } from '@reown/appkit';
|
|
3
4
|
import { DAppConnector } from '@hashgraph/hedera-wallet-connect';
|
|
4
5
|
import { FetchMessagesResult, TokenBalance, HederaAccountResponse, HederaTXResponse, Nft } from './types';
|
|
5
6
|
import { Logger } from './logger';
|
|
@@ -8,9 +9,9 @@ declare class HashinalsWalletConnectSDK {
|
|
|
8
9
|
private static instance;
|
|
9
10
|
private static dAppConnectorInstance;
|
|
10
11
|
private static proxyInstance;
|
|
11
|
-
private static readonly MAX_NODE_ACCOUNT_IDS;
|
|
12
12
|
private logger;
|
|
13
13
|
private network;
|
|
14
|
+
private reownAppKit;
|
|
14
15
|
private extensionCheckInterval;
|
|
15
16
|
private hasCalledExtensionCallback;
|
|
16
17
|
get dAppConnector(): DAppConnector;
|
|
@@ -19,9 +20,13 @@ declare class HashinalsWalletConnectSDK {
|
|
|
19
20
|
setLogger(logger: Logger): void;
|
|
20
21
|
setNetwork(network: LedgerId): void;
|
|
21
22
|
getNetwork(): LedgerId;
|
|
23
|
+
setReownAppKit(appKit: AppKit | null): void;
|
|
22
24
|
setLogLevel(level: 'error' | 'warn' | 'info' | 'debug'): void;
|
|
23
25
|
init(projectId: string, metadata: SignClientTypes.Metadata, network?: LedgerId, onSessionIframeCreated?: (session: SessionTypes.Struct) => void): Promise<DAppConnector>;
|
|
24
|
-
connect(
|
|
26
|
+
connect(options?: {
|
|
27
|
+
pairingTopic?: string;
|
|
28
|
+
}): Promise<SessionTypes.Struct>;
|
|
29
|
+
private connectUsingReownAppKit;
|
|
25
30
|
disconnect(): Promise<boolean>;
|
|
26
31
|
disconnectAll(): Promise<boolean>;
|
|
27
32
|
executeTransaction(tx: Transaction, disableSigner?: boolean): Promise<TransactionReceipt>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/hashinal-wc",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "The official Hashinal Wallet Connect SDK. A set of easy-to-use functions to interact with Hedera through Wallet Connect.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@hashgraph/sdk": "^2.77.0",
|
|
40
40
|
"@hashgraphonline/standards-sdk": "0.1.141",
|
|
41
41
|
"@reown/appkit": "1.8.10",
|
|
42
|
+
"@walletconnect/modal": "^2.7.0",
|
|
42
43
|
"fetch-retry": "^6.0.0",
|
|
43
44
|
"long": "^5.2.3"
|
|
44
45
|
},
|