@hybrd/xmtp 1.0.0

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,699 @@
1
+ export const L2ResolverAbi = [
2
+ {
3
+ inputs: [
4
+ { internalType: "contract ENS", name: "ens_", type: "address" },
5
+ {
6
+ internalType: "address",
7
+ name: "registrarController_",
8
+ type: "address",
9
+ },
10
+ { internalType: "address", name: "reverseRegistrar_", type: "address" },
11
+ { internalType: "address", name: "owner_", type: "address" },
12
+ ],
13
+ stateMutability: "nonpayable",
14
+ type: "constructor",
15
+ },
16
+ { inputs: [], name: "AlreadyInitialized", type: "error" },
17
+ { inputs: [], name: "CantSetSelfAsDelegate", type: "error" },
18
+ { inputs: [], name: "CantSetSelfAsOperator", type: "error" },
19
+ { inputs: [], name: "NewOwnerIsZeroAddress", type: "error" },
20
+ { inputs: [], name: "NoHandoverRequest", type: "error" },
21
+ { inputs: [], name: "Unauthorized", type: "error" },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
26
+ {
27
+ indexed: true,
28
+ internalType: "uint256",
29
+ name: "contentType",
30
+ type: "uint256",
31
+ },
32
+ ],
33
+ name: "ABIChanged",
34
+ type: "event",
35
+ },
36
+ {
37
+ anonymous: false,
38
+ inputs: [
39
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
40
+ { indexed: false, internalType: "address", name: "a", type: "address" },
41
+ ],
42
+ name: "AddrChanged",
43
+ type: "event",
44
+ },
45
+ {
46
+ anonymous: false,
47
+ inputs: [
48
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
49
+ {
50
+ indexed: false,
51
+ internalType: "uint256",
52
+ name: "coinType",
53
+ type: "uint256",
54
+ },
55
+ {
56
+ indexed: false,
57
+ internalType: "bytes",
58
+ name: "newAddress",
59
+ type: "bytes",
60
+ },
61
+ ],
62
+ name: "AddressChanged",
63
+ type: "event",
64
+ },
65
+ {
66
+ anonymous: false,
67
+ inputs: [
68
+ {
69
+ indexed: true,
70
+ internalType: "address",
71
+ name: "owner",
72
+ type: "address",
73
+ },
74
+ {
75
+ indexed: true,
76
+ internalType: "address",
77
+ name: "operator",
78
+ type: "address",
79
+ },
80
+ { indexed: false, internalType: "bool", name: "approved", type: "bool" },
81
+ ],
82
+ name: "ApprovalForAll",
83
+ type: "event",
84
+ },
85
+ {
86
+ anonymous: false,
87
+ inputs: [
88
+ {
89
+ indexed: false,
90
+ internalType: "address",
91
+ name: "owner",
92
+ type: "address",
93
+ },
94
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
95
+ {
96
+ indexed: true,
97
+ internalType: "address",
98
+ name: "delegate",
99
+ type: "address",
100
+ },
101
+ { indexed: true, internalType: "bool", name: "approved", type: "bool" },
102
+ ],
103
+ name: "Approved",
104
+ type: "event",
105
+ },
106
+ {
107
+ anonymous: false,
108
+ inputs: [
109
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
110
+ { indexed: false, internalType: "bytes", name: "hash", type: "bytes" },
111
+ ],
112
+ name: "ContenthashChanged",
113
+ type: "event",
114
+ },
115
+ {
116
+ anonymous: false,
117
+ inputs: [
118
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
119
+ { indexed: false, internalType: "bytes", name: "name", type: "bytes" },
120
+ {
121
+ indexed: false,
122
+ internalType: "uint16",
123
+ name: "resource",
124
+ type: "uint16",
125
+ },
126
+ { indexed: false, internalType: "bytes", name: "record", type: "bytes" },
127
+ ],
128
+ name: "DNSRecordChanged",
129
+ type: "event",
130
+ },
131
+ {
132
+ anonymous: false,
133
+ inputs: [
134
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
135
+ { indexed: false, internalType: "bytes", name: "name", type: "bytes" },
136
+ {
137
+ indexed: false,
138
+ internalType: "uint16",
139
+ name: "resource",
140
+ type: "uint16",
141
+ },
142
+ ],
143
+ name: "DNSRecordDeleted",
144
+ type: "event",
145
+ },
146
+ {
147
+ anonymous: false,
148
+ inputs: [
149
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
150
+ {
151
+ indexed: false,
152
+ internalType: "bytes",
153
+ name: "lastzonehash",
154
+ type: "bytes",
155
+ },
156
+ {
157
+ indexed: false,
158
+ internalType: "bytes",
159
+ name: "zonehash",
160
+ type: "bytes",
161
+ },
162
+ ],
163
+ name: "DNSZonehashChanged",
164
+ type: "event",
165
+ },
166
+ {
167
+ anonymous: false,
168
+ inputs: [
169
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
170
+ {
171
+ indexed: true,
172
+ internalType: "bytes4",
173
+ name: "interfaceID",
174
+ type: "bytes4",
175
+ },
176
+ {
177
+ indexed: false,
178
+ internalType: "address",
179
+ name: "implementer",
180
+ type: "address",
181
+ },
182
+ ],
183
+ name: "InterfaceChanged",
184
+ type: "event",
185
+ },
186
+ {
187
+ anonymous: false,
188
+ inputs: [
189
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
190
+ { indexed: false, internalType: "string", name: "name", type: "string" },
191
+ ],
192
+ name: "NameChanged",
193
+ type: "event",
194
+ },
195
+ {
196
+ anonymous: false,
197
+ inputs: [
198
+ {
199
+ indexed: true,
200
+ internalType: "address",
201
+ name: "pendingOwner",
202
+ type: "address",
203
+ },
204
+ ],
205
+ name: "OwnershipHandoverCanceled",
206
+ type: "event",
207
+ },
208
+ {
209
+ anonymous: false,
210
+ inputs: [
211
+ {
212
+ indexed: true,
213
+ internalType: "address",
214
+ name: "pendingOwner",
215
+ type: "address",
216
+ },
217
+ ],
218
+ name: "OwnershipHandoverRequested",
219
+ type: "event",
220
+ },
221
+ {
222
+ anonymous: false,
223
+ inputs: [
224
+ {
225
+ indexed: true,
226
+ internalType: "address",
227
+ name: "oldOwner",
228
+ type: "address",
229
+ },
230
+ {
231
+ indexed: true,
232
+ internalType: "address",
233
+ name: "newOwner",
234
+ type: "address",
235
+ },
236
+ ],
237
+ name: "OwnershipTransferred",
238
+ type: "event",
239
+ },
240
+ {
241
+ anonymous: false,
242
+ inputs: [
243
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
244
+ { indexed: false, internalType: "bytes32", name: "x", type: "bytes32" },
245
+ { indexed: false, internalType: "bytes32", name: "y", type: "bytes32" },
246
+ ],
247
+ name: "PubkeyChanged",
248
+ type: "event",
249
+ },
250
+ {
251
+ anonymous: false,
252
+ inputs: [
253
+ {
254
+ indexed: true,
255
+ internalType: "address",
256
+ name: "newRegistrarController",
257
+ type: "address",
258
+ },
259
+ ],
260
+ name: "RegistrarControllerUpdated",
261
+ type: "event",
262
+ },
263
+ {
264
+ anonymous: false,
265
+ inputs: [
266
+ {
267
+ indexed: true,
268
+ internalType: "address",
269
+ name: "newReverseRegistrar",
270
+ type: "address",
271
+ },
272
+ ],
273
+ name: "ReverseRegistrarUpdated",
274
+ type: "event",
275
+ },
276
+ {
277
+ anonymous: false,
278
+ inputs: [
279
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
280
+ {
281
+ indexed: true,
282
+ internalType: "string",
283
+ name: "indexedKey",
284
+ type: "string",
285
+ },
286
+ { indexed: false, internalType: "string", name: "key", type: "string" },
287
+ { indexed: false, internalType: "string", name: "value", type: "string" },
288
+ ],
289
+ name: "TextChanged",
290
+ type: "event",
291
+ },
292
+ {
293
+ anonymous: false,
294
+ inputs: [
295
+ { indexed: true, internalType: "bytes32", name: "node", type: "bytes32" },
296
+ {
297
+ indexed: false,
298
+ internalType: "uint64",
299
+ name: "newVersion",
300
+ type: "uint64",
301
+ },
302
+ ],
303
+ name: "VersionChanged",
304
+ type: "event",
305
+ },
306
+ {
307
+ inputs: [
308
+ { internalType: "bytes32", name: "node", type: "bytes32" },
309
+ { internalType: "uint256", name: "contentTypes", type: "uint256" },
310
+ ],
311
+ name: "ABI",
312
+ outputs: [
313
+ { internalType: "uint256", name: "", type: "uint256" },
314
+ { internalType: "bytes", name: "", type: "bytes" },
315
+ ],
316
+ stateMutability: "view",
317
+ type: "function",
318
+ },
319
+ {
320
+ inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }],
321
+ name: "addr",
322
+ outputs: [{ internalType: "address payable", name: "", type: "address" }],
323
+ stateMutability: "view",
324
+ type: "function",
325
+ },
326
+ {
327
+ inputs: [
328
+ { internalType: "bytes32", name: "node", type: "bytes32" },
329
+ { internalType: "uint256", name: "coinType", type: "uint256" },
330
+ ],
331
+ name: "addr",
332
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
333
+ stateMutability: "view",
334
+ type: "function",
335
+ },
336
+ {
337
+ inputs: [
338
+ { internalType: "bytes32", name: "node", type: "bytes32" },
339
+ { internalType: "address", name: "delegate", type: "address" },
340
+ { internalType: "bool", name: "approved", type: "bool" },
341
+ ],
342
+ name: "approve",
343
+ outputs: [],
344
+ stateMutability: "nonpayable",
345
+ type: "function",
346
+ },
347
+ {
348
+ inputs: [],
349
+ name: "cancelOwnershipHandover",
350
+ outputs: [],
351
+ stateMutability: "payable",
352
+ type: "function",
353
+ },
354
+ {
355
+ inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }],
356
+ name: "clearRecords",
357
+ outputs: [],
358
+ stateMutability: "nonpayable",
359
+ type: "function",
360
+ },
361
+ {
362
+ inputs: [
363
+ { internalType: "address", name: "pendingOwner", type: "address" },
364
+ ],
365
+ name: "completeOwnershipHandover",
366
+ outputs: [],
367
+ stateMutability: "payable",
368
+ type: "function",
369
+ },
370
+ {
371
+ inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }],
372
+ name: "contenthash",
373
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
374
+ stateMutability: "view",
375
+ type: "function",
376
+ },
377
+ {
378
+ inputs: [
379
+ { internalType: "bytes32", name: "node", type: "bytes32" },
380
+ { internalType: "bytes32", name: "name", type: "bytes32" },
381
+ { internalType: "uint16", name: "resource", type: "uint16" },
382
+ ],
383
+ name: "dnsRecord",
384
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
385
+ stateMutability: "view",
386
+ type: "function",
387
+ },
388
+ {
389
+ inputs: [],
390
+ name: "ens",
391
+ outputs: [{ internalType: "contract ENS", name: "", type: "address" }],
392
+ stateMutability: "view",
393
+ type: "function",
394
+ },
395
+ {
396
+ inputs: [
397
+ { internalType: "bytes32", name: "node", type: "bytes32" },
398
+ { internalType: "bytes32", name: "name", type: "bytes32" },
399
+ ],
400
+ name: "hasDNSRecords",
401
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
402
+ stateMutability: "view",
403
+ type: "function",
404
+ },
405
+ {
406
+ inputs: [
407
+ { internalType: "bytes32", name: "node", type: "bytes32" },
408
+ { internalType: "bytes4", name: "interfaceID", type: "bytes4" },
409
+ ],
410
+ name: "interfaceImplementer",
411
+ outputs: [{ internalType: "address", name: "", type: "address" }],
412
+ stateMutability: "view",
413
+ type: "function",
414
+ },
415
+ {
416
+ inputs: [
417
+ { internalType: "address", name: "owner", type: "address" },
418
+ { internalType: "bytes32", name: "node", type: "bytes32" },
419
+ { internalType: "address", name: "delegate", type: "address" },
420
+ ],
421
+ name: "isApprovedFor",
422
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
423
+ stateMutability: "view",
424
+ type: "function",
425
+ },
426
+ {
427
+ inputs: [
428
+ { internalType: "address", name: "account", type: "address" },
429
+ { internalType: "address", name: "operator", type: "address" },
430
+ ],
431
+ name: "isApprovedForAll",
432
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
433
+ stateMutability: "view",
434
+ type: "function",
435
+ },
436
+ {
437
+ inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }],
438
+ name: "multicall",
439
+ outputs: [{ internalType: "bytes[]", name: "results", type: "bytes[]" }],
440
+ stateMutability: "nonpayable",
441
+ type: "function",
442
+ },
443
+ {
444
+ inputs: [
445
+ { internalType: "bytes32", name: "nodehash", type: "bytes32" },
446
+ { internalType: "bytes[]", name: "data", type: "bytes[]" },
447
+ ],
448
+ name: "multicallWithNodeCheck",
449
+ outputs: [{ internalType: "bytes[]", name: "results", type: "bytes[]" }],
450
+ stateMutability: "nonpayable",
451
+ type: "function",
452
+ },
453
+ {
454
+ inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }],
455
+ name: "name",
456
+ outputs: [{ internalType: "string", name: "", type: "string" }],
457
+ stateMutability: "view",
458
+ type: "function",
459
+ },
460
+ {
461
+ inputs: [],
462
+ name: "owner",
463
+ outputs: [{ internalType: "address", name: "result", type: "address" }],
464
+ stateMutability: "view",
465
+ type: "function",
466
+ },
467
+ {
468
+ inputs: [
469
+ { internalType: "address", name: "pendingOwner", type: "address" },
470
+ ],
471
+ name: "ownershipHandoverExpiresAt",
472
+ outputs: [{ internalType: "uint256", name: "result", type: "uint256" }],
473
+ stateMutability: "view",
474
+ type: "function",
475
+ },
476
+ {
477
+ inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }],
478
+ name: "pubkey",
479
+ outputs: [
480
+ { internalType: "bytes32", name: "x", type: "bytes32" },
481
+ { internalType: "bytes32", name: "y", type: "bytes32" },
482
+ ],
483
+ stateMutability: "view",
484
+ type: "function",
485
+ },
486
+ {
487
+ inputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
488
+ name: "recordVersions",
489
+ outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
490
+ stateMutability: "view",
491
+ type: "function",
492
+ },
493
+ {
494
+ inputs: [],
495
+ name: "registrarController",
496
+ outputs: [{ internalType: "address", name: "", type: "address" }],
497
+ stateMutability: "view",
498
+ type: "function",
499
+ },
500
+ {
501
+ inputs: [],
502
+ name: "renounceOwnership",
503
+ outputs: [],
504
+ stateMutability: "payable",
505
+ type: "function",
506
+ },
507
+ {
508
+ inputs: [],
509
+ name: "requestOwnershipHandover",
510
+ outputs: [],
511
+ stateMutability: "payable",
512
+ type: "function",
513
+ },
514
+ {
515
+ inputs: [
516
+ { internalType: "bytes", name: "", type: "bytes" },
517
+ { internalType: "bytes", name: "data", type: "bytes" },
518
+ ],
519
+ name: "resolve",
520
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
521
+ stateMutability: "view",
522
+ type: "function",
523
+ },
524
+ {
525
+ inputs: [],
526
+ name: "reverseRegistrar",
527
+ outputs: [{ internalType: "address", name: "", type: "address" }],
528
+ stateMutability: "view",
529
+ type: "function",
530
+ },
531
+ {
532
+ inputs: [
533
+ { internalType: "bytes32", name: "node", type: "bytes32" },
534
+ { internalType: "uint256", name: "contentType", type: "uint256" },
535
+ { internalType: "bytes", name: "data", type: "bytes" },
536
+ ],
537
+ name: "setABI",
538
+ outputs: [],
539
+ stateMutability: "nonpayable",
540
+ type: "function",
541
+ },
542
+ {
543
+ inputs: [
544
+ { internalType: "bytes32", name: "node", type: "bytes32" },
545
+ { internalType: "uint256", name: "coinType", type: "uint256" },
546
+ { internalType: "bytes", name: "a", type: "bytes" },
547
+ ],
548
+ name: "setAddr",
549
+ outputs: [],
550
+ stateMutability: "nonpayable",
551
+ type: "function",
552
+ },
553
+ {
554
+ inputs: [
555
+ { internalType: "bytes32", name: "node", type: "bytes32" },
556
+ { internalType: "address", name: "a", type: "address" },
557
+ ],
558
+ name: "setAddr",
559
+ outputs: [],
560
+ stateMutability: "nonpayable",
561
+ type: "function",
562
+ },
563
+ {
564
+ inputs: [
565
+ { internalType: "address", name: "operator", type: "address" },
566
+ { internalType: "bool", name: "approved", type: "bool" },
567
+ ],
568
+ name: "setApprovalForAll",
569
+ outputs: [],
570
+ stateMutability: "nonpayable",
571
+ type: "function",
572
+ },
573
+ {
574
+ inputs: [
575
+ { internalType: "bytes32", name: "node", type: "bytes32" },
576
+ { internalType: "bytes", name: "hash", type: "bytes" },
577
+ ],
578
+ name: "setContenthash",
579
+ outputs: [],
580
+ stateMutability: "nonpayable",
581
+ type: "function",
582
+ },
583
+ {
584
+ inputs: [
585
+ { internalType: "bytes32", name: "node", type: "bytes32" },
586
+ { internalType: "bytes", name: "data", type: "bytes" },
587
+ ],
588
+ name: "setDNSRecords",
589
+ outputs: [],
590
+ stateMutability: "nonpayable",
591
+ type: "function",
592
+ },
593
+ {
594
+ inputs: [
595
+ { internalType: "bytes32", name: "node", type: "bytes32" },
596
+ { internalType: "bytes4", name: "interfaceID", type: "bytes4" },
597
+ { internalType: "address", name: "implementer", type: "address" },
598
+ ],
599
+ name: "setInterface",
600
+ outputs: [],
601
+ stateMutability: "nonpayable",
602
+ type: "function",
603
+ },
604
+ {
605
+ inputs: [
606
+ { internalType: "bytes32", name: "node", type: "bytes32" },
607
+ { internalType: "string", name: "newName", type: "string" },
608
+ ],
609
+ name: "setName",
610
+ outputs: [],
611
+ stateMutability: "nonpayable",
612
+ type: "function",
613
+ },
614
+ {
615
+ inputs: [
616
+ { internalType: "bytes32", name: "node", type: "bytes32" },
617
+ { internalType: "bytes32", name: "x", type: "bytes32" },
618
+ { internalType: "bytes32", name: "y", type: "bytes32" },
619
+ ],
620
+ name: "setPubkey",
621
+ outputs: [],
622
+ stateMutability: "nonpayable",
623
+ type: "function",
624
+ },
625
+ {
626
+ inputs: [
627
+ {
628
+ internalType: "address",
629
+ name: "registrarController_",
630
+ type: "address",
631
+ },
632
+ ],
633
+ name: "setRegistrarController",
634
+ outputs: [],
635
+ stateMutability: "nonpayable",
636
+ type: "function",
637
+ },
638
+ {
639
+ inputs: [
640
+ { internalType: "address", name: "reverseRegistrar_", type: "address" },
641
+ ],
642
+ name: "setReverseRegistrar",
643
+ outputs: [],
644
+ stateMutability: "nonpayable",
645
+ type: "function",
646
+ },
647
+ {
648
+ inputs: [
649
+ { internalType: "bytes32", name: "node", type: "bytes32" },
650
+ { internalType: "string", name: "key", type: "string" },
651
+ { internalType: "string", name: "value", type: "string" },
652
+ ],
653
+ name: "setText",
654
+ outputs: [],
655
+ stateMutability: "nonpayable",
656
+ type: "function",
657
+ },
658
+ {
659
+ inputs: [
660
+ { internalType: "bytes32", name: "node", type: "bytes32" },
661
+ { internalType: "bytes", name: "hash", type: "bytes" },
662
+ ],
663
+ name: "setZonehash",
664
+ outputs: [],
665
+ stateMutability: "nonpayable",
666
+ type: "function",
667
+ },
668
+ {
669
+ inputs: [{ internalType: "bytes4", name: "interfaceID", type: "bytes4" }],
670
+ name: "supportsInterface",
671
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
672
+ stateMutability: "view",
673
+ type: "function",
674
+ },
675
+ {
676
+ inputs: [
677
+ { internalType: "bytes32", name: "node", type: "bytes32" },
678
+ { internalType: "string", name: "key", type: "string" },
679
+ ],
680
+ name: "text",
681
+ outputs: [{ internalType: "string", name: "", type: "string" }],
682
+ stateMutability: "view",
683
+ type: "function",
684
+ },
685
+ {
686
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
687
+ name: "transferOwnership",
688
+ outputs: [],
689
+ stateMutability: "payable",
690
+ type: "function",
691
+ },
692
+ {
693
+ inputs: [{ internalType: "bytes32", name: "node", type: "bytes32" }],
694
+ name: "zonehash",
695
+ outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
696
+ stateMutability: "view",
697
+ type: "function",
698
+ },
699
+ ] as const;