@zerodev/sdk 5.3.13 → 5.3.14
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/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_cjs/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
- package/_cjs/actions/account-client/getKernelV3ModuleCurrentNonce.js.map +1 -1
- package/_cjs/actions/account-client/invalidateNonce.js.map +1 -1
- package/_cjs/actions/account-client/signUserOperation.js +1 -1
- package/_cjs/actions/account-client/signUserOperation.js.map +1 -1
- package/_cjs/actions/account-client/uninstallPlugin.js.map +1 -1
- package/_cjs/clients/decorators/kernel.js.map +1 -1
- package/_cjs/clients/fallbackKernelAccountClient.js.map +1 -1
- package/_cjs/clients/index.js.map +1 -1
- package/_cjs/clients/kernelAccountClient.js.map +1 -1
- package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_esm/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
- package/_esm/actions/account-client/getKernelV3ModuleCurrentNonce.js.map +1 -1
- package/_esm/actions/account-client/invalidateNonce.js.map +1 -1
- package/_esm/actions/account-client/signUserOperation.js +1 -1
- package/_esm/actions/account-client/signUserOperation.js.map +1 -1
- package/_esm/actions/account-client/uninstallPlugin.js.map +1 -1
- package/_esm/clients/decorators/kernel.js.map +1 -1
- package/_esm/clients/fallbackKernelAccountClient.js.map +1 -1
- package/_esm/clients/index.js.map +1 -1
- package/_esm/clients/kernelAccountClient.js.map +1 -1
- package/_types/accounts/kernel/createKernelAccount.d.ts +2 -2
- package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/account/ep0_6/encodeCallData.d.ts +1 -1
- package/_types/accounts/kernel/utils/account/ep0_6/encodeCallData.d.ts.map +1 -1
- package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts +3 -3
- package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts.map +1 -1
- package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts +3 -3
- package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts.map +1 -1
- package/_types/actions/account-client/getKernelV3ModuleCurrentNonce.d.ts +2 -2
- package/_types/actions/account-client/getKernelV3ModuleCurrentNonce.d.ts.map +1 -1
- package/_types/actions/account-client/invalidateNonce.d.ts +2 -2
- package/_types/actions/account-client/invalidateNonce.d.ts.map +1 -1
- package/_types/actions/account-client/signUserOperation.d.ts +4 -4
- package/_types/actions/account-client/signUserOperation.d.ts.map +1 -1
- package/_types/actions/account-client/uninstallPlugin.d.ts +2 -2
- package/_types/actions/account-client/uninstallPlugin.d.ts.map +1 -1
- package/_types/clients/decorators/kernel.d.ts +5 -5
- package/_types/clients/decorators/kernel.d.ts.map +1 -1
- package/_types/clients/fallbackKernelAccountClient.d.ts +1 -1
- package/_types/clients/fallbackKernelAccountClient.d.ts.map +1 -1
- package/_types/clients/index.d.ts +1 -1
- package/_types/clients/index.d.ts.map +1 -1
- package/_types/clients/kernelAccountClient.d.ts +4 -4
- package/_types/clients/kernelAccountClient.d.ts.map +1 -1
- package/accounts/kernel/createKernelAccount.ts +11 -3
- package/accounts/kernel/utils/account/ep0_6/encodeCallData.ts +1 -1
- package/accounts/kernel/v1/createKernelAccountV1.ts +10 -2
- package/accounts/kernel/v2/createKernelAccountV0_2.ts +10 -2
- package/actions/account-client/getKernelV3ModuleCurrentNonce.ts +11 -4
- package/actions/account-client/invalidateNonce.ts +24 -6
- package/actions/account-client/signUserOperation.ts +33 -10
- package/actions/account-client/uninstallPlugin.ts +24 -6
- package/clients/decorators/kernel.ts +33 -8
- package/clients/fallbackKernelAccountClient.ts +3 -1
- package/clients/index.ts +2 -1
- package/clients/kernelAccountClient.ts +18 -14
- package/package.json +34 -12
package/clients/index.ts
CHANGED
|
@@ -5,7 +5,8 @@ export {
|
|
|
5
5
|
|
|
6
6
|
export {
|
|
7
7
|
createKernelAccountClient,
|
|
8
|
-
type KernelAccountClient
|
|
8
|
+
type KernelAccountClient,
|
|
9
|
+
type SmartAccountClientConfig
|
|
9
10
|
} from "./kernelAccountClient.js"
|
|
10
11
|
|
|
11
12
|
export { createFallbackKernelAccountClient } from "./fallbackKernelAccountClient.js"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getEntryPointVersion } from "permissionless"
|
|
2
|
-
import type { SmartAccount } from "permissionless/accounts
|
|
2
|
+
import type { SmartAccount } from "permissionless/accounts"
|
|
3
3
|
import type { Middleware } from "permissionless/actions/smartAccount"
|
|
4
4
|
import type { EntryPoint, Prettify } from "permissionless/types"
|
|
5
5
|
import type { BundlerRpcSchema } from "permissionless/types/bundler"
|
|
@@ -23,23 +23,27 @@ export type KernelAccountClient<
|
|
|
23
23
|
entryPoint extends EntryPoint,
|
|
24
24
|
transport extends Transport = Transport,
|
|
25
25
|
chain extends Chain | undefined = Chain | undefined,
|
|
26
|
-
account extends
|
|
27
|
-
| KernelSmartAccount<entryPoint>
|
|
26
|
+
account extends
|
|
27
|
+
| KernelSmartAccount<entryPoint, transport, chain>
|
|
28
|
+
| undefined =
|
|
29
|
+
| KernelSmartAccount<entryPoint, transport, chain>
|
|
28
30
|
| undefined
|
|
29
31
|
> = Client<
|
|
30
32
|
transport,
|
|
31
33
|
chain,
|
|
32
34
|
account,
|
|
33
35
|
BundlerRpcSchema<entryPoint>,
|
|
34
|
-
KernelAccountClientActions<entryPoint, chain, account>
|
|
36
|
+
KernelAccountClientActions<entryPoint, transport, chain, account>
|
|
35
37
|
>
|
|
36
38
|
|
|
37
39
|
export type SmartAccountClientConfig<
|
|
38
40
|
entryPoint extends EntryPoint,
|
|
39
41
|
transport extends Transport = Transport,
|
|
40
42
|
chain extends Chain | undefined = Chain | undefined,
|
|
41
|
-
account extends
|
|
42
|
-
| SmartAccount<entryPoint>
|
|
43
|
+
account extends
|
|
44
|
+
| SmartAccount<entryPoint, string, transport, chain>
|
|
45
|
+
| undefined =
|
|
46
|
+
| SmartAccount<entryPoint, string, transport, chain>
|
|
43
47
|
| undefined
|
|
44
48
|
> = Prettify<
|
|
45
49
|
Pick<
|
|
@@ -54,14 +58,14 @@ export type SmartAccountClientConfig<
|
|
|
54
58
|
>
|
|
55
59
|
|
|
56
60
|
export const createKernelAccountClient = <
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
TTransport extends Transport,
|
|
62
|
+
TChain extends Chain | undefined,
|
|
63
|
+
TEntryPoint extends EntryPoint,
|
|
64
|
+
TSmartAccount extends
|
|
65
|
+
| KernelSmartAccount<TEntryPoint, TTransport, TChain>
|
|
66
|
+
| undefined =
|
|
67
|
+
| KernelSmartAccount<TEntryPoint, TTransport, TChain>
|
|
68
|
+
| undefined
|
|
65
69
|
>(
|
|
66
70
|
parameters: SmartAccountClientConfig<
|
|
67
71
|
TEntryPoint,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerodev/sdk",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.14",
|
|
4
4
|
"author": "ZeroDev",
|
|
5
5
|
"main": "./_cjs/index.js",
|
|
6
6
|
"module": "./_esm/index.js",
|
|
@@ -9,7 +9,13 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"description": "A utility library for working with ERC-4337",
|
|
12
|
-
"keywords": [
|
|
12
|
+
"keywords": [
|
|
13
|
+
"ethereum",
|
|
14
|
+
"erc-4337",
|
|
15
|
+
"eip-4337",
|
|
16
|
+
"paymaster",
|
|
17
|
+
"bundler"
|
|
18
|
+
],
|
|
13
19
|
"license": "MIT",
|
|
14
20
|
"files": [
|
|
15
21
|
"_esm",
|
|
@@ -90,19 +96,35 @@
|
|
|
90
96
|
},
|
|
91
97
|
"typesVersions": {
|
|
92
98
|
"*": {
|
|
93
|
-
"accounts": [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
|
|
99
|
+
"accounts": [
|
|
100
|
+
"./_types/accounts/index.d.ts"
|
|
101
|
+
],
|
|
102
|
+
"plugins": [
|
|
103
|
+
"./_types/plugins/index.d.ts"
|
|
104
|
+
],
|
|
105
|
+
"actions": [
|
|
106
|
+
"./_types/actions/index.d.ts"
|
|
107
|
+
],
|
|
108
|
+
"types": [
|
|
109
|
+
"./_types/types/index.d.ts"
|
|
110
|
+
],
|
|
111
|
+
"actions/kernel": [
|
|
112
|
+
"./_types/actions/kernel/index.d.ts"
|
|
113
|
+
],
|
|
114
|
+
"clients": [
|
|
115
|
+
"./_types/clients/index.d.ts"
|
|
116
|
+
],
|
|
117
|
+
"clients/kernel": [
|
|
118
|
+
"./_types/clients/kernel/index.d.ts"
|
|
119
|
+
],
|
|
120
|
+
"providers": [
|
|
121
|
+
"./_types/providers/index.d.ts"
|
|
122
|
+
]
|
|
101
123
|
}
|
|
102
124
|
},
|
|
103
125
|
"peerDependencies": {
|
|
104
|
-
"viem": "
|
|
105
|
-
"permissionless": ">=0.1.
|
|
126
|
+
"viem": ">=2.16.3 <2.18.0",
|
|
127
|
+
"permissionless": ">=0.1.44 <=0.1.45"
|
|
106
128
|
},
|
|
107
129
|
"dependencies": {
|
|
108
130
|
"semver": "^7.6.0"
|