@dynamic-labs/ethereum-aa 4.29.3 → 4.29.4

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,6 @@
1
1
 
2
+ ### [4.29.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.29.3...v4.29.4) (2025-08-26)
3
+
2
4
  ### [4.29.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.29.2...v4.29.3) (2025-08-26)
3
5
 
4
6
  ### [4.29.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.29.1...v4.29.2) (2025-08-25)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.29.3";
6
+ var version = "4.29.4";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.29.3";
2
+ var version = "4.29.4";
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.29.3",
3
+ "version": "4.29.4",
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",
@@ -22,14 +22,14 @@
22
22
  "@zerodev/ecdsa-validator": "5.4.9",
23
23
  "@zerodev/multi-chain-ecdsa-validator": "5.4.5",
24
24
  "@zerodev/sdk": "5.4.36",
25
- "@dynamic-labs/assert-package-version": "4.29.3",
26
- "@dynamic-labs/ethereum-aa-core": "4.29.3",
27
- "@dynamic-labs/ethereum-core": "4.29.3",
28
- "@dynamic-labs/logger": "4.29.3",
29
- "@dynamic-labs/types": "4.29.3",
30
- "@dynamic-labs/utils": "4.29.3",
31
- "@dynamic-labs/wallet-book": "4.29.3",
32
- "@dynamic-labs/wallet-connector-core": "4.29.3"
25
+ "@dynamic-labs/assert-package-version": "4.29.4",
26
+ "@dynamic-labs/ethereum-aa-core": "4.29.4",
27
+ "@dynamic-labs/ethereum-core": "4.29.4",
28
+ "@dynamic-labs/logger": "4.29.4",
29
+ "@dynamic-labs/types": "4.29.4",
30
+ "@dynamic-labs/utils": "4.29.4",
31
+ "@dynamic-labs/wallet-book": "4.29.4",
32
+ "@dynamic-labs/wallet-connector-core": "4.29.4"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "viem": "^2.28.4"
@@ -559,9 +559,11 @@ class ZeroDevConnector extends ethereumAaCore.AccountAbstractionBaseConnector {
559
559
  viem.toHex(params.paymasterPostOpGasLimit).slice(2).padStart(32, '0') + // Make sure it's 32 chars
560
560
  params.paymasterData.slice(2) // Include full paymaster data
561
561
  : '0x';
562
- return Object.assign({ accountGasLimits: accountGasLimits, callData: params.callData, gasFees: gasFees, initCode, nonce: viem.toHex(params.nonce), paymasterAndData: paymasterAndData.toLowerCase(), preVerificationGas: preVerificationGas, sender: params.sender, signature: '0x' }, (withAuthorization && {
563
- eip7702Auth: params.authorization,
562
+ const response = Object.assign({ accountGasLimits: accountGasLimits, callData: params.callData, gasFees: gasFees, initCode, nonce: viem.toHex(params.nonce), paymasterAndData: paymasterAndData.toLowerCase(), preVerificationGas: preVerificationGas, sender: params.sender, signature: '0x' }, (withAuthorization &&
563
+ params.authorization && {
564
+ eip7702Auth: Object.assign(Object.assign({}, params.authorization), { chainId: viem.toHex(params.authorization.chainId), nonce: viem.toHex(params.authorization.nonce), yParity: viem.toHex(params.authorization.yParity) }),
564
565
  }));
566
+ return response;
565
567
  });
566
568
  }
567
569
  signAndSendUserOperationWithWaas(provider, userOperation) {
@@ -571,16 +573,15 @@ class ZeroDevConnector extends ethereumAaCore.AccountAbstractionBaseConnector {
571
573
  chainId: chainId,
572
574
  entryPointAddress: this.entryPoint.address,
573
575
  entryPointVersion: this.entryPoint.version,
574
- userOperation: userOperation,
576
+ userOperation,
575
577
  });
576
- const formattedUserOperation = yield this.formatUserOperation(userOperation, true);
577
578
  // At this point we know eoaConnector is a WAAS connector
578
579
  const signature = yield this.eoaConnector.signMessageWithContext({
579
580
  context: {
580
581
  evmUserOperation: {
581
582
  chainId,
582
583
  entryPoint: this.entryPoint.address,
583
- operation: formattedUserOperation,
584
+ operation: userOperation,
584
585
  },
585
586
  },
586
587
  message: { raw: hash },
@@ -131,34 +131,7 @@ export declare class ZeroDevConnector extends AccountAbstractionBaseConnector im
131
131
  private getTransport;
132
132
  getWalletClient(chainId?: string): WalletClient<Transport, ViemChain, Account> | undefined;
133
133
  getPublicClient(): Promise<void | PublicClient<Transport, ViemChain> | undefined>;
134
- formatUserOperation(params: any, withAuthorization?: boolean): Promise<{
135
- callData: any;
136
- callGasLimit: `0x${string}`;
137
- initCode: string;
138
- maxFeePerGas: `0x${string}`;
139
- maxPriorityFeePerGas: `0x${string}`;
140
- nonce: `0x${string}`;
141
- paymasterAndData: any;
142
- preVerificationGas: `0x${string}`;
143
- sender: any;
144
- signature: string;
145
- verificationGasLimit: `0x${string}`;
146
- } | {
147
- eip7702Auth?: any;
148
- accountGasLimits: string;
149
- callData: any;
150
- gasFees: string;
151
- initCode: string;
152
- nonce: `0x${string}`;
153
- paymasterAndData: string;
154
- preVerificationGas: `0x${string}`;
155
- sender: any;
156
- signature: string;
157
- callGasLimit?: undefined;
158
- maxFeePerGas?: undefined;
159
- maxPriorityFeePerGas?: undefined;
160
- verificationGasLimit?: undefined;
161
- }>;
134
+ formatUserOperation(params: any, withAuthorization?: boolean): Promise<any>;
162
135
  private signAndSendUserOperationWithWaas;
163
136
  getCurrentUserOperation(transaction: {
164
137
  from: string;
@@ -555,9 +555,11 @@ class ZeroDevConnector extends AccountAbstractionBaseConnector {
555
555
  toHex(params.paymasterPostOpGasLimit).slice(2).padStart(32, '0') + // Make sure it's 32 chars
556
556
  params.paymasterData.slice(2) // Include full paymaster data
557
557
  : '0x';
558
- return Object.assign({ accountGasLimits: accountGasLimits, callData: params.callData, gasFees: gasFees, initCode, nonce: toHex(params.nonce), paymasterAndData: paymasterAndData.toLowerCase(), preVerificationGas: preVerificationGas, sender: params.sender, signature: '0x' }, (withAuthorization && {
559
- eip7702Auth: params.authorization,
558
+ const response = Object.assign({ accountGasLimits: accountGasLimits, callData: params.callData, gasFees: gasFees, initCode, nonce: toHex(params.nonce), paymasterAndData: paymasterAndData.toLowerCase(), preVerificationGas: preVerificationGas, sender: params.sender, signature: '0x' }, (withAuthorization &&
559
+ params.authorization && {
560
+ eip7702Auth: Object.assign(Object.assign({}, params.authorization), { chainId: toHex(params.authorization.chainId), nonce: toHex(params.authorization.nonce), yParity: toHex(params.authorization.yParity) }),
560
561
  }));
562
+ return response;
561
563
  });
562
564
  }
563
565
  signAndSendUserOperationWithWaas(provider, userOperation) {
@@ -567,16 +569,15 @@ class ZeroDevConnector extends AccountAbstractionBaseConnector {
567
569
  chainId: chainId,
568
570
  entryPointAddress: this.entryPoint.address,
569
571
  entryPointVersion: this.entryPoint.version,
570
- userOperation: userOperation,
572
+ userOperation,
571
573
  });
572
- const formattedUserOperation = yield this.formatUserOperation(userOperation, true);
573
574
  // At this point we know eoaConnector is a WAAS connector
574
575
  const signature = yield this.eoaConnector.signMessageWithContext({
575
576
  context: {
576
577
  evmUserOperation: {
577
578
  chainId,
578
579
  entryPoint: this.entryPoint.address,
579
- operation: formattedUserOperation,
580
+ operation: userOperation,
580
581
  },
581
582
  },
582
583
  message: { raw: hash },