@gitmyabi-stg/ens--resolver-contracts 0.0.1

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