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