@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,1081 @@
1
+ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
+ import { getContract } from 'viem';
3
+
4
+
5
+ /**
6
+ * CCIPBatcher.Batch struct type
7
+ */
8
+ export type CCIPBatcher_Batch = {
9
+ lookups: CCIPBatcher_Lookup[];
10
+ gateways: string[];
11
+ };
12
+
13
+ /**
14
+ * CCIPBatcher.Lookup struct type
15
+ */
16
+ export type CCIPBatcher_Lookup = {
17
+ target: `0x${string}`;
18
+ call: `0x${string}`;
19
+ data: `0x${string}`;
20
+ flags: bigint;
21
+ };
22
+
23
+ /**
24
+ * AbstractUniversalResolver.ResolverInfo struct type
25
+ */
26
+ export type AbstractUniversalResolver_ResolverInfo = {
27
+ name: `0x${string}`;
28
+ offset: bigint;
29
+ node: `0x${string}`;
30
+ resolver: `0x${string}`;
31
+ extended: boolean;
32
+ };
33
+ /**
34
+ * UniversalResolver_json ABI
35
+ *
36
+ * This ABI is typed using viem's type system for full type safety.
37
+ */
38
+ export const UniversalResolver_jsonAbi = [
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "address",
43
+ "name": "owner",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "internalType": "contract ENS",
48
+ "name": "ens",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "internalType": "contract IGatewayProvider",
53
+ "name": "batchGatewayProvider",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "stateMutability": "nonpayable",
58
+ "type": "constructor"
59
+ },
60
+ {
61
+ "inputs": [
62
+ {
63
+ "internalType": "bytes",
64
+ "name": "dns",
65
+ "type": "bytes"
66
+ }
67
+ ],
68
+ "name": "DNSDecodingFailed",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "string",
75
+ "name": "ens",
76
+ "type": "string"
77
+ }
78
+ ],
79
+ "name": "DNSEncodingFailed",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "EmptyAddress",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "uint16",
91
+ "name": "status",
92
+ "type": "uint16"
93
+ },
94
+ {
95
+ "internalType": "string",
96
+ "name": "message",
97
+ "type": "string"
98
+ }
99
+ ],
100
+ "name": "HttpError",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "InvalidBatchGatewayResponse",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "address",
112
+ "name": "sender",
113
+ "type": "address"
114
+ },
115
+ {
116
+ "internalType": "string[]",
117
+ "name": "urls",
118
+ "type": "string[]"
119
+ },
120
+ {
121
+ "internalType": "bytes",
122
+ "name": "callData",
123
+ "type": "bytes"
124
+ },
125
+ {
126
+ "internalType": "bytes4",
127
+ "name": "callbackFunction",
128
+ "type": "bytes4"
129
+ },
130
+ {
131
+ "internalType": "bytes",
132
+ "name": "extraData",
133
+ "type": "bytes"
134
+ }
135
+ ],
136
+ "name": "OffchainLookup",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [
141
+ {
142
+ "internalType": "uint256",
143
+ "name": "offset",
144
+ "type": "uint256"
145
+ },
146
+ {
147
+ "internalType": "uint256",
148
+ "name": "length",
149
+ "type": "uint256"
150
+ }
151
+ ],
152
+ "name": "OffsetOutOfBoundsError",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "inputs": [
157
+ {
158
+ "internalType": "bytes",
159
+ "name": "errorData",
160
+ "type": "bytes"
161
+ }
162
+ ],
163
+ "name": "ResolverError",
164
+ "type": "error"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {
169
+ "internalType": "bytes",
170
+ "name": "name",
171
+ "type": "bytes"
172
+ },
173
+ {
174
+ "internalType": "address",
175
+ "name": "resolver",
176
+ "type": "address"
177
+ }
178
+ ],
179
+ "name": "ResolverNotContract",
180
+ "type": "error"
181
+ },
182
+ {
183
+ "inputs": [
184
+ {
185
+ "internalType": "bytes",
186
+ "name": "name",
187
+ "type": "bytes"
188
+ }
189
+ ],
190
+ "name": "ResolverNotFound",
191
+ "type": "error"
192
+ },
193
+ {
194
+ "inputs": [
195
+ {
196
+ "internalType": "string",
197
+ "name": "primary",
198
+ "type": "string"
199
+ },
200
+ {
201
+ "internalType": "bytes",
202
+ "name": "primaryAddress",
203
+ "type": "bytes"
204
+ }
205
+ ],
206
+ "name": "ReverseAddressMismatch",
207
+ "type": "error"
208
+ },
209
+ {
210
+ "inputs": [
211
+ {
212
+ "internalType": "bytes4",
213
+ "name": "selector",
214
+ "type": "bytes4"
215
+ }
216
+ ],
217
+ "name": "UnsupportedResolverProfile",
218
+ "type": "error"
219
+ },
220
+ {
221
+ "inputs": [],
222
+ "name": "batchGatewayProvider",
223
+ "outputs": [
224
+ {
225
+ "internalType": "contract IGatewayProvider",
226
+ "name": "",
227
+ "type": "address"
228
+ }
229
+ ],
230
+ "stateMutability": "view",
231
+ "type": "function"
232
+ },
233
+ {
234
+ "inputs": [
235
+ {
236
+ "components": [
237
+ {
238
+ "components": [
239
+ {
240
+ "internalType": "address",
241
+ "name": "target",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "internalType": "bytes",
246
+ "name": "call",
247
+ "type": "bytes"
248
+ },
249
+ {
250
+ "internalType": "bytes",
251
+ "name": "data",
252
+ "type": "bytes"
253
+ },
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "flags",
257
+ "type": "uint256"
258
+ }
259
+ ],
260
+ "internalType": "struct CCIPBatcher.Lookup[]",
261
+ "name": "lookups",
262
+ "type": "tuple[]"
263
+ },
264
+ {
265
+ "internalType": "string[]",
266
+ "name": "gateways",
267
+ "type": "string[]"
268
+ }
269
+ ],
270
+ "internalType": "struct CCIPBatcher.Batch",
271
+ "name": "batch",
272
+ "type": "tuple"
273
+ }
274
+ ],
275
+ "name": "ccipBatch",
276
+ "outputs": [
277
+ {
278
+ "components": [
279
+ {
280
+ "components": [
281
+ {
282
+ "internalType": "address",
283
+ "name": "target",
284
+ "type": "address"
285
+ },
286
+ {
287
+ "internalType": "bytes",
288
+ "name": "call",
289
+ "type": "bytes"
290
+ },
291
+ {
292
+ "internalType": "bytes",
293
+ "name": "data",
294
+ "type": "bytes"
295
+ },
296
+ {
297
+ "internalType": "uint256",
298
+ "name": "flags",
299
+ "type": "uint256"
300
+ }
301
+ ],
302
+ "internalType": "struct CCIPBatcher.Lookup[]",
303
+ "name": "lookups",
304
+ "type": "tuple[]"
305
+ },
306
+ {
307
+ "internalType": "string[]",
308
+ "name": "gateways",
309
+ "type": "string[]"
310
+ }
311
+ ],
312
+ "internalType": "struct CCIPBatcher.Batch",
313
+ "name": "",
314
+ "type": "tuple"
315
+ }
316
+ ],
317
+ "stateMutability": "view",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [
322
+ {
323
+ "internalType": "bytes",
324
+ "name": "response",
325
+ "type": "bytes"
326
+ },
327
+ {
328
+ "internalType": "bytes",
329
+ "name": "extraData",
330
+ "type": "bytes"
331
+ }
332
+ ],
333
+ "name": "ccipBatchCallback",
334
+ "outputs": [
335
+ {
336
+ "components": [
337
+ {
338
+ "components": [
339
+ {
340
+ "internalType": "address",
341
+ "name": "target",
342
+ "type": "address"
343
+ },
344
+ {
345
+ "internalType": "bytes",
346
+ "name": "call",
347
+ "type": "bytes"
348
+ },
349
+ {
350
+ "internalType": "bytes",
351
+ "name": "data",
352
+ "type": "bytes"
353
+ },
354
+ {
355
+ "internalType": "uint256",
356
+ "name": "flags",
357
+ "type": "uint256"
358
+ }
359
+ ],
360
+ "internalType": "struct CCIPBatcher.Lookup[]",
361
+ "name": "lookups",
362
+ "type": "tuple[]"
363
+ },
364
+ {
365
+ "internalType": "string[]",
366
+ "name": "gateways",
367
+ "type": "string[]"
368
+ }
369
+ ],
370
+ "internalType": "struct CCIPBatcher.Batch",
371
+ "name": "batch",
372
+ "type": "tuple"
373
+ }
374
+ ],
375
+ "stateMutability": "view",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [
380
+ {
381
+ "internalType": "bytes",
382
+ "name": "response",
383
+ "type": "bytes"
384
+ },
385
+ {
386
+ "internalType": "bytes",
387
+ "name": "extraData",
388
+ "type": "bytes"
389
+ }
390
+ ],
391
+ "name": "ccipReadCallback",
392
+ "outputs": [],
393
+ "stateMutability": "view",
394
+ "type": "function"
395
+ },
396
+ {
397
+ "inputs": [
398
+ {
399
+ "internalType": "bytes",
400
+ "name": "name",
401
+ "type": "bytes"
402
+ }
403
+ ],
404
+ "name": "findResolver",
405
+ "outputs": [
406
+ {
407
+ "internalType": "address",
408
+ "name": "",
409
+ "type": "address"
410
+ },
411
+ {
412
+ "internalType": "bytes32",
413
+ "name": "",
414
+ "type": "bytes32"
415
+ },
416
+ {
417
+ "internalType": "uint256",
418
+ "name": "",
419
+ "type": "uint256"
420
+ }
421
+ ],
422
+ "stateMutability": "view",
423
+ "type": "function"
424
+ },
425
+ {
426
+ "inputs": [],
427
+ "name": "registry",
428
+ "outputs": [
429
+ {
430
+ "internalType": "contract ENS",
431
+ "name": "",
432
+ "type": "address"
433
+ }
434
+ ],
435
+ "stateMutability": "view",
436
+ "type": "function"
437
+ },
438
+ {
439
+ "inputs": [
440
+ {
441
+ "internalType": "bytes",
442
+ "name": "name",
443
+ "type": "bytes"
444
+ }
445
+ ],
446
+ "name": "requireResolver",
447
+ "outputs": [
448
+ {
449
+ "components": [
450
+ {
451
+ "internalType": "bytes",
452
+ "name": "name",
453
+ "type": "bytes"
454
+ },
455
+ {
456
+ "internalType": "uint256",
457
+ "name": "offset",
458
+ "type": "uint256"
459
+ },
460
+ {
461
+ "internalType": "bytes32",
462
+ "name": "node",
463
+ "type": "bytes32"
464
+ },
465
+ {
466
+ "internalType": "address",
467
+ "name": "resolver",
468
+ "type": "address"
469
+ },
470
+ {
471
+ "internalType": "bool",
472
+ "name": "extended",
473
+ "type": "bool"
474
+ }
475
+ ],
476
+ "internalType": "struct AbstractUniversalResolver.ResolverInfo",
477
+ "name": "info",
478
+ "type": "tuple"
479
+ }
480
+ ],
481
+ "stateMutability": "view",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [
486
+ {
487
+ "internalType": "bytes",
488
+ "name": "name",
489
+ "type": "bytes"
490
+ },
491
+ {
492
+ "internalType": "bytes",
493
+ "name": "data",
494
+ "type": "bytes"
495
+ }
496
+ ],
497
+ "name": "resolve",
498
+ "outputs": [
499
+ {
500
+ "internalType": "bytes",
501
+ "name": "",
502
+ "type": "bytes"
503
+ },
504
+ {
505
+ "internalType": "address",
506
+ "name": "",
507
+ "type": "address"
508
+ }
509
+ ],
510
+ "stateMutability": "view",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ {
516
+ "internalType": "bytes",
517
+ "name": "response",
518
+ "type": "bytes"
519
+ },
520
+ {
521
+ "internalType": "bytes",
522
+ "name": "extraData",
523
+ "type": "bytes"
524
+ }
525
+ ],
526
+ "name": "resolveBatchCallback",
527
+ "outputs": [],
528
+ "stateMutability": "view",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ {
534
+ "internalType": "bytes",
535
+ "name": "response",
536
+ "type": "bytes"
537
+ },
538
+ {
539
+ "internalType": "bytes",
540
+ "name": "extraData",
541
+ "type": "bytes"
542
+ }
543
+ ],
544
+ "name": "resolveCallback",
545
+ "outputs": [
546
+ {
547
+ "internalType": "bytes",
548
+ "name": "",
549
+ "type": "bytes"
550
+ },
551
+ {
552
+ "internalType": "address",
553
+ "name": "",
554
+ "type": "address"
555
+ }
556
+ ],
557
+ "stateMutability": "pure",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [
562
+ {
563
+ "internalType": "bytes",
564
+ "name": "response",
565
+ "type": "bytes"
566
+ },
567
+ {
568
+ "internalType": "bytes",
569
+ "name": "extraData",
570
+ "type": "bytes"
571
+ }
572
+ ],
573
+ "name": "resolveDirectCallback",
574
+ "outputs": [],
575
+ "stateMutability": "view",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [
580
+ {
581
+ "internalType": "bytes",
582
+ "name": "response",
583
+ "type": "bytes"
584
+ },
585
+ {
586
+ "internalType": "bytes",
587
+ "name": "",
588
+ "type": "bytes"
589
+ }
590
+ ],
591
+ "name": "resolveDirectCallbackError",
592
+ "outputs": [],
593
+ "stateMutability": "pure",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "inputs": [
598
+ {
599
+ "internalType": "bytes",
600
+ "name": "name",
601
+ "type": "bytes"
602
+ },
603
+ {
604
+ "internalType": "bytes",
605
+ "name": "data",
606
+ "type": "bytes"
607
+ },
608
+ {
609
+ "internalType": "string[]",
610
+ "name": "gateways",
611
+ "type": "string[]"
612
+ }
613
+ ],
614
+ "name": "resolveWithGateways",
615
+ "outputs": [
616
+ {
617
+ "internalType": "bytes",
618
+ "name": "result",
619
+ "type": "bytes"
620
+ },
621
+ {
622
+ "internalType": "address",
623
+ "name": "resolver",
624
+ "type": "address"
625
+ }
626
+ ],
627
+ "stateMutability": "view",
628
+ "type": "function"
629
+ },
630
+ {
631
+ "inputs": [
632
+ {
633
+ "internalType": "address",
634
+ "name": "resolver",
635
+ "type": "address"
636
+ },
637
+ {
638
+ "internalType": "bytes",
639
+ "name": "name",
640
+ "type": "bytes"
641
+ },
642
+ {
643
+ "internalType": "bytes",
644
+ "name": "data",
645
+ "type": "bytes"
646
+ },
647
+ {
648
+ "internalType": "string[]",
649
+ "name": "gateways",
650
+ "type": "string[]"
651
+ }
652
+ ],
653
+ "name": "resolveWithResolver",
654
+ "outputs": [
655
+ {
656
+ "internalType": "bytes",
657
+ "name": "",
658
+ "type": "bytes"
659
+ }
660
+ ],
661
+ "stateMutability": "view",
662
+ "type": "function"
663
+ },
664
+ {
665
+ "inputs": [
666
+ {
667
+ "internalType": "bytes",
668
+ "name": "lookupAddress",
669
+ "type": "bytes"
670
+ },
671
+ {
672
+ "internalType": "uint256",
673
+ "name": "coinType",
674
+ "type": "uint256"
675
+ }
676
+ ],
677
+ "name": "reverse",
678
+ "outputs": [
679
+ {
680
+ "internalType": "string",
681
+ "name": "",
682
+ "type": "string"
683
+ },
684
+ {
685
+ "internalType": "address",
686
+ "name": "",
687
+ "type": "address"
688
+ },
689
+ {
690
+ "internalType": "address",
691
+ "name": "",
692
+ "type": "address"
693
+ }
694
+ ],
695
+ "stateMutability": "view",
696
+ "type": "function"
697
+ },
698
+ {
699
+ "inputs": [
700
+ {
701
+ "internalType": "bytes",
702
+ "name": "response",
703
+ "type": "bytes"
704
+ },
705
+ {
706
+ "internalType": "bytes",
707
+ "name": "extraData",
708
+ "type": "bytes"
709
+ }
710
+ ],
711
+ "name": "reverseAddressCallback",
712
+ "outputs": [
713
+ {
714
+ "internalType": "string",
715
+ "name": "primary",
716
+ "type": "string"
717
+ },
718
+ {
719
+ "internalType": "address",
720
+ "name": "resolver",
721
+ "type": "address"
722
+ },
723
+ {
724
+ "internalType": "address",
725
+ "name": "reverseResolver",
726
+ "type": "address"
727
+ }
728
+ ],
729
+ "stateMutability": "pure",
730
+ "type": "function"
731
+ },
732
+ {
733
+ "inputs": [
734
+ {
735
+ "internalType": "bytes",
736
+ "name": "response",
737
+ "type": "bytes"
738
+ },
739
+ {
740
+ "internalType": "bytes",
741
+ "name": "extraData",
742
+ "type": "bytes"
743
+ }
744
+ ],
745
+ "name": "reverseNameCallback",
746
+ "outputs": [
747
+ {
748
+ "internalType": "string",
749
+ "name": "primary",
750
+ "type": "string"
751
+ },
752
+ {
753
+ "internalType": "address",
754
+ "name": "",
755
+ "type": "address"
756
+ },
757
+ {
758
+ "internalType": "address",
759
+ "name": "",
760
+ "type": "address"
761
+ }
762
+ ],
763
+ "stateMutability": "view",
764
+ "type": "function"
765
+ },
766
+ {
767
+ "inputs": [
768
+ {
769
+ "internalType": "bytes",
770
+ "name": "lookupAddress",
771
+ "type": "bytes"
772
+ },
773
+ {
774
+ "internalType": "uint256",
775
+ "name": "coinType",
776
+ "type": "uint256"
777
+ },
778
+ {
779
+ "internalType": "string[]",
780
+ "name": "gateways",
781
+ "type": "string[]"
782
+ }
783
+ ],
784
+ "name": "reverseWithGateways",
785
+ "outputs": [
786
+ {
787
+ "internalType": "string",
788
+ "name": "primary",
789
+ "type": "string"
790
+ },
791
+ {
792
+ "internalType": "address",
793
+ "name": "resolver",
794
+ "type": "address"
795
+ },
796
+ {
797
+ "internalType": "address",
798
+ "name": "reverseResolver",
799
+ "type": "address"
800
+ }
801
+ ],
802
+ "stateMutability": "view",
803
+ "type": "function"
804
+ },
805
+ {
806
+ "inputs": [
807
+ {
808
+ "internalType": "bytes4",
809
+ "name": "interfaceId",
810
+ "type": "bytes4"
811
+ }
812
+ ],
813
+ "name": "supportsInterface",
814
+ "outputs": [
815
+ {
816
+ "internalType": "bool",
817
+ "name": "",
818
+ "type": "bool"
819
+ }
820
+ ],
821
+ "stateMutability": "view",
822
+ "type": "function"
823
+ }
824
+ ] as const satisfies Abi;
825
+
826
+ /**
827
+ * Type-safe ABI for UniversalResolver_json
828
+ */
829
+ export type UniversalResolver_jsonAbi = typeof UniversalResolver_jsonAbi;
830
+
831
+ /**
832
+ * Contract instance type for UniversalResolver_json
833
+ */
834
+ // Use any for contract type to avoid complex viem type issues
835
+ // The runtime behavior is type-safe through viem's ABI typing
836
+ export type UniversalResolver_jsonContract = any;
837
+
838
+ /**
839
+ * UniversalResolver_json Contract Class
840
+ *
841
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
842
+ *
843
+ * @example
844
+ * ```typescript
845
+ * import { createPublicClient, createWalletClient, http } from 'viem';
846
+ * import { mainnet } from 'viem/chains';
847
+ * import { UniversalResolver_json } from 'UniversalResolver_json';
848
+ *
849
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
850
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
851
+ *
852
+ * const contract = new UniversalResolver_json('0x...', { publicClient, walletClient });
853
+ *
854
+ * // Read functions
855
+ * const result = await contract.balanceOf('0x...');
856
+ *
857
+ * // Write functions
858
+ * const hash = await contract.transfer('0x...', 1000n);
859
+ *
860
+ * // Simulate transactions (dry-run)
861
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
862
+ * console.log('Gas estimate:', simulation.request.gas);
863
+ *
864
+ * // Watch events
865
+ * const unwatch = contract.watch.Transfer((event) => {
866
+ * console.log('Transfer event:', event);
867
+ * });
868
+ * ```
869
+ */
870
+ export class UniversalResolver_json {
871
+ private contract: UniversalResolver_jsonContract;
872
+ private contractAddress: Address;
873
+ private publicClient: PublicClient;
874
+
875
+ constructor(
876
+ address: Address,
877
+ clients: {
878
+ publicClient: PublicClient;
879
+ walletClient?: WalletClient;
880
+ }
881
+ ) {
882
+ this.contractAddress = address;
883
+ this.publicClient = clients.publicClient;
884
+ this.contract = getContract({
885
+ address,
886
+ abi: UniversalResolver_jsonAbi,
887
+ client: {
888
+ public: clients.publicClient,
889
+ wallet: clients.walletClient,
890
+ },
891
+ });
892
+ }
893
+
894
+ /**
895
+ * Get the contract address
896
+ */
897
+ get address(): Address {
898
+ return this.contractAddress;
899
+ }
900
+
901
+ /**
902
+ * Get the underlying viem contract instance
903
+ */
904
+ getContract(): UniversalResolver_jsonContract {
905
+ return this.contract;
906
+ }
907
+
908
+ /**
909
+ * batchGatewayProvider
910
+ * view
911
+ */
912
+ async batchGatewayProvider(): Promise<`0x${string}`> {
913
+ return this.contract.read.batchGatewayProvider() as Promise<`0x${string}`>;
914
+ }
915
+
916
+ /**
917
+ * ccipBatch
918
+ * view
919
+ */
920
+ async ccipBatch(batch: CCIPBatcher_Batch): Promise<CCIPBatcher_Batch> {
921
+ return this.contract.read.ccipBatch([batch] as const) as Promise<CCIPBatcher_Batch>;
922
+ }
923
+
924
+ /**
925
+ * ccipBatchCallback
926
+ * view
927
+ */
928
+ async ccipBatchCallback(response: `0x${string}`, extraData: `0x${string}`): Promise<CCIPBatcher_Batch> {
929
+ return this.contract.read.ccipBatchCallback([response, extraData] as const) as Promise<CCIPBatcher_Batch>;
930
+ }
931
+
932
+ /**
933
+ * ccipReadCallback
934
+ * view
935
+ */
936
+ async ccipReadCallback(response: `0x${string}`, extraData: `0x${string}`): Promise<void> {
937
+ return this.contract.read.ccipReadCallback([response, extraData] as const) as Promise<void>;
938
+ }
939
+
940
+ /**
941
+ * findResolver
942
+ * view
943
+ */
944
+ async findResolver(name: `0x${string}`): Promise<[`0x${string}`, `0x${string}`, bigint]> {
945
+ return this.contract.read.findResolver([name] as const) as Promise<[`0x${string}`, `0x${string}`, bigint]>;
946
+ }
947
+
948
+ /**
949
+ * registry
950
+ * view
951
+ */
952
+ async registry(): Promise<`0x${string}`> {
953
+ return this.contract.read.registry() as Promise<`0x${string}`>;
954
+ }
955
+
956
+ /**
957
+ * requireResolver
958
+ * view
959
+ */
960
+ async requireResolver(name: `0x${string}`): Promise<AbstractUniversalResolver_ResolverInfo> {
961
+ return this.contract.read.requireResolver([name] as const) as Promise<AbstractUniversalResolver_ResolverInfo>;
962
+ }
963
+
964
+ /**
965
+ * resolve
966
+ * view
967
+ */
968
+ async resolve(name: `0x${string}`, data: `0x${string}`): Promise<[`0x${string}`, `0x${string}`]> {
969
+ return this.contract.read.resolve([name, data] as const) as Promise<[`0x${string}`, `0x${string}`]>;
970
+ }
971
+
972
+ /**
973
+ * resolveBatchCallback
974
+ * view
975
+ */
976
+ async resolveBatchCallback(response: `0x${string}`, extraData: `0x${string}`): Promise<void> {
977
+ return this.contract.read.resolveBatchCallback([response, extraData] as const) as Promise<void>;
978
+ }
979
+
980
+ /**
981
+ * resolveCallback
982
+ * pure
983
+ */
984
+ async resolveCallback(response: `0x${string}`, extraData: `0x${string}`): Promise<[`0x${string}`, `0x${string}`]> {
985
+ return this.contract.read.resolveCallback([response, extraData] as const) as Promise<[`0x${string}`, `0x${string}`]>;
986
+ }
987
+
988
+ /**
989
+ * resolveDirectCallback
990
+ * view
991
+ */
992
+ async resolveDirectCallback(response: `0x${string}`, extraData: `0x${string}`): Promise<void> {
993
+ return this.contract.read.resolveDirectCallback([response, extraData] as const) as Promise<void>;
994
+ }
995
+
996
+ /**
997
+ * resolveDirectCallbackError
998
+ * pure
999
+ */
1000
+ async resolveDirectCallbackError(response: `0x${string}`, arg1: `0x${string}`): Promise<void> {
1001
+ return this.contract.read.resolveDirectCallbackError([response, arg1] as const) as Promise<void>;
1002
+ }
1003
+
1004
+ /**
1005
+ * resolveWithGateways
1006
+ * view
1007
+ */
1008
+ async resolveWithGateways(name: `0x${string}`, data: `0x${string}`, gateways: string[]): Promise<[`0x${string}`, `0x${string}`]> {
1009
+ return this.contract.read.resolveWithGateways([name, data, gateways] as const) as Promise<[`0x${string}`, `0x${string}`]>;
1010
+ }
1011
+
1012
+ /**
1013
+ * resolveWithResolver
1014
+ * view
1015
+ */
1016
+ async resolveWithResolver(resolver: `0x${string}`, name: `0x${string}`, data: `0x${string}`, gateways: string[]): Promise<`0x${string}`> {
1017
+ return this.contract.read.resolveWithResolver([resolver, name, data, gateways] as const) as Promise<`0x${string}`>;
1018
+ }
1019
+
1020
+ /**
1021
+ * reverse
1022
+ * view
1023
+ */
1024
+ async reverse(lookupAddress: `0x${string}`, coinType: bigint): Promise<[string, `0x${string}`, `0x${string}`]> {
1025
+ return this.contract.read.reverse([lookupAddress, coinType] as const) as Promise<[string, `0x${string}`, `0x${string}`]>;
1026
+ }
1027
+
1028
+ /**
1029
+ * reverseAddressCallback
1030
+ * pure
1031
+ */
1032
+ async reverseAddressCallback(response: `0x${string}`, extraData: `0x${string}`): Promise<[string, `0x${string}`, `0x${string}`]> {
1033
+ return this.contract.read.reverseAddressCallback([response, extraData] as const) as Promise<[string, `0x${string}`, `0x${string}`]>;
1034
+ }
1035
+
1036
+ /**
1037
+ * reverseNameCallback
1038
+ * view
1039
+ */
1040
+ async reverseNameCallback(response: `0x${string}`, extraData: `0x${string}`): Promise<[string, `0x${string}`, `0x${string}`]> {
1041
+ return this.contract.read.reverseNameCallback([response, extraData] as const) as Promise<[string, `0x${string}`, `0x${string}`]>;
1042
+ }
1043
+
1044
+ /**
1045
+ * reverseWithGateways
1046
+ * view
1047
+ */
1048
+ async reverseWithGateways(lookupAddress: `0x${string}`, coinType: bigint, gateways: string[]): Promise<[string, `0x${string}`, `0x${string}`]> {
1049
+ return this.contract.read.reverseWithGateways([lookupAddress, coinType, gateways] as const) as Promise<[string, `0x${string}`, `0x${string}`]>;
1050
+ }
1051
+
1052
+ /**
1053
+ * supportsInterface
1054
+ * view
1055
+ */
1056
+ async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
1057
+ return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
1058
+ }
1059
+
1060
+ // No write functions
1061
+
1062
+
1063
+
1064
+ /**
1065
+ * Simulate contract write operations (dry-run without sending transaction)
1066
+ *
1067
+ * Note: This contract has no write functions, so simulate returns an empty object.
1068
+ */
1069
+ get simulate() {
1070
+ return {};
1071
+ }
1072
+
1073
+ /**
1074
+ * Watch contract events
1075
+ *
1076
+ * Note: This contract has no events, so watch returns an empty object.
1077
+ */
1078
+ get watch() {
1079
+ return {};
1080
+ }
1081
+ }