@dynamic-labs-wallet/browser-wallet-client 0.0.0-beta.164.2 → 0.0.0-beta.164.3

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.
Files changed (3) hide show
  1. package/index.cjs.js +15 -15
  2. package/index.esm.js +15 -15
  3. package/package.json +2 -2
package/index.cjs.js CHANGED
@@ -307,7 +307,7 @@ class DynamicWalletClient {
307
307
  });
308
308
  }
309
309
  async getWallet({ accountAddress, walletOperation = core.WalletOperation.NO_OPERATION }) {
310
- await this.initializeIframeCommunication();
310
+ await this.initializeMessageTransport();
311
311
  if (!this.iframeMessageHandler) {
312
312
  throw new Error('Iframe message handler not initialized');
313
313
  }
@@ -318,7 +318,7 @@ class DynamicWalletClient {
318
318
  });
319
319
  }
320
320
  async createWalletAccount({ thresholdSignatureScheme, password = undefined }) {
321
- await this.initializeIframeCommunication();
321
+ await this.initializeMessageTransport();
322
322
  if (!this.iframeMessageHandler) {
323
323
  throw new Error('Iframe message handler not initialized');
324
324
  }
@@ -329,7 +329,7 @@ class DynamicWalletClient {
329
329
  });
330
330
  }
331
331
  async requiresPasswordForOperation({ accountAddress, walletOperation = core.WalletOperation.REACH_THRESHOLD }) {
332
- await this.initializeIframeCommunication();
332
+ await this.initializeMessageTransport();
333
333
  if (!this.iframeMessageHandler) {
334
334
  throw new Error('Iframe message handler not initialized');
335
335
  }
@@ -340,7 +340,7 @@ class DynamicWalletClient {
340
340
  });
341
341
  }
342
342
  async isPasswordEncrypted({ accountAddress }) {
343
- await this.initializeIframeCommunication();
343
+ await this.initializeMessageTransport();
344
344
  if (!this.iframeMessageHandler) {
345
345
  throw new Error('Iframe message handler not initialized');
346
346
  }
@@ -350,7 +350,7 @@ class DynamicWalletClient {
350
350
  });
351
351
  }
352
352
  async signMessage({ message, accountAddress, password = undefined }) {
353
- await this.initializeIframeCommunication();
353
+ await this.initializeMessageTransport();
354
354
  if (!this.iframeMessageHandler) {
355
355
  throw new Error('Iframe message handler not initialized');
356
356
  }
@@ -362,7 +362,7 @@ class DynamicWalletClient {
362
362
  });
363
363
  }
364
364
  async signRawMessage({ message, accountAddress, password = undefined }) {
365
- await this.initializeIframeCommunication();
365
+ await this.initializeMessageTransport();
366
366
  if (!this.iframeMessageHandler) {
367
367
  throw new Error('Iframe message handler not initialized');
368
368
  }
@@ -384,7 +384,7 @@ class DynamicWalletClient {
384
384
  * const txBytes = await txb.build({ client });
385
385
  * const txString = Buffer.from(txBytes).toString("hex");
386
386
  */ async signTransaction({ senderAddress, transaction, password = undefined }) {
387
- await this.initializeIframeCommunication();
387
+ await this.initializeMessageTransport();
388
388
  if (!this.iframeMessageHandler) {
389
389
  throw new Error('Iframe message handler not initialized');
390
390
  }
@@ -396,7 +396,7 @@ class DynamicWalletClient {
396
396
  });
397
397
  }
398
398
  async backupKeySharesToGoogleDrive(request) {
399
- await this.initializeIframeCommunication();
399
+ await this.initializeMessageTransport();
400
400
  if (!this.iframeMessageHandler) {
401
401
  throw new Error('Iframe message handler not initialized');
402
402
  }
@@ -416,7 +416,7 @@ class DynamicWalletClient {
416
416
  });
417
417
  }
418
418
  async refreshWalletAccountShares(request) {
419
- await this.initializeIframeCommunication();
419
+ await this.initializeMessageTransport();
420
420
  if (!this.iframeMessageHandler) {
421
421
  throw new Error('Iframe message handler not initialized');
422
422
  }
@@ -427,7 +427,7 @@ class DynamicWalletClient {
427
427
  });
428
428
  }
429
429
  async reshare(request) {
430
- await this.initializeIframeCommunication();
430
+ await this.initializeMessageTransport();
431
431
  if (!this.iframeMessageHandler) {
432
432
  throw new Error('Iframe message handler not initialized');
433
433
  }
@@ -447,7 +447,7 @@ class DynamicWalletClient {
447
447
  });
448
448
  }
449
449
  async verifyPassword({ accountAddress, password, walletOperation = core.WalletOperation.NO_OPERATION }) {
450
- await this.initializeIframeCommunication();
450
+ await this.initializeMessageTransport();
451
451
  if (!this.iframeMessageHandler) {
452
452
  throw new Error('Iframe message handler not initialized');
453
453
  }
@@ -459,7 +459,7 @@ class DynamicWalletClient {
459
459
  });
460
460
  }
461
461
  async updatePassword({ accountAddress, existingPassword, newPassword }) {
462
- await this.initializeIframeCommunication();
462
+ await this.initializeMessageTransport();
463
463
  if (!this.iframeMessageHandler) {
464
464
  throw new Error('Iframe message handler not initialized');
465
465
  }
@@ -471,7 +471,7 @@ class DynamicWalletClient {
471
471
  });
472
472
  }
473
473
  async importPrivateKey({ privateKey, chainName, thresholdSignatureScheme }) {
474
- await this.initializeIframeCommunication();
474
+ await this.initializeMessageTransport();
475
475
  if (!this.iframeMessageHandler) {
476
476
  throw new Error('Iframe message handler not initialized');
477
477
  }
@@ -482,7 +482,7 @@ class DynamicWalletClient {
482
482
  });
483
483
  }
484
484
  async exportClientKeyshares({ accountAddress, password }) {
485
- await this.initializeIframeCommunication();
485
+ await this.initializeMessageTransport();
486
486
  if (!this.iframeMessageHandler) {
487
487
  throw new Error('Iframe message handler not initialized');
488
488
  }
@@ -493,7 +493,7 @@ class DynamicWalletClient {
493
493
  });
494
494
  }
495
495
  async offlineExportPrivateKey({ keyShares, derivationPath }) {
496
- await this.initializeIframeCommunication();
496
+ await this.initializeMessageTransport();
497
497
  if (!this.iframeMessageHandler) {
498
498
  throw new Error('Iframe message handler not initialized');
499
499
  }
package/index.esm.js CHANGED
@@ -306,7 +306,7 @@ class DynamicWalletClient {
306
306
  });
307
307
  }
308
308
  async getWallet({ accountAddress, walletOperation = WalletOperation.NO_OPERATION }) {
309
- await this.initializeIframeCommunication();
309
+ await this.initializeMessageTransport();
310
310
  if (!this.iframeMessageHandler) {
311
311
  throw new Error('Iframe message handler not initialized');
312
312
  }
@@ -317,7 +317,7 @@ class DynamicWalletClient {
317
317
  });
318
318
  }
319
319
  async createWalletAccount({ thresholdSignatureScheme, password = undefined }) {
320
- await this.initializeIframeCommunication();
320
+ await this.initializeMessageTransport();
321
321
  if (!this.iframeMessageHandler) {
322
322
  throw new Error('Iframe message handler not initialized');
323
323
  }
@@ -328,7 +328,7 @@ class DynamicWalletClient {
328
328
  });
329
329
  }
330
330
  async requiresPasswordForOperation({ accountAddress, walletOperation = WalletOperation.REACH_THRESHOLD }) {
331
- await this.initializeIframeCommunication();
331
+ await this.initializeMessageTransport();
332
332
  if (!this.iframeMessageHandler) {
333
333
  throw new Error('Iframe message handler not initialized');
334
334
  }
@@ -339,7 +339,7 @@ class DynamicWalletClient {
339
339
  });
340
340
  }
341
341
  async isPasswordEncrypted({ accountAddress }) {
342
- await this.initializeIframeCommunication();
342
+ await this.initializeMessageTransport();
343
343
  if (!this.iframeMessageHandler) {
344
344
  throw new Error('Iframe message handler not initialized');
345
345
  }
@@ -349,7 +349,7 @@ class DynamicWalletClient {
349
349
  });
350
350
  }
351
351
  async signMessage({ message, accountAddress, password = undefined }) {
352
- await this.initializeIframeCommunication();
352
+ await this.initializeMessageTransport();
353
353
  if (!this.iframeMessageHandler) {
354
354
  throw new Error('Iframe message handler not initialized');
355
355
  }
@@ -361,7 +361,7 @@ class DynamicWalletClient {
361
361
  });
362
362
  }
363
363
  async signRawMessage({ message, accountAddress, password = undefined }) {
364
- await this.initializeIframeCommunication();
364
+ await this.initializeMessageTransport();
365
365
  if (!this.iframeMessageHandler) {
366
366
  throw new Error('Iframe message handler not initialized');
367
367
  }
@@ -383,7 +383,7 @@ class DynamicWalletClient {
383
383
  * const txBytes = await txb.build({ client });
384
384
  * const txString = Buffer.from(txBytes).toString("hex");
385
385
  */ async signTransaction({ senderAddress, transaction, password = undefined }) {
386
- await this.initializeIframeCommunication();
386
+ await this.initializeMessageTransport();
387
387
  if (!this.iframeMessageHandler) {
388
388
  throw new Error('Iframe message handler not initialized');
389
389
  }
@@ -395,7 +395,7 @@ class DynamicWalletClient {
395
395
  });
396
396
  }
397
397
  async backupKeySharesToGoogleDrive(request) {
398
- await this.initializeIframeCommunication();
398
+ await this.initializeMessageTransport();
399
399
  if (!this.iframeMessageHandler) {
400
400
  throw new Error('Iframe message handler not initialized');
401
401
  }
@@ -415,7 +415,7 @@ class DynamicWalletClient {
415
415
  });
416
416
  }
417
417
  async refreshWalletAccountShares(request) {
418
- await this.initializeIframeCommunication();
418
+ await this.initializeMessageTransport();
419
419
  if (!this.iframeMessageHandler) {
420
420
  throw new Error('Iframe message handler not initialized');
421
421
  }
@@ -426,7 +426,7 @@ class DynamicWalletClient {
426
426
  });
427
427
  }
428
428
  async reshare(request) {
429
- await this.initializeIframeCommunication();
429
+ await this.initializeMessageTransport();
430
430
  if (!this.iframeMessageHandler) {
431
431
  throw new Error('Iframe message handler not initialized');
432
432
  }
@@ -446,7 +446,7 @@ class DynamicWalletClient {
446
446
  });
447
447
  }
448
448
  async verifyPassword({ accountAddress, password, walletOperation = WalletOperation.NO_OPERATION }) {
449
- await this.initializeIframeCommunication();
449
+ await this.initializeMessageTransport();
450
450
  if (!this.iframeMessageHandler) {
451
451
  throw new Error('Iframe message handler not initialized');
452
452
  }
@@ -458,7 +458,7 @@ class DynamicWalletClient {
458
458
  });
459
459
  }
460
460
  async updatePassword({ accountAddress, existingPassword, newPassword }) {
461
- await this.initializeIframeCommunication();
461
+ await this.initializeMessageTransport();
462
462
  if (!this.iframeMessageHandler) {
463
463
  throw new Error('Iframe message handler not initialized');
464
464
  }
@@ -470,7 +470,7 @@ class DynamicWalletClient {
470
470
  });
471
471
  }
472
472
  async importPrivateKey({ privateKey, chainName, thresholdSignatureScheme }) {
473
- await this.initializeIframeCommunication();
473
+ await this.initializeMessageTransport();
474
474
  if (!this.iframeMessageHandler) {
475
475
  throw new Error('Iframe message handler not initialized');
476
476
  }
@@ -481,7 +481,7 @@ class DynamicWalletClient {
481
481
  });
482
482
  }
483
483
  async exportClientKeyshares({ accountAddress, password }) {
484
- await this.initializeIframeCommunication();
484
+ await this.initializeMessageTransport();
485
485
  if (!this.iframeMessageHandler) {
486
486
  throw new Error('Iframe message handler not initialized');
487
487
  }
@@ -492,7 +492,7 @@ class DynamicWalletClient {
492
492
  });
493
493
  }
494
494
  async offlineExportPrivateKey({ keyShares, derivationPath }) {
495
- await this.initializeIframeCommunication();
495
+ await this.initializeMessageTransport();
496
496
  if (!this.iframeMessageHandler) {
497
497
  throw new Error('Iframe message handler not initialized');
498
498
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/browser-wallet-client",
3
- "version": "0.0.0-beta.164.2",
3
+ "version": "0.0.0-beta.164.3",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
- "@dynamic-labs-wallet/core": "0.0.0-beta.164.2",
6
+ "@dynamic-labs-wallet/core": "0.0.0-beta.164.3",
7
7
  "@dynamic-labs/message-transport": "^4.9.9",
8
8
  "@dynamic-labs/logger": "^4.9.9",
9
9
  "@noble/hashes": "1.7.1"