@dynamic-labs/zerodev-extension 4.75.0 → 4.77.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,34 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.77.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.76.0...v4.77.0) (2026-04-10)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **midnight:** add types and chain constants ([#10851](https://github.com/dynamic-labs/dynamic-auth/issues/10851)) ([91620d2](https://github.com/dynamic-labs/dynamic-auth/commit/91620d21596c525d8d51ddb0c0ba7df456e3eb64))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* issue when linking new wallet via qr code when there's no active session ([#10878](https://github.com/dynamic-labs/dynamic-auth/issues/10878)) ([53cbae0](https://github.com/dynamic-labs/dynamic-auth/commit/53cbae0806665371e9214663e72e2f1fb7e1ac3f))
|
|
13
|
+
* **lint-staged:** exclude Playwright specs from jest pre-commit hook [DYNT-496] ([#10880](https://github.com/dynamic-labs/dynamic-auth/issues/10880)) ([d3c8a9a](https://github.com/dynamic-labs/dynamic-auth/commit/d3c8a9a59c855bb834dcedf2e18a2bd0eabcb420))
|
|
14
|
+
* **react-core:** exclude password setup cancellations from wallet creation failure metrics ([#10868](https://github.com/dynamic-labs/dynamic-auth/issues/10868)) ([685de16](https://github.com/dynamic-labs/dynamic-auth/commit/685de16f004f282e1b24114c3a18d8c02b7e48aa))
|
|
15
|
+
* **react-native:** adds eip7702 authorization ([#10904](https://github.com/dynamic-labs/dynamic-auth/issues/10904)) ([fa3e41f](https://github.com/dynamic-labs/dynamic-auth/commit/fa3e41f18aeca309c199003781e569bb425dda5d))
|
|
16
|
+
* **react-native:** remove crypto dependency ([#10871](https://github.com/dynamic-labs/dynamic-auth/issues/10871)) ([de4faa5](https://github.com/dynamic-labs/dynamic-auth/commit/de4faa5bd8bbb8fc321ed65f8b6ccfbaff1d00d3))
|
|
17
|
+
* **react-native:** unify session storage ([#10870](https://github.com/dynamic-labs/dynamic-auth/issues/10870)) ([0536ea0](https://github.com/dynamic-labs/dynamic-auth/commit/0536ea0a78f69b9952b21eec38b4868276215b46))
|
|
18
|
+
|
|
19
|
+
## [4.76.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.75.0...v4.76.0) (2026-04-06)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* handle credential_not_enabled_for_sign_in error across all sign-in methods ([#10819](https://github.com/dynamic-labs/dynamic-auth/issues/10819)) ([f694b85](https://github.com/dynamic-labs/dynamic-auth/commit/f694b857eab9d377626078d290473ca369652331))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* modal transition race condition (opacity stuck at 0) ([#10857](https://github.com/dynamic-labs/dynamic-auth/issues/10857)) ([6e9ec68](https://github.com/dynamic-labs/dynamic-auth/commit/6e9ec68040776cc5be333ad20ad0096374947b74))
|
|
30
|
+
* **react-native:** ensure session is correctly mapped ([#10860](https://github.com/dynamic-labs/dynamic-auth/issues/10860)) ([117b013](https://github.com/dynamic-labs/dynamic-auth/commit/117b013faf9a0d4bc6b8429a36d8e88dba546889))
|
|
31
|
+
|
|
2
32
|
## [4.75.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.74.1...v4.75.0) (2026-04-03)
|
|
3
33
|
|
|
4
34
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/zerodev-extension",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.77.0",
|
|
4
4
|
"main": "./src/index.cjs",
|
|
5
5
|
"module": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"./package.json": "./package.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
17
|
+
"@dynamic-labs/sdk-api-core": "0.0.927",
|
|
18
18
|
"@zerodev/sdk": "5.5.7",
|
|
19
19
|
"@zerodev/multi-chain-ecdsa-validator": "5.4.5",
|
|
20
20
|
"@zerodev/ecdsa-validator": "5.4.9",
|
|
21
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
22
|
-
"@dynamic-labs/client": "4.
|
|
23
|
-
"@dynamic-labs/ethereum-aa": "4.
|
|
24
|
-
"@dynamic-labs/logger": "4.
|
|
25
|
-
"@dynamic-labs/message-transport": "4.
|
|
26
|
-
"@dynamic-labs/viem-extension": "4.
|
|
27
|
-
"@dynamic-labs/webview-messages": "4.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.77.0",
|
|
22
|
+
"@dynamic-labs/client": "4.77.0",
|
|
23
|
+
"@dynamic-labs/ethereum-aa": "4.77.0",
|
|
24
|
+
"@dynamic-labs/logger": "4.77.0",
|
|
25
|
+
"@dynamic-labs/message-transport": "4.77.0",
|
|
26
|
+
"@dynamic-labs/viem-extension": "4.77.0",
|
|
27
|
+
"@dynamic-labs/webview-messages": "4.77.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"viem": "^2.45.3"
|
|
@@ -36,7 +36,7 @@ const ZeroDevExtension = () => (client$1, core) => {
|
|
|
36
36
|
});
|
|
37
37
|
return {
|
|
38
38
|
zeroDev: {
|
|
39
|
-
createKernelClient: (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ wallet, chainId, bundlerProvider, bundlerRpc, paymasterRpc, paymaster, }) {
|
|
39
|
+
createKernelClient: (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ wallet, chainId, bundlerProvider, bundlerRpc, paymasterRpc, paymaster, eip7702Auth, }) {
|
|
40
40
|
var _b, _c, _d;
|
|
41
41
|
try {
|
|
42
42
|
const walletClient = yield createWalletClientHelper(wallet, chainId);
|
|
@@ -67,7 +67,7 @@ const ZeroDevExtension = () => (client$1, core) => {
|
|
|
67
67
|
signer: walletClient,
|
|
68
68
|
};
|
|
69
69
|
if (accountSettings.enableEIP7702) {
|
|
70
|
-
return ethereumAa.createEcdsaKernelAccountClientWith7702(Object.assign(Object.assign({}, params), { kernelVersion: constants.KERNEL_V3_3 }));
|
|
70
|
+
return ethereumAa.createEcdsaKernelAccountClientWith7702(Object.assign(Object.assign({}, params), { eip7702Auth, kernelVersion: constants.KERNEL_V3_3 }));
|
|
71
71
|
}
|
|
72
72
|
return ethereumAa.createEcdsaKernelAccountClient(Object.assign(Object.assign({}, params), { ecdsaValidator: ethereumAa.getEcdsaValidator((_d = accountSettings.ecdsaProviderType) !== null && _d !== void 0 ? _d : undefined) }));
|
|
73
73
|
}
|
|
@@ -85,6 +85,24 @@ const ZeroDevExtension = () => (client$1, core) => {
|
|
|
85
85
|
throw error;
|
|
86
86
|
}
|
|
87
87
|
}),
|
|
88
|
+
signEip7702Auth: (_f) => _tslib.__awaiter(void 0, [_f], void 0, function* ({ wallet, chainId }) {
|
|
89
|
+
try {
|
|
90
|
+
let resolvedChainId = chainId;
|
|
91
|
+
if (!resolvedChainId) {
|
|
92
|
+
const accountSettings = yield zeroDevRequestChannel.request('getKernelAccountSettings', { wallet });
|
|
93
|
+
resolvedChainId = accountSettings.chainId;
|
|
94
|
+
}
|
|
95
|
+
const walletClient = yield createWalletClientHelper(wallet, resolvedChainId);
|
|
96
|
+
return ethereumAa.signEip7702Authorization({
|
|
97
|
+
chainId: resolvedChainId,
|
|
98
|
+
signer: walletClient,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
logger.logger.error(error);
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
105
|
+
}),
|
|
88
106
|
},
|
|
89
107
|
};
|
|
90
108
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { KernelAccountClient } from '@zerodev/sdk';
|
|
2
2
|
import { type Chain as ViemChain, Client, RpcSchema, Transport } from 'viem';
|
|
3
3
|
import { SmartAccount } from 'viem/account-abstraction';
|
|
4
|
+
import type { SignAuthorizationReturnType } from 'viem/accounts';
|
|
4
5
|
import { Extension, Wallet } from '@dynamic-labs/client';
|
|
5
6
|
import { PaymasterType } from '@dynamic-labs/ethereum-aa';
|
|
6
7
|
import { ZerodevBundlerProvider } from '@dynamic-labs/sdk-api-core';
|
|
@@ -12,11 +13,17 @@ type CreateKernelAccountClientArgs = {
|
|
|
12
13
|
bundlerRpc?: string;
|
|
13
14
|
paymasterRpc?: string;
|
|
14
15
|
paymaster?: PaymasterType;
|
|
16
|
+
eip7702Auth?: SignAuthorizationReturnType;
|
|
17
|
+
};
|
|
18
|
+
type SignEip7702AuthArgs = {
|
|
19
|
+
wallet: Wallet;
|
|
20
|
+
chainId?: number;
|
|
15
21
|
};
|
|
16
22
|
type IZeroDevExtension = {
|
|
17
23
|
zeroDev: {
|
|
18
24
|
createKernelClient: (args: CreateKernelAccountClientArgs) => Promise<KernelAccountClient<Transport, ViemChain, SmartAccount, Client, RpcSchema>>;
|
|
19
25
|
createWalletClient: (args: CreateKernelAccountClientArgs) => Promise<Awaited<ReturnType<IViemExtension['viem']['createWalletClient']>>>;
|
|
26
|
+
signEip7702Auth: (args: SignEip7702AuthArgs) => Promise<SignAuthorizationReturnType>;
|
|
20
27
|
};
|
|
21
28
|
};
|
|
22
29
|
export declare const ZeroDevExtension: () => Extension<IZeroDevExtension>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __awaiter } from '../../../_virtual/_tslib.js';
|
|
3
3
|
import { KERNEL_V3_3 } from '@zerodev/sdk/constants';
|
|
4
4
|
import { hasExtension, baseClientExtensionName } from '@dynamic-labs/client';
|
|
5
|
-
import { getEntryPoint, getKernelVersion, PaymasterTypeEnum, createEcdsaKernelAccountClientWith7702, createEcdsaKernelAccountClient, getEcdsaValidator } from '@dynamic-labs/ethereum-aa';
|
|
5
|
+
import { getEntryPoint, getKernelVersion, PaymasterTypeEnum, createEcdsaKernelAccountClientWith7702, createEcdsaKernelAccountClient, getEcdsaValidator, signEip7702Authorization } from '@dynamic-labs/ethereum-aa';
|
|
6
6
|
import { createRequestChannel } from '@dynamic-labs/message-transport';
|
|
7
7
|
import { viemExtensionName } from '@dynamic-labs/viem-extension';
|
|
8
8
|
import { getChainById } from '../utils/getChainById/getChainById.js';
|
|
@@ -32,7 +32,7 @@ const ZeroDevExtension = () => (client, core) => {
|
|
|
32
32
|
});
|
|
33
33
|
return {
|
|
34
34
|
zeroDev: {
|
|
35
|
-
createKernelClient: (_a) => __awaiter(void 0, [_a], void 0, function* ({ wallet, chainId, bundlerProvider, bundlerRpc, paymasterRpc, paymaster, }) {
|
|
35
|
+
createKernelClient: (_a) => __awaiter(void 0, [_a], void 0, function* ({ wallet, chainId, bundlerProvider, bundlerRpc, paymasterRpc, paymaster, eip7702Auth, }) {
|
|
36
36
|
var _b, _c, _d;
|
|
37
37
|
try {
|
|
38
38
|
const walletClient = yield createWalletClientHelper(wallet, chainId);
|
|
@@ -63,7 +63,7 @@ const ZeroDevExtension = () => (client, core) => {
|
|
|
63
63
|
signer: walletClient,
|
|
64
64
|
};
|
|
65
65
|
if (accountSettings.enableEIP7702) {
|
|
66
|
-
return createEcdsaKernelAccountClientWith7702(Object.assign(Object.assign({}, params), { kernelVersion: KERNEL_V3_3 }));
|
|
66
|
+
return createEcdsaKernelAccountClientWith7702(Object.assign(Object.assign({}, params), { eip7702Auth, kernelVersion: KERNEL_V3_3 }));
|
|
67
67
|
}
|
|
68
68
|
return createEcdsaKernelAccountClient(Object.assign(Object.assign({}, params), { ecdsaValidator: getEcdsaValidator((_d = accountSettings.ecdsaProviderType) !== null && _d !== void 0 ? _d : undefined) }));
|
|
69
69
|
}
|
|
@@ -81,6 +81,24 @@ const ZeroDevExtension = () => (client, core) => {
|
|
|
81
81
|
throw error;
|
|
82
82
|
}
|
|
83
83
|
}),
|
|
84
|
+
signEip7702Auth: (_f) => __awaiter(void 0, [_f], void 0, function* ({ wallet, chainId }) {
|
|
85
|
+
try {
|
|
86
|
+
let resolvedChainId = chainId;
|
|
87
|
+
if (!resolvedChainId) {
|
|
88
|
+
const accountSettings = yield zeroDevRequestChannel.request('getKernelAccountSettings', { wallet });
|
|
89
|
+
resolvedChainId = accountSettings.chainId;
|
|
90
|
+
}
|
|
91
|
+
const walletClient = yield createWalletClientHelper(wallet, resolvedChainId);
|
|
92
|
+
return signEip7702Authorization({
|
|
93
|
+
chainId: resolvedChainId,
|
|
94
|
+
signer: walletClient,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
catch (error) {
|
|
98
|
+
logger.error(error);
|
|
99
|
+
throw error;
|
|
100
|
+
}
|
|
101
|
+
}),
|
|
84
102
|
},
|
|
85
103
|
};
|
|
86
104
|
};
|