@dynamic-labs/ethereum-aa 4.27.1 → 4.29.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,18 @@
1
1
 
2
+ ## [4.29.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.28.0...v4.29.0) (2025-08-19)
3
+
4
+
5
+ ### Features
6
+
7
+ * add support for World Mini App social redirect ([#9371](https://github.com/dynamic-labs/dynamic-auth/issues/9371)) ([12bcee8](https://github.com/dynamic-labs/dynamic-auth/commit/12bcee875007e6a2c6143a222f9af39d8127fcf8))
8
+
9
+ ## [4.28.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.27.1...v4.28.0) (2025-08-18)
10
+
11
+
12
+ ### Features
13
+
14
+ * create multiple 7702 wallets ([#9368](https://github.com/dynamic-labs/dynamic-auth/issues/9368)) ([4e04cbf](https://github.com/dynamic-labs/dynamic-auth/commit/4e04cbf6805070d3ceb863010789bfb605d0b165))
15
+
2
16
  ### [4.27.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.27.0...v4.27.1) (2025-08-18)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.27.1";
6
+ var version = "4.29.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.27.1";
2
+ var version = "4.29.0";
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.27.1",
3
+ "version": "4.29.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",
@@ -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.27.1",
26
- "@dynamic-labs/ethereum-aa-core": "4.27.1",
27
- "@dynamic-labs/ethereum-core": "4.27.1",
28
- "@dynamic-labs/logger": "4.27.1",
29
- "@dynamic-labs/types": "4.27.1",
30
- "@dynamic-labs/utils": "4.27.1",
31
- "@dynamic-labs/wallet-book": "4.27.1",
32
- "@dynamic-labs/wallet-connector-core": "4.27.1"
25
+ "@dynamic-labs/assert-package-version": "4.29.0",
26
+ "@dynamic-labs/ethereum-aa-core": "4.29.0",
27
+ "@dynamic-labs/ethereum-core": "4.29.0",
28
+ "@dynamic-labs/logger": "4.29.0",
29
+ "@dynamic-labs/types": "4.29.0",
30
+ "@dynamic-labs/utils": "4.29.0",
31
+ "@dynamic-labs/wallet-book": "4.29.0",
32
+ "@dynamic-labs/wallet-connector-core": "4.29.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "viem": "^2.28.4"
@@ -164,6 +164,11 @@ class ZeroDevConnector extends ethereumAaCore.AccountAbstractionBaseConnector {
164
164
  if (smartWalletAddress !== eoaAddress) {
165
165
  throw new Error('In EIP-7702 mode, smart wallet and EOA addresses must be the same');
166
166
  }
167
+ this.eoaConnectorMap[smartWalletAddress] = {
168
+ eoaAddress,
169
+ eoaConnector,
170
+ properties,
171
+ };
167
172
  yield this.setEoaConnector({
168
173
  connector: eoaConnector,
169
174
  eoaAddress,
@@ -672,14 +677,6 @@ class ZeroDevConnector extends ethereumAaCore.AccountAbstractionBaseConnector {
672
677
  }
673
678
  validateActiveWallet(expectedAddress) {
674
679
  return _tslib.__awaiter(this, void 0, void 0, function* () {
675
- if (this.shouldUseEIP7702Mode) {
676
- const currentAddress = yield this.getAddress();
677
- if (currentAddress !== expectedAddress) {
678
- throw new utils.DynamicError('Invalid active wallet');
679
- }
680
- return;
681
- }
682
- // Existing implementation for regular ZeroDev
683
680
  const eoa = this.eoaConnectorMap[expectedAddress];
684
681
  if (!eoa) {
685
682
  throw new utils.DynamicError('No EOA connector');
@@ -160,6 +160,11 @@ class ZeroDevConnector extends AccountAbstractionBaseConnector {
160
160
  if (smartWalletAddress !== eoaAddress) {
161
161
  throw new Error('In EIP-7702 mode, smart wallet and EOA addresses must be the same');
162
162
  }
163
+ this.eoaConnectorMap[smartWalletAddress] = {
164
+ eoaAddress,
165
+ eoaConnector,
166
+ properties,
167
+ };
163
168
  yield this.setEoaConnector({
164
169
  connector: eoaConnector,
165
170
  eoaAddress,
@@ -668,14 +673,6 @@ class ZeroDevConnector extends AccountAbstractionBaseConnector {
668
673
  }
669
674
  validateActiveWallet(expectedAddress) {
670
675
  return __awaiter(this, void 0, void 0, function* () {
671
- if (this.shouldUseEIP7702Mode) {
672
- const currentAddress = yield this.getAddress();
673
- if (currentAddress !== expectedAddress) {
674
- throw new DynamicError('Invalid active wallet');
675
- }
676
- return;
677
- }
678
- // Existing implementation for regular ZeroDev
679
676
  const eoa = this.eoaConnectorMap[expectedAddress];
680
677
  if (!eoa) {
681
678
  throw new DynamicError('No EOA connector');