@dynamic-labs/waas-evm 4.18.5 → 4.18.7

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,38 @@
1
1
 
2
+ ### [4.18.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.6...v4.18.7) (2025-05-21)
3
+
4
+
5
+ ### Features
6
+
7
+ * add zero dev kernel migration to v3.3 ([#8747](https://github.com/dynamic-labs/dynamic-auth/issues/8747)) ([ce10ef8](https://github.com/dynamic-labs/dynamic-auth/commit/ce10ef85d12452c2c21758c909f1e28f9fa5fbae))
8
+ * bump [@dynamic-labs-wallet](https://github.com/dynamic-labs-wallet) to v0.0.74 ([#8746](https://github.com/dynamic-labs/dynamic-auth/issues/8746)) ([98e3a0b](https://github.com/dynamic-labs/dynamic-auth/commit/98e3a0b845e7d6c34a2c748597198825713f4bcf))
9
+ * support kernel versio 0.3.2 and 0.3.3 ([#8738](https://github.com/dynamic-labs/dynamic-auth/issues/8738)) ([1115830](https://github.com/dynamic-labs/dynamic-auth/commit/1115830966318960d39a497c8b29188d9d9a447f))
10
+ * v3 solana confirmation ui ([#8731](https://github.com/dynamic-labs/dynamic-auth/issues/8731)) ([cfa5ba0](https://github.com/dynamic-labs/dynamic-auth/commit/cfa5ba07a946b847e60388c80afbd8aa233e9ebf))
11
+ * v3 svm send balance ([#8726](https://github.com/dynamic-labs/dynamic-auth/issues/8726)) ([236ec48](https://github.com/dynamic-labs/dynamic-auth/commit/236ec4843152f4b720aa7332e650db68c2d111b2))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **alex/qntm-3201:** send empty data field when using zksync sendbalance ([#8733](https://github.com/dynamic-labs/dynamic-auth/issues/8733)) ([4c42035](https://github.com/dynamic-labs/dynamic-auth/commit/4c420350cf7404ac80db8b552594233a3de9fb57))
17
+ * allow for continuing signing if zksync account exists while attempting to deploy ([#8736](https://github.com/dynamic-labs/dynamic-auth/issues/8736)) ([1ff82e4](https://github.com/dynamic-labs/dynamic-auth/commit/1ff82e418e14300b9dec662fba517c5533c1caac))
18
+ * api kernel version on react native extension ([#8754](https://github.com/dynamic-labs/dynamic-auth/issues/8754)) ([c2f0bb4](https://github.com/dynamic-labs/dynamic-auth/commit/c2f0bb4ac86214f4e3bbdac5cf4b481a7a304449))
19
+ * CTRL wallet eip6963 detection ([#8727](https://github.com/dynamic-labs/dynamic-auth/issues/8727)) ([194334f](https://github.com/dynamic-labs/dynamic-auth/commit/194334f7fd541917d9a7f6b452145a47cf7ae853))
20
+ * **QNTM-3249:** fix mobile layout alignment in send view ([#8740](https://github.com/dynamic-labs/dynamic-auth/issues/8740)) ([7d8e02c](https://github.com/dynamic-labs/dynamic-auth/commit/7d8e02c11830f547b6fcfbc7b518ee3f045df41a))
21
+
22
+ ### [4.18.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.5...v4.18.6) (2025-05-16)
23
+
24
+
25
+ ### Features
26
+
27
+ * remove alert on wallet icon fail errors ([#8719](https://github.com/dynamic-labs/dynamic-auth/issues/8719)) ([3257160](https://github.com/dynamic-labs/dynamic-auth/commit/3257160ec2ce422e76ccf5e5adc10f92e73c3c61))
28
+ * evm export waas ([#8669](https://github.com/dynamic-labs/dynamic-auth/issues/8669)) ([c8f6199](https://github.com/dynamic-labs/dynamic-auth/commit/c8f6199914c5c0791996e0dfad1ac5642c327bea))
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * onramps hook ([#8700](https://github.com/dynamic-labs/dynamic-auth/issues/8700)) ([33d0fb5](https://github.com/dynamic-labs/dynamic-auth/commit/33d0fb5e83db627aeea5ce2f07871cd4029c118a))
34
+ * use mainnet as default SVM cluster ([#8721](https://github.com/dynamic-labs/dynamic-auth/issues/8721)) ([5408f9a](https://github.com/dynamic-labs/dynamic-auth/commit/5408f9afbd2b4c6dfaf041c661cc3fb4802b6c05))
35
+
2
36
  ### [4.18.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.4...v4.18.5) (2025-05-15)
3
37
 
4
38
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.18.5";
6
+ var version = "4.18.7";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.18.5";
2
+ var version = "4.18.7";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-evm",
3
- "version": "4.18.5",
3
+ "version": "4.18.7",
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,15 +18,15 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-wallet/evm": "0.0.65",
22
- "@dynamic-labs/sdk-api-core": "0.0.667",
21
+ "@dynamic-labs-wallet/evm": "0.0.74",
22
+ "@dynamic-labs/sdk-api-core": "0.0.672",
23
23
  "viem": "^2.28.4",
24
- "@dynamic-labs/assert-package-version": "4.18.5",
25
- "@dynamic-labs/ethereum-core": "4.18.5",
26
- "@dynamic-labs/logger": "4.18.5",
27
- "@dynamic-labs/types": "4.18.5",
28
- "@dynamic-labs/utils": "4.18.5",
29
- "@dynamic-labs/wallet-connector-core": "4.18.5"
24
+ "@dynamic-labs/assert-package-version": "4.18.7",
25
+ "@dynamic-labs/ethereum-core": "4.18.7",
26
+ "@dynamic-labs/logger": "4.18.7",
27
+ "@dynamic-labs/types": "4.18.7",
28
+ "@dynamic-labs/utils": "4.18.7",
29
+ "@dynamic-labs/wallet-connector-core": "4.18.7"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
@@ -14,12 +14,28 @@ var ethereumCore = require('@dynamic-labs/ethereum-core');
14
14
  var utils = require('@dynamic-labs/utils');
15
15
 
16
16
  const logger = new logger$1.Logger('DynamicWaasConnector');
17
+ // This will need to be moved to a base class once we have base classes for waas connectors
18
+ class WaasExportHandler {
19
+ constructor() {
20
+ this.iframeStamper = null;
21
+ }
22
+ setIframeStamper(iframe) {
23
+ this.iframeStamper = iframe;
24
+ }
25
+ clear() {
26
+ if (this.iframeStamper) {
27
+ this.iframeStamper.remove();
28
+ this.iframeStamper = null;
29
+ }
30
+ }
31
+ }
17
32
  class DynamicWaasEVMConnector extends ethereumCore.EthereumWalletConnector {
18
33
  constructor(props) {
19
34
  super(props);
20
35
  this.name = 'Dynamic Waas';
21
36
  this.overrideKey = 'dynamicwaas';
22
37
  this.isEmbeddedWallet = true;
38
+ this.__exportHandler = new WaasExportHandler();
23
39
  }
24
40
  set verifiedCredentials(verifiedCredentials) {
25
41
  this._verifiedCredentials = verifiedCredentials;
@@ -252,12 +268,16 @@ class DynamicWaasEVMConnector extends ethereumCore.EthereumWalletConnector {
252
268
  if (!displayContainer) {
253
269
  throw new Error('Missing display container for export private key');
254
270
  }
271
+ this.__exportHandler.setIframeStamper(displayContainer);
255
272
  yield walletClient.exportPrivateKey({
256
273
  accountAddress: targetAccountAddress,
257
274
  displayContainer,
258
275
  });
259
276
  });
260
277
  }
278
+ getExportHandler() {
279
+ return this.__exportHandler;
280
+ }
261
281
  importPrivateKey(_a) {
262
282
  return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, chainName, thresholdSignatureScheme = 'TWO_OF_TWO', }) {
263
283
  const walletClient = this.getWaasWalletClient();
@@ -17,6 +17,7 @@ export declare class DynamicWaasEVMConnector extends EthereumWalletConnector imp
17
17
  private environmentId?;
18
18
  private getAuthToken?;
19
19
  private dynamicWaasClient;
20
+ private __exportHandler;
20
21
  private baseApiUrl?;
21
22
  private relayUrl?;
22
23
  /**
@@ -71,6 +72,9 @@ export declare class DynamicWaasEVMConnector extends EthereumWalletConnector imp
71
72
  accountAddress?: string;
72
73
  displayContainer?: HTMLIFrameElement;
73
74
  }): Promise<void>;
75
+ getExportHandler(): {
76
+ clear: () => void;
77
+ };
74
78
  importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, }: {
75
79
  privateKey: string;
76
80
  chainName: string;
@@ -10,12 +10,28 @@ import { EthereumWalletConnector, createWalletClientWithUiConfirmation, getOrMap
10
10
  import { DynamicError } from '@dynamic-labs/utils';
11
11
 
12
12
  const logger = new Logger('DynamicWaasConnector');
13
+ // This will need to be moved to a base class once we have base classes for waas connectors
14
+ class WaasExportHandler {
15
+ constructor() {
16
+ this.iframeStamper = null;
17
+ }
18
+ setIframeStamper(iframe) {
19
+ this.iframeStamper = iframe;
20
+ }
21
+ clear() {
22
+ if (this.iframeStamper) {
23
+ this.iframeStamper.remove();
24
+ this.iframeStamper = null;
25
+ }
26
+ }
27
+ }
13
28
  class DynamicWaasEVMConnector extends EthereumWalletConnector {
14
29
  constructor(props) {
15
30
  super(props);
16
31
  this.name = 'Dynamic Waas';
17
32
  this.overrideKey = 'dynamicwaas';
18
33
  this.isEmbeddedWallet = true;
34
+ this.__exportHandler = new WaasExportHandler();
19
35
  }
20
36
  set verifiedCredentials(verifiedCredentials) {
21
37
  this._verifiedCredentials = verifiedCredentials;
@@ -248,12 +264,16 @@ class DynamicWaasEVMConnector extends EthereumWalletConnector {
248
264
  if (!displayContainer) {
249
265
  throw new Error('Missing display container for export private key');
250
266
  }
267
+ this.__exportHandler.setIframeStamper(displayContainer);
251
268
  yield walletClient.exportPrivateKey({
252
269
  accountAddress: targetAccountAddress,
253
270
  displayContainer,
254
271
  });
255
272
  });
256
273
  }
274
+ getExportHandler() {
275
+ return this.__exportHandler;
276
+ }
257
277
  importPrivateKey(_a) {
258
278
  return __awaiter(this, arguments, void 0, function* ({ privateKey, chainName, thresholdSignatureScheme = 'TWO_OF_TWO', }) {
259
279
  const walletClient = this.getWaasWalletClient();