@dynamic-labs/waas-svm 4.19.6 → 4.20.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/CHANGELOG.md CHANGED
@@ -1,4 +1,30 @@
1
1
 
2
+ ## [4.20.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.7...v4.20.0) (2025-06-09)
3
+
4
+
5
+ ### Features
6
+
7
+ * encapsulate waas connectors within main connectors ([#8878](https://github.com/dynamic-labs/dynamic-auth/issues/8878)) ([fd1b6ab](https://github.com/dynamic-labs/dynamic-auth/commit/fd1b6ab037ff7ce5c66b30d9611689e8cc03b97b))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * hide duplicate social connection logo on global wallets ([#8903](https://github.com/dynamic-labs/dynamic-auth/issues/8903)) ([c2f86e7](https://github.com/dynamic-labs/dynamic-auth/commit/c2f86e7aae91764b174abaa18439ffbdf7287475))
13
+
14
+ ### [4.19.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.6...v4.19.7) (2025-06-06)
15
+
16
+
17
+ ### Features
18
+
19
+ * add util to find waas wallets ([#8871](https://github.com/dynamic-labs/dynamic-auth/issues/8871)) ([2d7114e](https://github.com/dynamic-labs/dynamic-auth/commit/2d7114e51f5badf1d04600597f1fd9433fabf3d0))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * make sure smart account is deployed before creating sessions ([#8894](https://github.com/dynamic-labs/dynamic-auth/issues/8894)) ([5ba3d23](https://github.com/dynamic-labs/dynamic-auth/commit/5ba3d23bb8ef7c7438809128c8ef74c390ba1d48))
25
+ * only deploy zksync smart account if not deployed ([#8840](https://github.com/dynamic-labs/dynamic-auth/issues/8840)) ([66a306a](https://github.com/dynamic-labs/dynamic-auth/commit/66a306aaee25c58f685fa050a5d6aea79b196fce))
26
+ * primary wallet loading time when using React 19 ([#8896](https://github.com/dynamic-labs/dynamic-auth/issues/8896)) ([f5690f3](https://github.com/dynamic-labs/dynamic-auth/commit/f5690f31012e8fc6a5650423d4ece6c04f7c1811))
27
+
2
28
  ### [4.19.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.5...v4.19.6) (2025-06-04)
3
29
 
4
30
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.19.6";
6
+ var version = "4.20.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.19.6";
2
+ var version = "4.20.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-svm",
3
- "version": "4.19.6",
3
+ "version": "4.20.0",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,17 +18,17 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-wallet/browser-wallet-client": "0.0.84",
21
+ "@dynamic-labs-wallet/browser-wallet-client": "0.0.85",
22
22
  "@solana/web3.js": "1.98.1",
23
23
  "eventemitter3": "5.0.1",
24
24
  "bs58": "5.0.0",
25
- "@dynamic-labs/assert-package-version": "4.19.6",
26
- "@dynamic-labs/logger": "4.19.6",
27
- "@dynamic-labs/rpc-providers": "4.19.6",
28
- "@dynamic-labs/solana-core": "4.19.6",
29
- "@dynamic-labs/types": "4.19.6",
30
- "@dynamic-labs/utils": "4.19.6",
31
- "@dynamic-labs/wallet-connector-core": "4.19.6"
25
+ "@dynamic-labs/assert-package-version": "4.20.0",
26
+ "@dynamic-labs/logger": "4.20.0",
27
+ "@dynamic-labs/rpc-providers": "4.20.0",
28
+ "@dynamic-labs/solana-core": "4.20.0",
29
+ "@dynamic-labs/types": "4.20.0",
30
+ "@dynamic-labs/utils": "4.20.0",
31
+ "@dynamic-labs/wallet-connector-core": "4.20.0"
32
32
  },
33
33
  "peerDependencies": {}
34
34
  }
@@ -7,8 +7,8 @@ var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var browserWalletClient = require('@dynamic-labs-wallet/browser-wallet-client');
8
8
  var web3_js = require('@solana/web3.js');
9
9
  var solanaCore = require('@dynamic-labs/solana-core');
10
- var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
11
10
  var utils = require('@dynamic-labs/utils');
11
+ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
12
12
  var logger = require('../../utils/logger.cjs');
13
13
  var DynamicWaasSVMSigner = require('../signer/DynamicWaasSVMSigner.cjs');
14
14
 
@@ -248,7 +248,7 @@ class DynamicWaasSVMConnector extends solanaCore.SolanaWalletConnector {
248
248
  return this.getWalletClient();
249
249
  }
250
250
  exportPrivateKey() {
251
- return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, } = {}) {
251
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, password, } = {}) {
252
252
  const walletClient = this.getWaasWalletClient();
253
253
  const targetAccountAddress = accountAddress || this.activeAccountAddress;
254
254
  if (!targetAccountAddress) {
@@ -261,6 +261,7 @@ class DynamicWaasSVMConnector extends solanaCore.SolanaWalletConnector {
261
261
  yield walletClient.exportPrivateKey({
262
262
  accountAddress: targetAccountAddress,
263
263
  displayContainer,
264
+ password,
264
265
  });
265
266
  });
266
267
  }
@@ -276,8 +277,60 @@ class DynamicWaasSVMConnector extends solanaCore.SolanaWalletConnector {
276
277
  });
277
278
  });
278
279
  }
280
+ backupKeySharesToGoogleDrive(_a) {
281
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
282
+ if (!accountAddress) {
283
+ throw new Error('Account address is required');
284
+ }
285
+ const walletClient = this.getWaasWalletClient();
286
+ return walletClient.backupKeySharesToGoogleDrive({
287
+ accountAddress,
288
+ password,
289
+ });
290
+ });
291
+ }
292
+ refreshWalletAccountShares(_a) {
293
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
294
+ if (!accountAddress) {
295
+ throw new Error('Account address is required');
296
+ }
297
+ const walletClient = this.getWaasWalletClient();
298
+ return walletClient.refreshWalletAccountShares({
299
+ accountAddress,
300
+ password,
301
+ });
302
+ });
303
+ }
304
+ updatePassword(_a) {
305
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, existingPassword, newPassword, }) {
306
+ if (!accountAddress) {
307
+ throw new Error('Account address is required');
308
+ }
309
+ const walletClient = this.getWaasWalletClient();
310
+ return walletClient.updatePassword({
311
+ accountAddress,
312
+ existingPassword,
313
+ newPassword,
314
+ });
315
+ });
316
+ }
317
+ signRawMessage(_a) {
318
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, message, }) {
319
+ if (!accountAddress) {
320
+ throw new Error('Account address is required');
321
+ }
322
+ if (message.length !== 64) {
323
+ throw new Error('Message must be 64 characters long');
324
+ }
325
+ const walletClient = this.getWaasWalletClient();
326
+ return walletClient.signRawMessage({
327
+ accountAddress,
328
+ message,
329
+ });
330
+ });
331
+ }
279
332
  exportClientKeyshares(_a) {
280
- return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, }) {
333
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
281
334
  const walletClient = this.getWaasWalletClient();
282
335
  const targetAccountAddress = accountAddress || this.activeAccountAddress;
283
336
  if (!targetAccountAddress) {
@@ -285,6 +338,7 @@ class DynamicWaasSVMConnector extends solanaCore.SolanaWalletConnector {
285
338
  }
286
339
  yield walletClient.exportClientKeyshares({
287
340
  accountAddress: targetAccountAddress,
341
+ password,
288
342
  });
289
343
  });
290
344
  }
@@ -1,7 +1,7 @@
1
1
  import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
2
- import { Connection, Transaction, VersionedTransaction, SendOptions } from '@solana/web3.js';
3
- import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
2
+ import { Connection, SendOptions, Transaction, VersionedTransaction } from '@solana/web3.js';
4
3
  import { ISolanaSigner, SolanaWalletConnector, SolanaWalletConnectorOpts } from '@dynamic-labs/solana-core';
4
+ import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
5
5
  import { IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
6
6
  export type DynamicWaasSVMConnectorProps = SolanaWalletConnectorOpts & {
7
7
  walletUiUtils: WalletUiUtils<InternalWalletConnector>;
@@ -26,7 +26,7 @@ export declare class DynamicWaasSVMConnector extends SolanaWalletConnector imple
26
26
  setRelayUrl(relayUrl: string): void;
27
27
  private setActiveAccountAddress;
28
28
  createDynamicWaasClient(): DynamicWalletClient;
29
- getWaasWalletClient(): DynamicWalletClient;
29
+ private getWaasWalletClient;
30
30
  validateActiveWallet(expectedAddress: string): Promise<void>;
31
31
  createWalletAccount({ thresholdSignatureScheme, }?: {
32
32
  thresholdSignatureScheme?: string;
@@ -48,9 +48,10 @@ export declare class DynamicWaasSVMConnector extends SolanaWalletConnector imple
48
48
  getWalletClientByAddress({ accountAddress, }: {
49
49
  accountAddress: string;
50
50
  }): Connection;
51
- exportPrivateKey({ accountAddress, displayContainer, }?: {
51
+ exportPrivateKey({ accountAddress, displayContainer, password, }?: {
52
52
  accountAddress?: string;
53
53
  displayContainer?: HTMLIFrameElement;
54
+ password?: string;
54
55
  }): Promise<void>;
55
56
  getExportHandler(): {
56
57
  clear: () => void;
@@ -59,8 +60,26 @@ export declare class DynamicWaasSVMConnector extends SolanaWalletConnector imple
59
60
  privateKey: string;
60
61
  thresholdSignatureScheme?: string;
61
62
  }): Promise<void>;
62
- exportClientKeyshares({ accountAddress, }: {
63
+ backupKeySharesToGoogleDrive({ accountAddress, password, }: {
64
+ accountAddress: string;
65
+ password?: string;
66
+ }): Promise<void>;
67
+ refreshWalletAccountShares({ accountAddress, password, }: {
68
+ accountAddress: string;
69
+ password?: string;
70
+ }): Promise<void>;
71
+ updatePassword({ accountAddress, existingPassword, newPassword, }: {
72
+ accountAddress: string;
73
+ existingPassword: string;
74
+ newPassword: string;
75
+ }): Promise<void>;
76
+ signRawMessage({ accountAddress, message, }: {
77
+ accountAddress: string;
78
+ message: string;
79
+ }): Promise<string>;
80
+ exportClientKeyshares({ accountAddress, password, }: {
63
81
  accountAddress: string;
82
+ password?: string;
64
83
  }): Promise<void>;
65
84
  createUiTransaction(from: string): Promise<IUITransaction>;
66
85
  endSession(): Promise<void>;
@@ -3,8 +3,8 @@ import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
4
4
  import { Transaction, PublicKey } from '@solana/web3.js';
5
5
  import { SolanaWalletConnector, SolanaUiTransaction } from '@dynamic-labs/solana-core';
6
- import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
7
6
  import { DynamicError } from '@dynamic-labs/utils';
7
+ import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
8
8
  import { logger } from '../../utils/logger.js';
9
9
  import { DynamicWaasSVMSigner } from '../signer/DynamicWaasSVMSigner.js';
10
10
 
@@ -244,7 +244,7 @@ class DynamicWaasSVMConnector extends SolanaWalletConnector {
244
244
  return this.getWalletClient();
245
245
  }
246
246
  exportPrivateKey() {
247
- return __awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, } = {}) {
247
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, password, } = {}) {
248
248
  const walletClient = this.getWaasWalletClient();
249
249
  const targetAccountAddress = accountAddress || this.activeAccountAddress;
250
250
  if (!targetAccountAddress) {
@@ -257,6 +257,7 @@ class DynamicWaasSVMConnector extends SolanaWalletConnector {
257
257
  yield walletClient.exportPrivateKey({
258
258
  accountAddress: targetAccountAddress,
259
259
  displayContainer,
260
+ password,
260
261
  });
261
262
  });
262
263
  }
@@ -272,8 +273,60 @@ class DynamicWaasSVMConnector extends SolanaWalletConnector {
272
273
  });
273
274
  });
274
275
  }
276
+ backupKeySharesToGoogleDrive(_a) {
277
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
278
+ if (!accountAddress) {
279
+ throw new Error('Account address is required');
280
+ }
281
+ const walletClient = this.getWaasWalletClient();
282
+ return walletClient.backupKeySharesToGoogleDrive({
283
+ accountAddress,
284
+ password,
285
+ });
286
+ });
287
+ }
288
+ refreshWalletAccountShares(_a) {
289
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
290
+ if (!accountAddress) {
291
+ throw new Error('Account address is required');
292
+ }
293
+ const walletClient = this.getWaasWalletClient();
294
+ return walletClient.refreshWalletAccountShares({
295
+ accountAddress,
296
+ password,
297
+ });
298
+ });
299
+ }
300
+ updatePassword(_a) {
301
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, existingPassword, newPassword, }) {
302
+ if (!accountAddress) {
303
+ throw new Error('Account address is required');
304
+ }
305
+ const walletClient = this.getWaasWalletClient();
306
+ return walletClient.updatePassword({
307
+ accountAddress,
308
+ existingPassword,
309
+ newPassword,
310
+ });
311
+ });
312
+ }
313
+ signRawMessage(_a) {
314
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, message, }) {
315
+ if (!accountAddress) {
316
+ throw new Error('Account address is required');
317
+ }
318
+ if (message.length !== 64) {
319
+ throw new Error('Message must be 64 characters long');
320
+ }
321
+ const walletClient = this.getWaasWalletClient();
322
+ return walletClient.signRawMessage({
323
+ accountAddress,
324
+ message,
325
+ });
326
+ });
327
+ }
275
328
  exportClientKeyshares(_a) {
276
- return __awaiter(this, arguments, void 0, function* ({ accountAddress, }) {
329
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
277
330
  const walletClient = this.getWaasWalletClient();
278
331
  const targetAccountAddress = accountAddress || this.activeAccountAddress;
279
332
  if (!targetAccountAddress) {
@@ -281,6 +334,7 @@ class DynamicWaasSVMConnector extends SolanaWalletConnector {
281
334
  }
282
335
  yield walletClient.exportClientKeyshares({
283
336
  accountAddress: targetAccountAddress,
337
+ password,
284
338
  });
285
339
  });
286
340
  }