@zerodev/sdk 5.3.0-alpha-0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/_cjs/accounts/kernel/abi/kernel_v_3_1/KernelAccountAbi.js +796 -0
  2. package/_cjs/accounts/kernel/abi/kernel_v_3_1/KernelAccountAbi.js.map +1 -0
  3. package/_cjs/accounts/kernel/createKernelAccount.js +26 -6
  4. package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
  5. package/_cjs/accounts/kernel/utils/common/accountMetadata.js +1 -1
  6. package/_cjs/accounts/kernel/utils/common/accountMetadata.js.map +1 -1
  7. package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js +1 -1
  8. package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -1
  9. package/_cjs/accounts/kernel/v1/createKernelAccountV1.js +1 -1
  10. package/_cjs/accounts/utils/toKernelPluginManager.js +4 -2
  11. package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
  12. package/_cjs/actions/account-client/uninstallPlugin.js +43 -0
  13. package/_cjs/actions/account-client/uninstallPlugin.js.map +1 -0
  14. package/_cjs/actions/index.js +3 -1
  15. package/_cjs/actions/index.js.map +1 -1
  16. package/_cjs/clients/decorators/kernel.js +5 -1
  17. package/_cjs/clients/decorators/kernel.js.map +1 -1
  18. package/_cjs/constants.js +11 -17
  19. package/_cjs/constants.js.map +1 -1
  20. package/_cjs/index.js +3 -1
  21. package/_cjs/index.js.map +1 -1
  22. package/_cjs/utils.js +3 -15
  23. package/_cjs/utils.js.map +1 -1
  24. package/_esm/accounts/kernel/abi/kernel_v_3_1/KernelAccountAbi.js +793 -0
  25. package/_esm/accounts/kernel/abi/kernel_v_3_1/KernelAccountAbi.js.map +1 -0
  26. package/_esm/accounts/kernel/createKernelAccount.js +26 -6
  27. package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
  28. package/_esm/accounts/kernel/utils/common/accountMetadata.js +1 -1
  29. package/_esm/accounts/kernel/utils/common/accountMetadata.js.map +1 -1
  30. package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js +1 -1
  31. package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -1
  32. package/_esm/accounts/kernel/v1/createKernelAccountV1.js +1 -1
  33. package/_esm/accounts/utils/toKernelPluginManager.js +4 -2
  34. package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
  35. package/_esm/actions/account-client/uninstallPlugin.js +39 -0
  36. package/_esm/actions/account-client/uninstallPlugin.js.map +1 -0
  37. package/_esm/actions/index.js +1 -0
  38. package/_esm/actions/index.js.map +1 -1
  39. package/_esm/clients/decorators/kernel.js +6 -2
  40. package/_esm/clients/decorators/kernel.js.map +1 -1
  41. package/_esm/constants.js +18 -16
  42. package/_esm/constants.js.map +1 -1
  43. package/_esm/index.js +1 -0
  44. package/_esm/index.js.map +1 -1
  45. package/_esm/utils.js +4 -15
  46. package/_esm/utils.js.map +1 -1
  47. package/_types/accounts/kernel/abi/kernel_v_3_1/KernelAccountAbi.d.ts +946 -0
  48. package/_types/accounts/kernel/abi/kernel_v_3_1/KernelAccountAbi.d.ts.map +1 -0
  49. package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
  50. package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts +2 -2
  51. package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
  52. package/_types/actions/account-client/uninstallPlugin.d.ts +11 -0
  53. package/_types/actions/account-client/uninstallPlugin.d.ts.map +1 -0
  54. package/_types/actions/index.d.ts +1 -0
  55. package/_types/actions/index.d.ts.map +1 -1
  56. package/_types/clients/decorators/kernel.d.ts +11 -2
  57. package/_types/clients/decorators/kernel.d.ts.map +1 -1
  58. package/_types/constants.d.ts +7 -8
  59. package/_types/constants.d.ts.map +1 -1
  60. package/_types/index.d.ts +1 -0
  61. package/_types/index.d.ts.map +1 -1
  62. package/_types/types/kernel.d.ts +1 -1
  63. package/_types/types/kernel.d.ts.map +1 -1
  64. package/_types/utils.d.ts +1 -2
  65. package/_types/utils.d.ts.map +1 -1
  66. package/accounts/kernel/abi/kernel_v_3_1/KernelAccountAbi.ts +792 -0
  67. package/accounts/kernel/createKernelAccount.ts +30 -6
  68. package/accounts/kernel/utils/common/accountMetadata.ts +1 -1
  69. package/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.ts +1 -1
  70. package/accounts/kernel/v1/createKernelAccountV1.ts +2 -2
  71. package/accounts/utils/toKernelPluginManager.ts +4 -2
  72. package/actions/account-client/uninstallPlugin.ts +99 -0
  73. package/actions/index.ts +5 -0
  74. package/clients/decorators/kernel.ts +35 -4
  75. package/constants.ts +22 -17
  76. package/index.ts +1 -0
  77. package/package.json +16 -33
  78. package/types/kernel.ts +1 -1
  79. package/utils.ts +5 -28
@@ -0,0 +1,793 @@
1
+ export const KernelV3_1AccountAbi = [
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
+ {
67
+ name: "extensions",
68
+ type: "uint256[]",
69
+ internalType: "uint256[]"
70
+ }
71
+ ],
72
+ stateMutability: "view"
73
+ },
74
+ {
75
+ type: "function",
76
+ name: "entrypoint",
77
+ inputs: [],
78
+ outputs: [
79
+ {
80
+ name: "",
81
+ type: "address",
82
+ internalType: "contract IEntryPoint"
83
+ }
84
+ ],
85
+ stateMutability: "view"
86
+ },
87
+ {
88
+ type: "function",
89
+ name: "execute",
90
+ inputs: [
91
+ { name: "execMode", type: "bytes32", internalType: "ExecMode" },
92
+ {
93
+ name: "executionCalldata",
94
+ type: "bytes",
95
+ internalType: "bytes"
96
+ }
97
+ ],
98
+ outputs: [],
99
+ stateMutability: "payable"
100
+ },
101
+ {
102
+ type: "function",
103
+ name: "executeFromExecutor",
104
+ inputs: [
105
+ { name: "execMode", type: "bytes32", internalType: "ExecMode" },
106
+ {
107
+ name: "executionCalldata",
108
+ type: "bytes",
109
+ internalType: "bytes"
110
+ }
111
+ ],
112
+ outputs: [
113
+ { name: "returnData", type: "bytes[]", internalType: "bytes[]" }
114
+ ],
115
+ stateMutability: "payable"
116
+ },
117
+ {
118
+ type: "function",
119
+ name: "executeUserOp",
120
+ inputs: [
121
+ {
122
+ name: "userOp",
123
+ type: "tuple",
124
+ internalType: "struct PackedUserOperation",
125
+ components: [
126
+ {
127
+ name: "sender",
128
+ type: "address",
129
+ internalType: "address"
130
+ },
131
+ { name: "nonce", type: "uint256", internalType: "uint256" },
132
+ { name: "initCode", type: "bytes", internalType: "bytes" },
133
+ { name: "callData", type: "bytes", internalType: "bytes" },
134
+ {
135
+ name: "accountGasLimits",
136
+ type: "bytes32",
137
+ internalType: "bytes32"
138
+ },
139
+ {
140
+ name: "preVerificationGas",
141
+ type: "uint256",
142
+ internalType: "uint256"
143
+ },
144
+ {
145
+ name: "gasFees",
146
+ type: "bytes32",
147
+ internalType: "bytes32"
148
+ },
149
+ {
150
+ name: "paymasterAndData",
151
+ type: "bytes",
152
+ internalType: "bytes"
153
+ },
154
+ { name: "signature", type: "bytes", internalType: "bytes" }
155
+ ]
156
+ },
157
+ { name: "userOpHash", type: "bytes32", internalType: "bytes32" }
158
+ ],
159
+ outputs: [],
160
+ stateMutability: "payable"
161
+ },
162
+ {
163
+ type: "function",
164
+ name: "executorConfig",
165
+ inputs: [
166
+ {
167
+ name: "executor",
168
+ type: "address",
169
+ internalType: "contract IExecutor"
170
+ }
171
+ ],
172
+ outputs: [
173
+ {
174
+ name: "",
175
+ type: "tuple",
176
+ internalType: "struct ExecutorManager.ExecutorConfig",
177
+ components: [
178
+ {
179
+ name: "hook",
180
+ type: "address",
181
+ internalType: "contract IHook"
182
+ }
183
+ ]
184
+ }
185
+ ],
186
+ stateMutability: "view"
187
+ },
188
+ {
189
+ type: "function",
190
+ name: "initialize",
191
+ inputs: [
192
+ {
193
+ name: "_rootValidator",
194
+ type: "bytes21",
195
+ internalType: "ValidationId"
196
+ },
197
+ { name: "hook", type: "address", internalType: "contract IHook" },
198
+ { name: "validatorData", type: "bytes", internalType: "bytes" },
199
+ { name: "hookData", type: "bytes", internalType: "bytes" },
200
+ { name: "initConfig", type: "bytes[]", internalType: "bytes[]" }
201
+ ],
202
+ outputs: [],
203
+ stateMutability: "nonpayable"
204
+ },
205
+ {
206
+ type: "function",
207
+ name: "installModule",
208
+ inputs: [
209
+ { name: "moduleType", type: "uint256", internalType: "uint256" },
210
+ { name: "module", type: "address", internalType: "address" },
211
+ { name: "initData", type: "bytes", internalType: "bytes" }
212
+ ],
213
+ outputs: [],
214
+ stateMutability: "payable"
215
+ },
216
+ {
217
+ type: "function",
218
+ name: "installValidations",
219
+ inputs: [
220
+ {
221
+ name: "vIds",
222
+ type: "bytes21[]",
223
+ internalType: "ValidationId[]"
224
+ },
225
+ {
226
+ name: "configs",
227
+ type: "tuple[]",
228
+ internalType: "struct ValidationManager.ValidationConfig[]",
229
+ components: [
230
+ { name: "nonce", type: "uint32", internalType: "uint32" },
231
+ {
232
+ name: "hook",
233
+ type: "address",
234
+ internalType: "contract IHook"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ name: "validationData",
240
+ type: "bytes[]",
241
+ internalType: "bytes[]"
242
+ },
243
+ { name: "hookData", type: "bytes[]", internalType: "bytes[]" }
244
+ ],
245
+ outputs: [],
246
+ stateMutability: "payable"
247
+ },
248
+ {
249
+ type: "function",
250
+ name: "invalidateNonce",
251
+ inputs: [{ name: "nonce", type: "uint32", internalType: "uint32" }],
252
+ outputs: [],
253
+ stateMutability: "payable"
254
+ },
255
+ {
256
+ type: "function",
257
+ name: "isAllowedSelector",
258
+ inputs: [
259
+ { name: "vId", type: "bytes21", internalType: "ValidationId" },
260
+ { name: "selector", type: "bytes4", internalType: "bytes4" }
261
+ ],
262
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
263
+ stateMutability: "view"
264
+ },
265
+ {
266
+ type: "function",
267
+ name: "isModuleInstalled",
268
+ inputs: [
269
+ { name: "moduleType", type: "uint256", internalType: "uint256" },
270
+ { name: "module", type: "address", internalType: "address" },
271
+ {
272
+ name: "additionalContext",
273
+ type: "bytes",
274
+ internalType: "bytes"
275
+ }
276
+ ],
277
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
278
+ stateMutability: "view"
279
+ },
280
+ {
281
+ type: "function",
282
+ name: "isValidSignature",
283
+ inputs: [
284
+ { name: "hash", type: "bytes32", internalType: "bytes32" },
285
+ { name: "signature", type: "bytes", internalType: "bytes" }
286
+ ],
287
+ outputs: [{ name: "", type: "bytes4", internalType: "bytes4" }],
288
+ stateMutability: "view"
289
+ },
290
+ {
291
+ type: "function",
292
+ name: "onERC1155BatchReceived",
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: "onERC1155Received",
306
+ inputs: [
307
+ { name: "", type: "address", internalType: "address" },
308
+ { name: "", type: "address", internalType: "address" },
309
+ { name: "", type: "uint256", internalType: "uint256" },
310
+ { name: "", type: "uint256", internalType: "uint256" },
311
+ { name: "", type: "bytes", internalType: "bytes" }
312
+ ],
313
+ outputs: [{ name: "", type: "bytes4", internalType: "bytes4" }],
314
+ stateMutability: "pure"
315
+ },
316
+ {
317
+ type: "function",
318
+ name: "onERC721Received",
319
+ inputs: [
320
+ { name: "", type: "address", internalType: "address" },
321
+ { name: "", type: "address", internalType: "address" },
322
+ { name: "", type: "uint256", internalType: "uint256" },
323
+ { name: "", type: "bytes", internalType: "bytes" }
324
+ ],
325
+ outputs: [{ name: "", type: "bytes4", internalType: "bytes4" }],
326
+ stateMutability: "pure"
327
+ },
328
+ {
329
+ type: "function",
330
+ name: "permissionConfig",
331
+ inputs: [{ name: "pId", type: "bytes4", internalType: "PermissionId" }],
332
+ outputs: [
333
+ {
334
+ name: "",
335
+ type: "tuple",
336
+ internalType: "struct ValidationManager.PermissionConfig",
337
+ components: [
338
+ {
339
+ name: "permissionFlag",
340
+ type: "bytes2",
341
+ internalType: "PassFlag"
342
+ },
343
+ {
344
+ name: "signer",
345
+ type: "address",
346
+ internalType: "contract ISigner"
347
+ },
348
+ {
349
+ name: "policyData",
350
+ type: "bytes22[]",
351
+ internalType: "PolicyData[]"
352
+ }
353
+ ]
354
+ }
355
+ ],
356
+ stateMutability: "view"
357
+ },
358
+ {
359
+ type: "function",
360
+ name: "rootValidator",
361
+ inputs: [],
362
+ outputs: [{ name: "", type: "bytes21", internalType: "ValidationId" }],
363
+ stateMutability: "view"
364
+ },
365
+ {
366
+ type: "function",
367
+ name: "selectorConfig",
368
+ inputs: [{ name: "selector", type: "bytes4", internalType: "bytes4" }],
369
+ outputs: [
370
+ {
371
+ name: "",
372
+ type: "tuple",
373
+ internalType: "struct SelectorManager.SelectorConfig",
374
+ components: [
375
+ {
376
+ name: "hook",
377
+ type: "address",
378
+ internalType: "contract IHook"
379
+ },
380
+ {
381
+ name: "target",
382
+ type: "address",
383
+ internalType: "address"
384
+ },
385
+ {
386
+ name: "callType",
387
+ type: "bytes1",
388
+ internalType: "CallType"
389
+ }
390
+ ]
391
+ }
392
+ ],
393
+ stateMutability: "view"
394
+ },
395
+ {
396
+ type: "function",
397
+ name: "supportsExecutionMode",
398
+ inputs: [{ name: "mode", type: "bytes32", internalType: "ExecMode" }],
399
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
400
+ stateMutability: "pure"
401
+ },
402
+ {
403
+ type: "function",
404
+ name: "supportsModule",
405
+ inputs: [
406
+ { name: "moduleTypeId", type: "uint256", internalType: "uint256" }
407
+ ],
408
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
409
+ stateMutability: "pure"
410
+ },
411
+ {
412
+ type: "function",
413
+ name: "uninstallModule",
414
+ inputs: [
415
+ { name: "moduleType", type: "uint256", internalType: "uint256" },
416
+ { name: "module", type: "address", internalType: "address" },
417
+ { name: "deInitData", type: "bytes", internalType: "bytes" }
418
+ ],
419
+ outputs: [],
420
+ stateMutability: "payable"
421
+ },
422
+ {
423
+ type: "function",
424
+ name: "uninstallValidation",
425
+ inputs: [
426
+ { name: "vId", type: "bytes21", internalType: "ValidationId" },
427
+ { name: "deinitData", type: "bytes", internalType: "bytes" },
428
+ { name: "hookDeinitData", type: "bytes", internalType: "bytes" }
429
+ ],
430
+ outputs: [],
431
+ stateMutability: "payable"
432
+ },
433
+ {
434
+ type: "function",
435
+ name: "upgradeTo",
436
+ inputs: [
437
+ {
438
+ name: "_newImplementation",
439
+ type: "address",
440
+ internalType: "address"
441
+ }
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: "validationConfig",
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: "ModuleUninstallResult",
554
+ inputs: [
555
+ {
556
+ name: "module",
557
+ type: "address",
558
+ indexed: false,
559
+ internalType: "address"
560
+ },
561
+ {
562
+ name: "result",
563
+ type: "bool",
564
+ indexed: false,
565
+ internalType: "bool"
566
+ }
567
+ ],
568
+ anonymous: false
569
+ },
570
+ {
571
+ type: "event",
572
+ name: "ModuleUninstalled",
573
+ inputs: [
574
+ {
575
+ name: "moduleTypeId",
576
+ type: "uint256",
577
+ indexed: false,
578
+ internalType: "uint256"
579
+ },
580
+ {
581
+ name: "module",
582
+ type: "address",
583
+ indexed: false,
584
+ internalType: "address"
585
+ }
586
+ ],
587
+ anonymous: false
588
+ },
589
+ {
590
+ type: "event",
591
+ name: "NonceInvalidated",
592
+ inputs: [
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: "PermissionInstalled",
605
+ inputs: [
606
+ {
607
+ name: "permission",
608
+ type: "bytes4",
609
+ indexed: false,
610
+ internalType: "PermissionId"
611
+ },
612
+ {
613
+ name: "nonce",
614
+ type: "uint32",
615
+ indexed: false,
616
+ internalType: "uint32"
617
+ }
618
+ ],
619
+ anonymous: false
620
+ },
621
+ {
622
+ type: "event",
623
+ name: "PermissionUninstalled",
624
+ inputs: [
625
+ {
626
+ name: "permission",
627
+ type: "bytes4",
628
+ indexed: false,
629
+ internalType: "PermissionId"
630
+ }
631
+ ],
632
+ anonymous: false
633
+ },
634
+ {
635
+ type: "event",
636
+ name: "Received",
637
+ inputs: [
638
+ {
639
+ name: "sender",
640
+ type: "address",
641
+ indexed: false,
642
+ internalType: "address"
643
+ },
644
+ {
645
+ name: "amount",
646
+ type: "uint256",
647
+ indexed: false,
648
+ internalType: "uint256"
649
+ }
650
+ ],
651
+ anonymous: false
652
+ },
653
+ {
654
+ type: "event",
655
+ name: "RootValidatorUpdated",
656
+ inputs: [
657
+ {
658
+ name: "rootValidator",
659
+ type: "bytes21",
660
+ indexed: false,
661
+ internalType: "ValidationId"
662
+ }
663
+ ],
664
+ anonymous: false
665
+ },
666
+ {
667
+ type: "event",
668
+ name: "SelectorSet",
669
+ inputs: [
670
+ {
671
+ name: "selector",
672
+ type: "bytes4",
673
+ indexed: false,
674
+ internalType: "bytes4"
675
+ },
676
+ {
677
+ name: "vId",
678
+ type: "bytes21",
679
+ indexed: false,
680
+ internalType: "ValidationId"
681
+ },
682
+ {
683
+ name: "allowed",
684
+ type: "bool",
685
+ indexed: false,
686
+ internalType: "bool"
687
+ }
688
+ ],
689
+ anonymous: false
690
+ },
691
+ {
692
+ type: "event",
693
+ name: "TryExecuteUnsuccessful",
694
+ inputs: [
695
+ {
696
+ name: "batchExecutionindex",
697
+ type: "uint256",
698
+ indexed: false,
699
+ internalType: "uint256"
700
+ },
701
+ {
702
+ name: "result",
703
+ type: "bytes",
704
+ indexed: false,
705
+ internalType: "bytes"
706
+ }
707
+ ],
708
+ anonymous: false
709
+ },
710
+ {
711
+ type: "event",
712
+ name: "Upgraded",
713
+ inputs: [
714
+ {
715
+ name: "implementation",
716
+ type: "address",
717
+ indexed: true,
718
+ internalType: "address"
719
+ }
720
+ ],
721
+ anonymous: false
722
+ },
723
+ {
724
+ type: "event",
725
+ name: "ValidatorInstalled",
726
+ inputs: [
727
+ {
728
+ name: "validator",
729
+ type: "address",
730
+ indexed: false,
731
+ internalType: "contract IValidator"
732
+ },
733
+ {
734
+ name: "nonce",
735
+ type: "uint32",
736
+ indexed: false,
737
+ internalType: "uint32"
738
+ }
739
+ ],
740
+ anonymous: false
741
+ },
742
+ {
743
+ type: "event",
744
+ name: "ValidatorUninstalled",
745
+ inputs: [
746
+ {
747
+ name: "validator",
748
+ type: "address",
749
+ indexed: false,
750
+ internalType: "contract IValidator"
751
+ }
752
+ ],
753
+ anonymous: false
754
+ },
755
+ { type: "error", name: "EnableNotApproved", inputs: [] },
756
+ { type: "error", name: "ExecutionReverted", inputs: [] },
757
+ {
758
+ type: "error",
759
+ name: "InitConfigError",
760
+ inputs: [{ name: "idx", type: "uint256", internalType: "uint256" }]
761
+ },
762
+ { type: "error", name: "InvalidCallType", inputs: [] },
763
+ { type: "error", name: "InvalidCaller", inputs: [] },
764
+ { type: "error", name: "InvalidExecutor", inputs: [] },
765
+ { type: "error", name: "InvalidFallback", inputs: [] },
766
+ { type: "error", name: "InvalidMode", inputs: [] },
767
+ { type: "error", name: "InvalidModuleType", inputs: [] },
768
+ { type: "error", name: "InvalidNonce", inputs: [] },
769
+ { type: "error", name: "InvalidSelector", inputs: [] },
770
+ { type: "error", name: "InvalidSignature", inputs: [] },
771
+ { type: "error", name: "InvalidValidationType", inputs: [] },
772
+ { type: "error", name: "InvalidValidator", inputs: [] },
773
+ { type: "error", name: "NonceInvalidationError", inputs: [] },
774
+ { type: "error", name: "NotSupportedCallType", inputs: [] },
775
+ { type: "error", name: "OnlyExecuteUserOp", inputs: [] },
776
+ { type: "error", name: "PermissionDataLengthMismatch", inputs: [] },
777
+ {
778
+ type: "error",
779
+ name: "PermissionNotAlllowedForSignature",
780
+ inputs: []
781
+ },
782
+ { type: "error", name: "PermissionNotAlllowedForUserOp", inputs: [] },
783
+ { type: "error", name: "PolicyDataTooLarge", inputs: [] },
784
+ {
785
+ type: "error",
786
+ name: "PolicyFailed",
787
+ inputs: [{ name: "i", type: "uint256", internalType: "uint256" }]
788
+ },
789
+ { type: "error", name: "PolicySignatureOrderError", inputs: [] },
790
+ { type: "error", name: "RootValidatorCannotBeRemoved", inputs: [] },
791
+ { type: "error", name: "SignerPrefixNotPresent", inputs: [] }
792
+ ];
793
+ //# sourceMappingURL=KernelAccountAbi.js.map