@zerodev/sdk 5.4.35 → 5.4.36

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.
Files changed (32) hide show
  1. package/_cjs/accounts/kernel/createKernelAccount.js +88 -43
  2. package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
  3. package/_cjs/accounts/kernel/utils/common/accountMetadata.js +1 -6
  4. package/_cjs/accounts/kernel/utils/common/accountMetadata.js.map +1 -1
  5. package/_cjs/accounts/utils/signerTo7702Validator.js +66 -0
  6. package/_cjs/accounts/utils/signerTo7702Validator.js.map +1 -0
  7. package/_cjs/accounts/utils/toKernelPluginManager.js +1 -1
  8. package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
  9. package/_cjs/clients/kernelAccountClient.js +29 -0
  10. package/_cjs/clients/kernelAccountClient.js.map +1 -1
  11. package/_esm/accounts/kernel/createKernelAccount.js +93 -49
  12. package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
  13. package/_esm/accounts/kernel/utils/common/accountMetadata.js +1 -6
  14. package/_esm/accounts/kernel/utils/common/accountMetadata.js.map +1 -1
  15. package/_esm/accounts/utils/signerTo7702Validator.js +66 -0
  16. package/_esm/accounts/utils/signerTo7702Validator.js.map +1 -0
  17. package/_esm/accounts/utils/toKernelPluginManager.js +1 -1
  18. package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
  19. package/_esm/clients/kernelAccountClient.js +30 -1
  20. package/_esm/clients/kernelAccountClient.js.map +1 -1
  21. package/_types/accounts/kernel/createKernelAccount.d.ts +12 -8
  22. package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
  23. package/_types/accounts/kernel/utils/common/accountMetadata.d.ts.map +1 -1
  24. package/_types/accounts/utils/signerTo7702Validator.d.ts +9 -0
  25. package/_types/accounts/utils/signerTo7702Validator.d.ts.map +1 -0
  26. package/_types/clients/kernelAccountClient.d.ts.map +1 -1
  27. package/accounts/kernel/createKernelAccount.ts +145 -68
  28. package/accounts/kernel/utils/common/accountMetadata.ts +1 -7
  29. package/accounts/utils/signerTo7702Validator.ts +107 -0
  30. package/accounts/utils/toKernelPluginManager.ts +1 -1
  31. package/clients/kernelAccountClient.ts +41 -0
  32. package/package.json +123 -124
package/package.json CHANGED
@@ -1,131 +1,130 @@
1
1
  {
2
- "name": "@zerodev/sdk",
3
- "version": "5.4.35",
4
- "author": "ZeroDev",
5
- "main": "./_cjs/index.js",
6
- "module": "./_esm/index.js",
7
- "types": "./_types/index.d.ts",
8
- "typings": "./_types/index.d.ts",
9
- "sideEffects": false,
10
- "description": "A utility library for working with ERC-4337",
11
- "keywords": [
12
- "ethereum",
13
- "erc-4337",
14
- "eip-4337",
15
- "paymaster",
16
- "bundler"
17
- ],
18
- "license": "MIT",
19
- "files": [
20
- "_esm",
21
- "_cjs",
22
- "_types",
23
- "./**/*.ts",
24
- "!_esm/**/*.tsbuildinfo",
25
- "!_cjs/**/*.tsbuildinfo",
26
- "!_types/**/*.tsbuildinfo",
27
- "!.env",
28
- "!./**/*.test.ts",
29
- "!.changeset"
30
- ],
31
- "scripts": {
32
- "build": "bun run clean && bun run build:cjs && bun run build:esm && bun run build:types",
33
- "build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./_cjs/package.json",
34
- "build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./_esm/package.json",
35
- "build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./_types --emitDeclarationOnly --declaration --declarationMap",
36
- "clean": "rimraf _esm _cjs _types",
37
- "changeset": "changeset",
38
- "changeset:release": "bun run build && changeset publish",
39
- "changeset:version": "changeset version && bun install --lockfile-only",
40
- "format": "biome format . --write",
41
- "lint": "biome check .",
42
- "lint:fix": "bun run lint --apply"
2
+ "name": "@zerodev/sdk",
3
+ "version": "5.4.36",
4
+ "author": "ZeroDev",
5
+ "main": "./_cjs/index.js",
6
+ "module": "./_esm/index.js",
7
+ "types": "./_types/index.d.ts",
8
+ "typings": "./_types/index.d.ts",
9
+ "sideEffects": false,
10
+ "description": "A utility library for working with ERC-4337",
11
+ "keywords": [
12
+ "ethereum",
13
+ "erc-4337",
14
+ "eip-4337",
15
+ "paymaster",
16
+ "bundler"
17
+ ],
18
+ "license": "MIT",
19
+ "files": [
20
+ "_esm",
21
+ "_cjs",
22
+ "_types",
23
+ "./**/*.ts",
24
+ "!_esm/**/*.tsbuildinfo",
25
+ "!_cjs/**/*.tsbuildinfo",
26
+ "!_types/**/*.tsbuildinfo",
27
+ "!.env",
28
+ "!./**/*.test.ts",
29
+ "!.changeset"
30
+ ],
31
+ "scripts": {
32
+ "build": "bun run clean && bun run build:cjs && bun run build:esm && bun run build:types",
33
+ "build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./_cjs/package.json",
34
+ "build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./_esm/package.json",
35
+ "build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./_types --emitDeclarationOnly --declaration --declarationMap",
36
+ "clean": "rimraf _esm _cjs _types",
37
+ "changeset": "changeset",
38
+ "changeset:release": "bun run build && changeset publish",
39
+ "changeset:version": "changeset version && bun install --lockfile-only",
40
+ "format": "biome format . --write",
41
+ "lint": "biome check .",
42
+ "lint:fix": "bun run lint --apply"
43
+ },
44
+ "exports": {
45
+ ".": {
46
+ "types": "./_types/index.d.ts",
47
+ "import": "./_esm/index.js",
48
+ "default": "./_cjs/index.js"
43
49
  },
44
- "exports": {
45
- ".": {
46
- "types": "./_types/index.d.ts",
47
- "import": "./_esm/index.js",
48
- "default": "./_cjs/index.js"
49
- },
50
- "./accounts": {
51
- "types": "./_types/accounts/index.d.ts",
52
- "import": "./_esm/accounts/index.js",
53
- "default": "./_cjs/accounts/index.js"
54
- },
55
- "./plugins": {
56
- "types": "./_types/plugins/index.d.ts",
57
- "import": "./_esm/plugins/index.js",
58
- "default": "./_cjs/plugins/index.js"
59
- },
60
- "./actions": {
61
- "types": "./_types/actions/index.d.ts",
62
- "import": "./_esm/actions/index.js",
63
- "default": "./_cjs/actions/index.js"
64
- },
65
- "./types": {
66
- "types": "./_types/types/index.d.ts",
67
- "import": "./_esm/types/index.js",
68
- "default": "./_cjs/types/index.js"
69
- },
70
- "./actions/kernel": {
71
- "types": "./_types/actions/kernel.d.ts",
72
- "import": "./_esm/actions/kernel.js",
73
- "default": "./_cjs/actions/kernel.js"
74
- },
75
- "./clients": {
76
- "types": "./_types/clients/index.d.ts",
77
- "import": "./_esm/clients/index.js",
78
- "default": "./_cjs/clients/index.js"
79
- },
80
- "./clients/kernel": {
81
- "types": "./_types/clients/kernel.d.ts",
82
- "import": "./_esm/clients/kernel.js",
83
- "default": "./_cjs/clients/kernel.js"
84
- },
85
- "./providers": {
86
- "types": "./_types/providers/index.d.ts",
87
- "import": "./_esm/providers/index.js",
88
- "default": "./_cjs/providers/index.js"
89
- },
90
- "./constants": {
91
- "types": "./_types/constants.d.ts",
92
- "import": "./_esm/constants.js",
93
- "default": "./_cjs/constants.js"
94
- }
50
+ "./accounts": {
51
+ "types": "./_types/accounts/index.d.ts",
52
+ "import": "./_esm/accounts/index.js",
53
+ "default": "./_cjs/accounts/index.js"
95
54
  },
96
- "typesVersions": {
97
- "*": {
98
- "accounts": [
99
- "./_types/accounts/index.d.ts"
100
- ],
101
- "plugins": [
102
- "./_types/plugins/index.d.ts"
103
- ],
104
- "actions": [
105
- "./_types/actions/index.d.ts"
106
- ],
107
- "types": [
108
- "./_types/types/index.d.ts"
109
- ],
110
- "actions/kernel": [
111
- "./_types/actions/kernel/index.d.ts"
112
- ],
113
- "clients": [
114
- "./_types/clients/index.d.ts"
115
- ],
116
- "clients/kernel": [
117
- "./_types/clients/kernel/index.d.ts"
118
- ],
119
- "providers": [
120
- "./_types/providers/index.d.ts"
121
- ]
122
- }
55
+ "./plugins": {
56
+ "types": "./_types/plugins/index.d.ts",
57
+ "import": "./_esm/plugins/index.js",
58
+ "default": "./_cjs/plugins/index.js"
123
59
  },
124
- "peerDependencies": {
125
- "viem": "^2.28.0"
60
+ "./actions": {
61
+ "types": "./_types/actions/index.d.ts",
62
+ "import": "./_esm/actions/index.js",
63
+ "default": "./_cjs/actions/index.js"
126
64
  },
127
- "dependencies": {
128
- "semver": "^7.6.0"
65
+ "./types": {
66
+ "types": "./_types/types/index.d.ts",
67
+ "import": "./_esm/types/index.js",
68
+ "default": "./_cjs/types/index.js"
129
69
  },
130
- "type": "module"
70
+ "./actions/kernel": {
71
+ "types": "./_types/actions/kernel.d.ts",
72
+ "import": "./_esm/actions/kernel.js",
73
+ "default": "./_cjs/actions/kernel.js"
74
+ },
75
+ "./clients": {
76
+ "types": "./_types/clients/index.d.ts",
77
+ "import": "./_esm/clients/index.js",
78
+ "default": "./_cjs/clients/index.js"
79
+ },
80
+ "./clients/kernel": {
81
+ "types": "./_types/clients/kernel.d.ts",
82
+ "import": "./_esm/clients/kernel.js",
83
+ "default": "./_cjs/clients/kernel.js"
84
+ },
85
+ "./providers": {
86
+ "types": "./_types/providers/index.d.ts",
87
+ "import": "./_esm/providers/index.js",
88
+ "default": "./_cjs/providers/index.js"
89
+ },
90
+ "./constants": {
91
+ "types": "./_types/constants.d.ts",
92
+ "import": "./_esm/constants.js",
93
+ "default": "./_cjs/constants.js"
94
+ }
95
+ },
96
+ "typesVersions": {
97
+ "*": {
98
+ "accounts": [
99
+ "./_types/accounts/index.d.ts"
100
+ ],
101
+ "plugins": [
102
+ "./_types/plugins/index.d.ts"
103
+ ],
104
+ "actions": [
105
+ "./_types/actions/index.d.ts"
106
+ ],
107
+ "types": [
108
+ "./_types/types/index.d.ts"
109
+ ],
110
+ "actions/kernel": [
111
+ "./_types/actions/kernel/index.d.ts"
112
+ ],
113
+ "clients": [
114
+ "./_types/clients/index.d.ts"
115
+ ],
116
+ "clients/kernel": [
117
+ "./_types/clients/kernel/index.d.ts"
118
+ ],
119
+ "providers": [
120
+ "./_types/providers/index.d.ts"
121
+ ]
122
+ }
123
+ },
124
+ "peerDependencies": {
125
+ "viem": "^2.28.0"
126
+ },
127
+ "dependencies": {
128
+ "semver": "^7.6.0"
129
+ }
131
130
  }