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