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