@dynamic-labs/ethereum-aa 4.9.13-preview.0 → 4.9.13-preview.1

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,19 @@
1
1
 
2
+ ### [4.9.13-preview.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.9.13-preview.1) (2025-03-29)
3
+
4
+
5
+ ### Features
6
+
7
+ * add zk sync aa connector ([7ef9031](https://github.com/dynamic-labs/dynamic-auth/commit/7ef9031ce709b1ebc2d908da7d120e83733be7cf))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * Adjust parallel tasks to default 16 ([#8413](https://github.com/dynamic-labs/dynamic-auth/issues/8413)) ([b62d34c](https://github.com/dynamic-labs/dynamic-auth/commit/b62d34cb780859d3d8414421539116520d0ebcbd))
13
+ * do not prompt passkey with 7702 on v2 wallets ([#8391](https://github.com/dynamic-labs/dynamic-auth/issues/8391)) ([bb91396](https://github.com/dynamic-labs/dynamic-auth/commit/bb913965121e97801922f5ca828d11e4a551a3b6))
14
+ * ensure the global wallet app url is used ([#8404](https://github.com/dynamic-labs/dynamic-auth/issues/8404)) ([23a7d91](https://github.com/dynamic-labs/dynamic-auth/commit/23a7d91b50cc85e67de52306f91163c675e0f007))
15
+ * **global-wallet-client:** use global wallet env id when storing data to ls ([#8405](https://github.com/dynamic-labs/dynamic-auth/issues/8405)) ([2b3d9ce](https://github.com/dynamic-labs/dynamic-auth/commit/2b3d9ce8dd82dda487759e0621c73bfad2842aef))
16
+
2
17
  ### [4.9.13-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.9.13-preview.0) (2025-03-28)
3
18
 
4
19
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.9.13-preview.0";
6
+ var version = "4.9.13-preview.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.9.13-preview.0";
2
+ var version = "4.9.13-preview.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-aa",
3
- "version": "4.9.13-preview.0",
3
+ "version": "4.9.13-preview.1",
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",
@@ -24,13 +24,13 @@
24
24
  "@zerodev/sdk": "5.4.26",
25
25
  "abitype": "1.0.2",
26
26
  "zksync-sso": "0.0.0-beta.12",
27
- "@dynamic-labs/assert-package-version": "4.9.13-preview.0",
28
- "@dynamic-labs/ethereum-core": "4.9.13-preview.0",
29
- "@dynamic-labs/logger": "4.9.13-preview.0",
30
- "@dynamic-labs/types": "4.9.13-preview.0",
31
- "@dynamic-labs/utils": "4.9.13-preview.0",
32
- "@dynamic-labs/wallet-book": "4.9.13-preview.0",
33
- "@dynamic-labs/wallet-connector-core": "4.9.13-preview.0"
27
+ "@dynamic-labs/assert-package-version": "4.9.13-preview.1",
28
+ "@dynamic-labs/ethereum-core": "4.9.13-preview.1",
29
+ "@dynamic-labs/logger": "4.9.13-preview.1",
30
+ "@dynamic-labs/types": "4.9.13-preview.1",
31
+ "@dynamic-labs/utils": "4.9.13-preview.1",
32
+ "@dynamic-labs/wallet-book": "4.9.13-preview.1",
33
+ "@dynamic-labs/wallet-connector-core": "4.9.13-preview.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "viem": "^2.21.55"
@@ -63,7 +63,7 @@ class ZKsyncConnector extends AccountAbstractionConnector.AccountAbstractionConn
63
63
  getPublicClient() {
64
64
  return _tslib.__awaiter(this, void 0, void 0, function* () {
65
65
  return viem.createPublicClient({
66
- chain: zksync.zksyncSepoliaTestnet,
66
+ chain: ethereumCore.getOrMapViemChain(this.evmNetworks[0]),
67
67
  transport: viem.http(),
68
68
  });
69
69
  });
@@ -86,7 +86,7 @@ class ZKsyncConnector extends AccountAbstractionConnector.AccountAbstractionConn
86
86
  }
87
87
  const walletClient = yield client.createZksyncEcdsaClient({
88
88
  address: this.smartAccountAddress,
89
- chain: zksync.zksyncSepoliaTestnet,
89
+ chain: ethereumCore.getOrMapViemChain(this.evmNetworks[0]),
90
90
  contracts: {
91
91
  accountFactory: this.factoryAddress,
92
92
  session: '0x5Da0ba1366F05a14603FC6aC906B99CdC6BA851A',
@@ -1,10 +1,10 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../_virtual/_tslib.js';
3
3
  import { createPublicClient, http, publicActions, walletActions, toBytes, keccak256, toHex } from 'viem';
4
- import { zksyncSepoliaTestnet, getGeneralPaymasterInput, eip712WalletActions } from 'viem/zksync';
4
+ import { getGeneralPaymasterInput, eip712WalletActions } from 'viem/zksync';
5
5
  import { deployAccount } from 'zksync-sso/client';
6
6
  import { createZksyncPasskeyClient, registerNewPasskey } from 'zksync-sso/client/passkey';
7
- import { EthereumWallet, createViemUiTransaction } from '@dynamic-labs/ethereum-core';
7
+ import { EthereumWallet, getOrMapViemChain, createViemUiTransaction } from '@dynamic-labs/ethereum-core';
8
8
  import { parseEvmNetworks, StorageService, DynamicError } from '@dynamic-labs/utils';
9
9
  import { AccountAbstractionConnector } from './AccountAbstractionConnector.js';
10
10
  import { AAFactoryABI } from './utils/abi.js';
@@ -59,7 +59,7 @@ class ZKsyncConnector extends AccountAbstractionConnector {
59
59
  getPublicClient() {
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
61
  return createPublicClient({
62
- chain: zksyncSepoliaTestnet,
62
+ chain: getOrMapViemChain(this.evmNetworks[0]),
63
63
  transport: http(),
64
64
  });
65
65
  });
@@ -82,7 +82,7 @@ class ZKsyncConnector extends AccountAbstractionConnector {
82
82
  }
83
83
  const walletClient = yield createZksyncEcdsaClient({
84
84
  address: this.smartAccountAddress,
85
- chain: zksyncSepoliaTestnet,
85
+ chain: getOrMapViemChain(this.evmNetworks[0]),
86
86
  contracts: {
87
87
  accountFactory: this.factoryAddress,
88
88
  session: '0x5Da0ba1366F05a14603FC6aC906B99CdC6BA851A',
@@ -262,6 +262,7 @@ class ZeroDevConnector extends AccountAbstractionConnector.AccountAbstractionCon
262
262
  signer,
263
263
  }),
264
264
  this.createKernelClient({
265
+ authorization: this.authorization,
265
266
  chainId: chain,
266
267
  paymaster: 'SPONSOR',
267
268
  projectId: clientId,
@@ -285,7 +286,7 @@ class ZeroDevConnector extends AccountAbstractionConnector.AccountAbstractionCon
285
286
  });
286
287
  }
287
288
  createKernelClient(_a) {
288
- return _tslib.__awaiter(this, arguments, void 0, function* ({ chainId, projectId, signer, paymaster, }) {
289
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ chainId, projectId, signer, paymaster, authorization, }) {
289
290
  if (chainId && this.providerMap[chainId]) {
290
291
  return paymaster === 'SPONSOR'
291
292
  ? this.providerMap[chainId].kernelClientWithSponsorship
@@ -296,9 +297,9 @@ class ZeroDevConnector extends AccountAbstractionConnector.AccountAbstractionCon
296
297
  throw new utils.DynamicError('No EOA connector');
297
298
  const chain = ethereumCore.chainsMap[chainId];
298
299
  let kernelClient;
299
- if (this.enableEIP7702Mode && this.authorization) {
300
+ if (this.enableEIP7702Mode) {
300
301
  kernelClient = yield createEcsdaKernelAccountClient.createEcdsaKernelAccountClientWith7702({
301
- authorization: this.authorization,
302
+ authorization,
302
303
  bundlerRpc: ZeroDevConnector.bundlerRpc,
303
304
  chain,
304
305
  ecdsaValidator: getEcdsaValidator.getEcdsaValidator(this.ecdsaProviderType),
@@ -258,6 +258,7 @@ class ZeroDevConnector extends AccountAbstractionConnector {
258
258
  signer,
259
259
  }),
260
260
  this.createKernelClient({
261
+ authorization: this.authorization,
261
262
  chainId: chain,
262
263
  paymaster: 'SPONSOR',
263
264
  projectId: clientId,
@@ -281,7 +282,7 @@ class ZeroDevConnector extends AccountAbstractionConnector {
281
282
  });
282
283
  }
283
284
  createKernelClient(_a) {
284
- return __awaiter(this, arguments, void 0, function* ({ chainId, projectId, signer, paymaster, }) {
285
+ return __awaiter(this, arguments, void 0, function* ({ chainId, projectId, signer, paymaster, authorization, }) {
285
286
  if (chainId && this.providerMap[chainId]) {
286
287
  return paymaster === 'SPONSOR'
287
288
  ? this.providerMap[chainId].kernelClientWithSponsorship
@@ -292,9 +293,9 @@ class ZeroDevConnector extends AccountAbstractionConnector {
292
293
  throw new DynamicError('No EOA connector');
293
294
  const chain = chainsMap[chainId];
294
295
  let kernelClient;
295
- if (this.enableEIP7702Mode && this.authorization) {
296
+ if (this.enableEIP7702Mode) {
296
297
  kernelClient = yield createEcdsaKernelAccountClientWith7702({
297
- authorization: this.authorization,
298
+ authorization,
298
299
  bundlerRpc: ZeroDevConnector.bundlerRpc,
299
300
  chain,
300
301
  ecdsaValidator: getEcdsaValidator(this.ecdsaProviderType),
@@ -24,6 +24,6 @@ type CommonClientParams<TChain extends Chain | undefined = Chain | undefined> =
24
24
  };
25
25
  export declare const createEcdsaKernelAccountClient: <entryPoint extends EntryPointVersion, TChain extends ViemChain | undefined = ViemChain | undefined>({ bundlerRpc, chain, paymasterRpc, projectId, signer, provider, paymaster, entryPoint, kernelVersion, ecdsaValidator, enableKernelV3Migration, }: CommonClientParams<TChain>) => Promise<KernelAccountClient<Transport, ViemChain, SmartAccount, Client, RpcSchema>>;
26
26
  export declare const createEcdsaKernelAccountClientWith7702: <TChain extends ViemChain | undefined = ViemChain | undefined>({ bundlerRpc, chain, paymasterRpc, projectId, signer, provider, authorization, paymaster, entryPoint, kernelVersion, ecdsaValidator, }: CommonClientParams<TChain> & {
27
- authorization: SignAuthorizationReturnType;
27
+ authorization?: SignAuthorizationReturnType;
28
28
  }) => Promise<KernelAccountClient<Transport, ViemChain, SmartAccount, Client, RpcSchema>>;
29
29
  export {};