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