@dynamic-labs/zerodev-extension 4.16.0 → 4.17.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,19 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.17.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.16.0...v4.17.0) (2025-05-06)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add chain id option to create kernel client in react-native ([#8650](https://github.com/dynamic-labs/dynamic-auth/issues/8650)) ([1450bea](https://github.com/dynamic-labs/dynamic-auth/commit/1450bea6f979a82ed4880700aff14fa1ead9dc60))
|
|
8
|
+
* add sendCalls method to EthereumWallet ([#8634](https://github.com/dynamic-labs/dynamic-auth/issues/8634)) ([7c9aef9](https://github.com/dynamic-labs/dynamic-auth/commit/7c9aef95382b4823a40279bebfb084de32c25610))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 7702 do not override existing old aa ([#8630](https://github.com/dynamic-labs/dynamic-auth/issues/8630)) ([a731d9e](https://github.com/dynamic-labs/dynamic-auth/commit/a731d9e77ecd9e1dec3a7704a63989b5f2741a57))
|
|
14
|
+
* improve error message when email login fails ([#8649](https://github.com/dynamic-labs/dynamic-auth/issues/8649)) ([e1c03ac](https://github.com/dynamic-labs/dynamic-auth/commit/e1c03ac6dc83386c63d63db59d31355bc4fe2959))
|
|
15
|
+
* improve react-native stability on android ([#8652](https://github.com/dynamic-labs/dynamic-auth/issues/8652)) ([1617546](https://github.com/dynamic-labs/dynamic-auth/commit/1617546e6053c2ab32f7d385336c47df185d077f))
|
|
16
|
+
|
|
2
17
|
## [4.16.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.15.0...v4.16.0) (2025-05-03)
|
|
3
18
|
|
|
4
19
|
|
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.17.0",
|
|
4
4
|
"main": "./src/index.cjs",
|
|
5
5
|
"module": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"./package.json": "./package.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@zerodev/sdk": "5.4.
|
|
18
|
-
"@zerodev/multi-chain-ecdsa-validator": "5.4.
|
|
19
|
-
"@zerodev/ecdsa-validator": "5.4.
|
|
20
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
21
|
-
"@dynamic-labs/client": "4.
|
|
22
|
-
"@dynamic-labs/ethereum-aa": "4.
|
|
23
|
-
"@dynamic-labs/logger": "4.
|
|
24
|
-
"@dynamic-labs/message-transport": "4.
|
|
25
|
-
"@dynamic-labs/viem-extension": "4.
|
|
17
|
+
"@zerodev/sdk": "5.4.34",
|
|
18
|
+
"@zerodev/multi-chain-ecdsa-validator": "5.4.5",
|
|
19
|
+
"@zerodev/ecdsa-validator": "5.4.8",
|
|
20
|
+
"@dynamic-labs/assert-package-version": "4.17.0",
|
|
21
|
+
"@dynamic-labs/client": "4.17.0",
|
|
22
|
+
"@dynamic-labs/ethereum-aa": "4.17.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.17.0",
|
|
24
|
+
"@dynamic-labs/message-transport": "4.17.0",
|
|
25
|
+
"@dynamic-labs/viem-extension": "4.17.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"viem": "^2.21.60"
|
|
@@ -22,26 +22,30 @@ const ZeroDevExtension = () => (client$1, core) => {
|
|
|
22
22
|
const zeroDevRequestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
23
23
|
return {
|
|
24
24
|
zeroDev: {
|
|
25
|
-
createKernelClient: (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ wallet, bundlerProvider, bundlerRpc, paymasterRpc, paymaster, }) {
|
|
25
|
+
createKernelClient: (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ wallet, chainId, bundlerProvider, bundlerRpc, paymasterRpc, paymaster, }) {
|
|
26
|
+
var _b;
|
|
26
27
|
try {
|
|
27
|
-
const eoaWallet = yield client$1.wallets.accountAbstraction.getEOAWallet({
|
|
28
|
+
const eoaWallet = yield client$1.wallets.accountAbstraction.getEOAWallet({
|
|
29
|
+
wallet,
|
|
30
|
+
});
|
|
28
31
|
if (!eoaWallet) {
|
|
29
32
|
throw new Error('EOA wallet not found');
|
|
30
33
|
}
|
|
31
34
|
const walletClient = yield client$1.viem.createWalletClient({
|
|
35
|
+
chain: chainId ? getChainById.getChainById(chainId) : undefined,
|
|
32
36
|
wallet: eoaWallet,
|
|
33
37
|
});
|
|
34
|
-
const
|
|
38
|
+
const accountSettings = yield zeroDevRequestChannel.request('getKernelAccountSettings', { chainId, wallet });
|
|
35
39
|
const kernelClient = yield ethereumAa.createEcdsaKernelAccountClient({
|
|
36
40
|
bundlerRpc,
|
|
37
|
-
chain: getChainById.getChainById(chainId),
|
|
38
|
-
ecdsaValidator: ethereumAa.getEcdsaValidator(ecdsaProviderType !== null &&
|
|
41
|
+
chain: getChainById.getChainById(accountSettings.chainId),
|
|
42
|
+
ecdsaValidator: ethereumAa.getEcdsaValidator((_b = accountSettings.ecdsaProviderType) !== null && _b !== void 0 ? _b : undefined),
|
|
39
43
|
enableKernelV3Migration: false,
|
|
40
|
-
entryPoint: entryPoint,
|
|
41
|
-
kernelVersion: kernelVersion,
|
|
44
|
+
entryPoint: accountSettings.entryPoint,
|
|
45
|
+
kernelVersion: accountSettings.kernelVersion,
|
|
42
46
|
paymaster: paymaster !== null && paymaster !== void 0 ? paymaster : 'NONE',
|
|
43
47
|
paymasterRpc,
|
|
44
|
-
projectId,
|
|
48
|
+
projectId: accountSettings.projectId,
|
|
45
49
|
provider: bundlerProvider,
|
|
46
50
|
signer: walletClient,
|
|
47
51
|
});
|
|
@@ -5,6 +5,7 @@ import { Extension, Wallet } from '@dynamic-labs/client';
|
|
|
5
5
|
import { BundlerProvider, PaymasterType } from '@dynamic-labs/ethereum-aa';
|
|
6
6
|
type CreateKernelAccountClientArgs = {
|
|
7
7
|
wallet: Wallet;
|
|
8
|
+
chainId?: number;
|
|
8
9
|
bundlerProvider?: BundlerProvider;
|
|
9
10
|
bundlerRpc?: string;
|
|
10
11
|
paymasterRpc?: string;
|
|
@@ -18,26 +18,30 @@ const ZeroDevExtension = () => (client, core) => {
|
|
|
18
18
|
const zeroDevRequestChannel = createRequestChannel(core.messageTransport);
|
|
19
19
|
return {
|
|
20
20
|
zeroDev: {
|
|
21
|
-
createKernelClient: (_a) => __awaiter(void 0, [_a], void 0, function* ({ wallet, bundlerProvider, bundlerRpc, paymasterRpc, paymaster, }) {
|
|
21
|
+
createKernelClient: (_a) => __awaiter(void 0, [_a], void 0, function* ({ wallet, chainId, bundlerProvider, bundlerRpc, paymasterRpc, paymaster, }) {
|
|
22
|
+
var _b;
|
|
22
23
|
try {
|
|
23
|
-
const eoaWallet = yield client.wallets.accountAbstraction.getEOAWallet({
|
|
24
|
+
const eoaWallet = yield client.wallets.accountAbstraction.getEOAWallet({
|
|
25
|
+
wallet,
|
|
26
|
+
});
|
|
24
27
|
if (!eoaWallet) {
|
|
25
28
|
throw new Error('EOA wallet not found');
|
|
26
29
|
}
|
|
27
30
|
const walletClient = yield client.viem.createWalletClient({
|
|
31
|
+
chain: chainId ? getChainById(chainId) : undefined,
|
|
28
32
|
wallet: eoaWallet,
|
|
29
33
|
});
|
|
30
|
-
const
|
|
34
|
+
const accountSettings = yield zeroDevRequestChannel.request('getKernelAccountSettings', { chainId, wallet });
|
|
31
35
|
const kernelClient = yield createEcdsaKernelAccountClient({
|
|
32
36
|
bundlerRpc,
|
|
33
|
-
chain: getChainById(chainId),
|
|
34
|
-
ecdsaValidator: getEcdsaValidator(ecdsaProviderType !== null &&
|
|
37
|
+
chain: getChainById(accountSettings.chainId),
|
|
38
|
+
ecdsaValidator: getEcdsaValidator((_b = accountSettings.ecdsaProviderType) !== null && _b !== void 0 ? _b : undefined),
|
|
35
39
|
enableKernelV3Migration: false,
|
|
36
|
-
entryPoint: entryPoint,
|
|
37
|
-
kernelVersion: kernelVersion,
|
|
40
|
+
entryPoint: accountSettings.entryPoint,
|
|
41
|
+
kernelVersion: accountSettings.kernelVersion,
|
|
38
42
|
paymaster: paymaster !== null && paymaster !== void 0 ? paymaster : 'NONE',
|
|
39
43
|
paymasterRpc,
|
|
40
|
-
projectId,
|
|
44
|
+
projectId: accountSettings.projectId,
|
|
41
45
|
provider: bundlerProvider,
|
|
42
46
|
signer: walletClient,
|
|
43
47
|
});
|