@gitmyabi/kernel 1.0.1 → 1.0.2

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.
@@ -1,1532 +0,0 @@
1
- import type { Address, PublicClient, WalletClient } from 'viem';
2
- /**
3
- * PackedUserOperation struct type
4
- */
5
- export type PackedUserOperation = {
6
- sender: `0x${string}`;
7
- nonce: bigint;
8
- initCode: `0x${string}`;
9
- callData: `0x${string}`;
10
- accountGasLimits: `0x${string}`;
11
- preVerificationGas: bigint;
12
- gasFees: `0x${string}`;
13
- paymasterAndData: `0x${string}`;
14
- signature: `0x${string}`;
15
- };
16
- /**
17
- * ExecutorManager.ExecutorConfig struct type
18
- */
19
- export type ExecutorManager_ExecutorConfig = {
20
- hook: `0x${string}`;
21
- };
22
- /**
23
- * ValidationManager.ValidationConfig struct type
24
- */
25
- export type ValidationManager_ValidationConfig = {
26
- nonce: bigint;
27
- hook: `0x${string}`;
28
- };
29
- /**
30
- * ValidationManager.PermissionConfig struct type
31
- */
32
- export type ValidationManager_PermissionConfig = {
33
- permissionFlag: `0x${string}`;
34
- signer: `0x${string}`;
35
- policyData: `0x${string}`[];
36
- };
37
- /**
38
- * SelectorManager.SelectorConfig struct type
39
- */
40
- export type SelectorManager_SelectorConfig = {
41
- hook: `0x${string}`;
42
- target: `0x${string}`;
43
- callType: `0x${string}`;
44
- };
45
- /**
46
- * Kernel_json ABI
47
- *
48
- * This ABI is typed using viem's type system for full type safety.
49
- */
50
- export declare const Kernel_jsonAbi: readonly [{
51
- readonly inputs: readonly [{
52
- readonly internalType: "contract IEntryPoint";
53
- readonly name: "_entrypoint";
54
- readonly type: "address";
55
- }];
56
- readonly stateMutability: "nonpayable";
57
- readonly type: "constructor";
58
- }, {
59
- readonly inputs: readonly [];
60
- readonly name: "EnableNotApproved";
61
- readonly type: "error";
62
- }, {
63
- readonly inputs: readonly [];
64
- readonly name: "ExecutionReverted";
65
- readonly type: "error";
66
- }, {
67
- readonly inputs: readonly [];
68
- readonly name: "InvalidCallType";
69
- readonly type: "error";
70
- }, {
71
- readonly inputs: readonly [];
72
- readonly name: "InvalidCaller";
73
- readonly type: "error";
74
- }, {
75
- readonly inputs: readonly [];
76
- readonly name: "InvalidExecutor";
77
- readonly type: "error";
78
- }, {
79
- readonly inputs: readonly [];
80
- readonly name: "InvalidFallback";
81
- readonly type: "error";
82
- }, {
83
- readonly inputs: readonly [];
84
- readonly name: "InvalidMode";
85
- readonly type: "error";
86
- }, {
87
- readonly inputs: readonly [];
88
- readonly name: "InvalidModuleType";
89
- readonly type: "error";
90
- }, {
91
- readonly inputs: readonly [];
92
- readonly name: "InvalidNonce";
93
- readonly type: "error";
94
- }, {
95
- readonly inputs: readonly [];
96
- readonly name: "InvalidSelector";
97
- readonly type: "error";
98
- }, {
99
- readonly inputs: readonly [];
100
- readonly name: "InvalidSignature";
101
- readonly type: "error";
102
- }, {
103
- readonly inputs: readonly [];
104
- readonly name: "InvalidValidationType";
105
- readonly type: "error";
106
- }, {
107
- readonly inputs: readonly [];
108
- readonly name: "InvalidValidator";
109
- readonly type: "error";
110
- }, {
111
- readonly inputs: readonly [];
112
- readonly name: "NonceInvalidationError";
113
- readonly type: "error";
114
- }, {
115
- readonly inputs: readonly [];
116
- readonly name: "NotSupportedCallType";
117
- readonly type: "error";
118
- }, {
119
- readonly inputs: readonly [];
120
- readonly name: "OnlyExecuteUserOp";
121
- readonly type: "error";
122
- }, {
123
- readonly inputs: readonly [];
124
- readonly name: "PermissionDataLengthMismatch";
125
- readonly type: "error";
126
- }, {
127
- readonly inputs: readonly [];
128
- readonly name: "PermissionNotAlllowedForSignature";
129
- readonly type: "error";
130
- }, {
131
- readonly inputs: readonly [];
132
- readonly name: "PermissionNotAlllowedForUserOp";
133
- readonly type: "error";
134
- }, {
135
- readonly inputs: readonly [];
136
- readonly name: "PolicyDataTooLarge";
137
- readonly type: "error";
138
- }, {
139
- readonly inputs: readonly [{
140
- readonly internalType: "uint256";
141
- readonly name: "i";
142
- readonly type: "uint256";
143
- }];
144
- readonly name: "PolicyFailed";
145
- readonly type: "error";
146
- }, {
147
- readonly inputs: readonly [];
148
- readonly name: "PolicySignatureOrderError";
149
- readonly type: "error";
150
- }, {
151
- readonly inputs: readonly [];
152
- readonly name: "RootValidatorCannotBeRemoved";
153
- readonly type: "error";
154
- }, {
155
- readonly inputs: readonly [];
156
- readonly name: "SignerPrefixNotPresent";
157
- readonly type: "error";
158
- }, {
159
- readonly anonymous: false;
160
- readonly inputs: readonly [{
161
- readonly indexed: false;
162
- readonly internalType: "uint256";
163
- readonly name: "moduleTypeId";
164
- readonly type: "uint256";
165
- }, {
166
- readonly indexed: false;
167
- readonly internalType: "address";
168
- readonly name: "module";
169
- readonly type: "address";
170
- }];
171
- readonly name: "ModuleInstalled";
172
- readonly type: "event";
173
- }, {
174
- readonly anonymous: false;
175
- readonly inputs: readonly [{
176
- readonly indexed: false;
177
- readonly internalType: "address";
178
- readonly name: "module";
179
- readonly type: "address";
180
- }, {
181
- readonly indexed: false;
182
- readonly internalType: "bool";
183
- readonly name: "result";
184
- readonly type: "bool";
185
- }];
186
- readonly name: "ModuleUninstallResult";
187
- readonly type: "event";
188
- }, {
189
- readonly anonymous: false;
190
- readonly inputs: readonly [{
191
- readonly indexed: false;
192
- readonly internalType: "uint256";
193
- readonly name: "moduleTypeId";
194
- readonly type: "uint256";
195
- }, {
196
- readonly indexed: false;
197
- readonly internalType: "address";
198
- readonly name: "module";
199
- readonly type: "address";
200
- }];
201
- readonly name: "ModuleUninstalled";
202
- readonly type: "event";
203
- }, {
204
- readonly anonymous: false;
205
- readonly inputs: readonly [{
206
- readonly indexed: false;
207
- readonly internalType: "uint32";
208
- readonly name: "nonce";
209
- readonly type: "uint32";
210
- }];
211
- readonly name: "NonceInvalidated";
212
- readonly type: "event";
213
- }, {
214
- readonly anonymous: false;
215
- readonly inputs: readonly [{
216
- readonly indexed: false;
217
- readonly internalType: "PermissionId";
218
- readonly name: "permission";
219
- readonly type: "bytes4";
220
- }, {
221
- readonly indexed: false;
222
- readonly internalType: "uint32";
223
- readonly name: "nonce";
224
- readonly type: "uint32";
225
- }];
226
- readonly name: "PermissionInstalled";
227
- readonly type: "event";
228
- }, {
229
- readonly anonymous: false;
230
- readonly inputs: readonly [{
231
- readonly indexed: false;
232
- readonly internalType: "PermissionId";
233
- readonly name: "permission";
234
- readonly type: "bytes4";
235
- }];
236
- readonly name: "PermissionUninstalled";
237
- readonly type: "event";
238
- }, {
239
- readonly anonymous: false;
240
- readonly inputs: readonly [{
241
- readonly indexed: false;
242
- readonly internalType: "address";
243
- readonly name: "sender";
244
- readonly type: "address";
245
- }, {
246
- readonly indexed: false;
247
- readonly internalType: "uint256";
248
- readonly name: "amount";
249
- readonly type: "uint256";
250
- }];
251
- readonly name: "Received";
252
- readonly type: "event";
253
- }, {
254
- readonly anonymous: false;
255
- readonly inputs: readonly [{
256
- readonly indexed: false;
257
- readonly internalType: "ValidationId";
258
- readonly name: "rootValidator";
259
- readonly type: "bytes21";
260
- }];
261
- readonly name: "RootValidatorUpdated";
262
- readonly type: "event";
263
- }, {
264
- readonly anonymous: false;
265
- readonly inputs: readonly [{
266
- readonly indexed: false;
267
- readonly internalType: "bytes4";
268
- readonly name: "selector";
269
- readonly type: "bytes4";
270
- }, {
271
- readonly indexed: false;
272
- readonly internalType: "ValidationId";
273
- readonly name: "vId";
274
- readonly type: "bytes21";
275
- }, {
276
- readonly indexed: false;
277
- readonly internalType: "bool";
278
- readonly name: "allowed";
279
- readonly type: "bool";
280
- }];
281
- readonly name: "SelectorSet";
282
- readonly type: "event";
283
- }, {
284
- readonly anonymous: false;
285
- readonly inputs: readonly [{
286
- readonly indexed: false;
287
- readonly internalType: "uint256";
288
- readonly name: "batchExecutionindex";
289
- readonly type: "uint256";
290
- }, {
291
- readonly indexed: false;
292
- readonly internalType: "bytes";
293
- readonly name: "result";
294
- readonly type: "bytes";
295
- }];
296
- readonly name: "TryExecuteUnsuccessful";
297
- readonly type: "event";
298
- }, {
299
- readonly anonymous: false;
300
- readonly inputs: readonly [{
301
- readonly indexed: true;
302
- readonly internalType: "address";
303
- readonly name: "implementation";
304
- readonly type: "address";
305
- }];
306
- readonly name: "Upgraded";
307
- readonly type: "event";
308
- }, {
309
- readonly anonymous: false;
310
- readonly inputs: readonly [{
311
- readonly indexed: false;
312
- readonly internalType: "contract IValidator";
313
- readonly name: "validator";
314
- readonly type: "address";
315
- }, {
316
- readonly indexed: false;
317
- readonly internalType: "uint32";
318
- readonly name: "nonce";
319
- readonly type: "uint32";
320
- }];
321
- readonly name: "ValidatorInstalled";
322
- readonly type: "event";
323
- }, {
324
- readonly anonymous: false;
325
- readonly inputs: readonly [{
326
- readonly indexed: false;
327
- readonly internalType: "contract IValidator";
328
- readonly name: "validator";
329
- readonly type: "address";
330
- }];
331
- readonly name: "ValidatorUninstalled";
332
- readonly type: "event";
333
- }, {
334
- readonly stateMutability: "payable";
335
- readonly type: "fallback";
336
- }, {
337
- readonly inputs: readonly [];
338
- readonly name: "accountId";
339
- readonly outputs: readonly [{
340
- readonly internalType: "string";
341
- readonly name: "accountImplementationId";
342
- readonly type: "string";
343
- }];
344
- readonly stateMutability: "pure";
345
- readonly type: "function";
346
- }, {
347
- readonly inputs: readonly [];
348
- readonly name: "currentNonce";
349
- readonly outputs: readonly [{
350
- readonly internalType: "uint32";
351
- readonly name: "";
352
- readonly type: "uint32";
353
- }];
354
- readonly stateMutability: "view";
355
- readonly type: "function";
356
- }, {
357
- readonly inputs: readonly [];
358
- readonly name: "eip712Domain";
359
- readonly outputs: readonly [{
360
- readonly internalType: "bytes1";
361
- readonly name: "fields";
362
- readonly type: "bytes1";
363
- }, {
364
- readonly internalType: "string";
365
- readonly name: "name";
366
- readonly type: "string";
367
- }, {
368
- readonly internalType: "string";
369
- readonly name: "version";
370
- readonly type: "string";
371
- }, {
372
- readonly internalType: "uint256";
373
- readonly name: "chainId";
374
- readonly type: "uint256";
375
- }, {
376
- readonly internalType: "address";
377
- readonly name: "verifyingContract";
378
- readonly type: "address";
379
- }, {
380
- readonly internalType: "bytes32";
381
- readonly name: "salt";
382
- readonly type: "bytes32";
383
- }, {
384
- readonly internalType: "uint256[]";
385
- readonly name: "extensions";
386
- readonly type: "uint256[]";
387
- }];
388
- readonly stateMutability: "view";
389
- readonly type: "function";
390
- }, {
391
- readonly inputs: readonly [];
392
- readonly name: "entrypoint";
393
- readonly outputs: readonly [{
394
- readonly internalType: "contract IEntryPoint";
395
- readonly name: "";
396
- readonly type: "address";
397
- }];
398
- readonly stateMutability: "view";
399
- readonly type: "function";
400
- }, {
401
- readonly inputs: readonly [{
402
- readonly internalType: "ExecMode";
403
- readonly name: "execMode";
404
- readonly type: "bytes32";
405
- }, {
406
- readonly internalType: "bytes";
407
- readonly name: "executionCalldata";
408
- readonly type: "bytes";
409
- }];
410
- readonly name: "execute";
411
- readonly outputs: readonly [];
412
- readonly stateMutability: "payable";
413
- readonly type: "function";
414
- }, {
415
- readonly inputs: readonly [{
416
- readonly internalType: "ExecMode";
417
- readonly name: "execMode";
418
- readonly type: "bytes32";
419
- }, {
420
- readonly internalType: "bytes";
421
- readonly name: "executionCalldata";
422
- readonly type: "bytes";
423
- }];
424
- readonly name: "executeFromExecutor";
425
- readonly outputs: readonly [{
426
- readonly internalType: "bytes[]";
427
- readonly name: "returnData";
428
- readonly type: "bytes[]";
429
- }];
430
- readonly stateMutability: "payable";
431
- readonly type: "function";
432
- }, {
433
- readonly inputs: readonly [{
434
- readonly components: readonly [{
435
- readonly internalType: "address";
436
- readonly name: "sender";
437
- readonly type: "address";
438
- }, {
439
- readonly internalType: "uint256";
440
- readonly name: "nonce";
441
- readonly type: "uint256";
442
- }, {
443
- readonly internalType: "bytes";
444
- readonly name: "initCode";
445
- readonly type: "bytes";
446
- }, {
447
- readonly internalType: "bytes";
448
- readonly name: "callData";
449
- readonly type: "bytes";
450
- }, {
451
- readonly internalType: "bytes32";
452
- readonly name: "accountGasLimits";
453
- readonly type: "bytes32";
454
- }, {
455
- readonly internalType: "uint256";
456
- readonly name: "preVerificationGas";
457
- readonly type: "uint256";
458
- }, {
459
- readonly internalType: "bytes32";
460
- readonly name: "gasFees";
461
- readonly type: "bytes32";
462
- }, {
463
- readonly internalType: "bytes";
464
- readonly name: "paymasterAndData";
465
- readonly type: "bytes";
466
- }, {
467
- readonly internalType: "bytes";
468
- readonly name: "signature";
469
- readonly type: "bytes";
470
- }];
471
- readonly internalType: "struct PackedUserOperation";
472
- readonly name: "userOp";
473
- readonly type: "tuple";
474
- }, {
475
- readonly internalType: "bytes32";
476
- readonly name: "userOpHash";
477
- readonly type: "bytes32";
478
- }];
479
- readonly name: "executeUserOp";
480
- readonly outputs: readonly [];
481
- readonly stateMutability: "payable";
482
- readonly type: "function";
483
- }, {
484
- readonly inputs: readonly [{
485
- readonly internalType: "contract IExecutor";
486
- readonly name: "executor";
487
- readonly type: "address";
488
- }];
489
- readonly name: "executorConfig";
490
- readonly outputs: readonly [{
491
- readonly components: readonly [{
492
- readonly internalType: "contract IHook";
493
- readonly name: "hook";
494
- readonly type: "address";
495
- }];
496
- readonly internalType: "struct ExecutorManager.ExecutorConfig";
497
- readonly name: "";
498
- readonly type: "tuple";
499
- }];
500
- readonly stateMutability: "view";
501
- readonly type: "function";
502
- }, {
503
- readonly inputs: readonly [{
504
- readonly internalType: "ValidationId";
505
- readonly name: "_rootValidator";
506
- readonly type: "bytes21";
507
- }, {
508
- readonly internalType: "contract IHook";
509
- readonly name: "hook";
510
- readonly type: "address";
511
- }, {
512
- readonly internalType: "bytes";
513
- readonly name: "validatorData";
514
- readonly type: "bytes";
515
- }, {
516
- readonly internalType: "bytes";
517
- readonly name: "hookData";
518
- readonly type: "bytes";
519
- }];
520
- readonly name: "initialize";
521
- readonly outputs: readonly [];
522
- readonly stateMutability: "nonpayable";
523
- readonly type: "function";
524
- }, {
525
- readonly inputs: readonly [{
526
- readonly internalType: "uint256";
527
- readonly name: "moduleType";
528
- readonly type: "uint256";
529
- }, {
530
- readonly internalType: "address";
531
- readonly name: "module";
532
- readonly type: "address";
533
- }, {
534
- readonly internalType: "bytes";
535
- readonly name: "initData";
536
- readonly type: "bytes";
537
- }];
538
- readonly name: "installModule";
539
- readonly outputs: readonly [];
540
- readonly stateMutability: "payable";
541
- readonly type: "function";
542
- }, {
543
- readonly inputs: readonly [{
544
- readonly internalType: "ValidationId[]";
545
- readonly name: "vIds";
546
- readonly type: "bytes21[]";
547
- }, {
548
- readonly components: readonly [{
549
- readonly internalType: "uint32";
550
- readonly name: "nonce";
551
- readonly type: "uint32";
552
- }, {
553
- readonly internalType: "contract IHook";
554
- readonly name: "hook";
555
- readonly type: "address";
556
- }];
557
- readonly internalType: "struct ValidationManager.ValidationConfig[]";
558
- readonly name: "configs";
559
- readonly type: "tuple[]";
560
- }, {
561
- readonly internalType: "bytes[]";
562
- readonly name: "validationData";
563
- readonly type: "bytes[]";
564
- }, {
565
- readonly internalType: "bytes[]";
566
- readonly name: "hookData";
567
- readonly type: "bytes[]";
568
- }];
569
- readonly name: "installValidations";
570
- readonly outputs: readonly [];
571
- readonly stateMutability: "payable";
572
- readonly type: "function";
573
- }, {
574
- readonly inputs: readonly [{
575
- readonly internalType: "uint32";
576
- readonly name: "nonce";
577
- readonly type: "uint32";
578
- }];
579
- readonly name: "invalidateNonce";
580
- readonly outputs: readonly [];
581
- readonly stateMutability: "payable";
582
- readonly type: "function";
583
- }, {
584
- readonly inputs: readonly [{
585
- readonly internalType: "ValidationId";
586
- readonly name: "vId";
587
- readonly type: "bytes21";
588
- }, {
589
- readonly internalType: "bytes4";
590
- readonly name: "selector";
591
- readonly type: "bytes4";
592
- }];
593
- readonly name: "isAllowedSelector";
594
- readonly outputs: readonly [{
595
- readonly internalType: "bool";
596
- readonly name: "";
597
- readonly type: "bool";
598
- }];
599
- readonly stateMutability: "view";
600
- readonly type: "function";
601
- }, {
602
- readonly inputs: readonly [{
603
- readonly internalType: "uint256";
604
- readonly name: "moduleType";
605
- readonly type: "uint256";
606
- }, {
607
- readonly internalType: "address";
608
- readonly name: "module";
609
- readonly type: "address";
610
- }, {
611
- readonly internalType: "bytes";
612
- readonly name: "additionalContext";
613
- readonly type: "bytes";
614
- }];
615
- readonly name: "isModuleInstalled";
616
- readonly outputs: readonly [{
617
- readonly internalType: "bool";
618
- readonly name: "";
619
- readonly type: "bool";
620
- }];
621
- readonly stateMutability: "view";
622
- readonly type: "function";
623
- }, {
624
- readonly inputs: readonly [{
625
- readonly internalType: "bytes32";
626
- readonly name: "hash";
627
- readonly type: "bytes32";
628
- }, {
629
- readonly internalType: "bytes";
630
- readonly name: "signature";
631
- readonly type: "bytes";
632
- }];
633
- readonly name: "isValidSignature";
634
- readonly outputs: readonly [{
635
- readonly internalType: "bytes4";
636
- readonly name: "";
637
- readonly type: "bytes4";
638
- }];
639
- readonly stateMutability: "view";
640
- readonly type: "function";
641
- }, {
642
- readonly inputs: readonly [{
643
- readonly internalType: "PermissionId";
644
- readonly name: "pId";
645
- readonly type: "bytes4";
646
- }];
647
- readonly name: "permissionConfig";
648
- readonly outputs: readonly [{
649
- readonly components: readonly [{
650
- readonly internalType: "PassFlag";
651
- readonly name: "permissionFlag";
652
- readonly type: "bytes2";
653
- }, {
654
- readonly internalType: "contract ISigner";
655
- readonly name: "signer";
656
- readonly type: "address";
657
- }, {
658
- readonly internalType: "PolicyData[]";
659
- readonly name: "policyData";
660
- readonly type: "bytes22[]";
661
- }];
662
- readonly internalType: "struct ValidationManager.PermissionConfig";
663
- readonly name: "";
664
- readonly type: "tuple";
665
- }];
666
- readonly stateMutability: "view";
667
- readonly type: "function";
668
- }, {
669
- readonly inputs: readonly [];
670
- readonly name: "rootValidator";
671
- readonly outputs: readonly [{
672
- readonly internalType: "ValidationId";
673
- readonly name: "";
674
- readonly type: "bytes21";
675
- }];
676
- readonly stateMutability: "view";
677
- readonly type: "function";
678
- }, {
679
- readonly inputs: readonly [{
680
- readonly internalType: "bytes4";
681
- readonly name: "selector";
682
- readonly type: "bytes4";
683
- }];
684
- readonly name: "selectorConfig";
685
- readonly outputs: readonly [{
686
- readonly components: readonly [{
687
- readonly internalType: "contract IHook";
688
- readonly name: "hook";
689
- readonly type: "address";
690
- }, {
691
- readonly internalType: "address";
692
- readonly name: "target";
693
- readonly type: "address";
694
- }, {
695
- readonly internalType: "CallType";
696
- readonly name: "callType";
697
- readonly type: "bytes1";
698
- }];
699
- readonly internalType: "struct SelectorManager.SelectorConfig";
700
- readonly name: "";
701
- readonly type: "tuple";
702
- }];
703
- readonly stateMutability: "view";
704
- readonly type: "function";
705
- }, {
706
- readonly inputs: readonly [{
707
- readonly internalType: "ExecMode";
708
- readonly name: "mode";
709
- readonly type: "bytes32";
710
- }];
711
- readonly name: "supportsExecutionMode";
712
- readonly outputs: readonly [{
713
- readonly internalType: "bool";
714
- readonly name: "";
715
- readonly type: "bool";
716
- }];
717
- readonly stateMutability: "pure";
718
- readonly type: "function";
719
- }, {
720
- readonly inputs: readonly [{
721
- readonly internalType: "uint256";
722
- readonly name: "moduleTypeId";
723
- readonly type: "uint256";
724
- }];
725
- readonly name: "supportsModule";
726
- readonly outputs: readonly [{
727
- readonly internalType: "bool";
728
- readonly name: "";
729
- readonly type: "bool";
730
- }];
731
- readonly stateMutability: "pure";
732
- readonly type: "function";
733
- }, {
734
- readonly inputs: readonly [{
735
- readonly internalType: "uint256";
736
- readonly name: "moduleType";
737
- readonly type: "uint256";
738
- }, {
739
- readonly internalType: "address";
740
- readonly name: "module";
741
- readonly type: "address";
742
- }, {
743
- readonly internalType: "bytes";
744
- readonly name: "deInitData";
745
- readonly type: "bytes";
746
- }];
747
- readonly name: "uninstallModule";
748
- readonly outputs: readonly [];
749
- readonly stateMutability: "payable";
750
- readonly type: "function";
751
- }, {
752
- readonly inputs: readonly [{
753
- readonly internalType: "ValidationId";
754
- readonly name: "vId";
755
- readonly type: "bytes21";
756
- }, {
757
- readonly internalType: "bytes";
758
- readonly name: "deinitData";
759
- readonly type: "bytes";
760
- }, {
761
- readonly internalType: "bytes";
762
- readonly name: "hookDeinitData";
763
- readonly type: "bytes";
764
- }];
765
- readonly name: "uninstallValidation";
766
- readonly outputs: readonly [];
767
- readonly stateMutability: "payable";
768
- readonly type: "function";
769
- }, {
770
- readonly inputs: readonly [{
771
- readonly internalType: "address";
772
- readonly name: "_newImplementation";
773
- readonly type: "address";
774
- }];
775
- readonly name: "upgradeTo";
776
- readonly outputs: readonly [];
777
- readonly stateMutability: "payable";
778
- readonly type: "function";
779
- }, {
780
- readonly inputs: readonly [];
781
- readonly name: "validNonceFrom";
782
- readonly outputs: readonly [{
783
- readonly internalType: "uint32";
784
- readonly name: "";
785
- readonly type: "uint32";
786
- }];
787
- readonly stateMutability: "view";
788
- readonly type: "function";
789
- }, {
790
- readonly inputs: readonly [{
791
- readonly components: readonly [{
792
- readonly internalType: "address";
793
- readonly name: "sender";
794
- readonly type: "address";
795
- }, {
796
- readonly internalType: "uint256";
797
- readonly name: "nonce";
798
- readonly type: "uint256";
799
- }, {
800
- readonly internalType: "bytes";
801
- readonly name: "initCode";
802
- readonly type: "bytes";
803
- }, {
804
- readonly internalType: "bytes";
805
- readonly name: "callData";
806
- readonly type: "bytes";
807
- }, {
808
- readonly internalType: "bytes32";
809
- readonly name: "accountGasLimits";
810
- readonly type: "bytes32";
811
- }, {
812
- readonly internalType: "uint256";
813
- readonly name: "preVerificationGas";
814
- readonly type: "uint256";
815
- }, {
816
- readonly internalType: "bytes32";
817
- readonly name: "gasFees";
818
- readonly type: "bytes32";
819
- }, {
820
- readonly internalType: "bytes";
821
- readonly name: "paymasterAndData";
822
- readonly type: "bytes";
823
- }, {
824
- readonly internalType: "bytes";
825
- readonly name: "signature";
826
- readonly type: "bytes";
827
- }];
828
- readonly internalType: "struct PackedUserOperation";
829
- readonly name: "userOp";
830
- readonly type: "tuple";
831
- }, {
832
- readonly internalType: "bytes32";
833
- readonly name: "userOpHash";
834
- readonly type: "bytes32";
835
- }, {
836
- readonly internalType: "uint256";
837
- readonly name: "missingAccountFunds";
838
- readonly type: "uint256";
839
- }];
840
- readonly name: "validateUserOp";
841
- readonly outputs: readonly [{
842
- readonly internalType: "ValidationData";
843
- readonly name: "validationData";
844
- readonly type: "uint256";
845
- }];
846
- readonly stateMutability: "payable";
847
- readonly type: "function";
848
- }, {
849
- readonly inputs: readonly [{
850
- readonly internalType: "ValidationId";
851
- readonly name: "vId";
852
- readonly type: "bytes21";
853
- }];
854
- readonly name: "validationConfig";
855
- readonly outputs: readonly [{
856
- readonly components: readonly [{
857
- readonly internalType: "uint32";
858
- readonly name: "nonce";
859
- readonly type: "uint32";
860
- }, {
861
- readonly internalType: "contract IHook";
862
- readonly name: "hook";
863
- readonly type: "address";
864
- }];
865
- readonly internalType: "struct ValidationManager.ValidationConfig";
866
- readonly name: "";
867
- readonly type: "tuple";
868
- }];
869
- readonly stateMutability: "view";
870
- readonly type: "function";
871
- }, {
872
- readonly stateMutability: "payable";
873
- readonly type: "receive";
874
- }];
875
- /**
876
- * Type-safe ABI for Kernel_json
877
- */
878
- export type Kernel_jsonAbi = typeof Kernel_jsonAbi;
879
- /**
880
- * Contract instance type for Kernel_json
881
- */
882
- export type Kernel_jsonContract = any;
883
- /**
884
- * Kernel_json Contract Class
885
- *
886
- * Provides a class-based API similar to TypeChain for interacting with the contract.
887
- *
888
- * @example
889
- * ```typescript
890
- * import { createPublicClient, createWalletClient, http } from 'viem';
891
- * import { mainnet } from 'viem/chains';
892
- * import { Kernel_json } from 'Kernel_json';
893
- *
894
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
895
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
896
- *
897
- * const contract = new Kernel_json('0x...', { publicClient, walletClient });
898
- *
899
- * // Read functions
900
- * const result = await contract.balanceOf('0x...');
901
- *
902
- * // Write functions
903
- * const hash = await contract.transfer('0x...', 1000n);
904
- *
905
- * // Simulate transactions (dry-run)
906
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
907
- * console.log('Gas estimate:', simulation.request.gas);
908
- *
909
- * // Watch events
910
- * const unwatch = contract.watch.Transfer((event) => {
911
- * console.log('Transfer event:', event);
912
- * });
913
- * ```
914
- */
915
- export declare class Kernel_json {
916
- private contract;
917
- private contractAddress;
918
- private publicClient;
919
- constructor(address: Address, clients: {
920
- publicClient: PublicClient;
921
- walletClient?: WalletClient;
922
- });
923
- /**
924
- * Get the contract address
925
- */
926
- get address(): Address;
927
- /**
928
- * Get the underlying viem contract instance
929
- */
930
- getContract(): Kernel_jsonContract;
931
- /**
932
- * accountId
933
- * pure
934
- */
935
- accountId(): Promise<string>;
936
- /**
937
- * currentNonce
938
- * view
939
- */
940
- currentNonce(): Promise<bigint>;
941
- /**
942
- * eip712Domain
943
- * view
944
- */
945
- eip712Domain(): Promise<[`0x${string}`, string, string, bigint, `0x${string}`, `0x${string}`, bigint[]]>;
946
- /**
947
- * entrypoint
948
- * view
949
- */
950
- entrypoint(): Promise<`0x${string}`>;
951
- /**
952
- * executorConfig
953
- * view
954
- */
955
- executorConfig(executor: `0x${string}`): Promise<ExecutorManager_ExecutorConfig>;
956
- /**
957
- * isAllowedSelector
958
- * view
959
- */
960
- isAllowedSelector(vId: `0x${string}`, selector: `0x${string}`): Promise<boolean>;
961
- /**
962
- * isModuleInstalled
963
- * view
964
- */
965
- isModuleInstalled(moduleType: bigint, module: `0x${string}`, additionalContext: `0x${string}`): Promise<boolean>;
966
- /**
967
- * isValidSignature
968
- * view
969
- */
970
- isValidSignature(hash: `0x${string}`, signature: `0x${string}`): Promise<`0x${string}`>;
971
- /**
972
- * permissionConfig
973
- * view
974
- */
975
- permissionConfig(pId: `0x${string}`): Promise<ValidationManager_PermissionConfig>;
976
- /**
977
- * rootValidator
978
- * view
979
- */
980
- rootValidator(): Promise<`0x${string}`>;
981
- /**
982
- * selectorConfig
983
- * view
984
- */
985
- selectorConfig(selector: `0x${string}`): Promise<SelectorManager_SelectorConfig>;
986
- /**
987
- * supportsExecutionMode
988
- * pure
989
- */
990
- supportsExecutionMode(mode: `0x${string}`): Promise<boolean>;
991
- /**
992
- * supportsModule
993
- * pure
994
- */
995
- supportsModule(moduleTypeId: bigint): Promise<boolean>;
996
- /**
997
- * validNonceFrom
998
- * view
999
- */
1000
- validNonceFrom(): Promise<bigint>;
1001
- /**
1002
- * validationConfig
1003
- * view
1004
- */
1005
- validationConfig(vId: `0x${string}`): Promise<ValidationManager_ValidationConfig>;
1006
- /**
1007
- * execute
1008
- * payable
1009
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1010
- */
1011
- execute(execMode: `0x${string}`, executionCalldata: `0x${string}`, options?: {
1012
- accessList?: import('viem').AccessList;
1013
- authorizationList?: import('viem').AuthorizationList;
1014
- chain?: import('viem').Chain | null;
1015
- dataSuffix?: `0x${string}`;
1016
- gas?: bigint;
1017
- gasPrice?: bigint;
1018
- maxFeePerGas?: bigint;
1019
- maxPriorityFeePerGas?: bigint;
1020
- nonce?: number;
1021
- value?: bigint;
1022
- }): Promise<`0x${string}`>;
1023
- /**
1024
- * executeFromExecutor
1025
- * payable
1026
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1027
- */
1028
- executeFromExecutor(execMode: `0x${string}`, executionCalldata: `0x${string}`, options?: {
1029
- accessList?: import('viem').AccessList;
1030
- authorizationList?: import('viem').AuthorizationList;
1031
- chain?: import('viem').Chain | null;
1032
- dataSuffix?: `0x${string}`;
1033
- gas?: bigint;
1034
- gasPrice?: bigint;
1035
- maxFeePerGas?: bigint;
1036
- maxPriorityFeePerGas?: bigint;
1037
- nonce?: number;
1038
- value?: bigint;
1039
- }): Promise<`0x${string}`>;
1040
- /**
1041
- * executeUserOp
1042
- * payable
1043
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1044
- */
1045
- executeUserOp(userOp: PackedUserOperation, userOpHash: `0x${string}`, options?: {
1046
- accessList?: import('viem').AccessList;
1047
- authorizationList?: import('viem').AuthorizationList;
1048
- chain?: import('viem').Chain | null;
1049
- dataSuffix?: `0x${string}`;
1050
- gas?: bigint;
1051
- gasPrice?: bigint;
1052
- maxFeePerGas?: bigint;
1053
- maxPriorityFeePerGas?: bigint;
1054
- nonce?: number;
1055
- value?: bigint;
1056
- }): Promise<`0x${string}`>;
1057
- /**
1058
- * initialize
1059
- * nonpayable
1060
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1061
- */
1062
- initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
1063
- accessList?: import('viem').AccessList;
1064
- authorizationList?: import('viem').AuthorizationList;
1065
- chain?: import('viem').Chain | null;
1066
- dataSuffix?: `0x${string}`;
1067
- gas?: bigint;
1068
- gasPrice?: bigint;
1069
- maxFeePerGas?: bigint;
1070
- maxPriorityFeePerGas?: bigint;
1071
- nonce?: number;
1072
- value?: bigint;
1073
- }): Promise<`0x${string}`>;
1074
- /**
1075
- * installModule
1076
- * payable
1077
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1078
- */
1079
- installModule(moduleType: bigint, module: `0x${string}`, initData: `0x${string}`, options?: {
1080
- accessList?: import('viem').AccessList;
1081
- authorizationList?: import('viem').AuthorizationList;
1082
- chain?: import('viem').Chain | null;
1083
- dataSuffix?: `0x${string}`;
1084
- gas?: bigint;
1085
- gasPrice?: bigint;
1086
- maxFeePerGas?: bigint;
1087
- maxPriorityFeePerGas?: bigint;
1088
- nonce?: number;
1089
- value?: bigint;
1090
- }): Promise<`0x${string}`>;
1091
- /**
1092
- * installValidations
1093
- * payable
1094
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1095
- */
1096
- installValidations(vIds: `0x${string}`[], configs: ValidationManager_ValidationConfig[], validationData: `0x${string}`[], hookData: `0x${string}`[], options?: {
1097
- accessList?: import('viem').AccessList;
1098
- authorizationList?: import('viem').AuthorizationList;
1099
- chain?: import('viem').Chain | null;
1100
- dataSuffix?: `0x${string}`;
1101
- gas?: bigint;
1102
- gasPrice?: bigint;
1103
- maxFeePerGas?: bigint;
1104
- maxPriorityFeePerGas?: bigint;
1105
- nonce?: number;
1106
- value?: bigint;
1107
- }): Promise<`0x${string}`>;
1108
- /**
1109
- * invalidateNonce
1110
- * payable
1111
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1112
- */
1113
- invalidateNonce(nonce: bigint, options?: {
1114
- accessList?: import('viem').AccessList;
1115
- authorizationList?: import('viem').AuthorizationList;
1116
- chain?: import('viem').Chain | null;
1117
- dataSuffix?: `0x${string}`;
1118
- gas?: bigint;
1119
- gasPrice?: bigint;
1120
- maxFeePerGas?: bigint;
1121
- maxPriorityFeePerGas?: bigint;
1122
- nonce?: number;
1123
- value?: bigint;
1124
- }): Promise<`0x${string}`>;
1125
- /**
1126
- * uninstallModule
1127
- * payable
1128
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1129
- */
1130
- uninstallModule(moduleType: bigint, module: `0x${string}`, deInitData: `0x${string}`, options?: {
1131
- accessList?: import('viem').AccessList;
1132
- authorizationList?: import('viem').AuthorizationList;
1133
- chain?: import('viem').Chain | null;
1134
- dataSuffix?: `0x${string}`;
1135
- gas?: bigint;
1136
- gasPrice?: bigint;
1137
- maxFeePerGas?: bigint;
1138
- maxPriorityFeePerGas?: bigint;
1139
- nonce?: number;
1140
- value?: bigint;
1141
- }): Promise<`0x${string}`>;
1142
- /**
1143
- * uninstallValidation
1144
- * payable
1145
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1146
- */
1147
- uninstallValidation(vId: `0x${string}`, deinitData: `0x${string}`, hookDeinitData: `0x${string}`, options?: {
1148
- accessList?: import('viem').AccessList;
1149
- authorizationList?: import('viem').AuthorizationList;
1150
- chain?: import('viem').Chain | null;
1151
- dataSuffix?: `0x${string}`;
1152
- gas?: bigint;
1153
- gasPrice?: bigint;
1154
- maxFeePerGas?: bigint;
1155
- maxPriorityFeePerGas?: bigint;
1156
- nonce?: number;
1157
- value?: bigint;
1158
- }): Promise<`0x${string}`>;
1159
- /**
1160
- * upgradeTo
1161
- * payable
1162
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1163
- */
1164
- upgradeTo(_newImplementation: `0x${string}`, options?: {
1165
- accessList?: import('viem').AccessList;
1166
- authorizationList?: import('viem').AuthorizationList;
1167
- chain?: import('viem').Chain | null;
1168
- dataSuffix?: `0x${string}`;
1169
- gas?: bigint;
1170
- gasPrice?: bigint;
1171
- maxFeePerGas?: bigint;
1172
- maxPriorityFeePerGas?: bigint;
1173
- nonce?: number;
1174
- value?: bigint;
1175
- }): Promise<`0x${string}`>;
1176
- /**
1177
- * validateUserOp
1178
- * payable
1179
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1180
- */
1181
- validateUserOp(userOp: PackedUserOperation, userOpHash: `0x${string}`, missingAccountFunds: bigint, options?: {
1182
- accessList?: import('viem').AccessList;
1183
- authorizationList?: import('viem').AuthorizationList;
1184
- chain?: import('viem').Chain | null;
1185
- dataSuffix?: `0x${string}`;
1186
- gas?: bigint;
1187
- gasPrice?: bigint;
1188
- maxFeePerGas?: bigint;
1189
- maxPriorityFeePerGas?: bigint;
1190
- nonce?: number;
1191
- value?: bigint;
1192
- }): Promise<`0x${string}`>;
1193
- /**
1194
- * Simulate contract write operations (dry-run without sending transaction)
1195
- *
1196
- * @example
1197
- * const result = await contract.simulate.transfer('0x...', 1000n);
1198
- * console.log('Gas estimate:', result.request.gas);
1199
- * console.log('Would succeed:', result.result);
1200
- */
1201
- get simulate(): {
1202
- /**
1203
- * Simulate execute
1204
- * Returns gas estimate and result without sending transaction
1205
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1206
- */
1207
- execute(execMode: `0x${string}`, executionCalldata: `0x${string}`, options?: {
1208
- accessList?: import("viem").AccessList;
1209
- authorizationList?: import("viem").AuthorizationList;
1210
- chain?: import("viem").Chain | null;
1211
- dataSuffix?: `0x${string}`;
1212
- gas?: bigint;
1213
- gasPrice?: bigint;
1214
- maxFeePerGas?: bigint;
1215
- maxPriorityFeePerGas?: bigint;
1216
- nonce?: number;
1217
- value?: bigint;
1218
- }): Promise<void>;
1219
- /**
1220
- * Simulate executeFromExecutor
1221
- * Returns gas estimate and result without sending transaction
1222
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1223
- */
1224
- executeFromExecutor(execMode: `0x${string}`, executionCalldata: `0x${string}`, options?: {
1225
- accessList?: import("viem").AccessList;
1226
- authorizationList?: import("viem").AuthorizationList;
1227
- chain?: import("viem").Chain | null;
1228
- dataSuffix?: `0x${string}`;
1229
- gas?: bigint;
1230
- gasPrice?: bigint;
1231
- maxFeePerGas?: bigint;
1232
- maxPriorityFeePerGas?: bigint;
1233
- nonce?: number;
1234
- value?: bigint;
1235
- }): Promise<`0x${string}`[]>;
1236
- /**
1237
- * Simulate executeUserOp
1238
- * Returns gas estimate and result without sending transaction
1239
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1240
- */
1241
- executeUserOp(userOp: PackedUserOperation, userOpHash: `0x${string}`, options?: {
1242
- accessList?: import("viem").AccessList;
1243
- authorizationList?: import("viem").AuthorizationList;
1244
- chain?: import("viem").Chain | null;
1245
- dataSuffix?: `0x${string}`;
1246
- gas?: bigint;
1247
- gasPrice?: bigint;
1248
- maxFeePerGas?: bigint;
1249
- maxPriorityFeePerGas?: bigint;
1250
- nonce?: number;
1251
- value?: bigint;
1252
- }): Promise<void>;
1253
- /**
1254
- * Simulate initialize
1255
- * Returns gas estimate and result without sending transaction
1256
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1257
- */
1258
- initialize(_rootValidator: `0x${string}`, hook: `0x${string}`, validatorData: `0x${string}`, hookData: `0x${string}`, options?: {
1259
- accessList?: import("viem").AccessList;
1260
- authorizationList?: import("viem").AuthorizationList;
1261
- chain?: import("viem").Chain | null;
1262
- dataSuffix?: `0x${string}`;
1263
- gas?: bigint;
1264
- gasPrice?: bigint;
1265
- maxFeePerGas?: bigint;
1266
- maxPriorityFeePerGas?: bigint;
1267
- nonce?: number;
1268
- value?: bigint;
1269
- }): Promise<void>;
1270
- /**
1271
- * Simulate installModule
1272
- * Returns gas estimate and result without sending transaction
1273
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1274
- */
1275
- installModule(moduleType: bigint, module: `0x${string}`, initData: `0x${string}`, options?: {
1276
- accessList?: import("viem").AccessList;
1277
- authorizationList?: import("viem").AuthorizationList;
1278
- chain?: import("viem").Chain | null;
1279
- dataSuffix?: `0x${string}`;
1280
- gas?: bigint;
1281
- gasPrice?: bigint;
1282
- maxFeePerGas?: bigint;
1283
- maxPriorityFeePerGas?: bigint;
1284
- nonce?: number;
1285
- value?: bigint;
1286
- }): Promise<void>;
1287
- /**
1288
- * Simulate installValidations
1289
- * Returns gas estimate and result without sending transaction
1290
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1291
- */
1292
- installValidations(vIds: `0x${string}`[], configs: ValidationManager_ValidationConfig[], validationData: `0x${string}`[], hookData: `0x${string}`[], options?: {
1293
- accessList?: import("viem").AccessList;
1294
- authorizationList?: import("viem").AuthorizationList;
1295
- chain?: import("viem").Chain | null;
1296
- dataSuffix?: `0x${string}`;
1297
- gas?: bigint;
1298
- gasPrice?: bigint;
1299
- maxFeePerGas?: bigint;
1300
- maxPriorityFeePerGas?: bigint;
1301
- nonce?: number;
1302
- value?: bigint;
1303
- }): Promise<void>;
1304
- /**
1305
- * Simulate invalidateNonce
1306
- * Returns gas estimate and result without sending transaction
1307
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1308
- */
1309
- invalidateNonce(nonce: bigint, options?: {
1310
- accessList?: import("viem").AccessList;
1311
- authorizationList?: import("viem").AuthorizationList;
1312
- chain?: import("viem").Chain | null;
1313
- dataSuffix?: `0x${string}`;
1314
- gas?: bigint;
1315
- gasPrice?: bigint;
1316
- maxFeePerGas?: bigint;
1317
- maxPriorityFeePerGas?: bigint;
1318
- nonce?: number;
1319
- value?: bigint;
1320
- }): Promise<void>;
1321
- /**
1322
- * Simulate uninstallModule
1323
- * Returns gas estimate and result without sending transaction
1324
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1325
- */
1326
- uninstallModule(moduleType: bigint, module: `0x${string}`, deInitData: `0x${string}`, options?: {
1327
- accessList?: import("viem").AccessList;
1328
- authorizationList?: import("viem").AuthorizationList;
1329
- chain?: import("viem").Chain | null;
1330
- dataSuffix?: `0x${string}`;
1331
- gas?: bigint;
1332
- gasPrice?: bigint;
1333
- maxFeePerGas?: bigint;
1334
- maxPriorityFeePerGas?: bigint;
1335
- nonce?: number;
1336
- value?: bigint;
1337
- }): Promise<void>;
1338
- /**
1339
- * Simulate uninstallValidation
1340
- * Returns gas estimate and result without sending transaction
1341
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1342
- */
1343
- uninstallValidation(vId: `0x${string}`, deinitData: `0x${string}`, hookDeinitData: `0x${string}`, options?: {
1344
- accessList?: import("viem").AccessList;
1345
- authorizationList?: import("viem").AuthorizationList;
1346
- chain?: import("viem").Chain | null;
1347
- dataSuffix?: `0x${string}`;
1348
- gas?: bigint;
1349
- gasPrice?: bigint;
1350
- maxFeePerGas?: bigint;
1351
- maxPriorityFeePerGas?: bigint;
1352
- nonce?: number;
1353
- value?: bigint;
1354
- }): Promise<void>;
1355
- /**
1356
- * Simulate upgradeTo
1357
- * Returns gas estimate and result without sending transaction
1358
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1359
- */
1360
- upgradeTo(_newImplementation: `0x${string}`, options?: {
1361
- accessList?: import("viem").AccessList;
1362
- authorizationList?: import("viem").AuthorizationList;
1363
- chain?: import("viem").Chain | null;
1364
- dataSuffix?: `0x${string}`;
1365
- gas?: bigint;
1366
- gasPrice?: bigint;
1367
- maxFeePerGas?: bigint;
1368
- maxPriorityFeePerGas?: bigint;
1369
- nonce?: number;
1370
- value?: bigint;
1371
- }): Promise<void>;
1372
- /**
1373
- * Simulate validateUserOp
1374
- * Returns gas estimate and result without sending transaction
1375
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
1376
- */
1377
- validateUserOp(userOp: PackedUserOperation, userOpHash: `0x${string}`, missingAccountFunds: bigint, options?: {
1378
- accessList?: import("viem").AccessList;
1379
- authorizationList?: import("viem").AuthorizationList;
1380
- chain?: import("viem").Chain | null;
1381
- dataSuffix?: `0x${string}`;
1382
- gas?: bigint;
1383
- gasPrice?: bigint;
1384
- maxFeePerGas?: bigint;
1385
- maxPriorityFeePerGas?: bigint;
1386
- nonce?: number;
1387
- value?: bigint;
1388
- }): Promise<bigint>;
1389
- };
1390
- /**
1391
- * Watch contract events
1392
- *
1393
- * @example
1394
- * // Watch all Transfer events
1395
- * const unwatch = contract.watch.Transfer((event) => {
1396
- * console.log('Transfer:', event);
1397
- * });
1398
- *
1399
- * // Stop watching
1400
- * unwatch();
1401
- */
1402
- get watch(): {
1403
- /**
1404
- * Watch ModuleInstalled events
1405
- * @param callback Function to call when event is emitted
1406
- * @param filter Optional filter for indexed parameters
1407
- * @returns Unwatch function to stop listening
1408
- */
1409
- ModuleInstalled: (callback: (event: {
1410
- moduleTypeId: bigint;
1411
- module: `0x${string}`;
1412
- }) => void) => () => void;
1413
- /**
1414
- * Watch ModuleUninstallResult events
1415
- * @param callback Function to call when event is emitted
1416
- * @param filter Optional filter for indexed parameters
1417
- * @returns Unwatch function to stop listening
1418
- */
1419
- ModuleUninstallResult: (callback: (event: {
1420
- module: `0x${string}`;
1421
- result: boolean;
1422
- }) => void) => () => void;
1423
- /**
1424
- * Watch ModuleUninstalled events
1425
- * @param callback Function to call when event is emitted
1426
- * @param filter Optional filter for indexed parameters
1427
- * @returns Unwatch function to stop listening
1428
- */
1429
- ModuleUninstalled: (callback: (event: {
1430
- moduleTypeId: bigint;
1431
- module: `0x${string}`;
1432
- }) => void) => () => void;
1433
- /**
1434
- * Watch NonceInvalidated events
1435
- * @param callback Function to call when event is emitted
1436
- * @param filter Optional filter for indexed parameters
1437
- * @returns Unwatch function to stop listening
1438
- */
1439
- NonceInvalidated: (callback: (event: {
1440
- nonce: bigint;
1441
- }) => void) => () => void;
1442
- /**
1443
- * Watch PermissionInstalled events
1444
- * @param callback Function to call when event is emitted
1445
- * @param filter Optional filter for indexed parameters
1446
- * @returns Unwatch function to stop listening
1447
- */
1448
- PermissionInstalled: (callback: (event: {
1449
- permission: `0x${string}`;
1450
- nonce: bigint;
1451
- }) => void) => () => void;
1452
- /**
1453
- * Watch PermissionUninstalled events
1454
- * @param callback Function to call when event is emitted
1455
- * @param filter Optional filter for indexed parameters
1456
- * @returns Unwatch function to stop listening
1457
- */
1458
- PermissionUninstalled: (callback: (event: {
1459
- permission: `0x${string}`;
1460
- }) => void) => () => void;
1461
- /**
1462
- * Watch Received events
1463
- * @param callback Function to call when event is emitted
1464
- * @param filter Optional filter for indexed parameters
1465
- * @returns Unwatch function to stop listening
1466
- */
1467
- Received: (callback: (event: {
1468
- sender: `0x${string}`;
1469
- amount: bigint;
1470
- }) => void) => () => void;
1471
- /**
1472
- * Watch RootValidatorUpdated events
1473
- * @param callback Function to call when event is emitted
1474
- * @param filter Optional filter for indexed parameters
1475
- * @returns Unwatch function to stop listening
1476
- */
1477
- RootValidatorUpdated: (callback: (event: {
1478
- rootValidator: `0x${string}`;
1479
- }) => void) => () => void;
1480
- /**
1481
- * Watch SelectorSet events
1482
- * @param callback Function to call when event is emitted
1483
- * @param filter Optional filter for indexed parameters
1484
- * @returns Unwatch function to stop listening
1485
- */
1486
- SelectorSet: (callback: (event: {
1487
- selector: `0x${string}`;
1488
- vId: `0x${string}`;
1489
- allowed: boolean;
1490
- }) => void) => () => void;
1491
- /**
1492
- * Watch TryExecuteUnsuccessful events
1493
- * @param callback Function to call when event is emitted
1494
- * @param filter Optional filter for indexed parameters
1495
- * @returns Unwatch function to stop listening
1496
- */
1497
- TryExecuteUnsuccessful: (callback: (event: {
1498
- batchExecutionindex: bigint;
1499
- result: `0x${string}`;
1500
- }) => void) => () => void;
1501
- /**
1502
- * Watch Upgraded events
1503
- * @param callback Function to call when event is emitted
1504
- * @param filter Optional filter for indexed parameters
1505
- * @returns Unwatch function to stop listening
1506
- */
1507
- Upgraded: (callback: (event: {
1508
- implementation: `0x${string}`;
1509
- }) => void, filter?: {
1510
- implementation: `0x${string}`;
1511
- }) => () => void;
1512
- /**
1513
- * Watch ValidatorInstalled events
1514
- * @param callback Function to call when event is emitted
1515
- * @param filter Optional filter for indexed parameters
1516
- * @returns Unwatch function to stop listening
1517
- */
1518
- ValidatorInstalled: (callback: (event: {
1519
- validator: `0x${string}`;
1520
- nonce: bigint;
1521
- }) => void) => () => void;
1522
- /**
1523
- * Watch ValidatorUninstalled events
1524
- * @param callback Function to call when event is emitted
1525
- * @param filter Optional filter for indexed parameters
1526
- * @returns Unwatch function to stop listening
1527
- */
1528
- ValidatorUninstalled: (callback: (event: {
1529
- validator: `0x${string}`;
1530
- }) => void) => () => void;
1531
- };
1532
- }