@hashgraph/hedera-wallet-connect 2.0.1-canary.c0cb237.0 → 2.0.1-canary.c67c91a.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.
@@ -8,7 +8,6 @@ export declare class DAppSigner implements Signer {
8
8
  private readonly ledgerId;
9
9
  readonly extensionId?: string | undefined;
10
10
  private logger;
11
- private publicKey;
12
11
  constructor(accountId: AccountId, signClient: ISignClient, topic: string, ledgerId?: LedgerId, extensionId?: string | undefined, logLevel?: LogLevel);
13
12
  /**
14
13
  * Sets the logging level for the DAppSigner
@@ -23,7 +22,6 @@ export declare class DAppSigner implements Signer {
23
22
  }): Promise<T>;
24
23
  getAccountId(): AccountId;
25
24
  getAccountKey(): Key;
26
- getAccountKeyAsync(): Promise<Key | null>;
27
25
  getLedgerId(): LedgerId;
28
26
  getNetwork(): {
29
27
  [key: string]: string | AccountId;
@@ -19,7 +19,7 @@
19
19
  */
20
20
  import { AccountBalance, AccountInfo, LedgerId, SignerSignature, Transaction, TransactionRecord, Client, PublicKey, TransactionId, TransactionResponse, Query, AccountRecordsQuery, AccountInfoQuery, AccountBalanceQuery, TransactionReceiptQuery, TransactionReceipt, TransactionRecordQuery, } from '@hashgraph/sdk';
21
21
  import { proto } from '@hashgraph/proto';
22
- import { HederaJsonRpcMethod, base64StringToSignatureMap, base64StringToUint8Array, ledgerIdToCAIPChainId, queryToBase64String, transactionBodyToBase64String, transactionToBase64String, transactionToTransactionBody, extensionOpen, Uint8ArrayToBase64String, Uint8ArrayToString, getAccountInfo, } from '../shared';
22
+ import { HederaJsonRpcMethod, base64StringToSignatureMap, base64StringToUint8Array, ledgerIdToCAIPChainId, queryToBase64String, transactionBodyToBase64String, transactionToBase64String, transactionToTransactionBody, extensionOpen, Uint8ArrayToBase64String, Uint8ArrayToString, } from '../shared';
23
23
  import { DefaultLogger } from '../shared/logger';
24
24
  import { SessionNotFoundError } from './SessionNotFoundError';
25
25
  const clients = {};
@@ -31,11 +31,6 @@ export class DAppSigner {
31
31
  this.ledgerId = ledgerId;
32
32
  this.extensionId = extensionId;
33
33
  this.logger = new DefaultLogger(logLevel);
34
- this.publicKey = null;
35
- // cache public key from mirror node
36
- this.getAccountKeyAsync()
37
- .then((key) => (this.publicKey = key))
38
- .catch((error) => this.logger.error('Error when receiving a public key:', error.message));
39
34
  }
40
35
  /**
41
36
  * Sets the logging level for the DAppSigner
@@ -84,16 +79,7 @@ export class DAppSigner {
84
79
  return this.accountId;
85
80
  }
86
81
  getAccountKey() {
87
- if (this.publicKey == null) {
88
- throw new Error('No key was received from the mirror node');
89
- }
90
- return this.publicKey;
91
- }
92
- async getAccountKeyAsync() {
93
- const accountInfo = await getAccountInfo(this.ledgerId, this.accountId.toString());
94
- if (!(accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.key))
95
- return null;
96
- return PublicKey.fromString(accountInfo.key.key);
82
+ throw new Error('Method not implemented.');
97
83
  }
98
84
  getLedgerId() {
99
85
  return this.ledgerId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraph/hedera-wallet-connect",
3
- "version": "2.0.1-canary.c0cb237.0",
3
+ "version": "2.0.1-canary.c67c91a.0",
4
4
  "description": "A library to facilitate integrating Hedera with WalletConnect",
5
5
  "repository": {
6
6
  "type": "git",