@gitmyabi/kernel 1.0.3 → 1.0.4

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