@dynamic-labs/global-wallet-client 4.20.2 → 4.20.3
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 +8 -8
- package/src/lib/functions/createZksyncSession/createZksyncSession.d.ts +14 -6
- package/src/lib/functions/listZksyncSessions/listZksyncSessions.cjs +0 -1
- package/src/lib/functions/listZksyncSessions/listZksyncSessions.js +0 -1
- package/src/lib/functions/sendTransaction/sendTransaction.cjs +0 -1
- package/src/lib/functions/sendTransaction/sendTransaction.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.2...v4.20.3) (2025-06-13)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* use minified jwt for waas wallet client auth ([#8938](https://github.com/dynamic-labs/dynamic-auth/issues/8938)) ([f7b9e14](https://github.com/dynamic-labs/dynamic-auth/commit/f7b9e1435e397a64fdf4f42f9b3ad354314e0191))
|
|
8
|
+
|
|
2
9
|
### [4.20.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.1...v4.20.2) (2025-06-11)
|
|
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/global-wallet-client",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.3",
|
|
4
4
|
"description": "Core package for building Dynamic's Global Wallet",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
},
|
|
64
64
|
"homepage": "https://www.dynamic.xyz/",
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@dynamic-labs/assert-package-version": "4.20.
|
|
67
|
-
"@dynamic-labs/logger": "4.20.
|
|
68
|
-
"@dynamic-labs/message-transport": "4.20.
|
|
69
|
-
"@dynamic-labs/store": "4.20.
|
|
70
|
-
"@dynamic-labs/types": "4.20.
|
|
71
|
-
"@dynamic-labs/utils": "4.20.
|
|
66
|
+
"@dynamic-labs/assert-package-version": "4.20.3",
|
|
67
|
+
"@dynamic-labs/logger": "4.20.3",
|
|
68
|
+
"@dynamic-labs/message-transport": "4.20.3",
|
|
69
|
+
"@dynamic-labs/store": "4.20.3",
|
|
70
|
+
"@dynamic-labs/types": "4.20.3",
|
|
71
|
+
"@dynamic-labs/utils": "4.20.3",
|
|
72
72
|
"eventemitter3": "5.0.1"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"zksync-sso": "0.2.0",
|
|
81
81
|
"@wallet-standard/wallet": "^1.1.0",
|
|
82
82
|
"@zerodev/sdk": "5.4.36",
|
|
83
|
-
"@dynamic-labs/ethereum-aa": "4.20.
|
|
83
|
+
"@dynamic-labs/ethereum-aa": "4.20.3"
|
|
84
84
|
},
|
|
85
85
|
"peerDependenciesMeta": {
|
|
86
86
|
"viem": {
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { SessionConfig } from 'zksync-sso/utils';
|
|
2
2
|
import { BaseWallet, ConvertBigIntToString } from '@dynamic-labs/types';
|
|
3
|
-
type
|
|
3
|
+
type SessionConfigWithoutSigner = Omit<SessionConfig, 'signer'>;
|
|
4
|
+
type SessionConfigWithouSignerAsString = ConvertBigIntToString<SessionConfigWithoutSigner>;
|
|
5
|
+
type SessionConfigWithSignerAsString = ConvertBigIntToString<SessionConfig>;
|
|
4
6
|
type createZksyncSessionParams = {
|
|
5
7
|
addModuleWithPaymaster?: boolean;
|
|
6
|
-
sessionConfig:
|
|
8
|
+
sessionConfig: SessionConfigWithouSignerAsString;
|
|
9
|
+
};
|
|
10
|
+
type CreateZksyncSessionResponse = {
|
|
11
|
+
sessionId: string;
|
|
12
|
+
expiresAt: string;
|
|
13
|
+
session: {
|
|
14
|
+
sessionKeyValidator: `0x${string}`;
|
|
15
|
+
sessionConfiguration: SessionConfigWithSignerAsString;
|
|
16
|
+
sessionKey: `0x${string}`;
|
|
17
|
+
};
|
|
7
18
|
};
|
|
8
19
|
/**
|
|
9
20
|
* Creates a session with the wallet.
|
|
@@ -20,8 +31,5 @@ type createZksyncSessionParams = {
|
|
|
20
31
|
* const { sessionId, expiresAt } = await createZksyncSession(Wallet, { sessionConfig });
|
|
21
32
|
* ```
|
|
22
33
|
*/
|
|
23
|
-
export declare const createZksyncSession: (wallet: BaseWallet, { sessionConfig, addModuleWithPaymaster }: createZksyncSessionParams) => Promise<
|
|
24
|
-
sessionId: string;
|
|
25
|
-
expiresAt: string;
|
|
26
|
-
}>;
|
|
34
|
+
export declare const createZksyncSession: (wallet: BaseWallet, { sessionConfig, addModuleWithPaymaster }: createZksyncSessionParams) => Promise<CreateZksyncSessionResponse>;
|
|
27
35
|
export {};
|