@zerodev/sdk 5.4.37 → 5.4.39

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