@gitmyabi/kernel 1.0.1 → 1.0.3

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