@zerodev/sdk 5.1.13 → 5.2.0-alpha-1

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 (123) hide show
  1. package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js +738 -0
  2. package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js.map +1 -0
  3. package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.js +15 -0
  4. package/_cjs/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.js.map +1 -0
  5. package/_cjs/accounts/kernel/createKernelAccount.js +235 -75
  6. package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
  7. package/_cjs/accounts/kernel/v1/createKernelV1Account.js +29 -18
  8. package/_cjs/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
  9. package/_cjs/accounts/utils/6492.js +19 -3
  10. package/_cjs/accounts/utils/6492.js.map +1 -1
  11. package/_cjs/accounts/utils/index.js +4 -3
  12. package/_cjs/accounts/utils/index.js.map +1 -1
  13. package/_cjs/accounts/utils/toKernelPluginManager.js +194 -62
  14. package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
  15. package/_cjs/actions/account-client/signUserOperation.js +1 -1
  16. package/_cjs/actions/account-client/signUserOperation.js.map +1 -1
  17. package/_cjs/actions/paymaster/estimateGasInERC20.js.map +1 -1
  18. package/_cjs/actions/paymaster/sponsorUserOperation.js +17 -14
  19. package/_cjs/actions/paymaster/sponsorUserOperation.js.map +1 -1
  20. package/_cjs/clients/decorators/kernel.js +8 -5
  21. package/_cjs/clients/decorators/kernel.js.map +1 -1
  22. package/_cjs/clients/kernelAccountClient.js +3 -3
  23. package/_cjs/clients/kernelAccountClient.js.map +1 -1
  24. package/_cjs/clients/paymasterClient.js +1 -1
  25. package/_cjs/clients/paymasterClient.js.map +1 -1
  26. package/_cjs/constants.js +28 -3
  27. package/_cjs/constants.js.map +1 -1
  28. package/_cjs/index.js +5 -1
  29. package/_cjs/index.js.map +1 -1
  30. package/_cjs/providers/KernelEIP1193Provider.js.map +1 -1
  31. package/_cjs/types/kernel.js.map +1 -1
  32. package/_cjs/utils.js +34 -3
  33. package/_cjs/utils.js.map +1 -1
  34. package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js +735 -0
  35. package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js.map +1 -0
  36. package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.js +12 -0
  37. package/_esm/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.js.map +1 -0
  38. package/_esm/accounts/kernel/createKernelAccount.js +244 -81
  39. package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
  40. package/_esm/accounts/kernel/v1/createKernelV1Account.js +37 -20
  41. package/_esm/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
  42. package/_esm/accounts/utils/6492.js +16 -1
  43. package/_esm/accounts/utils/6492.js.map +1 -1
  44. package/_esm/accounts/utils/index.js +2 -4
  45. package/_esm/accounts/utils/index.js.map +1 -1
  46. package/_esm/accounts/utils/toKernelPluginManager.js +198 -66
  47. package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
  48. package/_esm/actions/account-client/signUserOperation.js +1 -1
  49. package/_esm/actions/account-client/signUserOperation.js.map +1 -1
  50. package/_esm/actions/paymaster/estimateGasInERC20.js.map +1 -1
  51. package/_esm/actions/paymaster/sponsorUserOperation.js +37 -15
  52. package/_esm/actions/paymaster/sponsorUserOperation.js.map +1 -1
  53. package/_esm/clients/decorators/kernel.js +9 -5
  54. package/_esm/clients/decorators/kernel.js.map +1 -1
  55. package/_esm/clients/kernelAccountClient.js +3 -3
  56. package/_esm/clients/kernelAccountClient.js.map +1 -1
  57. package/_esm/clients/paymasterClient.js +1 -1
  58. package/_esm/clients/paymasterClient.js.map +1 -1
  59. package/_esm/constants.js +27 -2
  60. package/_esm/constants.js.map +1 -1
  61. package/_esm/index.js +1 -0
  62. package/_esm/index.js.map +1 -1
  63. package/_esm/providers/KernelEIP1193Provider.js.map +1 -1
  64. package/_esm/types/kernel.js +1 -0
  65. package/_esm/types/kernel.js.map +1 -1
  66. package/_esm/utils.js +33 -4
  67. package/_esm/utils.js.map +1 -1
  68. package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.d.ts +843 -0
  69. package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.d.ts.map +1 -0
  70. package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.d.ts +16 -0
  71. package/_types/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.d.ts.map +1 -0
  72. package/_types/accounts/kernel/createKernelAccount.d.ts +14 -11
  73. package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
  74. package/_types/accounts/kernel/v1/createKernelV1Account.d.ts +5 -4
  75. package/_types/accounts/kernel/v1/createKernelV1Account.d.ts.map +1 -1
  76. package/_types/accounts/utils/6492.d.ts +3 -1
  77. package/_types/accounts/utils/6492.d.ts.map +1 -1
  78. package/_types/accounts/utils/index.d.ts +2 -4
  79. package/_types/accounts/utils/index.d.ts.map +1 -1
  80. package/_types/accounts/utils/toKernelPluginManager.d.ts +3 -2
  81. package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
  82. package/_types/actions/account-client/signUserOperation.d.ts +7 -7
  83. package/_types/actions/account-client/signUserOperation.d.ts.map +1 -1
  84. package/_types/actions/paymaster/estimateGasInERC20.d.ts +3 -2
  85. package/_types/actions/paymaster/estimateGasInERC20.d.ts.map +1 -1
  86. package/_types/actions/paymaster/sponsorUserOperation.d.ts +7 -6
  87. package/_types/actions/paymaster/sponsorUserOperation.d.ts.map +1 -1
  88. package/_types/clients/decorators/kernel.d.ts +8 -7
  89. package/_types/clients/decorators/kernel.d.ts.map +1 -1
  90. package/_types/clients/kernelAccountClient.d.ts +101 -22
  91. package/_types/clients/kernelAccountClient.d.ts.map +1 -1
  92. package/_types/clients/paymasterClient.d.ts +6 -3
  93. package/_types/clients/paymasterClient.d.ts.map +1 -1
  94. package/_types/constants.d.ts +22 -1
  95. package/_types/constants.d.ts.map +1 -1
  96. package/_types/index.d.ts +1 -0
  97. package/_types/index.d.ts.map +1 -1
  98. package/_types/providers/KernelEIP1193Provider.d.ts +3 -2
  99. package/_types/providers/KernelEIP1193Provider.d.ts.map +1 -1
  100. package/_types/types/kernel.d.ts +44 -12
  101. package/_types/types/kernel.d.ts.map +1 -1
  102. package/_types/utils.d.ts +11 -2
  103. package/_types/utils.d.ts.map +1 -1
  104. package/accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.ts +736 -0
  105. package/accounts/kernel/abi/kernel_v_3_0_0/KernelModuleAbi.ts +11 -0
  106. package/accounts/kernel/createKernelAccount.ts +399 -105
  107. package/accounts/kernel/v1/createKernelV1Account.ts +67 -28
  108. package/accounts/utils/6492.ts +27 -1
  109. package/accounts/utils/index.ts +2 -4
  110. package/accounts/utils/toKernelPluginManager.ts +261 -80
  111. package/actions/account-client/signUserOperation.ts +25 -13
  112. package/actions/paymaster/estimateGasInERC20.ts +5 -4
  113. package/actions/paymaster/sponsorUserOperation.ts +104 -32
  114. package/clients/decorators/kernel.ts +44 -35
  115. package/clients/kernelAccountClient.ts +34 -25
  116. package/clients/paymasterClient.ts +10 -6
  117. package/constants.ts +25 -2
  118. package/index.ts +5 -0
  119. package/package.json +93 -92
  120. package/providers/KernelEIP1193Provider.ts +6 -3
  121. package/types/kernel.ts +96 -40
  122. package/utils.ts +52 -4
  123. package/README.md +0 -3
@@ -0,0 +1,736 @@
1
+ export const KernelV3InitAbi = [
2
+ {
3
+ type: "function",
4
+ name: "initialize",
5
+ inputs: [
6
+ {
7
+ name: "_rootValidator",
8
+ type: "bytes21",
9
+ internalType: "ValidationId"
10
+ },
11
+ { name: "hook", type: "address", internalType: "contract IHook" },
12
+ { name: "validatorData", type: "bytes", internalType: "bytes" },
13
+ { name: "hookData", type: "bytes", internalType: "bytes" }
14
+ ],
15
+ outputs: [],
16
+ stateMutability: "nonpayable"
17
+ }
18
+ ] as const
19
+
20
+ export const KernelV3ExecuteAbi = [
21
+ {
22
+ type: "function",
23
+ name: "execute",
24
+ inputs: [
25
+ { name: "execMode", type: "bytes32", internalType: "ExecMode" },
26
+ {
27
+ name: "executionCalldata",
28
+ type: "bytes",
29
+ internalType: "bytes"
30
+ }
31
+ ],
32
+ outputs: [],
33
+ stateMutability: "payable"
34
+ },
35
+ {
36
+ type: "function",
37
+ name: "executeFromExecutor",
38
+ inputs: [
39
+ { name: "execMode", type: "bytes32", internalType: "ExecMode" },
40
+ {
41
+ name: "executionCalldata",
42
+ type: "bytes",
43
+ internalType: "bytes"
44
+ }
45
+ ],
46
+ outputs: [
47
+ { name: "returnData", type: "bytes[]", internalType: "bytes[]" }
48
+ ],
49
+ stateMutability: "payable"
50
+ },
51
+ {
52
+ type: "function",
53
+ name: "executeUserOp",
54
+ inputs: [
55
+ {
56
+ name: "userOp",
57
+ type: "tuple",
58
+ internalType: "struct PackedUserOperation",
59
+ components: [
60
+ {
61
+ name: "sender",
62
+ type: "address",
63
+ internalType: "address"
64
+ },
65
+ { name: "nonce", type: "uint256", internalType: "uint256" },
66
+ { name: "initCode", type: "bytes", internalType: "bytes" },
67
+ { name: "callData", type: "bytes", internalType: "bytes" },
68
+ {
69
+ name: "accountGasLimits",
70
+ type: "bytes32",
71
+ internalType: "bytes32"
72
+ },
73
+ {
74
+ name: "preVerificationGas",
75
+ type: "uint256",
76
+ internalType: "uint256"
77
+ },
78
+ {
79
+ name: "gasFees",
80
+ type: "bytes32",
81
+ internalType: "bytes32"
82
+ },
83
+ {
84
+ name: "paymasterAndData",
85
+ type: "bytes",
86
+ internalType: "bytes"
87
+ },
88
+ { name: "signature", type: "bytes", internalType: "bytes" }
89
+ ]
90
+ },
91
+ { name: "userOpHash", type: "bytes32", internalType: "bytes32" }
92
+ ],
93
+ outputs: [],
94
+ stateMutability: "payable"
95
+ }
96
+ ] as const
97
+
98
+ export const KernelV3AccountAbi = [
99
+ {
100
+ type: "constructor",
101
+ inputs: [
102
+ {
103
+ name: "_entrypoint",
104
+ type: "address",
105
+ internalType: "contract IEntryPoint"
106
+ }
107
+ ],
108
+ stateMutability: "nonpayable"
109
+ },
110
+ { type: "fallback", stateMutability: "payable" },
111
+ { type: "receive", stateMutability: "payable" },
112
+ {
113
+ type: "function",
114
+ name: "accountId",
115
+ inputs: [],
116
+ outputs: [
117
+ {
118
+ name: "accountImplementationId",
119
+ type: "string",
120
+ internalType: "string"
121
+ }
122
+ ],
123
+ stateMutability: "pure"
124
+ },
125
+ {
126
+ type: "function",
127
+ name: "currentNonce",
128
+ inputs: [],
129
+ outputs: [{ name: "", type: "uint32", internalType: "uint32" }],
130
+ stateMutability: "view"
131
+ },
132
+ {
133
+ type: "function",
134
+ name: "eip712Domain",
135
+ inputs: [],
136
+ outputs: [
137
+ { name: "fields", type: "bytes1", internalType: "bytes1" },
138
+ { name: "name", type: "string", internalType: "string" },
139
+ { name: "version", type: "string", internalType: "string" },
140
+ { name: "chainId", type: "uint256", internalType: "uint256" },
141
+ {
142
+ name: "verifyingContract",
143
+ type: "address",
144
+ internalType: "address"
145
+ },
146
+ { name: "salt", type: "bytes32", internalType: "bytes32" },
147
+ {
148
+ name: "extensions",
149
+ type: "uint256[]",
150
+ internalType: "uint256[]"
151
+ }
152
+ ],
153
+ stateMutability: "view"
154
+ },
155
+ {
156
+ type: "function",
157
+ name: "entrypoint",
158
+ inputs: [],
159
+ outputs: [
160
+ {
161
+ name: "",
162
+ type: "address",
163
+ internalType: "contract IEntryPoint"
164
+ }
165
+ ],
166
+ stateMutability: "view"
167
+ },
168
+ {
169
+ type: "function",
170
+ name: "execute",
171
+ inputs: [
172
+ { name: "execMode", type: "bytes32", internalType: "ExecMode" },
173
+ {
174
+ name: "executionCalldata",
175
+ type: "bytes",
176
+ internalType: "bytes"
177
+ }
178
+ ],
179
+ outputs: [],
180
+ stateMutability: "payable"
181
+ },
182
+ {
183
+ type: "function",
184
+ name: "executeFromExecutor",
185
+ inputs: [
186
+ { name: "execMode", type: "bytes32", internalType: "ExecMode" },
187
+ {
188
+ name: "executionCalldata",
189
+ type: "bytes",
190
+ internalType: "bytes"
191
+ }
192
+ ],
193
+ outputs: [
194
+ { name: "returnData", type: "bytes[]", internalType: "bytes[]" }
195
+ ],
196
+ stateMutability: "payable"
197
+ },
198
+ {
199
+ type: "function",
200
+ name: "executeUserOp",
201
+ inputs: [
202
+ {
203
+ name: "userOp",
204
+ type: "tuple",
205
+ internalType: "struct PackedUserOperation",
206
+ components: [
207
+ {
208
+ name: "sender",
209
+ type: "address",
210
+ internalType: "address"
211
+ },
212
+ { name: "nonce", type: "uint256", internalType: "uint256" },
213
+ { name: "initCode", type: "bytes", internalType: "bytes" },
214
+ { name: "callData", type: "bytes", internalType: "bytes" },
215
+ {
216
+ name: "accountGasLimits",
217
+ type: "bytes32",
218
+ internalType: "bytes32"
219
+ },
220
+ {
221
+ name: "preVerificationGas",
222
+ type: "uint256",
223
+ internalType: "uint256"
224
+ },
225
+ {
226
+ name: "gasFees",
227
+ type: "bytes32",
228
+ internalType: "bytes32"
229
+ },
230
+ {
231
+ name: "paymasterAndData",
232
+ type: "bytes",
233
+ internalType: "bytes"
234
+ },
235
+ { name: "signature", type: "bytes", internalType: "bytes" }
236
+ ]
237
+ },
238
+ { name: "userOpHash", type: "bytes32", internalType: "bytes32" }
239
+ ],
240
+ outputs: [],
241
+ stateMutability: "payable"
242
+ },
243
+ {
244
+ type: "function",
245
+ name: "executorConfig",
246
+ inputs: [
247
+ {
248
+ name: "executor",
249
+ type: "address",
250
+ internalType: "contract IExecutor"
251
+ }
252
+ ],
253
+ outputs: [
254
+ {
255
+ name: "",
256
+ type: "tuple",
257
+ internalType: "struct ExecutorManager.ExecutorConfig",
258
+ components: [
259
+ {
260
+ name: "hook",
261
+ type: "address",
262
+ internalType: "contract IHook"
263
+ }
264
+ ]
265
+ }
266
+ ],
267
+ stateMutability: "view"
268
+ },
269
+ {
270
+ type: "function",
271
+ name: "fallbackConfig",
272
+ inputs: [],
273
+ outputs: [
274
+ { name: "", type: "address", internalType: "contract IFallback" },
275
+ { name: "", type: "address", internalType: "contract IHook" }
276
+ ],
277
+ stateMutability: "view"
278
+ },
279
+ {
280
+ type: "function",
281
+ name: "initialize",
282
+ inputs: [
283
+ {
284
+ name: "_rootValidator",
285
+ type: "bytes21",
286
+ internalType: "ValidationId"
287
+ },
288
+ { name: "hook", type: "address", internalType: "contract IHook" },
289
+ { name: "validatorData", type: "bytes", internalType: "bytes" },
290
+ { name: "hookData", type: "bytes", internalType: "bytes" }
291
+ ],
292
+ outputs: [],
293
+ stateMutability: "nonpayable"
294
+ },
295
+ {
296
+ type: "function",
297
+ name: "installModule",
298
+ inputs: [
299
+ { name: "moduleType", type: "uint256", internalType: "uint256" },
300
+ { name: "module", type: "address", internalType: "address" },
301
+ { name: "initData", type: "bytes", internalType: "bytes" }
302
+ ],
303
+ outputs: [],
304
+ stateMutability: "payable"
305
+ },
306
+ {
307
+ type: "function",
308
+ name: "invalidateNonce",
309
+ inputs: [{ name: "nonce", type: "uint32", internalType: "uint32" }],
310
+ outputs: [],
311
+ stateMutability: "payable"
312
+ },
313
+ {
314
+ type: "function",
315
+ name: "isAllowedSelector",
316
+ inputs: [
317
+ { name: "vId", type: "bytes21", internalType: "ValidationId" },
318
+ { name: "selector", type: "bytes4", internalType: "bytes4" }
319
+ ],
320
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
321
+ stateMutability: "view"
322
+ },
323
+ {
324
+ type: "function",
325
+ name: "isModuleInstalled",
326
+ inputs: [
327
+ { name: "moduleType", type: "uint256", internalType: "uint256" },
328
+ { name: "module", type: "address", internalType: "address" },
329
+ {
330
+ name: "additionalContext",
331
+ type: "bytes",
332
+ internalType: "bytes"
333
+ }
334
+ ],
335
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
336
+ stateMutability: "view"
337
+ },
338
+ {
339
+ type: "function",
340
+ name: "isValidSignature",
341
+ inputs: [
342
+ { name: "hash", type: "bytes32", internalType: "bytes32" },
343
+ { name: "signature", type: "bytes", internalType: "bytes" }
344
+ ],
345
+ outputs: [{ name: "", type: "bytes4", internalType: "bytes4" }],
346
+ stateMutability: "view"
347
+ },
348
+ {
349
+ type: "function",
350
+ name: "permissionConfig",
351
+ inputs: [
352
+ { name: "vId", type: "bytes21", internalType: "ValidationId" }
353
+ ],
354
+ outputs: [
355
+ {
356
+ name: "",
357
+ type: "tuple",
358
+ internalType: "struct ValidationManager.PermissionConfig",
359
+ components: [
360
+ {
361
+ name: "permissionFlag",
362
+ type: "bytes2",
363
+ internalType: "PassFlag"
364
+ },
365
+ {
366
+ name: "signer",
367
+ type: "address",
368
+ internalType: "contract ISigner"
369
+ },
370
+ {
371
+ name: "policyData",
372
+ type: "bytes22[]",
373
+ internalType: "PolicyData[]"
374
+ }
375
+ ]
376
+ }
377
+ ],
378
+ stateMutability: "view"
379
+ },
380
+ {
381
+ type: "function",
382
+ name: "rootValidator",
383
+ inputs: [],
384
+ outputs: [{ name: "", type: "bytes21", internalType: "ValidationId" }],
385
+ stateMutability: "view"
386
+ },
387
+ {
388
+ type: "function",
389
+ name: "selectorConfig",
390
+ inputs: [{ name: "selector", type: "bytes4", internalType: "bytes4" }],
391
+ outputs: [
392
+ {
393
+ name: "",
394
+ type: "tuple",
395
+ internalType: "struct SelectorManager.SelectorConfig",
396
+ components: [
397
+ {
398
+ name: "hook",
399
+ type: "address",
400
+ internalType: "contract IHook"
401
+ },
402
+ { name: "target", type: "address", internalType: "address" }
403
+ ]
404
+ }
405
+ ],
406
+ stateMutability: "view"
407
+ },
408
+ {
409
+ type: "function",
410
+ name: "supportsExecutionMode",
411
+ inputs: [{ name: "", type: "bytes32", internalType: "ExecMode" }],
412
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
413
+ stateMutability: "pure"
414
+ },
415
+ {
416
+ type: "function",
417
+ name: "supportsModule",
418
+ inputs: [
419
+ { name: "moduleTypeId", type: "uint256", internalType: "uint256" }
420
+ ],
421
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
422
+ stateMutability: "pure"
423
+ },
424
+ {
425
+ type: "function",
426
+ name: "uninstallModule",
427
+ inputs: [
428
+ { name: "", type: "uint256", internalType: "uint256" },
429
+ { name: "module", type: "address", internalType: "address" },
430
+ { name: "deInitData", type: "bytes", internalType: "bytes" }
431
+ ],
432
+ outputs: [],
433
+ stateMutability: "payable"
434
+ },
435
+ {
436
+ type: "function",
437
+ name: "uninstallValidation",
438
+ inputs: [
439
+ { name: "vId", type: "bytes21", internalType: "ValidationId" },
440
+ { name: "deinitData", type: "bytes", internalType: "bytes" }
441
+ ],
442
+ outputs: [],
443
+ stateMutability: "payable"
444
+ },
445
+ {
446
+ type: "function",
447
+ name: "validNonceFrom",
448
+ inputs: [],
449
+ outputs: [{ name: "", type: "uint32", internalType: "uint32" }],
450
+ stateMutability: "view"
451
+ },
452
+ {
453
+ type: "function",
454
+ name: "validateUserOp",
455
+ inputs: [
456
+ {
457
+ name: "userOp",
458
+ type: "tuple",
459
+ internalType: "struct PackedUserOperation",
460
+ components: [
461
+ {
462
+ name: "sender",
463
+ type: "address",
464
+ internalType: "address"
465
+ },
466
+ { name: "nonce", type: "uint256", internalType: "uint256" },
467
+ { name: "initCode", type: "bytes", internalType: "bytes" },
468
+ { name: "callData", type: "bytes", internalType: "bytes" },
469
+ {
470
+ name: "accountGasLimits",
471
+ type: "bytes32",
472
+ internalType: "bytes32"
473
+ },
474
+ {
475
+ name: "preVerificationGas",
476
+ type: "uint256",
477
+ internalType: "uint256"
478
+ },
479
+ {
480
+ name: "gasFees",
481
+ type: "bytes32",
482
+ internalType: "bytes32"
483
+ },
484
+ {
485
+ name: "paymasterAndData",
486
+ type: "bytes",
487
+ internalType: "bytes"
488
+ },
489
+ { name: "signature", type: "bytes", internalType: "bytes" }
490
+ ]
491
+ },
492
+ { name: "userOpHash", type: "bytes32", internalType: "bytes32" },
493
+ {
494
+ name: "missingAccountFunds",
495
+ type: "uint256",
496
+ internalType: "uint256"
497
+ }
498
+ ],
499
+ outputs: [
500
+ {
501
+ name: "validationData",
502
+ type: "uint256",
503
+ internalType: "ValidationData"
504
+ }
505
+ ],
506
+ stateMutability: "payable"
507
+ },
508
+ {
509
+ type: "function",
510
+ name: "validatorConfig",
511
+ inputs: [
512
+ { name: "vId", type: "bytes21", internalType: "ValidationId" }
513
+ ],
514
+ outputs: [
515
+ {
516
+ name: "",
517
+ type: "tuple",
518
+ internalType: "struct ValidationManager.ValidationConfig",
519
+ components: [
520
+ { name: "nonce", type: "uint32", internalType: "uint32" },
521
+ {
522
+ name: "hook",
523
+ type: "address",
524
+ internalType: "contract IHook"
525
+ }
526
+ ]
527
+ }
528
+ ],
529
+ stateMutability: "view"
530
+ },
531
+ {
532
+ type: "event",
533
+ name: "ModuleInstalled",
534
+ inputs: [
535
+ {
536
+ name: "moduleTypeId",
537
+ type: "uint256",
538
+ indexed: false,
539
+ internalType: "uint256"
540
+ },
541
+ {
542
+ name: "module",
543
+ type: "address",
544
+ indexed: false,
545
+ internalType: "address"
546
+ }
547
+ ],
548
+ anonymous: false
549
+ },
550
+ {
551
+ type: "event",
552
+ name: "ModuleUninstalled",
553
+ inputs: [
554
+ {
555
+ name: "moduleTypeId",
556
+ type: "uint256",
557
+ indexed: false,
558
+ internalType: "uint256"
559
+ },
560
+ {
561
+ name: "module",
562
+ type: "address",
563
+ indexed: false,
564
+ internalType: "address"
565
+ }
566
+ ],
567
+ anonymous: false
568
+ },
569
+ {
570
+ type: "event",
571
+ name: "NonceInvalidated",
572
+ inputs: [
573
+ {
574
+ name: "nonce",
575
+ type: "uint32",
576
+ indexed: false,
577
+ internalType: "uint32"
578
+ }
579
+ ],
580
+ anonymous: false
581
+ },
582
+ {
583
+ type: "event",
584
+ name: "PermissionInstalled",
585
+ inputs: [
586
+ {
587
+ name: "permission",
588
+ type: "bytes4",
589
+ indexed: false,
590
+ internalType: "PermissionId"
591
+ },
592
+ {
593
+ name: "nonce",
594
+ type: "uint32",
595
+ indexed: false,
596
+ internalType: "uint32"
597
+ }
598
+ ],
599
+ anonymous: false
600
+ },
601
+ {
602
+ type: "event",
603
+ name: "PermissionUninstalled",
604
+ inputs: [
605
+ {
606
+ name: "permission",
607
+ type: "bytes4",
608
+ indexed: false,
609
+ internalType: "PermissionId"
610
+ }
611
+ ],
612
+ anonymous: false
613
+ },
614
+ {
615
+ type: "event",
616
+ name: "Received",
617
+ inputs: [
618
+ {
619
+ name: "sender",
620
+ type: "address",
621
+ indexed: false,
622
+ internalType: "address"
623
+ },
624
+ {
625
+ name: "amount",
626
+ type: "uint256",
627
+ indexed: false,
628
+ internalType: "uint256"
629
+ }
630
+ ],
631
+ anonymous: false
632
+ },
633
+ {
634
+ type: "event",
635
+ name: "SelectorSet",
636
+ inputs: [
637
+ {
638
+ name: "selector",
639
+ type: "bytes4",
640
+ indexed: false,
641
+ internalType: "bytes4"
642
+ },
643
+ {
644
+ name: "vId",
645
+ type: "bytes21",
646
+ indexed: false,
647
+ internalType: "ValidationId"
648
+ },
649
+ {
650
+ name: "allowed",
651
+ type: "bool",
652
+ indexed: false,
653
+ internalType: "bool"
654
+ }
655
+ ],
656
+ anonymous: false
657
+ },
658
+ {
659
+ type: "event",
660
+ name: "TryExecuteUnsuccessful",
661
+ inputs: [
662
+ {
663
+ name: "batchExecutionindex",
664
+ type: "uint256",
665
+ indexed: false,
666
+ internalType: "uint256"
667
+ },
668
+ {
669
+ name: "result",
670
+ type: "bytes",
671
+ indexed: false,
672
+ internalType: "bytes"
673
+ }
674
+ ],
675
+ anonymous: false
676
+ },
677
+ {
678
+ type: "event",
679
+ name: "ValidatorInstalled",
680
+ inputs: [
681
+ {
682
+ name: "validator",
683
+ type: "address",
684
+ indexed: false,
685
+ internalType: "contract IValidator"
686
+ },
687
+ {
688
+ name: "nonce",
689
+ type: "uint32",
690
+ indexed: false,
691
+ internalType: "uint32"
692
+ }
693
+ ],
694
+ anonymous: false
695
+ },
696
+ {
697
+ type: "event",
698
+ name: "ValidatorUninstalled",
699
+ inputs: [
700
+ {
701
+ name: "validator",
702
+ type: "address",
703
+ indexed: false,
704
+ internalType: "contract IValidator"
705
+ }
706
+ ],
707
+ anonymous: false
708
+ },
709
+ { type: "error", name: "EnableNotApproved", inputs: [] },
710
+ { type: "error", name: "ExecutionReverted", inputs: [] },
711
+ { type: "error", name: "InvalidCallType", inputs: [] },
712
+ { type: "error", name: "InvalidCaller", inputs: [] },
713
+ { type: "error", name: "InvalidExecutor", inputs: [] },
714
+ { type: "error", name: "InvalidFallback", inputs: [] },
715
+ { type: "error", name: "InvalidMode", inputs: [] },
716
+ { type: "error", name: "InvalidModuleType", inputs: [] },
717
+ { type: "error", name: "InvalidNonce", inputs: [] },
718
+ { type: "error", name: "InvalidSignature", inputs: [] },
719
+ { type: "error", name: "InvalidValidationType", inputs: [] },
720
+ { type: "error", name: "InvalidValidator", inputs: [] },
721
+ { type: "error", name: "OnlyExecuteUserOp", inputs: [] },
722
+ {
723
+ type: "error",
724
+ name: "PermissionNotAlllowedForSignature",
725
+ inputs: []
726
+ },
727
+ { type: "error", name: "PermissionNotAlllowedForUserOp", inputs: [] },
728
+ { type: "error", name: "PolicyDataTooLarge", inputs: [] },
729
+ {
730
+ type: "error",
731
+ name: "PolicyFailed",
732
+ inputs: [{ name: "i", type: "uint256", internalType: "uint256" }]
733
+ },
734
+ { type: "error", name: "PolicySignatureOrderError", inputs: [] },
735
+ { type: "error", name: "SignerPrefixNotPresent", inputs: [] }
736
+ ] as const