@dynamic-labs/ethereum-aa 4.27.1 → 4.28.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 +7 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/ZeroDevConnector.cjs +5 -8
- package/src/ZeroDevConnector.js +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.28.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.27.1...v4.28.0) (2025-08-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* create multiple 7702 wallets ([#9368](https://github.com/dynamic-labs/dynamic-auth/issues/9368)) ([4e04cbf](https://github.com/dynamic-labs/dynamic-auth/commit/4e04cbf6805070d3ceb863010789bfb605d0b165))
|
|
8
|
+
|
|
2
9
|
### [4.27.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.27.0...v4.27.1) (2025-08-18)
|
|
3
10
|
|
|
4
11
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum-aa",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.28.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.
|
|
26
|
-
"@dynamic-labs/ethereum-aa-core": "4.
|
|
27
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
28
|
-
"@dynamic-labs/logger": "4.
|
|
29
|
-
"@dynamic-labs/types": "4.
|
|
30
|
-
"@dynamic-labs/utils": "4.
|
|
31
|
-
"@dynamic-labs/wallet-book": "4.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.28.0",
|
|
26
|
+
"@dynamic-labs/ethereum-aa-core": "4.28.0",
|
|
27
|
+
"@dynamic-labs/ethereum-core": "4.28.0",
|
|
28
|
+
"@dynamic-labs/logger": "4.28.0",
|
|
29
|
+
"@dynamic-labs/types": "4.28.0",
|
|
30
|
+
"@dynamic-labs/utils": "4.28.0",
|
|
31
|
+
"@dynamic-labs/wallet-book": "4.28.0",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "4.28.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"viem": "^2.28.4"
|
package/src/ZeroDevConnector.cjs
CHANGED
|
@@ -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');
|
package/src/ZeroDevConnector.js
CHANGED
|
@@ -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');
|