@gitmyabi/kernel 1.0.3 → 1.0.5

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.
@@ -9,621 +9,1070 @@ const viem_1 = require("viem");
9
9
  */
10
10
  exports.Kernel_jsonAbi = [
11
11
  {
12
- "constant": true,
13
- "inputs": [],
14
- "name": "hasInitialized",
15
- "outputs": [
12
+ "inputs": [
16
13
  {
17
- "name": "",
18
- "type": "bool"
14
+ "internalType": "contract IEntryPoint",
15
+ "name": "_entrypoint",
16
+ "type": "address"
19
17
  }
20
18
  ],
21
- "payable": false,
22
- "stateMutability": "view",
23
- "type": "function"
19
+ "stateMutability": "nonpayable",
20
+ "type": "constructor"
24
21
  },
25
22
  {
26
- "constant": true,
27
23
  "inputs": [],
28
- "name": "KERNEL_APP_ID",
29
- "outputs": [
24
+ "name": "EnableNotApproved",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "ExecutionReverted",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "InvalidCallType",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [],
39
+ "name": "InvalidCaller",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [],
44
+ "name": "InvalidExecutor",
45
+ "type": "error"
46
+ },
47
+ {
48
+ "inputs": [],
49
+ "name": "InvalidFallback",
50
+ "type": "error"
51
+ },
52
+ {
53
+ "inputs": [],
54
+ "name": "InvalidMode",
55
+ "type": "error"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "InvalidModuleType",
60
+ "type": "error"
61
+ },
62
+ {
63
+ "inputs": [],
64
+ "name": "InvalidNonce",
65
+ "type": "error"
66
+ },
67
+ {
68
+ "inputs": [],
69
+ "name": "InvalidSelector",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "InvalidSignature",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "InvalidValidationType",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "InvalidValidator",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "NonceInvalidationError",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "NotSupportedCallType",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "OnlyExecuteUserOp",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "inputs": [],
104
+ "name": "PermissionDataLengthMismatch",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [],
109
+ "name": "PermissionNotAlllowedForSignature",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [],
114
+ "name": "PermissionNotAlllowedForUserOp",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "PolicyDataTooLarge",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [
30
124
  {
31
- "name": "",
32
- "type": "bytes32"
125
+ "internalType": "uint256",
126
+ "name": "i",
127
+ "type": "uint256"
33
128
  }
34
129
  ],
35
- "payable": false,
36
- "stateMutability": "pure",
37
- "type": "function"
130
+ "name": "PolicyFailed",
131
+ "type": "error"
38
132
  },
39
133
  {
40
- "constant": true,
41
134
  "inputs": [],
42
- "name": "APP_ADDR_NAMESPACE",
43
- "outputs": [
135
+ "name": "PolicySignatureOrderError",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [],
140
+ "name": "RootValidatorCannotBeRemoved",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "inputs": [],
145
+ "name": "SignerPrefixNotPresent",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "anonymous": false,
150
+ "inputs": [
44
151
  {
45
- "name": "",
46
- "type": "bytes32"
152
+ "indexed": false,
153
+ "internalType": "uint256",
154
+ "name": "moduleTypeId",
155
+ "type": "uint256"
156
+ },
157
+ {
158
+ "indexed": false,
159
+ "internalType": "address",
160
+ "name": "module",
161
+ "type": "address"
47
162
  }
48
163
  ],
49
- "payable": false,
50
- "stateMutability": "pure",
51
- "type": "function"
164
+ "name": "ModuleInstalled",
165
+ "type": "event"
52
166
  },
53
167
  {
54
- "constant": true,
55
- "inputs": [],
56
- "name": "getRecoveryVault",
57
- "outputs": [
168
+ "anonymous": false,
169
+ "inputs": [
58
170
  {
59
- "name": "",
171
+ "indexed": false,
172
+ "internalType": "address",
173
+ "name": "module",
60
174
  "type": "address"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "bool",
179
+ "name": "result",
180
+ "type": "bool"
61
181
  }
62
182
  ],
63
- "payable": false,
64
- "stateMutability": "view",
65
- "type": "function"
183
+ "name": "ModuleUninstallResult",
184
+ "type": "event"
66
185
  },
67
186
  {
68
- "constant": false,
187
+ "anonymous": false,
69
188
  "inputs": [
70
189
  {
71
- "name": "_appId",
72
- "type": "bytes32"
190
+ "indexed": false,
191
+ "internalType": "uint256",
192
+ "name": "moduleTypeId",
193
+ "type": "uint256"
73
194
  },
74
195
  {
75
- "name": "_appBase",
196
+ "indexed": false,
197
+ "internalType": "address",
198
+ "name": "module",
76
199
  "type": "address"
77
- },
200
+ }
201
+ ],
202
+ "name": "ModuleUninstalled",
203
+ "type": "event"
204
+ },
205
+ {
206
+ "anonymous": false,
207
+ "inputs": [
78
208
  {
79
- "name": "_initializePayload",
80
- "type": "bytes"
209
+ "indexed": false,
210
+ "internalType": "uint32",
211
+ "name": "nonce",
212
+ "type": "uint32"
213
+ }
214
+ ],
215
+ "name": "NonceInvalidated",
216
+ "type": "event"
217
+ },
218
+ {
219
+ "anonymous": false,
220
+ "inputs": [
221
+ {
222
+ "indexed": false,
223
+ "internalType": "PermissionId",
224
+ "name": "permission",
225
+ "type": "bytes4"
81
226
  },
82
227
  {
83
- "name": "_setDefault",
84
- "type": "bool"
228
+ "indexed": false,
229
+ "internalType": "uint32",
230
+ "name": "nonce",
231
+ "type": "uint32"
85
232
  }
86
233
  ],
87
- "name": "newAppInstance",
88
- "outputs": [
234
+ "name": "PermissionInstalled",
235
+ "type": "event"
236
+ },
237
+ {
238
+ "anonymous": false,
239
+ "inputs": [
89
240
  {
90
- "name": "appProxy",
91
- "type": "address"
241
+ "indexed": false,
242
+ "internalType": "PermissionId",
243
+ "name": "permission",
244
+ "type": "bytes4"
92
245
  }
93
246
  ],
94
- "payable": false,
95
- "stateMutability": "nonpayable",
96
- "type": "function"
247
+ "name": "PermissionUninstalled",
248
+ "type": "event"
97
249
  },
98
250
  {
99
- "constant": true,
251
+ "anonymous": false,
100
252
  "inputs": [
101
253
  {
102
- "name": "",
103
- "type": "bytes32"
254
+ "indexed": false,
255
+ "internalType": "address",
256
+ "name": "sender",
257
+ "type": "address"
104
258
  },
105
259
  {
106
- "name": "",
107
- "type": "bytes32"
260
+ "indexed": false,
261
+ "internalType": "uint256",
262
+ "name": "amount",
263
+ "type": "uint256"
108
264
  }
109
265
  ],
110
- "name": "apps",
111
- "outputs": [
266
+ "name": "Received",
267
+ "type": "event"
268
+ },
269
+ {
270
+ "anonymous": false,
271
+ "inputs": [
112
272
  {
113
- "name": "",
114
- "type": "address"
273
+ "indexed": false,
274
+ "internalType": "ValidationId",
275
+ "name": "rootValidator",
276
+ "type": "bytes21"
115
277
  }
116
278
  ],
117
- "payable": false,
118
- "stateMutability": "view",
119
- "type": "function"
279
+ "name": "RootValidatorUpdated",
280
+ "type": "event"
120
281
  },
121
282
  {
122
- "constant": false,
283
+ "anonymous": false,
123
284
  "inputs": [
124
285
  {
125
- "name": "_baseAcl",
126
- "type": "address"
286
+ "indexed": false,
287
+ "internalType": "bytes4",
288
+ "name": "selector",
289
+ "type": "bytes4"
127
290
  },
128
291
  {
129
- "name": "_permissionsCreator",
130
- "type": "address"
292
+ "indexed": false,
293
+ "internalType": "ValidationId",
294
+ "name": "vId",
295
+ "type": "bytes21"
296
+ },
297
+ {
298
+ "indexed": false,
299
+ "internalType": "bool",
300
+ "name": "allowed",
301
+ "type": "bool"
131
302
  }
132
303
  ],
133
- "name": "initialize",
134
- "outputs": [],
135
- "payable": false,
136
- "stateMutability": "nonpayable",
137
- "type": "function"
304
+ "name": "SelectorSet",
305
+ "type": "event"
138
306
  },
139
307
  {
140
- "constant": true,
141
- "inputs": [],
142
- "name": "CORE_NAMESPACE",
143
- "outputs": [
308
+ "anonymous": false,
309
+ "inputs": [
144
310
  {
145
- "name": "",
146
- "type": "bytes32"
311
+ "indexed": false,
312
+ "internalType": "uint256",
313
+ "name": "batchExecutionindex",
314
+ "type": "uint256"
315
+ },
316
+ {
317
+ "indexed": false,
318
+ "internalType": "bytes",
319
+ "name": "result",
320
+ "type": "bytes"
147
321
  }
148
322
  ],
149
- "payable": false,
150
- "stateMutability": "pure",
151
- "type": "function"
323
+ "name": "TryExecuteUnsuccessful",
324
+ "type": "event"
152
325
  },
153
326
  {
154
- "constant": true,
327
+ "anonymous": false,
155
328
  "inputs": [
156
329
  {
157
- "name": "token",
330
+ "indexed": true,
331
+ "internalType": "address",
332
+ "name": "implementation",
158
333
  "type": "address"
159
334
  }
160
335
  ],
161
- "name": "allowRecoverability",
162
- "outputs": [
336
+ "name": "Upgraded",
337
+ "type": "event"
338
+ },
339
+ {
340
+ "anonymous": false,
341
+ "inputs": [
163
342
  {
164
- "name": "",
165
- "type": "bool"
343
+ "indexed": false,
344
+ "internalType": "contract IValidator",
345
+ "name": "validator",
346
+ "type": "address"
347
+ },
348
+ {
349
+ "indexed": false,
350
+ "internalType": "uint32",
351
+ "name": "nonce",
352
+ "type": "uint32"
166
353
  }
167
354
  ],
168
- "payable": false,
169
- "stateMutability": "view",
170
- "type": "function"
355
+ "name": "ValidatorInstalled",
356
+ "type": "event"
171
357
  },
172
358
  {
173
- "constant": false,
359
+ "anonymous": false,
174
360
  "inputs": [
175
361
  {
176
- "name": "_appId",
177
- "type": "bytes32"
178
- },
179
- {
180
- "name": "_appBase",
362
+ "indexed": false,
363
+ "internalType": "contract IValidator",
364
+ "name": "validator",
181
365
  "type": "address"
182
366
  }
183
367
  ],
184
- "name": "newAppInstance",
368
+ "name": "ValidatorUninstalled",
369
+ "type": "event"
370
+ },
371
+ {
372
+ "stateMutability": "payable",
373
+ "type": "fallback"
374
+ },
375
+ {
376
+ "inputs": [],
377
+ "name": "accountId",
185
378
  "outputs": [
186
379
  {
187
- "name": "appProxy",
188
- "type": "address"
380
+ "internalType": "string",
381
+ "name": "accountImplementationId",
382
+ "type": "string"
189
383
  }
190
384
  ],
191
- "payable": false,
192
- "stateMutability": "nonpayable",
385
+ "stateMutability": "pure",
193
386
  "type": "function"
194
387
  },
195
388
  {
196
- "constant": true,
197
389
  "inputs": [],
198
- "name": "recoveryVaultAppId",
390
+ "name": "currentNonce",
199
391
  "outputs": [
200
392
  {
393
+ "internalType": "uint32",
201
394
  "name": "",
395
+ "type": "uint32"
396
+ }
397
+ ],
398
+ "stateMutability": "view",
399
+ "type": "function"
400
+ },
401
+ {
402
+ "inputs": [],
403
+ "name": "eip712Domain",
404
+ "outputs": [
405
+ {
406
+ "internalType": "bytes1",
407
+ "name": "fields",
408
+ "type": "bytes1"
409
+ },
410
+ {
411
+ "internalType": "string",
412
+ "name": "name",
413
+ "type": "string"
414
+ },
415
+ {
416
+ "internalType": "string",
417
+ "name": "version",
418
+ "type": "string"
419
+ },
420
+ {
421
+ "internalType": "uint256",
422
+ "name": "chainId",
423
+ "type": "uint256"
424
+ },
425
+ {
426
+ "internalType": "address",
427
+ "name": "verifyingContract",
428
+ "type": "address"
429
+ },
430
+ {
431
+ "internalType": "bytes32",
432
+ "name": "salt",
202
433
  "type": "bytes32"
434
+ },
435
+ {
436
+ "internalType": "uint256[]",
437
+ "name": "extensions",
438
+ "type": "uint256[]"
203
439
  }
204
440
  ],
205
- "payable": false,
206
441
  "stateMutability": "view",
207
442
  "type": "function"
208
443
  },
209
444
  {
210
- "constant": true,
211
445
  "inputs": [],
212
- "name": "getInitializationBlock",
446
+ "name": "entrypoint",
213
447
  "outputs": [
214
448
  {
449
+ "internalType": "contract IEntryPoint",
215
450
  "name": "",
216
- "type": "uint256"
451
+ "type": "address"
217
452
  }
218
453
  ],
219
- "payable": false,
220
454
  "stateMutability": "view",
221
455
  "type": "function"
222
456
  },
223
457
  {
224
- "constant": false,
225
458
  "inputs": [
226
459
  {
227
- "name": "_recoveryVaultAppId",
460
+ "internalType": "ExecMode",
461
+ "name": "execMode",
228
462
  "type": "bytes32"
463
+ },
464
+ {
465
+ "internalType": "bytes",
466
+ "name": "executionCalldata",
467
+ "type": "bytes"
229
468
  }
230
469
  ],
231
- "name": "setRecoveryVaultAppId",
470
+ "name": "execute",
232
471
  "outputs": [],
233
- "payable": false,
234
- "stateMutability": "nonpayable",
472
+ "stateMutability": "payable",
235
473
  "type": "function"
236
474
  },
237
475
  {
238
- "constant": true,
239
- "inputs": [],
240
- "name": "APP_MANAGER_ROLE",
241
- "outputs": [
476
+ "inputs": [
242
477
  {
243
- "name": "",
478
+ "internalType": "ExecMode",
479
+ "name": "execMode",
244
480
  "type": "bytes32"
481
+ },
482
+ {
483
+ "internalType": "bytes",
484
+ "name": "executionCalldata",
485
+ "type": "bytes"
245
486
  }
246
487
  ],
247
- "payable": false,
248
- "stateMutability": "view",
488
+ "name": "executeFromExecutor",
489
+ "outputs": [
490
+ {
491
+ "internalType": "bytes[]",
492
+ "name": "returnData",
493
+ "type": "bytes[]"
494
+ }
495
+ ],
496
+ "stateMutability": "payable",
249
497
  "type": "function"
250
498
  },
251
499
  {
252
- "constant": false,
253
500
  "inputs": [
254
501
  {
255
- "name": "_appId",
256
- "type": "bytes32"
502
+ "components": [
503
+ {
504
+ "internalType": "address",
505
+ "name": "sender",
506
+ "type": "address"
507
+ },
508
+ {
509
+ "internalType": "uint256",
510
+ "name": "nonce",
511
+ "type": "uint256"
512
+ },
513
+ {
514
+ "internalType": "bytes",
515
+ "name": "initCode",
516
+ "type": "bytes"
517
+ },
518
+ {
519
+ "internalType": "bytes",
520
+ "name": "callData",
521
+ "type": "bytes"
522
+ },
523
+ {
524
+ "internalType": "bytes32",
525
+ "name": "accountGasLimits",
526
+ "type": "bytes32"
527
+ },
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "preVerificationGas",
531
+ "type": "uint256"
532
+ },
533
+ {
534
+ "internalType": "bytes32",
535
+ "name": "gasFees",
536
+ "type": "bytes32"
537
+ },
538
+ {
539
+ "internalType": "bytes",
540
+ "name": "paymasterAndData",
541
+ "type": "bytes"
542
+ },
543
+ {
544
+ "internalType": "bytes",
545
+ "name": "signature",
546
+ "type": "bytes"
547
+ }
548
+ ],
549
+ "internalType": "struct PackedUserOperation",
550
+ "name": "userOp",
551
+ "type": "tuple"
257
552
  },
258
553
  {
259
- "name": "_appBase",
554
+ "internalType": "bytes32",
555
+ "name": "userOpHash",
556
+ "type": "bytes32"
557
+ }
558
+ ],
559
+ "name": "executeUserOp",
560
+ "outputs": [],
561
+ "stateMutability": "payable",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [
566
+ {
567
+ "internalType": "contract IExecutor",
568
+ "name": "executor",
260
569
  "type": "address"
261
570
  }
262
571
  ],
263
- "name": "newPinnedAppInstance",
572
+ "name": "executorConfig",
264
573
  "outputs": [
265
574
  {
266
- "name": "appProxy",
575
+ "components": [
576
+ {
577
+ "internalType": "contract IHook",
578
+ "name": "hook",
579
+ "type": "address"
580
+ }
581
+ ],
582
+ "internalType": "struct ExecutorManager.ExecutorConfig",
583
+ "name": "",
584
+ "type": "tuple"
585
+ }
586
+ ],
587
+ "stateMutability": "view",
588
+ "type": "function"
589
+ },
590
+ {
591
+ "inputs": [
592
+ {
593
+ "internalType": "ValidationId",
594
+ "name": "_rootValidator",
595
+ "type": "bytes21"
596
+ },
597
+ {
598
+ "internalType": "contract IHook",
599
+ "name": "hook",
267
600
  "type": "address"
601
+ },
602
+ {
603
+ "internalType": "bytes",
604
+ "name": "validatorData",
605
+ "type": "bytes"
606
+ },
607
+ {
608
+ "internalType": "bytes",
609
+ "name": "hookData",
610
+ "type": "bytes"
268
611
  }
269
612
  ],
270
- "payable": false,
613
+ "name": "initialize",
614
+ "outputs": [],
271
615
  "stateMutability": "nonpayable",
272
616
  "type": "function"
273
617
  },
274
618
  {
275
- "constant": false,
276
619
  "inputs": [
277
620
  {
278
- "name": "_token",
621
+ "internalType": "uint256",
622
+ "name": "moduleType",
623
+ "type": "uint256"
624
+ },
625
+ {
626
+ "internalType": "address",
627
+ "name": "module",
279
628
  "type": "address"
629
+ },
630
+ {
631
+ "internalType": "bytes",
632
+ "name": "initData",
633
+ "type": "bytes"
280
634
  }
281
635
  ],
282
- "name": "transferToVault",
636
+ "name": "installModule",
283
637
  "outputs": [],
284
- "payable": false,
285
- "stateMutability": "nonpayable",
638
+ "stateMutability": "payable",
286
639
  "type": "function"
287
640
  },
288
641
  {
289
- "constant": false,
290
642
  "inputs": [
291
643
  {
292
- "name": "_namespace",
293
- "type": "bytes32"
644
+ "internalType": "ValidationId[]",
645
+ "name": "vIds",
646
+ "type": "bytes21[]"
294
647
  },
295
648
  {
296
- "name": "_appId",
297
- "type": "bytes32"
649
+ "components": [
650
+ {
651
+ "internalType": "uint32",
652
+ "name": "nonce",
653
+ "type": "uint32"
654
+ },
655
+ {
656
+ "internalType": "contract IHook",
657
+ "name": "hook",
658
+ "type": "address"
659
+ }
660
+ ],
661
+ "internalType": "struct ValidationManager.ValidationConfig[]",
662
+ "name": "configs",
663
+ "type": "tuple[]"
298
664
  },
299
665
  {
300
- "name": "_app",
301
- "type": "address"
666
+ "internalType": "bytes[]",
667
+ "name": "validationData",
668
+ "type": "bytes[]"
669
+ },
670
+ {
671
+ "internalType": "bytes[]",
672
+ "name": "hookData",
673
+ "type": "bytes[]"
302
674
  }
303
675
  ],
304
- "name": "setApp",
676
+ "name": "installValidations",
305
677
  "outputs": [],
306
- "payable": false,
307
- "stateMutability": "nonpayable",
678
+ "stateMutability": "payable",
308
679
  "type": "function"
309
680
  },
310
681
  {
311
- "constant": true,
312
682
  "inputs": [
313
683
  {
314
- "name": "_namespace",
315
- "type": "bytes32"
684
+ "internalType": "uint32",
685
+ "name": "nonce",
686
+ "type": "uint32"
687
+ }
688
+ ],
689
+ "name": "invalidateNonce",
690
+ "outputs": [],
691
+ "stateMutability": "payable",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [
696
+ {
697
+ "internalType": "ValidationId",
698
+ "name": "vId",
699
+ "type": "bytes21"
316
700
  },
317
701
  {
318
- "name": "_appId",
319
- "type": "bytes32"
702
+ "internalType": "bytes4",
703
+ "name": "selector",
704
+ "type": "bytes4"
320
705
  }
321
706
  ],
322
- "name": "getApp",
707
+ "name": "isAllowedSelector",
323
708
  "outputs": [
324
709
  {
710
+ "internalType": "bool",
325
711
  "name": "",
326
- "type": "address"
712
+ "type": "bool"
327
713
  }
328
714
  ],
329
- "payable": false,
330
715
  "stateMutability": "view",
331
716
  "type": "function"
332
717
  },
333
718
  {
334
- "constant": false,
335
719
  "inputs": [
336
720
  {
337
- "name": "_appId",
338
- "type": "bytes32"
721
+ "internalType": "uint256",
722
+ "name": "moduleType",
723
+ "type": "uint256"
339
724
  },
340
725
  {
341
- "name": "_appBase",
726
+ "internalType": "address",
727
+ "name": "module",
342
728
  "type": "address"
343
729
  },
344
730
  {
345
- "name": "_initializePayload",
731
+ "internalType": "bytes",
732
+ "name": "additionalContext",
346
733
  "type": "bytes"
347
- },
348
- {
349
- "name": "_setDefault",
350
- "type": "bool"
351
734
  }
352
735
  ],
353
- "name": "newPinnedAppInstance",
736
+ "name": "isModuleInstalled",
354
737
  "outputs": [
355
738
  {
356
- "name": "appProxy",
357
- "type": "address"
739
+ "internalType": "bool",
740
+ "name": "",
741
+ "type": "bool"
358
742
  }
359
743
  ],
360
- "payable": false,
361
- "stateMutability": "nonpayable",
744
+ "stateMutability": "view",
362
745
  "type": "function"
363
746
  },
364
747
  {
365
- "constant": false,
366
748
  "inputs": [
367
749
  {
368
- "name": "_kernel",
369
- "type": "address"
370
- },
371
- {
372
- "name": "_appId",
750
+ "internalType": "bytes32",
751
+ "name": "hash",
373
752
  "type": "bytes32"
374
753
  },
375
754
  {
376
- "name": "_initializePayload",
755
+ "internalType": "bytes",
756
+ "name": "signature",
377
757
  "type": "bytes"
378
758
  }
379
759
  ],
380
- "name": "newAppProxyPinned",
760
+ "name": "isValidSignature",
381
761
  "outputs": [
382
762
  {
763
+ "internalType": "bytes4",
383
764
  "name": "",
384
- "type": "address"
765
+ "type": "bytes4"
385
766
  }
386
767
  ],
387
- "payable": false,
388
- "stateMutability": "nonpayable",
768
+ "stateMutability": "view",
389
769
  "type": "function"
390
770
  },
391
771
  {
392
- "constant": true,
393
- "inputs": [],
394
- "name": "APP_BASES_NAMESPACE",
395
- "outputs": [
772
+ "inputs": [
396
773
  {
397
- "name": "",
398
- "type": "bytes32"
774
+ "internalType": "PermissionId",
775
+ "name": "pId",
776
+ "type": "bytes4"
399
777
  }
400
778
  ],
401
- "payable": false,
402
- "stateMutability": "pure",
403
- "type": "function"
404
- },
405
- {
406
- "constant": true,
407
- "inputs": [],
408
- "name": "acl",
779
+ "name": "permissionConfig",
409
780
  "outputs": [
410
781
  {
782
+ "components": [
783
+ {
784
+ "internalType": "PassFlag",
785
+ "name": "permissionFlag",
786
+ "type": "bytes2"
787
+ },
788
+ {
789
+ "internalType": "contract ISigner",
790
+ "name": "signer",
791
+ "type": "address"
792
+ },
793
+ {
794
+ "internalType": "PolicyData[]",
795
+ "name": "policyData",
796
+ "type": "bytes22[]"
797
+ }
798
+ ],
799
+ "internalType": "struct ValidationManager.PermissionConfig",
411
800
  "name": "",
412
- "type": "address"
801
+ "type": "tuple"
413
802
  }
414
803
  ],
415
- "payable": false,
416
804
  "stateMutability": "view",
417
805
  "type": "function"
418
806
  },
419
807
  {
420
- "constant": true,
421
808
  "inputs": [],
422
- "name": "isPetrified",
809
+ "name": "rootValidator",
423
810
  "outputs": [
424
811
  {
812
+ "internalType": "ValidationId",
425
813
  "name": "",
426
- "type": "bool"
814
+ "type": "bytes21"
427
815
  }
428
816
  ],
429
- "payable": false,
430
817
  "stateMutability": "view",
431
818
  "type": "function"
432
819
  },
433
820
  {
434
- "constant": false,
435
821
  "inputs": [
436
822
  {
437
- "name": "_kernel",
438
- "type": "address"
439
- },
440
- {
441
- "name": "_appId",
442
- "type": "bytes32"
823
+ "internalType": "bytes4",
824
+ "name": "selector",
825
+ "type": "bytes4"
443
826
  }
444
827
  ],
445
- "name": "newAppProxy",
828
+ "name": "selectorConfig",
446
829
  "outputs": [
447
830
  {
831
+ "components": [
832
+ {
833
+ "internalType": "contract IHook",
834
+ "name": "hook",
835
+ "type": "address"
836
+ },
837
+ {
838
+ "internalType": "address",
839
+ "name": "target",
840
+ "type": "address"
841
+ },
842
+ {
843
+ "internalType": "CallType",
844
+ "name": "callType",
845
+ "type": "bytes1"
846
+ }
847
+ ],
848
+ "internalType": "struct SelectorManager.SelectorConfig",
448
849
  "name": "",
449
- "type": "address"
850
+ "type": "tuple"
450
851
  }
451
852
  ],
452
- "payable": false,
453
- "stateMutability": "nonpayable",
853
+ "stateMutability": "view",
454
854
  "type": "function"
455
855
  },
456
856
  {
457
- "constant": true,
458
- "inputs": [],
459
- "name": "DEFAULT_ACL_APP_ID",
857
+ "inputs": [
858
+ {
859
+ "internalType": "ExecMode",
860
+ "name": "mode",
861
+ "type": "bytes32"
862
+ }
863
+ ],
864
+ "name": "supportsExecutionMode",
460
865
  "outputs": [
461
866
  {
867
+ "internalType": "bool",
462
868
  "name": "",
463
- "type": "bytes32"
869
+ "type": "bool"
464
870
  }
465
871
  ],
466
- "payable": false,
467
872
  "stateMutability": "pure",
468
873
  "type": "function"
469
874
  },
470
875
  {
471
- "constant": false,
472
876
  "inputs": [
473
877
  {
474
- "name": "_kernel",
475
- "type": "address"
476
- },
477
- {
478
- "name": "_appId",
479
- "type": "bytes32"
480
- },
481
- {
482
- "name": "_initializePayload",
483
- "type": "bytes"
878
+ "internalType": "uint256",
879
+ "name": "moduleTypeId",
880
+ "type": "uint256"
484
881
  }
485
882
  ],
486
- "name": "newAppProxy",
883
+ "name": "supportsModule",
487
884
  "outputs": [
488
885
  {
886
+ "internalType": "bool",
489
887
  "name": "",
490
- "type": "address"
888
+ "type": "bool"
491
889
  }
492
890
  ],
493
- "payable": false,
494
- "stateMutability": "nonpayable",
891
+ "stateMutability": "pure",
495
892
  "type": "function"
496
893
  },
497
894
  {
498
- "constant": true,
499
895
  "inputs": [
500
896
  {
501
- "name": "_who",
502
- "type": "address"
897
+ "internalType": "uint256",
898
+ "name": "moduleType",
899
+ "type": "uint256"
503
900
  },
504
901
  {
505
- "name": "_where",
902
+ "internalType": "address",
903
+ "name": "module",
506
904
  "type": "address"
507
905
  },
508
906
  {
509
- "name": "_what",
510
- "type": "bytes32"
511
- },
512
- {
513
- "name": "_how",
907
+ "internalType": "bytes",
908
+ "name": "deInitData",
514
909
  "type": "bytes"
515
910
  }
516
911
  ],
517
- "name": "hasPermission",
518
- "outputs": [
519
- {
520
- "name": "",
521
- "type": "bool"
522
- }
523
- ],
524
- "payable": false,
525
- "stateMutability": "view",
912
+ "name": "uninstallModule",
913
+ "outputs": [],
914
+ "stateMutability": "payable",
526
915
  "type": "function"
527
916
  },
528
917
  {
529
- "constant": false,
530
918
  "inputs": [
531
919
  {
532
- "name": "_kernel",
533
- "type": "address"
920
+ "internalType": "ValidationId",
921
+ "name": "vId",
922
+ "type": "bytes21"
534
923
  },
535
924
  {
536
- "name": "_appId",
537
- "type": "bytes32"
538
- }
539
- ],
540
- "name": "newAppProxyPinned",
541
- "outputs": [
925
+ "internalType": "bytes",
926
+ "name": "deinitData",
927
+ "type": "bytes"
928
+ },
542
929
  {
543
- "name": "",
544
- "type": "address"
930
+ "internalType": "bytes",
931
+ "name": "hookDeinitData",
932
+ "type": "bytes"
545
933
  }
546
934
  ],
547
- "payable": false,
548
- "stateMutability": "nonpayable",
935
+ "name": "uninstallValidation",
936
+ "outputs": [],
937
+ "stateMutability": "payable",
549
938
  "type": "function"
550
939
  },
551
940
  {
552
941
  "inputs": [
553
942
  {
554
- "name": "_shouldPetrify",
555
- "type": "bool"
943
+ "internalType": "address",
944
+ "name": "_newImplementation",
945
+ "type": "address"
556
946
  }
557
947
  ],
558
- "payable": false,
559
- "stateMutability": "nonpayable",
560
- "type": "constructor"
948
+ "name": "upgradeTo",
949
+ "outputs": [],
950
+ "stateMutability": "payable",
951
+ "type": "function"
561
952
  },
562
953
  {
563
- "anonymous": false,
564
- "inputs": [
565
- {
566
- "indexed": false,
567
- "name": "proxy",
568
- "type": "address"
569
- },
570
- {
571
- "indexed": false,
572
- "name": "isUpgradeable",
573
- "type": "bool"
574
- },
954
+ "inputs": [],
955
+ "name": "validNonceFrom",
956
+ "outputs": [
575
957
  {
576
- "indexed": false,
577
- "name": "appId",
578
- "type": "bytes32"
958
+ "internalType": "uint32",
959
+ "name": "",
960
+ "type": "uint32"
579
961
  }
580
962
  ],
581
- "name": "NewAppProxy",
582
- "type": "event"
963
+ "stateMutability": "view",
964
+ "type": "function"
583
965
  },
584
966
  {
585
- "anonymous": false,
586
967
  "inputs": [
587
968
  {
588
- "indexed": true,
589
- "name": "vault",
590
- "type": "address"
969
+ "components": [
970
+ {
971
+ "internalType": "address",
972
+ "name": "sender",
973
+ "type": "address"
974
+ },
975
+ {
976
+ "internalType": "uint256",
977
+ "name": "nonce",
978
+ "type": "uint256"
979
+ },
980
+ {
981
+ "internalType": "bytes",
982
+ "name": "initCode",
983
+ "type": "bytes"
984
+ },
985
+ {
986
+ "internalType": "bytes",
987
+ "name": "callData",
988
+ "type": "bytes"
989
+ },
990
+ {
991
+ "internalType": "bytes32",
992
+ "name": "accountGasLimits",
993
+ "type": "bytes32"
994
+ },
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "preVerificationGas",
998
+ "type": "uint256"
999
+ },
1000
+ {
1001
+ "internalType": "bytes32",
1002
+ "name": "gasFees",
1003
+ "type": "bytes32"
1004
+ },
1005
+ {
1006
+ "internalType": "bytes",
1007
+ "name": "paymasterAndData",
1008
+ "type": "bytes"
1009
+ },
1010
+ {
1011
+ "internalType": "bytes",
1012
+ "name": "signature",
1013
+ "type": "bytes"
1014
+ }
1015
+ ],
1016
+ "internalType": "struct PackedUserOperation",
1017
+ "name": "userOp",
1018
+ "type": "tuple"
591
1019
  },
592
1020
  {
593
- "indexed": true,
594
- "name": "token",
595
- "type": "address"
1021
+ "internalType": "bytes32",
1022
+ "name": "userOpHash",
1023
+ "type": "bytes32"
596
1024
  },
597
1025
  {
598
- "indexed": false,
599
- "name": "amount",
1026
+ "internalType": "uint256",
1027
+ "name": "missingAccountFunds",
600
1028
  "type": "uint256"
601
1029
  }
602
1030
  ],
603
- "name": "RecoverToVault",
604
- "type": "event"
1031
+ "name": "validateUserOp",
1032
+ "outputs": [
1033
+ {
1034
+ "internalType": "ValidationData",
1035
+ "name": "validationData",
1036
+ "type": "uint256"
1037
+ }
1038
+ ],
1039
+ "stateMutability": "payable",
1040
+ "type": "function"
605
1041
  },
606
1042
  {
607
- "anonymous": false,
608
1043
  "inputs": [
609
1044
  {
610
- "indexed": true,
611
- "name": "namespace",
612
- "type": "bytes32"
613
- },
614
- {
615
- "indexed": true,
616
- "name": "appId",
617
- "type": "bytes32"
618
- },
1045
+ "internalType": "ValidationId",
1046
+ "name": "vId",
1047
+ "type": "bytes21"
1048
+ }
1049
+ ],
1050
+ "name": "validationConfig",
1051
+ "outputs": [
619
1052
  {
620
- "indexed": false,
621
- "name": "app",
622
- "type": "address"
1053
+ "components": [
1054
+ {
1055
+ "internalType": "uint32",
1056
+ "name": "nonce",
1057
+ "type": "uint32"
1058
+ },
1059
+ {
1060
+ "internalType": "contract IHook",
1061
+ "name": "hook",
1062
+ "type": "address"
1063
+ }
1064
+ ],
1065
+ "internalType": "struct ValidationManager.ValidationConfig",
1066
+ "name": "",
1067
+ "type": "tuple"
623
1068
  }
624
1069
  ],
625
- "name": "SetApp",
626
- "type": "event"
1070
+ "stateMutability": "view",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "stateMutability": "payable",
1075
+ "type": "receive"
627
1076
  }
628
1077
  ];
629
1078
  /**
@@ -684,184 +1133,230 @@ class Kernel_json {
684
1133
  return this.contract;
685
1134
  }
686
1135
  /**
687
- * hasInitialized
688
- * view
1136
+ * accountId
1137
+ * pure
689
1138
  */
690
- async hasInitialized() {
691
- return this.contract.read.hasInitialized();
1139
+ async accountId() {
1140
+ return this.contract.read.accountId();
692
1141
  }
693
1142
  /**
694
- * KERNEL_APP_ID
695
- * pure
1143
+ * currentNonce
1144
+ * view
696
1145
  */
697
- async KERNEL_APP_ID() {
698
- return this.contract.read.KERNEL_APP_ID();
1146
+ async currentNonce() {
1147
+ return this.contract.read.currentNonce();
699
1148
  }
700
1149
  /**
701
- * APP_ADDR_NAMESPACE
702
- * pure
1150
+ * eip712Domain
1151
+ * view
703
1152
  */
704
- async APP_ADDR_NAMESPACE() {
705
- return this.contract.read.APP_ADDR_NAMESPACE();
1153
+ async eip712Domain() {
1154
+ return this.contract.read.eip712Domain();
706
1155
  }
707
1156
  /**
708
- * getRecoveryVault
1157
+ * entrypoint
709
1158
  * view
710
1159
  */
711
- async getRecoveryVault() {
712
- return this.contract.read.getRecoveryVault();
1160
+ async entrypoint() {
1161
+ return this.contract.read.entrypoint();
713
1162
  }
714
1163
  /**
715
- * apps
1164
+ * executorConfig
716
1165
  * view
717
1166
  */
718
- async apps(arg0, arg1) {
719
- return this.contract.read.apps([arg0, arg1]);
1167
+ async executorConfig(executor) {
1168
+ return this.contract.read.executorConfig([executor]);
720
1169
  }
721
1170
  /**
722
- * CORE_NAMESPACE
723
- * pure
1171
+ * isAllowedSelector
1172
+ * view
724
1173
  */
725
- async CORE_NAMESPACE() {
726
- return this.contract.read.CORE_NAMESPACE();
1174
+ async isAllowedSelector(vId, selector) {
1175
+ return this.contract.read.isAllowedSelector([vId, selector]);
727
1176
  }
728
1177
  /**
729
- * allowRecoverability
1178
+ * isModuleInstalled
730
1179
  * view
731
1180
  */
732
- async allowRecoverability(token) {
733
- return this.contract.read.allowRecoverability([token]);
1181
+ async isModuleInstalled(moduleType, module, additionalContext) {
1182
+ return this.contract.read.isModuleInstalled([moduleType, module, additionalContext]);
734
1183
  }
735
1184
  /**
736
- * recoveryVaultAppId
1185
+ * isValidSignature
737
1186
  * view
738
1187
  */
739
- async recoveryVaultAppId() {
740
- return this.contract.read.recoveryVaultAppId();
1188
+ async isValidSignature(hash, signature) {
1189
+ return this.contract.read.isValidSignature([hash, signature]);
741
1190
  }
742
1191
  /**
743
- * getInitializationBlock
1192
+ * permissionConfig
744
1193
  * view
745
1194
  */
746
- async getInitializationBlock() {
747
- return this.contract.read.getInitializationBlock();
1195
+ async permissionConfig(pId) {
1196
+ return this.contract.read.permissionConfig([pId]);
748
1197
  }
749
1198
  /**
750
- * APP_MANAGER_ROLE
1199
+ * rootValidator
751
1200
  * view
752
1201
  */
753
- async APP_MANAGER_ROLE() {
754
- return this.contract.read.APP_MANAGER_ROLE();
1202
+ async rootValidator() {
1203
+ return this.contract.read.rootValidator();
755
1204
  }
756
1205
  /**
757
- * getApp
1206
+ * selectorConfig
758
1207
  * view
759
1208
  */
760
- async getApp(_namespace, _appId) {
761
- return this.contract.read.getApp([_namespace, _appId]);
1209
+ async selectorConfig(selector) {
1210
+ return this.contract.read.selectorConfig([selector]);
1211
+ }
1212
+ /**
1213
+ * supportsExecutionMode
1214
+ * pure
1215
+ */
1216
+ async supportsExecutionMode(mode) {
1217
+ return this.contract.read.supportsExecutionMode([mode]);
762
1218
  }
763
1219
  /**
764
- * APP_BASES_NAMESPACE
1220
+ * supportsModule
765
1221
  * pure
766
1222
  */
767
- async APP_BASES_NAMESPACE() {
768
- return this.contract.read.APP_BASES_NAMESPACE();
1223
+ async supportsModule(moduleTypeId) {
1224
+ return this.contract.read.supportsModule([moduleTypeId]);
769
1225
  }
770
1226
  /**
771
- * acl
1227
+ * validNonceFrom
772
1228
  * view
773
1229
  */
774
- async acl() {
775
- return this.contract.read.acl();
1230
+ async validNonceFrom() {
1231
+ return this.contract.read.validNonceFrom();
776
1232
  }
777
1233
  /**
778
- * isPetrified
1234
+ * validationConfig
779
1235
  * view
780
1236
  */
781
- async isPetrified() {
782
- return this.contract.read.isPetrified();
1237
+ async validationConfig(vId) {
1238
+ return this.contract.read.validationConfig([vId]);
783
1239
  }
784
1240
  /**
785
- * DEFAULT_ACL_APP_ID
786
- * pure
1241
+ * execute
1242
+ * payable
1243
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
787
1244
  */
788
- async DEFAULT_ACL_APP_ID() {
789
- return this.contract.read.DEFAULT_ACL_APP_ID();
1245
+ async execute(execMode, executionCalldata, options) {
1246
+ if (!this.contract.write) {
1247
+ throw new Error('Wallet client is required for write operations');
1248
+ }
1249
+ return this.contract.write.execute([execMode, executionCalldata], options);
790
1250
  }
791
1251
  /**
792
- * hasPermission
793
- * view
1252
+ * executeFromExecutor
1253
+ * payable
1254
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
794
1255
  */
795
- async hasPermission(_who, _where, _what, _how) {
796
- return this.contract.read.hasPermission([_who, _where, _what, _how]);
1256
+ async executeFromExecutor(execMode, executionCalldata, options) {
1257
+ if (!this.contract.write) {
1258
+ throw new Error('Wallet client is required for write operations');
1259
+ }
1260
+ return this.contract.write.executeFromExecutor([execMode, executionCalldata], options);
797
1261
  }
798
- async newAppInstance(...args) {
1262
+ /**
1263
+ * executeUserOp
1264
+ * payable
1265
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1266
+ */
1267
+ async executeUserOp(userOp, userOpHash, options) {
799
1268
  if (!this.contract.write) {
800
1269
  throw new Error('Wallet client is required for write operations');
801
1270
  }
802
- return this.contract.write.newAppInstance(args);
1271
+ return this.contract.write.executeUserOp([userOp, userOpHash], options);
803
1272
  }
804
1273
  /**
805
1274
  * initialize
806
1275
  * nonpayable
807
1276
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
808
1277
  */
809
- async initialize(_baseAcl, _permissionsCreator, options) {
1278
+ async initialize(_rootValidator, hook, validatorData, hookData, options) {
810
1279
  if (!this.contract.write) {
811
1280
  throw new Error('Wallet client is required for write operations');
812
1281
  }
813
- return this.contract.write.initialize([_baseAcl, _permissionsCreator], options);
1282
+ return this.contract.write.initialize([_rootValidator, hook, validatorData, hookData], options);
814
1283
  }
815
1284
  /**
816
- * setRecoveryVaultAppId
817
- * nonpayable
1285
+ * installModule
1286
+ * payable
818
1287
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
819
1288
  */
820
- async setRecoveryVaultAppId(_recoveryVaultAppId, options) {
1289
+ async installModule(moduleType, module, initData, options) {
821
1290
  if (!this.contract.write) {
822
1291
  throw new Error('Wallet client is required for write operations');
823
1292
  }
824
- return this.contract.write.setRecoveryVaultAppId([_recoveryVaultAppId], options);
1293
+ return this.contract.write.installModule([moduleType, module, initData], options);
825
1294
  }
826
- async newPinnedAppInstance(...args) {
1295
+ /**
1296
+ * installValidations
1297
+ * payable
1298
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1299
+ */
1300
+ async installValidations(vIds, configs, validationData, hookData, options) {
827
1301
  if (!this.contract.write) {
828
1302
  throw new Error('Wallet client is required for write operations');
829
1303
  }
830
- return this.contract.write.newPinnedAppInstance(args);
1304
+ return this.contract.write.installValidations([vIds, configs, validationData, hookData], options);
831
1305
  }
832
1306
  /**
833
- * transferToVault
834
- * nonpayable
1307
+ * invalidateNonce
1308
+ * payable
835
1309
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
836
1310
  */
837
- async transferToVault(_token, options) {
1311
+ async invalidateNonce(nonce, options) {
838
1312
  if (!this.contract.write) {
839
1313
  throw new Error('Wallet client is required for write operations');
840
1314
  }
841
- return this.contract.write.transferToVault([_token], options);
1315
+ return this.contract.write.invalidateNonce([nonce], options);
842
1316
  }
843
1317
  /**
844
- * setApp
845
- * nonpayable
1318
+ * uninstallModule
1319
+ * payable
1320
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1321
+ */
1322
+ async uninstallModule(moduleType, module, deInitData, options) {
1323
+ if (!this.contract.write) {
1324
+ throw new Error('Wallet client is required for write operations');
1325
+ }
1326
+ return this.contract.write.uninstallModule([moduleType, module, deInitData], options);
1327
+ }
1328
+ /**
1329
+ * uninstallValidation
1330
+ * payable
846
1331
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
847
1332
  */
848
- async setApp(_namespace, _appId, _app, options) {
1333
+ async uninstallValidation(vId, deinitData, hookDeinitData, options) {
849
1334
  if (!this.contract.write) {
850
1335
  throw new Error('Wallet client is required for write operations');
851
1336
  }
852
- return this.contract.write.setApp([_namespace, _appId, _app], options);
1337
+ return this.contract.write.uninstallValidation([vId, deinitData, hookDeinitData], options);
853
1338
  }
854
- async newAppProxyPinned(...args) {
1339
+ /**
1340
+ * upgradeTo
1341
+ * payable
1342
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1343
+ */
1344
+ async upgradeTo(_newImplementation, options) {
855
1345
  if (!this.contract.write) {
856
1346
  throw new Error('Wallet client is required for write operations');
857
1347
  }
858
- return this.contract.write.newAppProxyPinned(args);
1348
+ return this.contract.write.upgradeTo([_newImplementation], options);
859
1349
  }
860
- async newAppProxy(...args) {
1350
+ /**
1351
+ * validateUserOp
1352
+ * payable
1353
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1354
+ */
1355
+ async validateUserOp(userOp, userOpHash, missingAccountFunds, options) {
861
1356
  if (!this.contract.write) {
862
1357
  throw new Error('Wallet client is required for write operations');
863
1358
  }
864
- return this.contract.write.newAppProxy(args);
1359
+ return this.contract.write.validateUserOp([userOp, userOpHash, missingAccountFunds], options);
865
1360
  }
866
1361
  /**
867
1362
  * Simulate contract write operations (dry-run without sending transaction)
@@ -878,72 +1373,92 @@ class Kernel_json {
878
1373
  }
879
1374
  return {
880
1375
  /**
881
- * Simulate newAppInstance
1376
+ * Simulate execute
1377
+ * Returns gas estimate and result without sending transaction
1378
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1379
+ */
1380
+ async execute(execMode, executionCalldata, options) {
1381
+ return contract.simulate.execute([execMode, executionCalldata], options);
1382
+ },
1383
+ /**
1384
+ * Simulate executeFromExecutor
1385
+ * Returns gas estimate and result without sending transaction
1386
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1387
+ */
1388
+ async executeFromExecutor(execMode, executionCalldata, options) {
1389
+ return contract.simulate.executeFromExecutor([execMode, executionCalldata], options);
1390
+ },
1391
+ /**
1392
+ * Simulate executeUserOp
882
1393
  * Returns gas estimate and result without sending transaction
883
- * Supports multiple overloads: (bytes32, address, bytes, bool), (bytes32, address)
884
1394
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
885
1395
  */
886
- async newAppInstance(...args) {
887
- return contract.simulate.newAppInstance(args);
1396
+ async executeUserOp(userOp, userOpHash, options) {
1397
+ return contract.simulate.executeUserOp([userOp, userOpHash], options);
888
1398
  },
889
1399
  /**
890
1400
  * Simulate initialize
891
1401
  * Returns gas estimate and result without sending transaction
892
1402
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
893
1403
  */
894
- async initialize(_baseAcl, _permissionsCreator, options) {
895
- return contract.simulate.initialize([_baseAcl, _permissionsCreator], options);
1404
+ async initialize(_rootValidator, hook, validatorData, hookData, options) {
1405
+ return contract.simulate.initialize([_rootValidator, hook, validatorData, hookData], options);
1406
+ },
1407
+ /**
1408
+ * Simulate installModule
1409
+ * Returns gas estimate and result without sending transaction
1410
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1411
+ */
1412
+ async installModule(moduleType, module, initData, options) {
1413
+ return contract.simulate.installModule([moduleType, module, initData], options);
896
1414
  },
897
1415
  /**
898
- * Simulate setRecoveryVaultAppId
1416
+ * Simulate installValidations
899
1417
  * Returns gas estimate and result without sending transaction
900
1418
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
901
1419
  */
902
- async setRecoveryVaultAppId(_recoveryVaultAppId, options) {
903
- return contract.simulate.setRecoveryVaultAppId([_recoveryVaultAppId], options);
1420
+ async installValidations(vIds, configs, validationData, hookData, options) {
1421
+ return contract.simulate.installValidations([vIds, configs, validationData, hookData], options);
904
1422
  },
905
1423
  /**
906
- * Simulate newPinnedAppInstance
1424
+ * Simulate invalidateNonce
907
1425
  * Returns gas estimate and result without sending transaction
908
- * Supports multiple overloads: (bytes32, address), (bytes32, address, bytes, bool)
909
1426
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
910
1427
  */
911
- async newPinnedAppInstance(...args) {
912
- return contract.simulate.newPinnedAppInstance(args);
1428
+ async invalidateNonce(nonce, options) {
1429
+ return contract.simulate.invalidateNonce([nonce], options);
913
1430
  },
914
1431
  /**
915
- * Simulate transferToVault
1432
+ * Simulate uninstallModule
916
1433
  * Returns gas estimate and result without sending transaction
917
1434
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
918
1435
  */
919
- async transferToVault(_token, options) {
920
- return contract.simulate.transferToVault([_token], options);
1436
+ async uninstallModule(moduleType, module, deInitData, options) {
1437
+ return contract.simulate.uninstallModule([moduleType, module, deInitData], options);
921
1438
  },
922
1439
  /**
923
- * Simulate setApp
1440
+ * Simulate uninstallValidation
924
1441
  * Returns gas estimate and result without sending transaction
925
1442
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
926
1443
  */
927
- async setApp(_namespace, _appId, _app, options) {
928
- return contract.simulate.setApp([_namespace, _appId, _app], options);
1444
+ async uninstallValidation(vId, deinitData, hookDeinitData, options) {
1445
+ return contract.simulate.uninstallValidation([vId, deinitData, hookDeinitData], options);
929
1446
  },
930
1447
  /**
931
- * Simulate newAppProxyPinned
1448
+ * Simulate upgradeTo
932
1449
  * Returns gas estimate and result without sending transaction
933
- * Supports multiple overloads: (address, bytes32, bytes), (address, bytes32)
934
1450
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
935
1451
  */
936
- async newAppProxyPinned(...args) {
937
- return contract.simulate.newAppProxyPinned(args);
1452
+ async upgradeTo(_newImplementation, options) {
1453
+ return contract.simulate.upgradeTo([_newImplementation], options);
938
1454
  },
939
1455
  /**
940
- * Simulate newAppProxy
1456
+ * Simulate validateUserOp
941
1457
  * Returns gas estimate and result without sending transaction
942
- * Supports multiple overloads: (address, bytes32), (address, bytes32, bytes)
943
1458
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
944
1459
  */
945
- async newAppProxy(...args) {
946
- return contract.simulate.newAppProxy(args);
1460
+ async validateUserOp(userOp, userOpHash, missingAccountFunds, options) {
1461
+ return contract.simulate.validateUserOp([userOp, userOpHash, missingAccountFunds], options);
947
1462
  }
948
1463
  };
949
1464
  }
@@ -962,16 +1477,16 @@ class Kernel_json {
962
1477
  get watch() {
963
1478
  return {
964
1479
  /**
965
- * Watch NewAppProxy events
1480
+ * Watch ModuleInstalled events
966
1481
  * @param callback Function to call when event is emitted
967
1482
  * @param filter Optional filter for indexed parameters
968
1483
  * @returns Unwatch function to stop listening
969
1484
  */
970
- NewAppProxy: (callback) => {
1485
+ ModuleInstalled: (callback) => {
971
1486
  return this.publicClient.watchContractEvent({
972
1487
  address: this.contractAddress,
973
1488
  abi: exports.Kernel_jsonAbi,
974
- eventName: 'NewAppProxy',
1489
+ eventName: 'ModuleInstalled',
975
1490
  onLogs: (logs) => {
976
1491
  logs.forEach((log) => {
977
1492
  callback(log.args);
@@ -980,17 +1495,160 @@ class Kernel_json {
980
1495
  });
981
1496
  },
982
1497
  /**
983
- * Watch RecoverToVault events
1498
+ * Watch ModuleUninstallResult events
984
1499
  * @param callback Function to call when event is emitted
985
1500
  * @param filter Optional filter for indexed parameters
986
1501
  * @returns Unwatch function to stop listening
987
1502
  */
988
- RecoverToVault: (callback, filter) => {
1503
+ ModuleUninstallResult: (callback) => {
989
1504
  return this.publicClient.watchContractEvent({
990
1505
  address: this.contractAddress,
991
1506
  abi: exports.Kernel_jsonAbi,
992
- eventName: 'RecoverToVault',
993
- args: filter,
1507
+ eventName: 'ModuleUninstallResult',
1508
+ onLogs: (logs) => {
1509
+ logs.forEach((log) => {
1510
+ callback(log.args);
1511
+ });
1512
+ },
1513
+ });
1514
+ },
1515
+ /**
1516
+ * Watch ModuleUninstalled events
1517
+ * @param callback Function to call when event is emitted
1518
+ * @param filter Optional filter for indexed parameters
1519
+ * @returns Unwatch function to stop listening
1520
+ */
1521
+ ModuleUninstalled: (callback) => {
1522
+ return this.publicClient.watchContractEvent({
1523
+ address: this.contractAddress,
1524
+ abi: exports.Kernel_jsonAbi,
1525
+ eventName: 'ModuleUninstalled',
1526
+ onLogs: (logs) => {
1527
+ logs.forEach((log) => {
1528
+ callback(log.args);
1529
+ });
1530
+ },
1531
+ });
1532
+ },
1533
+ /**
1534
+ * Watch NonceInvalidated events
1535
+ * @param callback Function to call when event is emitted
1536
+ * @param filter Optional filter for indexed parameters
1537
+ * @returns Unwatch function to stop listening
1538
+ */
1539
+ NonceInvalidated: (callback) => {
1540
+ return this.publicClient.watchContractEvent({
1541
+ address: this.contractAddress,
1542
+ abi: exports.Kernel_jsonAbi,
1543
+ eventName: 'NonceInvalidated',
1544
+ onLogs: (logs) => {
1545
+ logs.forEach((log) => {
1546
+ callback(log.args);
1547
+ });
1548
+ },
1549
+ });
1550
+ },
1551
+ /**
1552
+ * Watch PermissionInstalled events
1553
+ * @param callback Function to call when event is emitted
1554
+ * @param filter Optional filter for indexed parameters
1555
+ * @returns Unwatch function to stop listening
1556
+ */
1557
+ PermissionInstalled: (callback) => {
1558
+ return this.publicClient.watchContractEvent({
1559
+ address: this.contractAddress,
1560
+ abi: exports.Kernel_jsonAbi,
1561
+ eventName: 'PermissionInstalled',
1562
+ onLogs: (logs) => {
1563
+ logs.forEach((log) => {
1564
+ callback(log.args);
1565
+ });
1566
+ },
1567
+ });
1568
+ },
1569
+ /**
1570
+ * Watch PermissionUninstalled events
1571
+ * @param callback Function to call when event is emitted
1572
+ * @param filter Optional filter for indexed parameters
1573
+ * @returns Unwatch function to stop listening
1574
+ */
1575
+ PermissionUninstalled: (callback) => {
1576
+ return this.publicClient.watchContractEvent({
1577
+ address: this.contractAddress,
1578
+ abi: exports.Kernel_jsonAbi,
1579
+ eventName: 'PermissionUninstalled',
1580
+ onLogs: (logs) => {
1581
+ logs.forEach((log) => {
1582
+ callback(log.args);
1583
+ });
1584
+ },
1585
+ });
1586
+ },
1587
+ /**
1588
+ * Watch Received events
1589
+ * @param callback Function to call when event is emitted
1590
+ * @param filter Optional filter for indexed parameters
1591
+ * @returns Unwatch function to stop listening
1592
+ */
1593
+ Received: (callback) => {
1594
+ return this.publicClient.watchContractEvent({
1595
+ address: this.contractAddress,
1596
+ abi: exports.Kernel_jsonAbi,
1597
+ eventName: 'Received',
1598
+ onLogs: (logs) => {
1599
+ logs.forEach((log) => {
1600
+ callback(log.args);
1601
+ });
1602
+ },
1603
+ });
1604
+ },
1605
+ /**
1606
+ * Watch RootValidatorUpdated events
1607
+ * @param callback Function to call when event is emitted
1608
+ * @param filter Optional filter for indexed parameters
1609
+ * @returns Unwatch function to stop listening
1610
+ */
1611
+ RootValidatorUpdated: (callback) => {
1612
+ return this.publicClient.watchContractEvent({
1613
+ address: this.contractAddress,
1614
+ abi: exports.Kernel_jsonAbi,
1615
+ eventName: 'RootValidatorUpdated',
1616
+ onLogs: (logs) => {
1617
+ logs.forEach((log) => {
1618
+ callback(log.args);
1619
+ });
1620
+ },
1621
+ });
1622
+ },
1623
+ /**
1624
+ * Watch SelectorSet events
1625
+ * @param callback Function to call when event is emitted
1626
+ * @param filter Optional filter for indexed parameters
1627
+ * @returns Unwatch function to stop listening
1628
+ */
1629
+ SelectorSet: (callback) => {
1630
+ return this.publicClient.watchContractEvent({
1631
+ address: this.contractAddress,
1632
+ abi: exports.Kernel_jsonAbi,
1633
+ eventName: 'SelectorSet',
1634
+ onLogs: (logs) => {
1635
+ logs.forEach((log) => {
1636
+ callback(log.args);
1637
+ });
1638
+ },
1639
+ });
1640
+ },
1641
+ /**
1642
+ * Watch TryExecuteUnsuccessful events
1643
+ * @param callback Function to call when event is emitted
1644
+ * @param filter Optional filter for indexed parameters
1645
+ * @returns Unwatch function to stop listening
1646
+ */
1647
+ TryExecuteUnsuccessful: (callback) => {
1648
+ return this.publicClient.watchContractEvent({
1649
+ address: this.contractAddress,
1650
+ abi: exports.Kernel_jsonAbi,
1651
+ eventName: 'TryExecuteUnsuccessful',
994
1652
  onLogs: (logs) => {
995
1653
  logs.forEach((log) => {
996
1654
  callback(log.args);
@@ -999,16 +1657,16 @@ class Kernel_json {
999
1657
  });
1000
1658
  },
1001
1659
  /**
1002
- * Watch SetApp events
1660
+ * Watch Upgraded events
1003
1661
  * @param callback Function to call when event is emitted
1004
1662
  * @param filter Optional filter for indexed parameters
1005
1663
  * @returns Unwatch function to stop listening
1006
1664
  */
1007
- SetApp: (callback, filter) => {
1665
+ Upgraded: (callback, filter) => {
1008
1666
  return this.publicClient.watchContractEvent({
1009
1667
  address: this.contractAddress,
1010
1668
  abi: exports.Kernel_jsonAbi,
1011
- eventName: 'SetApp',
1669
+ eventName: 'Upgraded',
1012
1670
  args: filter,
1013
1671
  onLogs: (logs) => {
1014
1672
  logs.forEach((log) => {
@@ -1016,6 +1674,42 @@ class Kernel_json {
1016
1674
  });
1017
1675
  },
1018
1676
  });
1677
+ },
1678
+ /**
1679
+ * Watch ValidatorInstalled events
1680
+ * @param callback Function to call when event is emitted
1681
+ * @param filter Optional filter for indexed parameters
1682
+ * @returns Unwatch function to stop listening
1683
+ */
1684
+ ValidatorInstalled: (callback) => {
1685
+ return this.publicClient.watchContractEvent({
1686
+ address: this.contractAddress,
1687
+ abi: exports.Kernel_jsonAbi,
1688
+ eventName: 'ValidatorInstalled',
1689
+ onLogs: (logs) => {
1690
+ logs.forEach((log) => {
1691
+ callback(log.args);
1692
+ });
1693
+ },
1694
+ });
1695
+ },
1696
+ /**
1697
+ * Watch ValidatorUninstalled events
1698
+ * @param callback Function to call when event is emitted
1699
+ * @param filter Optional filter for indexed parameters
1700
+ * @returns Unwatch function to stop listening
1701
+ */
1702
+ ValidatorUninstalled: (callback) => {
1703
+ return this.publicClient.watchContractEvent({
1704
+ address: this.contractAddress,
1705
+ abi: exports.Kernel_jsonAbi,
1706
+ eventName: 'ValidatorUninstalled',
1707
+ onLogs: (logs) => {
1708
+ logs.forEach((log) => {
1709
+ callback(log.args);
1710
+ });
1711
+ },
1712
+ });
1019
1713
  }
1020
1714
  };
1021
1715
  }