@dynamic-labs/ethereum-aa-zksync 4.19.4 → 4.19.6
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 +20 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/connector/ZKsyncConnector.cjs +12 -3
- package/src/connector/ZKsyncConnector.js +12 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.19.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.5...v4.19.6) (2025-06-04)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* backup unsuccessful popup when create wallet fails ([#8872](https://github.com/dynamic-labs/dynamic-auth/issues/8872)) ([c8f88f2](https://github.com/dynamic-labs/dynamic-auth/commit/c8f88f2cafdb7856764305764a230e159f09dadf))
|
|
8
|
+
* **global-wallet:** new native api method to return the eoa wallet for a connected smart wallet ([#8864](https://github.com/dynamic-labs/dynamic-auth/issues/8864)) ([5d0e200](https://github.com/dynamic-labs/dynamic-auth/commit/5d0e2002caefb658f6120b102abe145d6caafaf4))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* dont call select endpoint when signing in with 7702 wallet ([#8854](https://github.com/dynamic-labs/dynamic-auth/issues/8854)) ([9828a8f](https://github.com/dynamic-labs/dynamic-auth/commit/9828a8fb758b07dd4dc51cb9eadee483b884defe))
|
|
14
|
+
|
|
15
|
+
### [4.19.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.4...v4.19.5) (2025-06-02)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add cleanup for waas connectors ([#8849](https://github.com/dynamic-labs/dynamic-auth/issues/8849)) ([5899169](https://github.com/dynamic-labs/dynamic-auth/commit/5899169abaf7ce86add2b1393cfd9b967da5e388))
|
|
21
|
+
|
|
2
22
|
### [4.19.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.3...v4.19.4) (2025-05-31)
|
|
3
23
|
|
|
4
24
|
### [4.19.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.2...v4.19.3) (2025-05-28)
|
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-zksync",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.6",
|
|
4
4
|
"description": "Core package for Ethereum Account Abstraction utilities and types",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.681",
|
|
22
22
|
"zksync-sso": "0.2.0",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.19.
|
|
24
|
-
"@dynamic-labs/ethereum-aa-core": "4.19.
|
|
25
|
-
"@dynamic-labs/ethereum-core": "4.19.
|
|
26
|
-
"@dynamic-labs/types": "4.19.
|
|
27
|
-
"@dynamic-labs/utils": "4.19.
|
|
28
|
-
"@dynamic-labs/wallet-book": "4.19.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "4.19.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.19.6",
|
|
24
|
+
"@dynamic-labs/ethereum-aa-core": "4.19.6",
|
|
25
|
+
"@dynamic-labs/ethereum-core": "4.19.6",
|
|
26
|
+
"@dynamic-labs/types": "4.19.6",
|
|
27
|
+
"@dynamic-labs/utils": "4.19.6",
|
|
28
|
+
"@dynamic-labs/wallet-book": "4.19.6",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.19.6"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"viem": "^2.
|
|
32
|
+
"viem": "^2.28.4"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -636,6 +636,9 @@ class ZKsyncConnector extends ethereumAaCore.AccountAbstractionBaseConnector {
|
|
|
636
636
|
const params = {
|
|
637
637
|
sessionConfig: Object.assign(Object.assign({}, safeSessionConfig), { signer: signer.address }),
|
|
638
638
|
};
|
|
639
|
+
const originURI = origin
|
|
640
|
+
? new URL(origin).hostname
|
|
641
|
+
: utils.PlatformService.getHostname();
|
|
639
642
|
if (this.paymasterAddress) {
|
|
640
643
|
params.paymaster = {
|
|
641
644
|
address: this.paymasterAddress,
|
|
@@ -644,6 +647,15 @@ class ZKsyncConnector extends ethereumAaCore.AccountAbstractionBaseConnector {
|
|
|
644
647
|
}),
|
|
645
648
|
};
|
|
646
649
|
}
|
|
650
|
+
const isApproved = yield this._walletUiUtils.zkSyncCreateSession({
|
|
651
|
+
session: {
|
|
652
|
+
origin: originURI,
|
|
653
|
+
session: params.sessionConfig,
|
|
654
|
+
},
|
|
655
|
+
});
|
|
656
|
+
if (!isApproved) {
|
|
657
|
+
throw new Error('User rejected session creation');
|
|
658
|
+
}
|
|
647
659
|
const publicClient = yield this.getPublicClient();
|
|
648
660
|
if (!(yield module$1.isModuleInstalled({
|
|
649
661
|
moduleAddress: this.sessionKeyAddress,
|
|
@@ -666,9 +678,6 @@ class ZKsyncConnector extends ethereumAaCore.AccountAbstractionBaseConnector {
|
|
|
666
678
|
yield this.smartAccount.createSession(params);
|
|
667
679
|
const sessionHash = session.getSessionHash(params.sessionConfig);
|
|
668
680
|
const serializedSessionConfig = session.stringifySessionConfig(params.sessionConfig);
|
|
669
|
-
const originURI = origin
|
|
670
|
-
? new URL(origin).hostname
|
|
671
|
-
: utils.PlatformService.getHostname();
|
|
672
681
|
this.setSession(sessionHash, {
|
|
673
682
|
origin: originURI,
|
|
674
683
|
sessionConfig: serializedSessionConfig,
|
|
@@ -632,6 +632,9 @@ class ZKsyncConnector extends AccountAbstractionBaseConnector {
|
|
|
632
632
|
const params = {
|
|
633
633
|
sessionConfig: Object.assign(Object.assign({}, safeSessionConfig), { signer: signer.address }),
|
|
634
634
|
};
|
|
635
|
+
const originURI = origin
|
|
636
|
+
? new URL(origin).hostname
|
|
637
|
+
: PlatformService.getHostname();
|
|
635
638
|
if (this.paymasterAddress) {
|
|
636
639
|
params.paymaster = {
|
|
637
640
|
address: this.paymasterAddress,
|
|
@@ -640,6 +643,15 @@ class ZKsyncConnector extends AccountAbstractionBaseConnector {
|
|
|
640
643
|
}),
|
|
641
644
|
};
|
|
642
645
|
}
|
|
646
|
+
const isApproved = yield this._walletUiUtils.zkSyncCreateSession({
|
|
647
|
+
session: {
|
|
648
|
+
origin: originURI,
|
|
649
|
+
session: params.sessionConfig,
|
|
650
|
+
},
|
|
651
|
+
});
|
|
652
|
+
if (!isApproved) {
|
|
653
|
+
throw new Error('User rejected session creation');
|
|
654
|
+
}
|
|
643
655
|
const publicClient = yield this.getPublicClient();
|
|
644
656
|
if (!(yield isModuleInstalled({
|
|
645
657
|
moduleAddress: this.sessionKeyAddress,
|
|
@@ -662,9 +674,6 @@ class ZKsyncConnector extends AccountAbstractionBaseConnector {
|
|
|
662
674
|
yield this.smartAccount.createSession(params);
|
|
663
675
|
const sessionHash = getSessionHash(params.sessionConfig);
|
|
664
676
|
const serializedSessionConfig = stringifySessionConfig(params.sessionConfig);
|
|
665
|
-
const originURI = origin
|
|
666
|
-
? new URL(origin).hostname
|
|
667
|
-
: PlatformService.getHostname();
|
|
668
677
|
this.setSession(sessionHash, {
|
|
669
678
|
origin: originURI,
|
|
670
679
|
sessionConfig: serializedSessionConfig,
|