@hashgraphonline/hashinal-wc 1.0.71 → 1.0.73

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.
@@ -6,9 +6,10 @@ import { ILogger } from './logger/logger';
6
6
  import * as HashgraphSDK from '@hashgraph/sdk';
7
7
  declare class HashinalsWalletConnectSDK {
8
8
  private static instance;
9
- dAppConnector: DAppConnector | undefined;
9
+ private static dAppConnectorInstance;
10
10
  private logger;
11
11
  private network;
12
+ get dAppConnector(): DAppConnector;
12
13
  constructor(logger?: ILogger, network?: LedgerId);
13
14
  static getInstance(logger?: ILogger, network?: LedgerId): HashinalsWalletConnectSDK;
14
15
  setLogger(logger: ILogger): void;
@@ -18,6 +19,7 @@ declare class HashinalsWalletConnectSDK {
18
19
  init(projectId: string, metadata: SignClientTypes.Metadata, network?: LedgerId): Promise<DAppConnector>;
19
20
  connect(): Promise<SessionTypes.Struct>;
20
21
  disconnect(): Promise<boolean>;
22
+ disconnectAll(): Promise<boolean>;
21
23
  executeTransaction(tx: Transaction, disableSigner?: boolean): Promise<TransactionReceipt>;
22
24
  executeTransactionWithErrorHandling(tx: Transaction, disableSigner: boolean): Promise<{
23
25
  result?: TransactionReceipt;
@@ -38,6 +40,9 @@ declare class HashinalsWalletConnectSDK {
38
40
  createToken(name: string, symbol: string, initialSupply: number, decimals: number, treasuryAccountId: string, adminKey: string, supplyKey: string): Promise<string>;
39
41
  mintNFT(tokenId: string, metadata: string, supplyKey: PrivateKey): Promise<TransactionReceipt>;
40
42
  getMessages(topicId: string, lastTimestamp?: number, disableTimestampFilter?: boolean): Promise<FetchMessagesResult>;
43
+ signMessage(message: string): Promise<{
44
+ userSignature: any;
45
+ }>;
41
46
  private saveConnectionInfo;
42
47
  loadConnectionInfo(): {
43
48
  accountId: string | null;
@@ -66,4 +71,5 @@ declare class HashinalsWalletConnectSDK {
66
71
  }>;
67
72
  }
68
73
  export * from './types';
74
+ export * from './sign';
69
75
  export { HashinalsWalletConnectSDK, HashgraphSDK };
@@ -0,0 +1 @@
1
+ export { base64StringToSignatureMap, prefixMessageToSign, verifyMessageSignature, } from '@hashgraph/hedera-wallet-connect';
@@ -145,6 +145,7 @@ export type HashinalsWalletConnectSDK = {
145
145
  session: SessionTypes.Struct;
146
146
  }>;
147
147
  disconnect: () => Promise<boolean>;
148
+ disconnectAll: () => Promise<boolean>;
148
149
  disconnectWallet: () => Promise<boolean>;
149
150
  loadConnectionInfo: () => string | null;
150
151
  saveConnectionInfo: (accountId: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraphonline/hashinal-wc",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
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": [
@@ -27,10 +27,11 @@
27
27
  "build:umd": "BUILD_FORMAT=umd vite build",
28
28
  "build": "npm run clean && npm run build:umd && npm run build:es && npm run build:ts",
29
29
  "build:ts": "tsc --emitDeclarationOnly --project tsconfig.json",
30
- "pub": "npm publish --access public"
30
+ "pub": "npm publish --access public",
31
+ "pub-canary": "npm publish --access public --tag canary"
31
32
  },
32
33
  "dependencies": {
33
- "@hashgraph/hedera-wallet-connect": "1.3.4",
34
+ "@hashgraph/hedera-wallet-connect": "1.3.7-canary.813a6d2.0",
34
35
  "@hashgraph/proto": "^2.15.0",
35
36
  "@hashgraph/sdk": "^2.52.0",
36
37
  "@walletconnect/core": "^2.17.1",