@aixyz/erc-8004 0.0.6 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/dist/index.js +0 -4379
package/dist/index.js DELETED
@@ -1,4379 +0,0 @@
1
- // abis/IdentityRegistry_V1.ts
2
- var IdentityRegistryAbi_V1 = [
3
- {
4
- inputs: [],
5
- stateMutability: "nonpayable",
6
- type: "constructor"
7
- },
8
- {
9
- inputs: [
10
- {
11
- internalType: "address",
12
- name: "target",
13
- type: "address"
14
- }
15
- ],
16
- name: "AddressEmptyCode",
17
- type: "error"
18
- },
19
- {
20
- inputs: [],
21
- name: "ECDSAInvalidSignature",
22
- type: "error"
23
- },
24
- {
25
- inputs: [
26
- {
27
- internalType: "uint256",
28
- name: "length",
29
- type: "uint256"
30
- }
31
- ],
32
- name: "ECDSAInvalidSignatureLength",
33
- type: "error"
34
- },
35
- {
36
- inputs: [
37
- {
38
- internalType: "bytes32",
39
- name: "s",
40
- type: "bytes32"
41
- }
42
- ],
43
- name: "ECDSAInvalidSignatureS",
44
- type: "error"
45
- },
46
- {
47
- inputs: [
48
- {
49
- internalType: "address",
50
- name: "implementation",
51
- type: "address"
52
- }
53
- ],
54
- name: "ERC1967InvalidImplementation",
55
- type: "error"
56
- },
57
- {
58
- inputs: [],
59
- name: "ERC1967NonPayable",
60
- type: "error"
61
- },
62
- {
63
- inputs: [
64
- {
65
- internalType: "address",
66
- name: "sender",
67
- type: "address"
68
- },
69
- {
70
- internalType: "uint256",
71
- name: "tokenId",
72
- type: "uint256"
73
- },
74
- {
75
- internalType: "address",
76
- name: "owner",
77
- type: "address"
78
- }
79
- ],
80
- name: "ERC721IncorrectOwner",
81
- type: "error"
82
- },
83
- {
84
- inputs: [
85
- {
86
- internalType: "address",
87
- name: "operator",
88
- type: "address"
89
- },
90
- {
91
- internalType: "uint256",
92
- name: "tokenId",
93
- type: "uint256"
94
- }
95
- ],
96
- name: "ERC721InsufficientApproval",
97
- type: "error"
98
- },
99
- {
100
- inputs: [
101
- {
102
- internalType: "address",
103
- name: "approver",
104
- type: "address"
105
- }
106
- ],
107
- name: "ERC721InvalidApprover",
108
- type: "error"
109
- },
110
- {
111
- inputs: [
112
- {
113
- internalType: "address",
114
- name: "operator",
115
- type: "address"
116
- }
117
- ],
118
- name: "ERC721InvalidOperator",
119
- type: "error"
120
- },
121
- {
122
- inputs: [
123
- {
124
- internalType: "address",
125
- name: "owner",
126
- type: "address"
127
- }
128
- ],
129
- name: "ERC721InvalidOwner",
130
- type: "error"
131
- },
132
- {
133
- inputs: [
134
- {
135
- internalType: "address",
136
- name: "receiver",
137
- type: "address"
138
- }
139
- ],
140
- name: "ERC721InvalidReceiver",
141
- type: "error"
142
- },
143
- {
144
- inputs: [
145
- {
146
- internalType: "address",
147
- name: "sender",
148
- type: "address"
149
- }
150
- ],
151
- name: "ERC721InvalidSender",
152
- type: "error"
153
- },
154
- {
155
- inputs: [
156
- {
157
- internalType: "uint256",
158
- name: "tokenId",
159
- type: "uint256"
160
- }
161
- ],
162
- name: "ERC721NonexistentToken",
163
- type: "error"
164
- },
165
- {
166
- inputs: [],
167
- name: "FailedCall",
168
- type: "error"
169
- },
170
- {
171
- inputs: [],
172
- name: "InvalidInitialization",
173
- type: "error"
174
- },
175
- {
176
- inputs: [],
177
- name: "NotInitializing",
178
- type: "error"
179
- },
180
- {
181
- inputs: [
182
- {
183
- internalType: "address",
184
- name: "owner",
185
- type: "address"
186
- }
187
- ],
188
- name: "OwnableInvalidOwner",
189
- type: "error"
190
- },
191
- {
192
- inputs: [
193
- {
194
- internalType: "address",
195
- name: "account",
196
- type: "address"
197
- }
198
- ],
199
- name: "OwnableUnauthorizedAccount",
200
- type: "error"
201
- },
202
- {
203
- inputs: [],
204
- name: "UUPSUnauthorizedCallContext",
205
- type: "error"
206
- },
207
- {
208
- inputs: [
209
- {
210
- internalType: "bytes32",
211
- name: "slot",
212
- type: "bytes32"
213
- }
214
- ],
215
- name: "UUPSUnsupportedProxiableUUID",
216
- type: "error"
217
- },
218
- {
219
- anonymous: false,
220
- inputs: [
221
- {
222
- indexed: true,
223
- internalType: "address",
224
- name: "owner",
225
- type: "address"
226
- },
227
- {
228
- indexed: true,
229
- internalType: "address",
230
- name: "approved",
231
- type: "address"
232
- },
233
- {
234
- indexed: true,
235
- internalType: "uint256",
236
- name: "tokenId",
237
- type: "uint256"
238
- }
239
- ],
240
- name: "Approval",
241
- type: "event"
242
- },
243
- {
244
- anonymous: false,
245
- inputs: [
246
- {
247
- indexed: true,
248
- internalType: "address",
249
- name: "owner",
250
- type: "address"
251
- },
252
- {
253
- indexed: true,
254
- internalType: "address",
255
- name: "operator",
256
- type: "address"
257
- },
258
- {
259
- indexed: false,
260
- internalType: "bool",
261
- name: "approved",
262
- type: "bool"
263
- }
264
- ],
265
- name: "ApprovalForAll",
266
- type: "event"
267
- },
268
- {
269
- anonymous: false,
270
- inputs: [
271
- {
272
- indexed: false,
273
- internalType: "uint256",
274
- name: "_fromTokenId",
275
- type: "uint256"
276
- },
277
- {
278
- indexed: false,
279
- internalType: "uint256",
280
- name: "_toTokenId",
281
- type: "uint256"
282
- }
283
- ],
284
- name: "BatchMetadataUpdate",
285
- type: "event"
286
- },
287
- {
288
- anonymous: false,
289
- inputs: [],
290
- name: "EIP712DomainChanged",
291
- type: "event"
292
- },
293
- {
294
- anonymous: false,
295
- inputs: [
296
- {
297
- indexed: false,
298
- internalType: "uint64",
299
- name: "version",
300
- type: "uint64"
301
- }
302
- ],
303
- name: "Initialized",
304
- type: "event"
305
- },
306
- {
307
- anonymous: false,
308
- inputs: [
309
- {
310
- indexed: true,
311
- internalType: "uint256",
312
- name: "agentId",
313
- type: "uint256"
314
- },
315
- {
316
- indexed: true,
317
- internalType: "string",
318
- name: "indexedMetadataKey",
319
- type: "string"
320
- },
321
- {
322
- indexed: false,
323
- internalType: "string",
324
- name: "metadataKey",
325
- type: "string"
326
- },
327
- {
328
- indexed: false,
329
- internalType: "bytes",
330
- name: "metadataValue",
331
- type: "bytes"
332
- }
333
- ],
334
- name: "MetadataSet",
335
- type: "event"
336
- },
337
- {
338
- anonymous: false,
339
- inputs: [
340
- {
341
- indexed: false,
342
- internalType: "uint256",
343
- name: "_tokenId",
344
- type: "uint256"
345
- }
346
- ],
347
- name: "MetadataUpdate",
348
- type: "event"
349
- },
350
- {
351
- anonymous: false,
352
- inputs: [
353
- {
354
- indexed: true,
355
- internalType: "address",
356
- name: "previousOwner",
357
- type: "address"
358
- },
359
- {
360
- indexed: true,
361
- internalType: "address",
362
- name: "newOwner",
363
- type: "address"
364
- }
365
- ],
366
- name: "OwnershipTransferred",
367
- type: "event"
368
- },
369
- {
370
- anonymous: false,
371
- inputs: [
372
- {
373
- indexed: true,
374
- internalType: "uint256",
375
- name: "agentId",
376
- type: "uint256"
377
- },
378
- {
379
- indexed: false,
380
- internalType: "string",
381
- name: "agentURI",
382
- type: "string"
383
- },
384
- {
385
- indexed: true,
386
- internalType: "address",
387
- name: "owner",
388
- type: "address"
389
- }
390
- ],
391
- name: "Registered",
392
- type: "event"
393
- },
394
- {
395
- anonymous: false,
396
- inputs: [
397
- {
398
- indexed: true,
399
- internalType: "address",
400
- name: "from",
401
- type: "address"
402
- },
403
- {
404
- indexed: true,
405
- internalType: "address",
406
- name: "to",
407
- type: "address"
408
- },
409
- {
410
- indexed: true,
411
- internalType: "uint256",
412
- name: "tokenId",
413
- type: "uint256"
414
- }
415
- ],
416
- name: "Transfer",
417
- type: "event"
418
- },
419
- {
420
- anonymous: false,
421
- inputs: [
422
- {
423
- indexed: true,
424
- internalType: "uint256",
425
- name: "agentId",
426
- type: "uint256"
427
- },
428
- {
429
- indexed: false,
430
- internalType: "string",
431
- name: "newURI",
432
- type: "string"
433
- },
434
- {
435
- indexed: true,
436
- internalType: "address",
437
- name: "updatedBy",
438
- type: "address"
439
- }
440
- ],
441
- name: "URIUpdated",
442
- type: "event"
443
- },
444
- {
445
- anonymous: false,
446
- inputs: [
447
- {
448
- indexed: true,
449
- internalType: "address",
450
- name: "implementation",
451
- type: "address"
452
- }
453
- ],
454
- name: "Upgraded",
455
- type: "event"
456
- },
457
- {
458
- inputs: [],
459
- name: "UPGRADE_INTERFACE_VERSION",
460
- outputs: [
461
- {
462
- internalType: "string",
463
- name: "",
464
- type: "string"
465
- }
466
- ],
467
- stateMutability: "view",
468
- type: "function"
469
- },
470
- {
471
- inputs: [
472
- {
473
- internalType: "address",
474
- name: "to",
475
- type: "address"
476
- },
477
- {
478
- internalType: "uint256",
479
- name: "tokenId",
480
- type: "uint256"
481
- }
482
- ],
483
- name: "approve",
484
- outputs: [],
485
- stateMutability: "nonpayable",
486
- type: "function"
487
- },
488
- {
489
- inputs: [
490
- {
491
- internalType: "address",
492
- name: "owner",
493
- type: "address"
494
- }
495
- ],
496
- name: "balanceOf",
497
- outputs: [
498
- {
499
- internalType: "uint256",
500
- name: "",
501
- type: "uint256"
502
- }
503
- ],
504
- stateMutability: "view",
505
- type: "function"
506
- },
507
- {
508
- inputs: [],
509
- name: "eip712Domain",
510
- outputs: [
511
- {
512
- internalType: "bytes1",
513
- name: "fields",
514
- type: "bytes1"
515
- },
516
- {
517
- internalType: "string",
518
- name: "name",
519
- type: "string"
520
- },
521
- {
522
- internalType: "string",
523
- name: "version",
524
- type: "string"
525
- },
526
- {
527
- internalType: "uint256",
528
- name: "chainId",
529
- type: "uint256"
530
- },
531
- {
532
- internalType: "address",
533
- name: "verifyingContract",
534
- type: "address"
535
- },
536
- {
537
- internalType: "bytes32",
538
- name: "salt",
539
- type: "bytes32"
540
- },
541
- {
542
- internalType: "uint256[]",
543
- name: "extensions",
544
- type: "uint256[]"
545
- }
546
- ],
547
- stateMutability: "view",
548
- type: "function"
549
- },
550
- {
551
- inputs: [
552
- {
553
- internalType: "uint256",
554
- name: "agentId",
555
- type: "uint256"
556
- }
557
- ],
558
- name: "getAgentWallet",
559
- outputs: [
560
- {
561
- internalType: "bytes",
562
- name: "",
563
- type: "bytes"
564
- }
565
- ],
566
- stateMutability: "view",
567
- type: "function"
568
- },
569
- {
570
- inputs: [
571
- {
572
- internalType: "uint256",
573
- name: "tokenId",
574
- type: "uint256"
575
- }
576
- ],
577
- name: "getApproved",
578
- outputs: [
579
- {
580
- internalType: "address",
581
- name: "",
582
- type: "address"
583
- }
584
- ],
585
- stateMutability: "view",
586
- type: "function"
587
- },
588
- {
589
- inputs: [
590
- {
591
- internalType: "uint256",
592
- name: "agentId",
593
- type: "uint256"
594
- },
595
- {
596
- internalType: "string",
597
- name: "metadataKey",
598
- type: "string"
599
- }
600
- ],
601
- name: "getMetadata",
602
- outputs: [
603
- {
604
- internalType: "bytes",
605
- name: "",
606
- type: "bytes"
607
- }
608
- ],
609
- stateMutability: "view",
610
- type: "function"
611
- },
612
- {
613
- inputs: [],
614
- name: "getVersion",
615
- outputs: [
616
- {
617
- internalType: "string",
618
- name: "",
619
- type: "string"
620
- }
621
- ],
622
- stateMutability: "pure",
623
- type: "function"
624
- },
625
- {
626
- inputs: [],
627
- name: "initialize",
628
- outputs: [],
629
- stateMutability: "nonpayable",
630
- type: "function"
631
- },
632
- {
633
- inputs: [
634
- {
635
- internalType: "address",
636
- name: "owner",
637
- type: "address"
638
- },
639
- {
640
- internalType: "address",
641
- name: "operator",
642
- type: "address"
643
- }
644
- ],
645
- name: "isApprovedForAll",
646
- outputs: [
647
- {
648
- internalType: "bool",
649
- name: "",
650
- type: "bool"
651
- }
652
- ],
653
- stateMutability: "view",
654
- type: "function"
655
- },
656
- {
657
- inputs: [],
658
- name: "name",
659
- outputs: [
660
- {
661
- internalType: "string",
662
- name: "",
663
- type: "string"
664
- }
665
- ],
666
- stateMutability: "view",
667
- type: "function"
668
- },
669
- {
670
- inputs: [],
671
- name: "owner",
672
- outputs: [
673
- {
674
- internalType: "address",
675
- name: "",
676
- type: "address"
677
- }
678
- ],
679
- stateMutability: "view",
680
- type: "function"
681
- },
682
- {
683
- inputs: [
684
- {
685
- internalType: "uint256",
686
- name: "tokenId",
687
- type: "uint256"
688
- }
689
- ],
690
- name: "ownerOf",
691
- outputs: [
692
- {
693
- internalType: "address",
694
- name: "",
695
- type: "address"
696
- }
697
- ],
698
- stateMutability: "view",
699
- type: "function"
700
- },
701
- {
702
- inputs: [],
703
- name: "proxiableUUID",
704
- outputs: [
705
- {
706
- internalType: "bytes32",
707
- name: "",
708
- type: "bytes32"
709
- }
710
- ],
711
- stateMutability: "view",
712
- type: "function"
713
- },
714
- {
715
- inputs: [],
716
- name: "register",
717
- outputs: [
718
- {
719
- internalType: "uint256",
720
- name: "agentId",
721
- type: "uint256"
722
- }
723
- ],
724
- stateMutability: "nonpayable",
725
- type: "function"
726
- },
727
- {
728
- inputs: [
729
- {
730
- internalType: "string",
731
- name: "agentURI",
732
- type: "string"
733
- },
734
- {
735
- components: [
736
- {
737
- internalType: "string",
738
- name: "metadataKey",
739
- type: "string"
740
- },
741
- {
742
- internalType: "bytes",
743
- name: "metadataValue",
744
- type: "bytes"
745
- }
746
- ],
747
- internalType: "struct IdentityRegistryUpgradeable.MetadataEntry[]",
748
- name: "metadata",
749
- type: "tuple[]"
750
- }
751
- ],
752
- name: "register",
753
- outputs: [
754
- {
755
- internalType: "uint256",
756
- name: "agentId",
757
- type: "uint256"
758
- }
759
- ],
760
- stateMutability: "nonpayable",
761
- type: "function"
762
- },
763
- {
764
- inputs: [
765
- {
766
- internalType: "string",
767
- name: "agentURI",
768
- type: "string"
769
- }
770
- ],
771
- name: "register",
772
- outputs: [
773
- {
774
- internalType: "uint256",
775
- name: "agentId",
776
- type: "uint256"
777
- }
778
- ],
779
- stateMutability: "nonpayable",
780
- type: "function"
781
- },
782
- {
783
- inputs: [],
784
- name: "renounceOwnership",
785
- outputs: [],
786
- stateMutability: "nonpayable",
787
- type: "function"
788
- },
789
- {
790
- inputs: [
791
- {
792
- internalType: "address",
793
- name: "from",
794
- type: "address"
795
- },
796
- {
797
- internalType: "address",
798
- name: "to",
799
- type: "address"
800
- },
801
- {
802
- internalType: "uint256",
803
- name: "tokenId",
804
- type: "uint256"
805
- }
806
- ],
807
- name: "safeTransferFrom",
808
- outputs: [],
809
- stateMutability: "nonpayable",
810
- type: "function"
811
- },
812
- {
813
- inputs: [
814
- {
815
- internalType: "address",
816
- name: "from",
817
- type: "address"
818
- },
819
- {
820
- internalType: "address",
821
- name: "to",
822
- type: "address"
823
- },
824
- {
825
- internalType: "uint256",
826
- name: "tokenId",
827
- type: "uint256"
828
- },
829
- {
830
- internalType: "bytes",
831
- name: "data",
832
- type: "bytes"
833
- }
834
- ],
835
- name: "safeTransferFrom",
836
- outputs: [],
837
- stateMutability: "nonpayable",
838
- type: "function"
839
- },
840
- {
841
- inputs: [
842
- {
843
- internalType: "uint256",
844
- name: "agentId",
845
- type: "uint256"
846
- },
847
- {
848
- internalType: "string",
849
- name: "newURI",
850
- type: "string"
851
- }
852
- ],
853
- name: "setAgentURI",
854
- outputs: [],
855
- stateMutability: "nonpayable",
856
- type: "function"
857
- },
858
- {
859
- inputs: [
860
- {
861
- internalType: "uint256",
862
- name: "agentId",
863
- type: "uint256"
864
- },
865
- {
866
- internalType: "address",
867
- name: "newWallet",
868
- type: "address"
869
- },
870
- {
871
- internalType: "uint256",
872
- name: "deadline",
873
- type: "uint256"
874
- },
875
- {
876
- internalType: "bytes",
877
- name: "signature",
878
- type: "bytes"
879
- }
880
- ],
881
- name: "setAgentWallet",
882
- outputs: [],
883
- stateMutability: "nonpayable",
884
- type: "function"
885
- },
886
- {
887
- inputs: [
888
- {
889
- internalType: "address",
890
- name: "operator",
891
- type: "address"
892
- },
893
- {
894
- internalType: "bool",
895
- name: "approved",
896
- type: "bool"
897
- }
898
- ],
899
- name: "setApprovalForAll",
900
- outputs: [],
901
- stateMutability: "nonpayable",
902
- type: "function"
903
- },
904
- {
905
- inputs: [
906
- {
907
- internalType: "uint256",
908
- name: "agentId",
909
- type: "uint256"
910
- },
911
- {
912
- internalType: "string",
913
- name: "metadataKey",
914
- type: "string"
915
- },
916
- {
917
- internalType: "bytes",
918
- name: "metadataValue",
919
- type: "bytes"
920
- }
921
- ],
922
- name: "setMetadata",
923
- outputs: [],
924
- stateMutability: "nonpayable",
925
- type: "function"
926
- },
927
- {
928
- inputs: [
929
- {
930
- internalType: "bytes4",
931
- name: "interfaceId",
932
- type: "bytes4"
933
- }
934
- ],
935
- name: "supportsInterface",
936
- outputs: [
937
- {
938
- internalType: "bool",
939
- name: "",
940
- type: "bool"
941
- }
942
- ],
943
- stateMutability: "view",
944
- type: "function"
945
- },
946
- {
947
- inputs: [],
948
- name: "symbol",
949
- outputs: [
950
- {
951
- internalType: "string",
952
- name: "",
953
- type: "string"
954
- }
955
- ],
956
- stateMutability: "view",
957
- type: "function"
958
- },
959
- {
960
- inputs: [
961
- {
962
- internalType: "uint256",
963
- name: "tokenId",
964
- type: "uint256"
965
- }
966
- ],
967
- name: "tokenURI",
968
- outputs: [
969
- {
970
- internalType: "string",
971
- name: "",
972
- type: "string"
973
- }
974
- ],
975
- stateMutability: "view",
976
- type: "function"
977
- },
978
- {
979
- inputs: [
980
- {
981
- internalType: "address",
982
- name: "from",
983
- type: "address"
984
- },
985
- {
986
- internalType: "address",
987
- name: "to",
988
- type: "address"
989
- },
990
- {
991
- internalType: "uint256",
992
- name: "tokenId",
993
- type: "uint256"
994
- }
995
- ],
996
- name: "transferFrom",
997
- outputs: [],
998
- stateMutability: "nonpayable",
999
- type: "function"
1000
- },
1001
- {
1002
- inputs: [
1003
- {
1004
- internalType: "address",
1005
- name: "newOwner",
1006
- type: "address"
1007
- }
1008
- ],
1009
- name: "transferOwnership",
1010
- outputs: [],
1011
- stateMutability: "nonpayable",
1012
- type: "function"
1013
- },
1014
- {
1015
- inputs: [
1016
- {
1017
- internalType: "uint256",
1018
- name: "agentId",
1019
- type: "uint256"
1020
- }
1021
- ],
1022
- name: "unsetAgentWallet",
1023
- outputs: [],
1024
- stateMutability: "nonpayable",
1025
- type: "function"
1026
- },
1027
- {
1028
- inputs: [
1029
- {
1030
- internalType: "address",
1031
- name: "newImplementation",
1032
- type: "address"
1033
- },
1034
- {
1035
- internalType: "bytes",
1036
- name: "data",
1037
- type: "bytes"
1038
- }
1039
- ],
1040
- name: "upgradeToAndCall",
1041
- outputs: [],
1042
- stateMutability: "payable",
1043
- type: "function"
1044
- }
1045
- ];
1046
- // abis/IdentityRegistry_V2.ts
1047
- var IdentityRegistryAbi_V2 = [
1048
- {
1049
- inputs: [],
1050
- stateMutability: "nonpayable",
1051
- type: "constructor"
1052
- },
1053
- {
1054
- inputs: [
1055
- {
1056
- internalType: "address",
1057
- name: "target",
1058
- type: "address"
1059
- }
1060
- ],
1061
- name: "AddressEmptyCode",
1062
- type: "error"
1063
- },
1064
- {
1065
- inputs: [],
1066
- name: "ECDSAInvalidSignature",
1067
- type: "error"
1068
- },
1069
- {
1070
- inputs: [
1071
- {
1072
- internalType: "uint256",
1073
- name: "length",
1074
- type: "uint256"
1075
- }
1076
- ],
1077
- name: "ECDSAInvalidSignatureLength",
1078
- type: "error"
1079
- },
1080
- {
1081
- inputs: [
1082
- {
1083
- internalType: "bytes32",
1084
- name: "s",
1085
- type: "bytes32"
1086
- }
1087
- ],
1088
- name: "ECDSAInvalidSignatureS",
1089
- type: "error"
1090
- },
1091
- {
1092
- inputs: [
1093
- {
1094
- internalType: "address",
1095
- name: "implementation",
1096
- type: "address"
1097
- }
1098
- ],
1099
- name: "ERC1967InvalidImplementation",
1100
- type: "error"
1101
- },
1102
- {
1103
- inputs: [],
1104
- name: "ERC1967NonPayable",
1105
- type: "error"
1106
- },
1107
- {
1108
- inputs: [
1109
- {
1110
- internalType: "address",
1111
- name: "sender",
1112
- type: "address"
1113
- },
1114
- {
1115
- internalType: "uint256",
1116
- name: "tokenId",
1117
- type: "uint256"
1118
- },
1119
- {
1120
- internalType: "address",
1121
- name: "owner",
1122
- type: "address"
1123
- }
1124
- ],
1125
- name: "ERC721IncorrectOwner",
1126
- type: "error"
1127
- },
1128
- {
1129
- inputs: [
1130
- {
1131
- internalType: "address",
1132
- name: "operator",
1133
- type: "address"
1134
- },
1135
- {
1136
- internalType: "uint256",
1137
- name: "tokenId",
1138
- type: "uint256"
1139
- }
1140
- ],
1141
- name: "ERC721InsufficientApproval",
1142
- type: "error"
1143
- },
1144
- {
1145
- inputs: [
1146
- {
1147
- internalType: "address",
1148
- name: "approver",
1149
- type: "address"
1150
- }
1151
- ],
1152
- name: "ERC721InvalidApprover",
1153
- type: "error"
1154
- },
1155
- {
1156
- inputs: [
1157
- {
1158
- internalType: "address",
1159
- name: "operator",
1160
- type: "address"
1161
- }
1162
- ],
1163
- name: "ERC721InvalidOperator",
1164
- type: "error"
1165
- },
1166
- {
1167
- inputs: [
1168
- {
1169
- internalType: "address",
1170
- name: "owner",
1171
- type: "address"
1172
- }
1173
- ],
1174
- name: "ERC721InvalidOwner",
1175
- type: "error"
1176
- },
1177
- {
1178
- inputs: [
1179
- {
1180
- internalType: "address",
1181
- name: "receiver",
1182
- type: "address"
1183
- }
1184
- ],
1185
- name: "ERC721InvalidReceiver",
1186
- type: "error"
1187
- },
1188
- {
1189
- inputs: [
1190
- {
1191
- internalType: "address",
1192
- name: "sender",
1193
- type: "address"
1194
- }
1195
- ],
1196
- name: "ERC721InvalidSender",
1197
- type: "error"
1198
- },
1199
- {
1200
- inputs: [
1201
- {
1202
- internalType: "uint256",
1203
- name: "tokenId",
1204
- type: "uint256"
1205
- }
1206
- ],
1207
- name: "ERC721NonexistentToken",
1208
- type: "error"
1209
- },
1210
- {
1211
- inputs: [],
1212
- name: "FailedCall",
1213
- type: "error"
1214
- },
1215
- {
1216
- inputs: [],
1217
- name: "InvalidInitialization",
1218
- type: "error"
1219
- },
1220
- {
1221
- inputs: [],
1222
- name: "NotInitializing",
1223
- type: "error"
1224
- },
1225
- {
1226
- inputs: [
1227
- {
1228
- internalType: "address",
1229
- name: "owner",
1230
- type: "address"
1231
- }
1232
- ],
1233
- name: "OwnableInvalidOwner",
1234
- type: "error"
1235
- },
1236
- {
1237
- inputs: [
1238
- {
1239
- internalType: "address",
1240
- name: "account",
1241
- type: "address"
1242
- }
1243
- ],
1244
- name: "OwnableUnauthorizedAccount",
1245
- type: "error"
1246
- },
1247
- {
1248
- inputs: [],
1249
- name: "UUPSUnauthorizedCallContext",
1250
- type: "error"
1251
- },
1252
- {
1253
- inputs: [
1254
- {
1255
- internalType: "bytes32",
1256
- name: "slot",
1257
- type: "bytes32"
1258
- }
1259
- ],
1260
- name: "UUPSUnsupportedProxiableUUID",
1261
- type: "error"
1262
- },
1263
- {
1264
- anonymous: false,
1265
- inputs: [
1266
- {
1267
- indexed: true,
1268
- internalType: "address",
1269
- name: "owner",
1270
- type: "address"
1271
- },
1272
- {
1273
- indexed: true,
1274
- internalType: "address",
1275
- name: "approved",
1276
- type: "address"
1277
- },
1278
- {
1279
- indexed: true,
1280
- internalType: "uint256",
1281
- name: "tokenId",
1282
- type: "uint256"
1283
- }
1284
- ],
1285
- name: "Approval",
1286
- type: "event"
1287
- },
1288
- {
1289
- anonymous: false,
1290
- inputs: [
1291
- {
1292
- indexed: true,
1293
- internalType: "address",
1294
- name: "owner",
1295
- type: "address"
1296
- },
1297
- {
1298
- indexed: true,
1299
- internalType: "address",
1300
- name: "operator",
1301
- type: "address"
1302
- },
1303
- {
1304
- indexed: false,
1305
- internalType: "bool",
1306
- name: "approved",
1307
- type: "bool"
1308
- }
1309
- ],
1310
- name: "ApprovalForAll",
1311
- type: "event"
1312
- },
1313
- {
1314
- anonymous: false,
1315
- inputs: [
1316
- {
1317
- indexed: false,
1318
- internalType: "uint256",
1319
- name: "_fromTokenId",
1320
- type: "uint256"
1321
- },
1322
- {
1323
- indexed: false,
1324
- internalType: "uint256",
1325
- name: "_toTokenId",
1326
- type: "uint256"
1327
- }
1328
- ],
1329
- name: "BatchMetadataUpdate",
1330
- type: "event"
1331
- },
1332
- {
1333
- anonymous: false,
1334
- inputs: [],
1335
- name: "EIP712DomainChanged",
1336
- type: "event"
1337
- },
1338
- {
1339
- anonymous: false,
1340
- inputs: [
1341
- {
1342
- indexed: false,
1343
- internalType: "uint64",
1344
- name: "version",
1345
- type: "uint64"
1346
- }
1347
- ],
1348
- name: "Initialized",
1349
- type: "event"
1350
- },
1351
- {
1352
- anonymous: false,
1353
- inputs: [
1354
- {
1355
- indexed: true,
1356
- internalType: "uint256",
1357
- name: "agentId",
1358
- type: "uint256"
1359
- },
1360
- {
1361
- indexed: true,
1362
- internalType: "string",
1363
- name: "indexedMetadataKey",
1364
- type: "string"
1365
- },
1366
- {
1367
- indexed: false,
1368
- internalType: "string",
1369
- name: "metadataKey",
1370
- type: "string"
1371
- },
1372
- {
1373
- indexed: false,
1374
- internalType: "bytes",
1375
- name: "metadataValue",
1376
- type: "bytes"
1377
- }
1378
- ],
1379
- name: "MetadataSet",
1380
- type: "event"
1381
- },
1382
- {
1383
- anonymous: false,
1384
- inputs: [
1385
- {
1386
- indexed: false,
1387
- internalType: "uint256",
1388
- name: "_tokenId",
1389
- type: "uint256"
1390
- }
1391
- ],
1392
- name: "MetadataUpdate",
1393
- type: "event"
1394
- },
1395
- {
1396
- anonymous: false,
1397
- inputs: [
1398
- {
1399
- indexed: true,
1400
- internalType: "address",
1401
- name: "previousOwner",
1402
- type: "address"
1403
- },
1404
- {
1405
- indexed: true,
1406
- internalType: "address",
1407
- name: "newOwner",
1408
- type: "address"
1409
- }
1410
- ],
1411
- name: "OwnershipTransferred",
1412
- type: "event"
1413
- },
1414
- {
1415
- anonymous: false,
1416
- inputs: [
1417
- {
1418
- indexed: true,
1419
- internalType: "uint256",
1420
- name: "agentId",
1421
- type: "uint256"
1422
- },
1423
- {
1424
- indexed: false,
1425
- internalType: "string",
1426
- name: "agentURI",
1427
- type: "string"
1428
- },
1429
- {
1430
- indexed: true,
1431
- internalType: "address",
1432
- name: "owner",
1433
- type: "address"
1434
- }
1435
- ],
1436
- name: "Registered",
1437
- type: "event"
1438
- },
1439
- {
1440
- anonymous: false,
1441
- inputs: [
1442
- {
1443
- indexed: true,
1444
- internalType: "address",
1445
- name: "from",
1446
- type: "address"
1447
- },
1448
- {
1449
- indexed: true,
1450
- internalType: "address",
1451
- name: "to",
1452
- type: "address"
1453
- },
1454
- {
1455
- indexed: true,
1456
- internalType: "uint256",
1457
- name: "tokenId",
1458
- type: "uint256"
1459
- }
1460
- ],
1461
- name: "Transfer",
1462
- type: "event"
1463
- },
1464
- {
1465
- anonymous: false,
1466
- inputs: [
1467
- {
1468
- indexed: true,
1469
- internalType: "uint256",
1470
- name: "agentId",
1471
- type: "uint256"
1472
- },
1473
- {
1474
- indexed: false,
1475
- internalType: "string",
1476
- name: "newURI",
1477
- type: "string"
1478
- },
1479
- {
1480
- indexed: true,
1481
- internalType: "address",
1482
- name: "updatedBy",
1483
- type: "address"
1484
- }
1485
- ],
1486
- name: "URIUpdated",
1487
- type: "event"
1488
- },
1489
- {
1490
- anonymous: false,
1491
- inputs: [
1492
- {
1493
- indexed: true,
1494
- internalType: "address",
1495
- name: "implementation",
1496
- type: "address"
1497
- }
1498
- ],
1499
- name: "Upgraded",
1500
- type: "event"
1501
- },
1502
- {
1503
- inputs: [],
1504
- name: "UPGRADE_INTERFACE_VERSION",
1505
- outputs: [
1506
- {
1507
- internalType: "string",
1508
- name: "",
1509
- type: "string"
1510
- }
1511
- ],
1512
- stateMutability: "view",
1513
- type: "function"
1514
- },
1515
- {
1516
- inputs: [
1517
- {
1518
- internalType: "address",
1519
- name: "to",
1520
- type: "address"
1521
- },
1522
- {
1523
- internalType: "uint256",
1524
- name: "tokenId",
1525
- type: "uint256"
1526
- }
1527
- ],
1528
- name: "approve",
1529
- outputs: [],
1530
- stateMutability: "nonpayable",
1531
- type: "function"
1532
- },
1533
- {
1534
- inputs: [
1535
- {
1536
- internalType: "address",
1537
- name: "owner",
1538
- type: "address"
1539
- }
1540
- ],
1541
- name: "balanceOf",
1542
- outputs: [
1543
- {
1544
- internalType: "uint256",
1545
- name: "",
1546
- type: "uint256"
1547
- }
1548
- ],
1549
- stateMutability: "view",
1550
- type: "function"
1551
- },
1552
- {
1553
- inputs: [],
1554
- name: "eip712Domain",
1555
- outputs: [
1556
- {
1557
- internalType: "bytes1",
1558
- name: "fields",
1559
- type: "bytes1"
1560
- },
1561
- {
1562
- internalType: "string",
1563
- name: "name",
1564
- type: "string"
1565
- },
1566
- {
1567
- internalType: "string",
1568
- name: "version",
1569
- type: "string"
1570
- },
1571
- {
1572
- internalType: "uint256",
1573
- name: "chainId",
1574
- type: "uint256"
1575
- },
1576
- {
1577
- internalType: "address",
1578
- name: "verifyingContract",
1579
- type: "address"
1580
- },
1581
- {
1582
- internalType: "bytes32",
1583
- name: "salt",
1584
- type: "bytes32"
1585
- },
1586
- {
1587
- internalType: "uint256[]",
1588
- name: "extensions",
1589
- type: "uint256[]"
1590
- }
1591
- ],
1592
- stateMutability: "view",
1593
- type: "function"
1594
- },
1595
- {
1596
- inputs: [
1597
- {
1598
- internalType: "uint256",
1599
- name: "agentId",
1600
- type: "uint256"
1601
- }
1602
- ],
1603
- name: "getAgentWallet",
1604
- outputs: [
1605
- {
1606
- internalType: "address",
1607
- name: "",
1608
- type: "address"
1609
- }
1610
- ],
1611
- stateMutability: "view",
1612
- type: "function"
1613
- },
1614
- {
1615
- inputs: [
1616
- {
1617
- internalType: "uint256",
1618
- name: "tokenId",
1619
- type: "uint256"
1620
- }
1621
- ],
1622
- name: "getApproved",
1623
- outputs: [
1624
- {
1625
- internalType: "address",
1626
- name: "",
1627
- type: "address"
1628
- }
1629
- ],
1630
- stateMutability: "view",
1631
- type: "function"
1632
- },
1633
- {
1634
- inputs: [
1635
- {
1636
- internalType: "uint256",
1637
- name: "agentId",
1638
- type: "uint256"
1639
- },
1640
- {
1641
- internalType: "string",
1642
- name: "metadataKey",
1643
- type: "string"
1644
- }
1645
- ],
1646
- name: "getMetadata",
1647
- outputs: [
1648
- {
1649
- internalType: "bytes",
1650
- name: "",
1651
- type: "bytes"
1652
- }
1653
- ],
1654
- stateMutability: "view",
1655
- type: "function"
1656
- },
1657
- {
1658
- inputs: [],
1659
- name: "getVersion",
1660
- outputs: [
1661
- {
1662
- internalType: "string",
1663
- name: "",
1664
- type: "string"
1665
- }
1666
- ],
1667
- stateMutability: "pure",
1668
- type: "function"
1669
- },
1670
- {
1671
- inputs: [],
1672
- name: "initialize",
1673
- outputs: [],
1674
- stateMutability: "nonpayable",
1675
- type: "function"
1676
- },
1677
- {
1678
- inputs: [
1679
- {
1680
- internalType: "address",
1681
- name: "owner",
1682
- type: "address"
1683
- },
1684
- {
1685
- internalType: "address",
1686
- name: "operator",
1687
- type: "address"
1688
- }
1689
- ],
1690
- name: "isApprovedForAll",
1691
- outputs: [
1692
- {
1693
- internalType: "bool",
1694
- name: "",
1695
- type: "bool"
1696
- }
1697
- ],
1698
- stateMutability: "view",
1699
- type: "function"
1700
- },
1701
- {
1702
- inputs: [],
1703
- name: "name",
1704
- outputs: [
1705
- {
1706
- internalType: "string",
1707
- name: "",
1708
- type: "string"
1709
- }
1710
- ],
1711
- stateMutability: "view",
1712
- type: "function"
1713
- },
1714
- {
1715
- inputs: [],
1716
- name: "owner",
1717
- outputs: [
1718
- {
1719
- internalType: "address",
1720
- name: "",
1721
- type: "address"
1722
- }
1723
- ],
1724
- stateMutability: "view",
1725
- type: "function"
1726
- },
1727
- {
1728
- inputs: [
1729
- {
1730
- internalType: "uint256",
1731
- name: "tokenId",
1732
- type: "uint256"
1733
- }
1734
- ],
1735
- name: "ownerOf",
1736
- outputs: [
1737
- {
1738
- internalType: "address",
1739
- name: "",
1740
- type: "address"
1741
- }
1742
- ],
1743
- stateMutability: "view",
1744
- type: "function"
1745
- },
1746
- {
1747
- inputs: [],
1748
- name: "proxiableUUID",
1749
- outputs: [
1750
- {
1751
- internalType: "bytes32",
1752
- name: "",
1753
- type: "bytes32"
1754
- }
1755
- ],
1756
- stateMutability: "view",
1757
- type: "function"
1758
- },
1759
- {
1760
- inputs: [],
1761
- name: "register",
1762
- outputs: [
1763
- {
1764
- internalType: "uint256",
1765
- name: "agentId",
1766
- type: "uint256"
1767
- }
1768
- ],
1769
- stateMutability: "nonpayable",
1770
- type: "function"
1771
- },
1772
- {
1773
- inputs: [
1774
- {
1775
- internalType: "string",
1776
- name: "agentURI",
1777
- type: "string"
1778
- },
1779
- {
1780
- components: [
1781
- {
1782
- internalType: "string",
1783
- name: "metadataKey",
1784
- type: "string"
1785
- },
1786
- {
1787
- internalType: "bytes",
1788
- name: "metadataValue",
1789
- type: "bytes"
1790
- }
1791
- ],
1792
- internalType: "struct IdentityRegistryUpgradeable.MetadataEntry[]",
1793
- name: "metadata",
1794
- type: "tuple[]"
1795
- }
1796
- ],
1797
- name: "register",
1798
- outputs: [
1799
- {
1800
- internalType: "uint256",
1801
- name: "agentId",
1802
- type: "uint256"
1803
- }
1804
- ],
1805
- stateMutability: "nonpayable",
1806
- type: "function"
1807
- },
1808
- {
1809
- inputs: [
1810
- {
1811
- internalType: "string",
1812
- name: "agentURI",
1813
- type: "string"
1814
- }
1815
- ],
1816
- name: "register",
1817
- outputs: [
1818
- {
1819
- internalType: "uint256",
1820
- name: "agentId",
1821
- type: "uint256"
1822
- }
1823
- ],
1824
- stateMutability: "nonpayable",
1825
- type: "function"
1826
- },
1827
- {
1828
- inputs: [],
1829
- name: "renounceOwnership",
1830
- outputs: [],
1831
- stateMutability: "nonpayable",
1832
- type: "function"
1833
- },
1834
- {
1835
- inputs: [
1836
- {
1837
- internalType: "address",
1838
- name: "from",
1839
- type: "address"
1840
- },
1841
- {
1842
- internalType: "address",
1843
- name: "to",
1844
- type: "address"
1845
- },
1846
- {
1847
- internalType: "uint256",
1848
- name: "tokenId",
1849
- type: "uint256"
1850
- }
1851
- ],
1852
- name: "safeTransferFrom",
1853
- outputs: [],
1854
- stateMutability: "nonpayable",
1855
- type: "function"
1856
- },
1857
- {
1858
- inputs: [
1859
- {
1860
- internalType: "address",
1861
- name: "from",
1862
- type: "address"
1863
- },
1864
- {
1865
- internalType: "address",
1866
- name: "to",
1867
- type: "address"
1868
- },
1869
- {
1870
- internalType: "uint256",
1871
- name: "tokenId",
1872
- type: "uint256"
1873
- },
1874
- {
1875
- internalType: "bytes",
1876
- name: "data",
1877
- type: "bytes"
1878
- }
1879
- ],
1880
- name: "safeTransferFrom",
1881
- outputs: [],
1882
- stateMutability: "nonpayable",
1883
- type: "function"
1884
- },
1885
- {
1886
- inputs: [
1887
- {
1888
- internalType: "uint256",
1889
- name: "agentId",
1890
- type: "uint256"
1891
- },
1892
- {
1893
- internalType: "string",
1894
- name: "newURI",
1895
- type: "string"
1896
- }
1897
- ],
1898
- name: "setAgentURI",
1899
- outputs: [],
1900
- stateMutability: "nonpayable",
1901
- type: "function"
1902
- },
1903
- {
1904
- inputs: [
1905
- {
1906
- internalType: "uint256",
1907
- name: "agentId",
1908
- type: "uint256"
1909
- },
1910
- {
1911
- internalType: "address",
1912
- name: "newWallet",
1913
- type: "address"
1914
- },
1915
- {
1916
- internalType: "uint256",
1917
- name: "deadline",
1918
- type: "uint256"
1919
- },
1920
- {
1921
- internalType: "bytes",
1922
- name: "signature",
1923
- type: "bytes"
1924
- }
1925
- ],
1926
- name: "setAgentWallet",
1927
- outputs: [],
1928
- stateMutability: "nonpayable",
1929
- type: "function"
1930
- },
1931
- {
1932
- inputs: [
1933
- {
1934
- internalType: "address",
1935
- name: "operator",
1936
- type: "address"
1937
- },
1938
- {
1939
- internalType: "bool",
1940
- name: "approved",
1941
- type: "bool"
1942
- }
1943
- ],
1944
- name: "setApprovalForAll",
1945
- outputs: [],
1946
- stateMutability: "nonpayable",
1947
- type: "function"
1948
- },
1949
- {
1950
- inputs: [
1951
- {
1952
- internalType: "uint256",
1953
- name: "agentId",
1954
- type: "uint256"
1955
- },
1956
- {
1957
- internalType: "string",
1958
- name: "metadataKey",
1959
- type: "string"
1960
- },
1961
- {
1962
- internalType: "bytes",
1963
- name: "metadataValue",
1964
- type: "bytes"
1965
- }
1966
- ],
1967
- name: "setMetadata",
1968
- outputs: [],
1969
- stateMutability: "nonpayable",
1970
- type: "function"
1971
- },
1972
- {
1973
- inputs: [
1974
- {
1975
- internalType: "bytes4",
1976
- name: "interfaceId",
1977
- type: "bytes4"
1978
- }
1979
- ],
1980
- name: "supportsInterface",
1981
- outputs: [
1982
- {
1983
- internalType: "bool",
1984
- name: "",
1985
- type: "bool"
1986
- }
1987
- ],
1988
- stateMutability: "view",
1989
- type: "function"
1990
- },
1991
- {
1992
- inputs: [],
1993
- name: "symbol",
1994
- outputs: [
1995
- {
1996
- internalType: "string",
1997
- name: "",
1998
- type: "string"
1999
- }
2000
- ],
2001
- stateMutability: "view",
2002
- type: "function"
2003
- },
2004
- {
2005
- inputs: [
2006
- {
2007
- internalType: "uint256",
2008
- name: "tokenId",
2009
- type: "uint256"
2010
- }
2011
- ],
2012
- name: "tokenURI",
2013
- outputs: [
2014
- {
2015
- internalType: "string",
2016
- name: "",
2017
- type: "string"
2018
- }
2019
- ],
2020
- stateMutability: "view",
2021
- type: "function"
2022
- },
2023
- {
2024
- inputs: [
2025
- {
2026
- internalType: "address",
2027
- name: "from",
2028
- type: "address"
2029
- },
2030
- {
2031
- internalType: "address",
2032
- name: "to",
2033
- type: "address"
2034
- },
2035
- {
2036
- internalType: "uint256",
2037
- name: "tokenId",
2038
- type: "uint256"
2039
- }
2040
- ],
2041
- name: "transferFrom",
2042
- outputs: [],
2043
- stateMutability: "nonpayable",
2044
- type: "function"
2045
- },
2046
- {
2047
- inputs: [
2048
- {
2049
- internalType: "address",
2050
- name: "newOwner",
2051
- type: "address"
2052
- }
2053
- ],
2054
- name: "transferOwnership",
2055
- outputs: [],
2056
- stateMutability: "nonpayable",
2057
- type: "function"
2058
- },
2059
- {
2060
- inputs: [
2061
- {
2062
- internalType: "uint256",
2063
- name: "agentId",
2064
- type: "uint256"
2065
- }
2066
- ],
2067
- name: "unsetAgentWallet",
2068
- outputs: [],
2069
- stateMutability: "nonpayable",
2070
- type: "function"
2071
- },
2072
- {
2073
- inputs: [
2074
- {
2075
- internalType: "address",
2076
- name: "newImplementation",
2077
- type: "address"
2078
- },
2079
- {
2080
- internalType: "bytes",
2081
- name: "data",
2082
- type: "bytes"
2083
- }
2084
- ],
2085
- name: "upgradeToAndCall",
2086
- outputs: [],
2087
- stateMutability: "payable",
2088
- type: "function"
2089
- }
2090
- ];
2091
- // abis/ReputationRegistry_V1.ts
2092
- var ReputationRegistryAbi_V1 = [
2093
- {
2094
- inputs: [],
2095
- stateMutability: "nonpayable",
2096
- type: "constructor"
2097
- },
2098
- {
2099
- inputs: [
2100
- {
2101
- internalType: "address",
2102
- name: "target",
2103
- type: "address"
2104
- }
2105
- ],
2106
- name: "AddressEmptyCode",
2107
- type: "error"
2108
- },
2109
- {
2110
- inputs: [
2111
- {
2112
- internalType: "address",
2113
- name: "implementation",
2114
- type: "address"
2115
- }
2116
- ],
2117
- name: "ERC1967InvalidImplementation",
2118
- type: "error"
2119
- },
2120
- {
2121
- inputs: [],
2122
- name: "ERC1967NonPayable",
2123
- type: "error"
2124
- },
2125
- {
2126
- inputs: [],
2127
- name: "FailedCall",
2128
- type: "error"
2129
- },
2130
- {
2131
- inputs: [],
2132
- name: "InvalidInitialization",
2133
- type: "error"
2134
- },
2135
- {
2136
- inputs: [],
2137
- name: "NotInitializing",
2138
- type: "error"
2139
- },
2140
- {
2141
- inputs: [
2142
- {
2143
- internalType: "address",
2144
- name: "owner",
2145
- type: "address"
2146
- }
2147
- ],
2148
- name: "OwnableInvalidOwner",
2149
- type: "error"
2150
- },
2151
- {
2152
- inputs: [
2153
- {
2154
- internalType: "address",
2155
- name: "account",
2156
- type: "address"
2157
- }
2158
- ],
2159
- name: "OwnableUnauthorizedAccount",
2160
- type: "error"
2161
- },
2162
- {
2163
- inputs: [],
2164
- name: "UUPSUnauthorizedCallContext",
2165
- type: "error"
2166
- },
2167
- {
2168
- inputs: [
2169
- {
2170
- internalType: "bytes32",
2171
- name: "slot",
2172
- type: "bytes32"
2173
- }
2174
- ],
2175
- name: "UUPSUnsupportedProxiableUUID",
2176
- type: "error"
2177
- },
2178
- {
2179
- anonymous: false,
2180
- inputs: [
2181
- {
2182
- indexed: true,
2183
- internalType: "uint256",
2184
- name: "agentId",
2185
- type: "uint256"
2186
- },
2187
- {
2188
- indexed: true,
2189
- internalType: "address",
2190
- name: "clientAddress",
2191
- type: "address"
2192
- },
2193
- {
2194
- indexed: true,
2195
- internalType: "uint64",
2196
- name: "feedbackIndex",
2197
- type: "uint64"
2198
- }
2199
- ],
2200
- name: "FeedbackRevoked",
2201
- type: "event"
2202
- },
2203
- {
2204
- anonymous: false,
2205
- inputs: [
2206
- {
2207
- indexed: false,
2208
- internalType: "uint64",
2209
- name: "version",
2210
- type: "uint64"
2211
- }
2212
- ],
2213
- name: "Initialized",
2214
- type: "event"
2215
- },
2216
- {
2217
- anonymous: false,
2218
- inputs: [
2219
- {
2220
- indexed: true,
2221
- internalType: "uint256",
2222
- name: "agentId",
2223
- type: "uint256"
2224
- },
2225
- {
2226
- indexed: true,
2227
- internalType: "address",
2228
- name: "clientAddress",
2229
- type: "address"
2230
- },
2231
- {
2232
- indexed: false,
2233
- internalType: "uint64",
2234
- name: "feedbackIndex",
2235
- type: "uint64"
2236
- },
2237
- {
2238
- indexed: false,
2239
- internalType: "uint8",
2240
- name: "score",
2241
- type: "uint8"
2242
- },
2243
- {
2244
- indexed: true,
2245
- internalType: "string",
2246
- name: "indexedTag1",
2247
- type: "string"
2248
- },
2249
- {
2250
- indexed: false,
2251
- internalType: "string",
2252
- name: "tag1",
2253
- type: "string"
2254
- },
2255
- {
2256
- indexed: false,
2257
- internalType: "string",
2258
- name: "tag2",
2259
- type: "string"
2260
- },
2261
- {
2262
- indexed: false,
2263
- internalType: "string",
2264
- name: "endpoint",
2265
- type: "string"
2266
- },
2267
- {
2268
- indexed: false,
2269
- internalType: "string",
2270
- name: "feedbackURI",
2271
- type: "string"
2272
- },
2273
- {
2274
- indexed: false,
2275
- internalType: "bytes32",
2276
- name: "feedbackHash",
2277
- type: "bytes32"
2278
- }
2279
- ],
2280
- name: "NewFeedback",
2281
- type: "event"
2282
- },
2283
- {
2284
- anonymous: false,
2285
- inputs: [
2286
- {
2287
- indexed: true,
2288
- internalType: "address",
2289
- name: "previousOwner",
2290
- type: "address"
2291
- },
2292
- {
2293
- indexed: true,
2294
- internalType: "address",
2295
- name: "newOwner",
2296
- type: "address"
2297
- }
2298
- ],
2299
- name: "OwnershipTransferred",
2300
- type: "event"
2301
- },
2302
- {
2303
- anonymous: false,
2304
- inputs: [
2305
- {
2306
- indexed: true,
2307
- internalType: "uint256",
2308
- name: "agentId",
2309
- type: "uint256"
2310
- },
2311
- {
2312
- indexed: true,
2313
- internalType: "address",
2314
- name: "clientAddress",
2315
- type: "address"
2316
- },
2317
- {
2318
- indexed: false,
2319
- internalType: "uint64",
2320
- name: "feedbackIndex",
2321
- type: "uint64"
2322
- },
2323
- {
2324
- indexed: true,
2325
- internalType: "address",
2326
- name: "responder",
2327
- type: "address"
2328
- },
2329
- {
2330
- indexed: false,
2331
- internalType: "string",
2332
- name: "responseURI",
2333
- type: "string"
2334
- },
2335
- {
2336
- indexed: false,
2337
- internalType: "bytes32",
2338
- name: "responseHash",
2339
- type: "bytes32"
2340
- }
2341
- ],
2342
- name: "ResponseAppended",
2343
- type: "event"
2344
- },
2345
- {
2346
- anonymous: false,
2347
- inputs: [
2348
- {
2349
- indexed: true,
2350
- internalType: "address",
2351
- name: "implementation",
2352
- type: "address"
2353
- }
2354
- ],
2355
- name: "Upgraded",
2356
- type: "event"
2357
- }
2358
- ];
2359
- // abis/ReputationRegistry_V2.ts
2360
- var ReputationRegistryAbi_V2 = [
2361
- {
2362
- inputs: [],
2363
- stateMutability: "nonpayable",
2364
- type: "constructor"
2365
- },
2366
- {
2367
- inputs: [
2368
- {
2369
- internalType: "address",
2370
- name: "target",
2371
- type: "address"
2372
- }
2373
- ],
2374
- name: "AddressEmptyCode",
2375
- type: "error"
2376
- },
2377
- {
2378
- inputs: [
2379
- {
2380
- internalType: "address",
2381
- name: "implementation",
2382
- type: "address"
2383
- }
2384
- ],
2385
- name: "ERC1967InvalidImplementation",
2386
- type: "error"
2387
- },
2388
- {
2389
- inputs: [],
2390
- name: "ERC1967NonPayable",
2391
- type: "error"
2392
- },
2393
- {
2394
- inputs: [],
2395
- name: "FailedCall",
2396
- type: "error"
2397
- },
2398
- {
2399
- inputs: [],
2400
- name: "InvalidInitialization",
2401
- type: "error"
2402
- },
2403
- {
2404
- inputs: [],
2405
- name: "NotInitializing",
2406
- type: "error"
2407
- },
2408
- {
2409
- inputs: [
2410
- {
2411
- internalType: "address",
2412
- name: "owner",
2413
- type: "address"
2414
- }
2415
- ],
2416
- name: "OwnableInvalidOwner",
2417
- type: "error"
2418
- },
2419
- {
2420
- inputs: [
2421
- {
2422
- internalType: "address",
2423
- name: "account",
2424
- type: "address"
2425
- }
2426
- ],
2427
- name: "OwnableUnauthorizedAccount",
2428
- type: "error"
2429
- },
2430
- {
2431
- inputs: [],
2432
- name: "UUPSUnauthorizedCallContext",
2433
- type: "error"
2434
- },
2435
- {
2436
- inputs: [
2437
- {
2438
- internalType: "bytes32",
2439
- name: "slot",
2440
- type: "bytes32"
2441
- }
2442
- ],
2443
- name: "UUPSUnsupportedProxiableUUID",
2444
- type: "error"
2445
- },
2446
- {
2447
- anonymous: false,
2448
- inputs: [
2449
- {
2450
- indexed: true,
2451
- internalType: "uint256",
2452
- name: "agentId",
2453
- type: "uint256"
2454
- },
2455
- {
2456
- indexed: true,
2457
- internalType: "address",
2458
- name: "clientAddress",
2459
- type: "address"
2460
- },
2461
- {
2462
- indexed: true,
2463
- internalType: "uint64",
2464
- name: "feedbackIndex",
2465
- type: "uint64"
2466
- }
2467
- ],
2468
- name: "FeedbackRevoked",
2469
- type: "event"
2470
- },
2471
- {
2472
- anonymous: false,
2473
- inputs: [
2474
- {
2475
- indexed: false,
2476
- internalType: "uint64",
2477
- name: "version",
2478
- type: "uint64"
2479
- }
2480
- ],
2481
- name: "Initialized",
2482
- type: "event"
2483
- },
2484
- {
2485
- anonymous: false,
2486
- inputs: [
2487
- {
2488
- indexed: true,
2489
- internalType: "uint256",
2490
- name: "agentId",
2491
- type: "uint256"
2492
- },
2493
- {
2494
- indexed: true,
2495
- internalType: "address",
2496
- name: "clientAddress",
2497
- type: "address"
2498
- },
2499
- {
2500
- indexed: false,
2501
- internalType: "uint64",
2502
- name: "feedbackIndex",
2503
- type: "uint64"
2504
- },
2505
- {
2506
- indexed: false,
2507
- internalType: "int256",
2508
- name: "value",
2509
- type: "int256"
2510
- },
2511
- {
2512
- indexed: false,
2513
- internalType: "uint8",
2514
- name: "valueDecimals",
2515
- type: "uint8"
2516
- },
2517
- {
2518
- indexed: true,
2519
- internalType: "string",
2520
- name: "indexedTag1",
2521
- type: "string"
2522
- },
2523
- {
2524
- indexed: false,
2525
- internalType: "string",
2526
- name: "tag1",
2527
- type: "string"
2528
- },
2529
- {
2530
- indexed: false,
2531
- internalType: "string",
2532
- name: "tag2",
2533
- type: "string"
2534
- },
2535
- {
2536
- indexed: false,
2537
- internalType: "string",
2538
- name: "endpoint",
2539
- type: "string"
2540
- },
2541
- {
2542
- indexed: false,
2543
- internalType: "string",
2544
- name: "feedbackURI",
2545
- type: "string"
2546
- },
2547
- {
2548
- indexed: false,
2549
- internalType: "bytes32",
2550
- name: "feedbackHash",
2551
- type: "bytes32"
2552
- }
2553
- ],
2554
- name: "NewFeedback",
2555
- type: "event"
2556
- },
2557
- {
2558
- anonymous: false,
2559
- inputs: [
2560
- {
2561
- indexed: true,
2562
- internalType: "address",
2563
- name: "previousOwner",
2564
- type: "address"
2565
- },
2566
- {
2567
- indexed: true,
2568
- internalType: "address",
2569
- name: "newOwner",
2570
- type: "address"
2571
- }
2572
- ],
2573
- name: "OwnershipTransferred",
2574
- type: "event"
2575
- },
2576
- {
2577
- anonymous: false,
2578
- inputs: [
2579
- {
2580
- indexed: true,
2581
- internalType: "uint256",
2582
- name: "agentId",
2583
- type: "uint256"
2584
- },
2585
- {
2586
- indexed: true,
2587
- internalType: "address",
2588
- name: "clientAddress",
2589
- type: "address"
2590
- },
2591
- {
2592
- indexed: false,
2593
- internalType: "uint64",
2594
- name: "feedbackIndex",
2595
- type: "uint64"
2596
- },
2597
- {
2598
- indexed: true,
2599
- internalType: "address",
2600
- name: "responder",
2601
- type: "address"
2602
- },
2603
- {
2604
- indexed: false,
2605
- internalType: "string",
2606
- name: "responseURI",
2607
- type: "string"
2608
- },
2609
- {
2610
- indexed: false,
2611
- internalType: "bytes32",
2612
- name: "responseHash",
2613
- type: "bytes32"
2614
- }
2615
- ],
2616
- name: "ResponseAppended",
2617
- type: "event"
2618
- },
2619
- {
2620
- anonymous: false,
2621
- inputs: [
2622
- {
2623
- indexed: true,
2624
- internalType: "address",
2625
- name: "implementation",
2626
- type: "address"
2627
- }
2628
- ],
2629
- name: "Upgraded",
2630
- type: "event"
2631
- },
2632
- {
2633
- inputs: [],
2634
- name: "UPGRADE_INTERFACE_VERSION",
2635
- outputs: [
2636
- {
2637
- internalType: "string",
2638
- name: "",
2639
- type: "string"
2640
- }
2641
- ],
2642
- stateMutability: "view",
2643
- type: "function"
2644
- },
2645
- {
2646
- inputs: [
2647
- {
2648
- internalType: "uint256",
2649
- name: "agentId",
2650
- type: "uint256"
2651
- },
2652
- {
2653
- internalType: "address",
2654
- name: "clientAddress",
2655
- type: "address"
2656
- },
2657
- {
2658
- internalType: "uint64",
2659
- name: "feedbackIndex",
2660
- type: "uint64"
2661
- },
2662
- {
2663
- internalType: "string",
2664
- name: "responseURI",
2665
- type: "string"
2666
- },
2667
- {
2668
- internalType: "bytes32",
2669
- name: "responseHash",
2670
- type: "bytes32"
2671
- }
2672
- ],
2673
- name: "appendResponse",
2674
- outputs: [],
2675
- stateMutability: "nonpayable",
2676
- type: "function"
2677
- },
2678
- {
2679
- inputs: [
2680
- {
2681
- internalType: "uint256",
2682
- name: "agentId",
2683
- type: "uint256"
2684
- }
2685
- ],
2686
- name: "getClients",
2687
- outputs: [
2688
- {
2689
- internalType: "address[]",
2690
- name: "",
2691
- type: "address[]"
2692
- }
2693
- ],
2694
- stateMutability: "view",
2695
- type: "function"
2696
- },
2697
- {
2698
- inputs: [],
2699
- name: "getIdentityRegistry",
2700
- outputs: [
2701
- {
2702
- internalType: "address",
2703
- name: "",
2704
- type: "address"
2705
- }
2706
- ],
2707
- stateMutability: "view",
2708
- type: "function"
2709
- },
2710
- {
2711
- inputs: [
2712
- {
2713
- internalType: "uint256",
2714
- name: "agentId",
2715
- type: "uint256"
2716
- },
2717
- {
2718
- internalType: "address",
2719
- name: "clientAddress",
2720
- type: "address"
2721
- }
2722
- ],
2723
- name: "getLastIndex",
2724
- outputs: [
2725
- {
2726
- internalType: "uint64",
2727
- name: "",
2728
- type: "uint64"
2729
- }
2730
- ],
2731
- stateMutability: "view",
2732
- type: "function"
2733
- },
2734
- {
2735
- inputs: [
2736
- {
2737
- internalType: "uint256",
2738
- name: "agentId",
2739
- type: "uint256"
2740
- },
2741
- {
2742
- internalType: "address",
2743
- name: "clientAddress",
2744
- type: "address"
2745
- },
2746
- {
2747
- internalType: "uint64",
2748
- name: "feedbackIndex",
2749
- type: "uint64"
2750
- },
2751
- {
2752
- internalType: "address[]",
2753
- name: "responders",
2754
- type: "address[]"
2755
- }
2756
- ],
2757
- name: "getResponseCount",
2758
- outputs: [
2759
- {
2760
- internalType: "uint64",
2761
- name: "count",
2762
- type: "uint64"
2763
- }
2764
- ],
2765
- stateMutability: "view",
2766
- type: "function"
2767
- },
2768
- {
2769
- inputs: [
2770
- {
2771
- internalType: "uint256",
2772
- name: "agentId",
2773
- type: "uint256"
2774
- },
2775
- {
2776
- internalType: "address[]",
2777
- name: "clientAddresses",
2778
- type: "address[]"
2779
- },
2780
- {
2781
- internalType: "string",
2782
- name: "tag1",
2783
- type: "string"
2784
- },
2785
- {
2786
- internalType: "string",
2787
- name: "tag2",
2788
- type: "string"
2789
- }
2790
- ],
2791
- name: "getSummary",
2792
- outputs: [
2793
- {
2794
- internalType: "uint64",
2795
- name: "count",
2796
- type: "uint64"
2797
- },
2798
- {
2799
- internalType: "int256",
2800
- name: "summaryValue",
2801
- type: "int256"
2802
- },
2803
- {
2804
- internalType: "uint8",
2805
- name: "summaryValueDecimals",
2806
- type: "uint8"
2807
- }
2808
- ],
2809
- stateMutability: "view",
2810
- type: "function"
2811
- },
2812
- {
2813
- inputs: [],
2814
- name: "getVersion",
2815
- outputs: [
2816
- {
2817
- internalType: "string",
2818
- name: "",
2819
- type: "string"
2820
- }
2821
- ],
2822
- stateMutability: "pure",
2823
- type: "function"
2824
- },
2825
- {
2826
- inputs: [
2827
- {
2828
- internalType: "uint256",
2829
- name: "agentId",
2830
- type: "uint256"
2831
- },
2832
- {
2833
- internalType: "int256",
2834
- name: "value",
2835
- type: "int256"
2836
- },
2837
- {
2838
- internalType: "uint8",
2839
- name: "valueDecimals",
2840
- type: "uint8"
2841
- },
2842
- {
2843
- internalType: "string",
2844
- name: "tag1",
2845
- type: "string"
2846
- },
2847
- {
2848
- internalType: "string",
2849
- name: "tag2",
2850
- type: "string"
2851
- },
2852
- {
2853
- internalType: "string",
2854
- name: "endpoint",
2855
- type: "string"
2856
- },
2857
- {
2858
- internalType: "string",
2859
- name: "feedbackURI",
2860
- type: "string"
2861
- },
2862
- {
2863
- internalType: "bytes32",
2864
- name: "feedbackHash",
2865
- type: "bytes32"
2866
- }
2867
- ],
2868
- name: "giveFeedback",
2869
- outputs: [],
2870
- stateMutability: "nonpayable",
2871
- type: "function"
2872
- },
2873
- {
2874
- inputs: [
2875
- {
2876
- internalType: "address",
2877
- name: "identityRegistry_",
2878
- type: "address"
2879
- }
2880
- ],
2881
- name: "initialize",
2882
- outputs: [],
2883
- stateMutability: "nonpayable",
2884
- type: "function"
2885
- },
2886
- {
2887
- inputs: [],
2888
- name: "owner",
2889
- outputs: [
2890
- {
2891
- internalType: "address",
2892
- name: "",
2893
- type: "address"
2894
- }
2895
- ],
2896
- stateMutability: "view",
2897
- type: "function"
2898
- },
2899
- {
2900
- inputs: [],
2901
- name: "proxiableUUID",
2902
- outputs: [
2903
- {
2904
- internalType: "bytes32",
2905
- name: "",
2906
- type: "bytes32"
2907
- }
2908
- ],
2909
- stateMutability: "view",
2910
- type: "function"
2911
- },
2912
- {
2913
- inputs: [
2914
- {
2915
- internalType: "uint256",
2916
- name: "agentId",
2917
- type: "uint256"
2918
- },
2919
- {
2920
- internalType: "address[]",
2921
- name: "clientAddresses",
2922
- type: "address[]"
2923
- },
2924
- {
2925
- internalType: "string",
2926
- name: "tag1",
2927
- type: "string"
2928
- },
2929
- {
2930
- internalType: "string",
2931
- name: "tag2",
2932
- type: "string"
2933
- },
2934
- {
2935
- internalType: "bool",
2936
- name: "includeRevoked",
2937
- type: "bool"
2938
- }
2939
- ],
2940
- name: "readAllFeedback",
2941
- outputs: [
2942
- {
2943
- internalType: "address[]",
2944
- name: "clients",
2945
- type: "address[]"
2946
- },
2947
- {
2948
- internalType: "uint64[]",
2949
- name: "feedbackIndexes",
2950
- type: "uint64[]"
2951
- },
2952
- {
2953
- internalType: "int256[]",
2954
- name: "values",
2955
- type: "int256[]"
2956
- },
2957
- {
2958
- internalType: "uint8[]",
2959
- name: "valueDecimals",
2960
- type: "uint8[]"
2961
- },
2962
- {
2963
- internalType: "string[]",
2964
- name: "tag1s",
2965
- type: "string[]"
2966
- },
2967
- {
2968
- internalType: "string[]",
2969
- name: "tag2s",
2970
- type: "string[]"
2971
- },
2972
- {
2973
- internalType: "bool[]",
2974
- name: "revokedStatuses",
2975
- type: "bool[]"
2976
- }
2977
- ],
2978
- stateMutability: "view",
2979
- type: "function"
2980
- },
2981
- {
2982
- inputs: [
2983
- {
2984
- internalType: "uint256",
2985
- name: "agentId",
2986
- type: "uint256"
2987
- },
2988
- {
2989
- internalType: "address",
2990
- name: "clientAddress",
2991
- type: "address"
2992
- },
2993
- {
2994
- internalType: "uint64",
2995
- name: "feedbackIndex",
2996
- type: "uint64"
2997
- }
2998
- ],
2999
- name: "readFeedback",
3000
- outputs: [
3001
- {
3002
- internalType: "int256",
3003
- name: "value",
3004
- type: "int256"
3005
- },
3006
- {
3007
- internalType: "uint8",
3008
- name: "valueDecimals",
3009
- type: "uint8"
3010
- },
3011
- {
3012
- internalType: "string",
3013
- name: "tag1",
3014
- type: "string"
3015
- },
3016
- {
3017
- internalType: "string",
3018
- name: "tag2",
3019
- type: "string"
3020
- },
3021
- {
3022
- internalType: "bool",
3023
- name: "isRevoked",
3024
- type: "bool"
3025
- }
3026
- ],
3027
- stateMutability: "view",
3028
- type: "function"
3029
- },
3030
- {
3031
- inputs: [],
3032
- name: "renounceOwnership",
3033
- outputs: [],
3034
- stateMutability: "nonpayable",
3035
- type: "function"
3036
- },
3037
- {
3038
- inputs: [
3039
- {
3040
- internalType: "uint256",
3041
- name: "agentId",
3042
- type: "uint256"
3043
- },
3044
- {
3045
- internalType: "uint64",
3046
- name: "feedbackIndex",
3047
- type: "uint64"
3048
- }
3049
- ],
3050
- name: "revokeFeedback",
3051
- outputs: [],
3052
- stateMutability: "nonpayable",
3053
- type: "function"
3054
- },
3055
- {
3056
- inputs: [
3057
- {
3058
- internalType: "address",
3059
- name: "newOwner",
3060
- type: "address"
3061
- }
3062
- ],
3063
- name: "transferOwnership",
3064
- outputs: [],
3065
- stateMutability: "nonpayable",
3066
- type: "function"
3067
- },
3068
- {
3069
- inputs: [
3070
- {
3071
- internalType: "address",
3072
- name: "newImplementation",
3073
- type: "address"
3074
- },
3075
- {
3076
- internalType: "bytes",
3077
- name: "data",
3078
- type: "bytes"
3079
- }
3080
- ],
3081
- name: "upgradeToAndCall",
3082
- outputs: [],
3083
- stateMutability: "payable",
3084
- type: "function"
3085
- }
3086
- ];
3087
- // abis/ReputationRegistry_V3.ts
3088
- var ReputationRegistryAbi_V3 = [
3089
- {
3090
- inputs: [],
3091
- stateMutability: "nonpayable",
3092
- type: "constructor"
3093
- },
3094
- {
3095
- inputs: [
3096
- {
3097
- internalType: "address",
3098
- name: "target",
3099
- type: "address"
3100
- }
3101
- ],
3102
- name: "AddressEmptyCode",
3103
- type: "error"
3104
- },
3105
- {
3106
- inputs: [
3107
- {
3108
- internalType: "address",
3109
- name: "implementation",
3110
- type: "address"
3111
- }
3112
- ],
3113
- name: "ERC1967InvalidImplementation",
3114
- type: "error"
3115
- },
3116
- {
3117
- inputs: [],
3118
- name: "ERC1967NonPayable",
3119
- type: "error"
3120
- },
3121
- {
3122
- inputs: [],
3123
- name: "FailedCall",
3124
- type: "error"
3125
- },
3126
- {
3127
- inputs: [],
3128
- name: "InvalidInitialization",
3129
- type: "error"
3130
- },
3131
- {
3132
- inputs: [],
3133
- name: "NotInitializing",
3134
- type: "error"
3135
- },
3136
- {
3137
- inputs: [
3138
- {
3139
- internalType: "address",
3140
- name: "owner",
3141
- type: "address"
3142
- }
3143
- ],
3144
- name: "OwnableInvalidOwner",
3145
- type: "error"
3146
- },
3147
- {
3148
- inputs: [
3149
- {
3150
- internalType: "address",
3151
- name: "account",
3152
- type: "address"
3153
- }
3154
- ],
3155
- name: "OwnableUnauthorizedAccount",
3156
- type: "error"
3157
- },
3158
- {
3159
- inputs: [],
3160
- name: "UUPSUnauthorizedCallContext",
3161
- type: "error"
3162
- },
3163
- {
3164
- inputs: [
3165
- {
3166
- internalType: "bytes32",
3167
- name: "slot",
3168
- type: "bytes32"
3169
- }
3170
- ],
3171
- name: "UUPSUnsupportedProxiableUUID",
3172
- type: "error"
3173
- },
3174
- {
3175
- anonymous: false,
3176
- inputs: [
3177
- {
3178
- indexed: true,
3179
- internalType: "uint256",
3180
- name: "agentId",
3181
- type: "uint256"
3182
- },
3183
- {
3184
- indexed: true,
3185
- internalType: "address",
3186
- name: "clientAddress",
3187
- type: "address"
3188
- },
3189
- {
3190
- indexed: true,
3191
- internalType: "uint64",
3192
- name: "feedbackIndex",
3193
- type: "uint64"
3194
- }
3195
- ],
3196
- name: "FeedbackRevoked",
3197
- type: "event"
3198
- },
3199
- {
3200
- anonymous: false,
3201
- inputs: [
3202
- {
3203
- indexed: false,
3204
- internalType: "uint64",
3205
- name: "version",
3206
- type: "uint64"
3207
- }
3208
- ],
3209
- name: "Initialized",
3210
- type: "event"
3211
- },
3212
- {
3213
- anonymous: false,
3214
- inputs: [
3215
- {
3216
- indexed: true,
3217
- internalType: "uint256",
3218
- name: "agentId",
3219
- type: "uint256"
3220
- },
3221
- {
3222
- indexed: true,
3223
- internalType: "address",
3224
- name: "clientAddress",
3225
- type: "address"
3226
- },
3227
- {
3228
- indexed: false,
3229
- internalType: "uint64",
3230
- name: "feedbackIndex",
3231
- type: "uint64"
3232
- },
3233
- {
3234
- indexed: false,
3235
- internalType: "int128",
3236
- name: "value",
3237
- type: "int128"
3238
- },
3239
- {
3240
- indexed: false,
3241
- internalType: "uint8",
3242
- name: "valueDecimals",
3243
- type: "uint8"
3244
- },
3245
- {
3246
- indexed: true,
3247
- internalType: "string",
3248
- name: "indexedTag1",
3249
- type: "string"
3250
- },
3251
- {
3252
- indexed: false,
3253
- internalType: "string",
3254
- name: "tag1",
3255
- type: "string"
3256
- },
3257
- {
3258
- indexed: false,
3259
- internalType: "string",
3260
- name: "tag2",
3261
- type: "string"
3262
- },
3263
- {
3264
- indexed: false,
3265
- internalType: "string",
3266
- name: "endpoint",
3267
- type: "string"
3268
- },
3269
- {
3270
- indexed: false,
3271
- internalType: "string",
3272
- name: "feedbackURI",
3273
- type: "string"
3274
- },
3275
- {
3276
- indexed: false,
3277
- internalType: "bytes32",
3278
- name: "feedbackHash",
3279
- type: "bytes32"
3280
- }
3281
- ],
3282
- name: "NewFeedback",
3283
- type: "event"
3284
- },
3285
- {
3286
- anonymous: false,
3287
- inputs: [
3288
- {
3289
- indexed: true,
3290
- internalType: "address",
3291
- name: "previousOwner",
3292
- type: "address"
3293
- },
3294
- {
3295
- indexed: true,
3296
- internalType: "address",
3297
- name: "newOwner",
3298
- type: "address"
3299
- }
3300
- ],
3301
- name: "OwnershipTransferred",
3302
- type: "event"
3303
- },
3304
- {
3305
- anonymous: false,
3306
- inputs: [
3307
- {
3308
- indexed: true,
3309
- internalType: "uint256",
3310
- name: "agentId",
3311
- type: "uint256"
3312
- },
3313
- {
3314
- indexed: true,
3315
- internalType: "address",
3316
- name: "clientAddress",
3317
- type: "address"
3318
- },
3319
- {
3320
- indexed: false,
3321
- internalType: "uint64",
3322
- name: "feedbackIndex",
3323
- type: "uint64"
3324
- },
3325
- {
3326
- indexed: true,
3327
- internalType: "address",
3328
- name: "responder",
3329
- type: "address"
3330
- },
3331
- {
3332
- indexed: false,
3333
- internalType: "string",
3334
- name: "responseURI",
3335
- type: "string"
3336
- },
3337
- {
3338
- indexed: false,
3339
- internalType: "bytes32",
3340
- name: "responseHash",
3341
- type: "bytes32"
3342
- }
3343
- ],
3344
- name: "ResponseAppended",
3345
- type: "event"
3346
- },
3347
- {
3348
- anonymous: false,
3349
- inputs: [
3350
- {
3351
- indexed: true,
3352
- internalType: "address",
3353
- name: "implementation",
3354
- type: "address"
3355
- }
3356
- ],
3357
- name: "Upgraded",
3358
- type: "event"
3359
- },
3360
- {
3361
- inputs: [],
3362
- name: "UPGRADE_INTERFACE_VERSION",
3363
- outputs: [
3364
- {
3365
- internalType: "string",
3366
- name: "",
3367
- type: "string"
3368
- }
3369
- ],
3370
- stateMutability: "view",
3371
- type: "function"
3372
- },
3373
- {
3374
- inputs: [
3375
- {
3376
- internalType: "uint256",
3377
- name: "agentId",
3378
- type: "uint256"
3379
- },
3380
- {
3381
- internalType: "address",
3382
- name: "clientAddress",
3383
- type: "address"
3384
- },
3385
- {
3386
- internalType: "uint64",
3387
- name: "feedbackIndex",
3388
- type: "uint64"
3389
- },
3390
- {
3391
- internalType: "string",
3392
- name: "responseURI",
3393
- type: "string"
3394
- },
3395
- {
3396
- internalType: "bytes32",
3397
- name: "responseHash",
3398
- type: "bytes32"
3399
- }
3400
- ],
3401
- name: "appendResponse",
3402
- outputs: [],
3403
- stateMutability: "nonpayable",
3404
- type: "function"
3405
- },
3406
- {
3407
- inputs: [
3408
- {
3409
- internalType: "uint256",
3410
- name: "agentId",
3411
- type: "uint256"
3412
- }
3413
- ],
3414
- name: "getClients",
3415
- outputs: [
3416
- {
3417
- internalType: "address[]",
3418
- name: "",
3419
- type: "address[]"
3420
- }
3421
- ],
3422
- stateMutability: "view",
3423
- type: "function"
3424
- },
3425
- {
3426
- inputs: [],
3427
- name: "getIdentityRegistry",
3428
- outputs: [
3429
- {
3430
- internalType: "address",
3431
- name: "",
3432
- type: "address"
3433
- }
3434
- ],
3435
- stateMutability: "view",
3436
- type: "function"
3437
- },
3438
- {
3439
- inputs: [
3440
- {
3441
- internalType: "uint256",
3442
- name: "agentId",
3443
- type: "uint256"
3444
- },
3445
- {
3446
- internalType: "address",
3447
- name: "clientAddress",
3448
- type: "address"
3449
- }
3450
- ],
3451
- name: "getLastIndex",
3452
- outputs: [
3453
- {
3454
- internalType: "uint64",
3455
- name: "",
3456
- type: "uint64"
3457
- }
3458
- ],
3459
- stateMutability: "view",
3460
- type: "function"
3461
- },
3462
- {
3463
- inputs: [
3464
- {
3465
- internalType: "uint256",
3466
- name: "agentId",
3467
- type: "uint256"
3468
- },
3469
- {
3470
- internalType: "address",
3471
- name: "clientAddress",
3472
- type: "address"
3473
- },
3474
- {
3475
- internalType: "uint64",
3476
- name: "feedbackIndex",
3477
- type: "uint64"
3478
- },
3479
- {
3480
- internalType: "address[]",
3481
- name: "responders",
3482
- type: "address[]"
3483
- }
3484
- ],
3485
- name: "getResponseCount",
3486
- outputs: [
3487
- {
3488
- internalType: "uint64",
3489
- name: "count",
3490
- type: "uint64"
3491
- }
3492
- ],
3493
- stateMutability: "view",
3494
- type: "function"
3495
- },
3496
- {
3497
- inputs: [
3498
- {
3499
- internalType: "uint256",
3500
- name: "agentId",
3501
- type: "uint256"
3502
- },
3503
- {
3504
- internalType: "address[]",
3505
- name: "clientAddresses",
3506
- type: "address[]"
3507
- },
3508
- {
3509
- internalType: "string",
3510
- name: "tag1",
3511
- type: "string"
3512
- },
3513
- {
3514
- internalType: "string",
3515
- name: "tag2",
3516
- type: "string"
3517
- }
3518
- ],
3519
- name: "getSummary",
3520
- outputs: [
3521
- {
3522
- internalType: "uint64",
3523
- name: "count",
3524
- type: "uint64"
3525
- },
3526
- {
3527
- internalType: "int128",
3528
- name: "summaryValue",
3529
- type: "int128"
3530
- },
3531
- {
3532
- internalType: "uint8",
3533
- name: "summaryValueDecimals",
3534
- type: "uint8"
3535
- }
3536
- ],
3537
- stateMutability: "view",
3538
- type: "function"
3539
- },
3540
- {
3541
- inputs: [],
3542
- name: "getVersion",
3543
- outputs: [
3544
- {
3545
- internalType: "string",
3546
- name: "",
3547
- type: "string"
3548
- }
3549
- ],
3550
- stateMutability: "pure",
3551
- type: "function"
3552
- },
3553
- {
3554
- inputs: [
3555
- {
3556
- internalType: "uint256",
3557
- name: "agentId",
3558
- type: "uint256"
3559
- },
3560
- {
3561
- internalType: "int128",
3562
- name: "value",
3563
- type: "int128"
3564
- },
3565
- {
3566
- internalType: "uint8",
3567
- name: "valueDecimals",
3568
- type: "uint8"
3569
- },
3570
- {
3571
- internalType: "string",
3572
- name: "tag1",
3573
- type: "string"
3574
- },
3575
- {
3576
- internalType: "string",
3577
- name: "tag2",
3578
- type: "string"
3579
- },
3580
- {
3581
- internalType: "string",
3582
- name: "endpoint",
3583
- type: "string"
3584
- },
3585
- {
3586
- internalType: "string",
3587
- name: "feedbackURI",
3588
- type: "string"
3589
- },
3590
- {
3591
- internalType: "bytes32",
3592
- name: "feedbackHash",
3593
- type: "bytes32"
3594
- }
3595
- ],
3596
- name: "giveFeedback",
3597
- outputs: [],
3598
- stateMutability: "nonpayable",
3599
- type: "function"
3600
- },
3601
- {
3602
- inputs: [
3603
- {
3604
- internalType: "address",
3605
- name: "identityRegistry_",
3606
- type: "address"
3607
- }
3608
- ],
3609
- name: "initialize",
3610
- outputs: [],
3611
- stateMutability: "nonpayable",
3612
- type: "function"
3613
- },
3614
- {
3615
- inputs: [],
3616
- name: "owner",
3617
- outputs: [
3618
- {
3619
- internalType: "address",
3620
- name: "",
3621
- type: "address"
3622
- }
3623
- ],
3624
- stateMutability: "view",
3625
- type: "function"
3626
- },
3627
- {
3628
- inputs: [],
3629
- name: "proxiableUUID",
3630
- outputs: [
3631
- {
3632
- internalType: "bytes32",
3633
- name: "",
3634
- type: "bytes32"
3635
- }
3636
- ],
3637
- stateMutability: "view",
3638
- type: "function"
3639
- },
3640
- {
3641
- inputs: [
3642
- {
3643
- internalType: "uint256",
3644
- name: "agentId",
3645
- type: "uint256"
3646
- },
3647
- {
3648
- internalType: "address[]",
3649
- name: "clientAddresses",
3650
- type: "address[]"
3651
- },
3652
- {
3653
- internalType: "string",
3654
- name: "tag1",
3655
- type: "string"
3656
- },
3657
- {
3658
- internalType: "string",
3659
- name: "tag2",
3660
- type: "string"
3661
- },
3662
- {
3663
- internalType: "bool",
3664
- name: "includeRevoked",
3665
- type: "bool"
3666
- }
3667
- ],
3668
- name: "readAllFeedback",
3669
- outputs: [
3670
- {
3671
- internalType: "address[]",
3672
- name: "clients",
3673
- type: "address[]"
3674
- },
3675
- {
3676
- internalType: "uint64[]",
3677
- name: "feedbackIndexes",
3678
- type: "uint64[]"
3679
- },
3680
- {
3681
- internalType: "int128[]",
3682
- name: "values",
3683
- type: "int128[]"
3684
- },
3685
- {
3686
- internalType: "uint8[]",
3687
- name: "valueDecimals",
3688
- type: "uint8[]"
3689
- },
3690
- {
3691
- internalType: "string[]",
3692
- name: "tag1s",
3693
- type: "string[]"
3694
- },
3695
- {
3696
- internalType: "string[]",
3697
- name: "tag2s",
3698
- type: "string[]"
3699
- },
3700
- {
3701
- internalType: "bool[]",
3702
- name: "revokedStatuses",
3703
- type: "bool[]"
3704
- }
3705
- ],
3706
- stateMutability: "view",
3707
- type: "function"
3708
- },
3709
- {
3710
- inputs: [
3711
- {
3712
- internalType: "uint256",
3713
- name: "agentId",
3714
- type: "uint256"
3715
- },
3716
- {
3717
- internalType: "address",
3718
- name: "clientAddress",
3719
- type: "address"
3720
- },
3721
- {
3722
- internalType: "uint64",
3723
- name: "feedbackIndex",
3724
- type: "uint64"
3725
- }
3726
- ],
3727
- name: "readFeedback",
3728
- outputs: [
3729
- {
3730
- internalType: "int128",
3731
- name: "value",
3732
- type: "int128"
3733
- },
3734
- {
3735
- internalType: "uint8",
3736
- name: "valueDecimals",
3737
- type: "uint8"
3738
- },
3739
- {
3740
- internalType: "string",
3741
- name: "tag1",
3742
- type: "string"
3743
- },
3744
- {
3745
- internalType: "string",
3746
- name: "tag2",
3747
- type: "string"
3748
- },
3749
- {
3750
- internalType: "bool",
3751
- name: "isRevoked",
3752
- type: "bool"
3753
- }
3754
- ],
3755
- stateMutability: "view",
3756
- type: "function"
3757
- },
3758
- {
3759
- inputs: [],
3760
- name: "renounceOwnership",
3761
- outputs: [],
3762
- stateMutability: "nonpayable",
3763
- type: "function"
3764
- },
3765
- {
3766
- inputs: [
3767
- {
3768
- internalType: "uint256",
3769
- name: "agentId",
3770
- type: "uint256"
3771
- },
3772
- {
3773
- internalType: "uint64",
3774
- name: "feedbackIndex",
3775
- type: "uint64"
3776
- }
3777
- ],
3778
- name: "revokeFeedback",
3779
- outputs: [],
3780
- stateMutability: "nonpayable",
3781
- type: "function"
3782
- },
3783
- {
3784
- inputs: [
3785
- {
3786
- internalType: "address",
3787
- name: "newOwner",
3788
- type: "address"
3789
- }
3790
- ],
3791
- name: "transferOwnership",
3792
- outputs: [],
3793
- stateMutability: "nonpayable",
3794
- type: "function"
3795
- },
3796
- {
3797
- inputs: [
3798
- {
3799
- internalType: "address",
3800
- name: "newImplementation",
3801
- type: "address"
3802
- },
3803
- {
3804
- internalType: "bytes",
3805
- name: "data",
3806
- type: "bytes"
3807
- }
3808
- ],
3809
- name: "upgradeToAndCall",
3810
- outputs: [],
3811
- stateMutability: "payable",
3812
- type: "function"
3813
- }
3814
- ];
3815
- // abis/ValidationRegistry_V1.ts
3816
- var ValidationRegistryAbi_V1 = [
3817
- {
3818
- inputs: [],
3819
- stateMutability: "nonpayable",
3820
- type: "constructor"
3821
- },
3822
- {
3823
- inputs: [
3824
- {
3825
- internalType: "address",
3826
- name: "target",
3827
- type: "address"
3828
- }
3829
- ],
3830
- name: "AddressEmptyCode",
3831
- type: "error"
3832
- },
3833
- {
3834
- inputs: [
3835
- {
3836
- internalType: "address",
3837
- name: "implementation",
3838
- type: "address"
3839
- }
3840
- ],
3841
- name: "ERC1967InvalidImplementation",
3842
- type: "error"
3843
- },
3844
- {
3845
- inputs: [],
3846
- name: "ERC1967NonPayable",
3847
- type: "error"
3848
- },
3849
- {
3850
- inputs: [],
3851
- name: "FailedCall",
3852
- type: "error"
3853
- },
3854
- {
3855
- inputs: [],
3856
- name: "InvalidInitialization",
3857
- type: "error"
3858
- },
3859
- {
3860
- inputs: [],
3861
- name: "NotInitializing",
3862
- type: "error"
3863
- },
3864
- {
3865
- inputs: [
3866
- {
3867
- internalType: "address",
3868
- name: "owner",
3869
- type: "address"
3870
- }
3871
- ],
3872
- name: "OwnableInvalidOwner",
3873
- type: "error"
3874
- },
3875
- {
3876
- inputs: [
3877
- {
3878
- internalType: "address",
3879
- name: "account",
3880
- type: "address"
3881
- }
3882
- ],
3883
- name: "OwnableUnauthorizedAccount",
3884
- type: "error"
3885
- },
3886
- {
3887
- inputs: [],
3888
- name: "UUPSUnauthorizedCallContext",
3889
- type: "error"
3890
- },
3891
- {
3892
- inputs: [
3893
- {
3894
- internalType: "bytes32",
3895
- name: "slot",
3896
- type: "bytes32"
3897
- }
3898
- ],
3899
- name: "UUPSUnsupportedProxiableUUID",
3900
- type: "error"
3901
- },
3902
- {
3903
- anonymous: false,
3904
- inputs: [
3905
- {
3906
- indexed: false,
3907
- internalType: "uint64",
3908
- name: "version",
3909
- type: "uint64"
3910
- }
3911
- ],
3912
- name: "Initialized",
3913
- type: "event"
3914
- },
3915
- {
3916
- anonymous: false,
3917
- inputs: [
3918
- {
3919
- indexed: true,
3920
- internalType: "address",
3921
- name: "previousOwner",
3922
- type: "address"
3923
- },
3924
- {
3925
- indexed: true,
3926
- internalType: "address",
3927
- name: "newOwner",
3928
- type: "address"
3929
- }
3930
- ],
3931
- name: "OwnershipTransferred",
3932
- type: "event"
3933
- },
3934
- {
3935
- anonymous: false,
3936
- inputs: [
3937
- {
3938
- indexed: true,
3939
- internalType: "address",
3940
- name: "implementation",
3941
- type: "address"
3942
- }
3943
- ],
3944
- name: "Upgraded",
3945
- type: "event"
3946
- },
3947
- {
3948
- anonymous: false,
3949
- inputs: [
3950
- {
3951
- indexed: true,
3952
- internalType: "address",
3953
- name: "validatorAddress",
3954
- type: "address"
3955
- },
3956
- {
3957
- indexed: true,
3958
- internalType: "uint256",
3959
- name: "agentId",
3960
- type: "uint256"
3961
- },
3962
- {
3963
- indexed: false,
3964
- internalType: "string",
3965
- name: "requestURI",
3966
- type: "string"
3967
- },
3968
- {
3969
- indexed: true,
3970
- internalType: "bytes32",
3971
- name: "requestHash",
3972
- type: "bytes32"
3973
- }
3974
- ],
3975
- name: "ValidationRequest",
3976
- type: "event"
3977
- },
3978
- {
3979
- anonymous: false,
3980
- inputs: [
3981
- {
3982
- indexed: true,
3983
- internalType: "address",
3984
- name: "validatorAddress",
3985
- type: "address"
3986
- },
3987
- {
3988
- indexed: true,
3989
- internalType: "uint256",
3990
- name: "agentId",
3991
- type: "uint256"
3992
- },
3993
- {
3994
- indexed: true,
3995
- internalType: "bytes32",
3996
- name: "requestHash",
3997
- type: "bytes32"
3998
- },
3999
- {
4000
- indexed: false,
4001
- internalType: "uint8",
4002
- name: "response",
4003
- type: "uint8"
4004
- },
4005
- {
4006
- indexed: false,
4007
- internalType: "string",
4008
- name: "responseURI",
4009
- type: "string"
4010
- },
4011
- {
4012
- indexed: false,
4013
- internalType: "bytes32",
4014
- name: "responseHash",
4015
- type: "bytes32"
4016
- },
4017
- {
4018
- indexed: false,
4019
- internalType: "string",
4020
- name: "tag",
4021
- type: "string"
4022
- }
4023
- ],
4024
- name: "ValidationResponse",
4025
- type: "event"
4026
- },
4027
- {
4028
- inputs: [],
4029
- name: "UPGRADE_INTERFACE_VERSION",
4030
- outputs: [
4031
- {
4032
- internalType: "string",
4033
- name: "",
4034
- type: "string"
4035
- }
4036
- ],
4037
- stateMutability: "view",
4038
- type: "function"
4039
- },
4040
- {
4041
- inputs: [
4042
- {
4043
- internalType: "uint256",
4044
- name: "agentId",
4045
- type: "uint256"
4046
- }
4047
- ],
4048
- name: "getAgentValidations",
4049
- outputs: [
4050
- {
4051
- internalType: "bytes32[]",
4052
- name: "",
4053
- type: "bytes32[]"
4054
- }
4055
- ],
4056
- stateMutability: "view",
4057
- type: "function"
4058
- },
4059
- {
4060
- inputs: [],
4061
- name: "getIdentityRegistry",
4062
- outputs: [
4063
- {
4064
- internalType: "address",
4065
- name: "",
4066
- type: "address"
4067
- }
4068
- ],
4069
- stateMutability: "view",
4070
- type: "function"
4071
- },
4072
- {
4073
- inputs: [
4074
- {
4075
- internalType: "uint256",
4076
- name: "agentId",
4077
- type: "uint256"
4078
- },
4079
- {
4080
- internalType: "address[]",
4081
- name: "validatorAddresses",
4082
- type: "address[]"
4083
- },
4084
- {
4085
- internalType: "string",
4086
- name: "tag",
4087
- type: "string"
4088
- }
4089
- ],
4090
- name: "getSummary",
4091
- outputs: [
4092
- {
4093
- internalType: "uint64",
4094
- name: "count",
4095
- type: "uint64"
4096
- },
4097
- {
4098
- internalType: "uint8",
4099
- name: "avgResponse",
4100
- type: "uint8"
4101
- }
4102
- ],
4103
- stateMutability: "view",
4104
- type: "function"
4105
- },
4106
- {
4107
- inputs: [
4108
- {
4109
- internalType: "bytes32",
4110
- name: "requestHash",
4111
- type: "bytes32"
4112
- }
4113
- ],
4114
- name: "getValidationStatus",
4115
- outputs: [
4116
- {
4117
- internalType: "address",
4118
- name: "validatorAddress",
4119
- type: "address"
4120
- },
4121
- {
4122
- internalType: "uint256",
4123
- name: "agentId",
4124
- type: "uint256"
4125
- },
4126
- {
4127
- internalType: "uint8",
4128
- name: "response",
4129
- type: "uint8"
4130
- },
4131
- {
4132
- internalType: "bytes32",
4133
- name: "responseHash",
4134
- type: "bytes32"
4135
- },
4136
- {
4137
- internalType: "string",
4138
- name: "tag",
4139
- type: "string"
4140
- },
4141
- {
4142
- internalType: "uint256",
4143
- name: "lastUpdate",
4144
- type: "uint256"
4145
- }
4146
- ],
4147
- stateMutability: "view",
4148
- type: "function"
4149
- },
4150
- {
4151
- inputs: [
4152
- {
4153
- internalType: "address",
4154
- name: "validatorAddress",
4155
- type: "address"
4156
- }
4157
- ],
4158
- name: "getValidatorRequests",
4159
- outputs: [
4160
- {
4161
- internalType: "bytes32[]",
4162
- name: "",
4163
- type: "bytes32[]"
4164
- }
4165
- ],
4166
- stateMutability: "view",
4167
- type: "function"
4168
- },
4169
- {
4170
- inputs: [],
4171
- name: "getVersion",
4172
- outputs: [
4173
- {
4174
- internalType: "string",
4175
- name: "",
4176
- type: "string"
4177
- }
4178
- ],
4179
- stateMutability: "pure",
4180
- type: "function"
4181
- },
4182
- {
4183
- inputs: [
4184
- {
4185
- internalType: "address",
4186
- name: "identityRegistry_",
4187
- type: "address"
4188
- }
4189
- ],
4190
- name: "initialize",
4191
- outputs: [],
4192
- stateMutability: "nonpayable",
4193
- type: "function"
4194
- },
4195
- {
4196
- inputs: [],
4197
- name: "owner",
4198
- outputs: [
4199
- {
4200
- internalType: "address",
4201
- name: "",
4202
- type: "address"
4203
- }
4204
- ],
4205
- stateMutability: "view",
4206
- type: "function"
4207
- },
4208
- {
4209
- inputs: [],
4210
- name: "proxiableUUID",
4211
- outputs: [
4212
- {
4213
- internalType: "bytes32",
4214
- name: "",
4215
- type: "bytes32"
4216
- }
4217
- ],
4218
- stateMutability: "view",
4219
- type: "function"
4220
- },
4221
- {
4222
- inputs: [],
4223
- name: "renounceOwnership",
4224
- outputs: [],
4225
- stateMutability: "nonpayable",
4226
- type: "function"
4227
- },
4228
- {
4229
- inputs: [
4230
- {
4231
- internalType: "address",
4232
- name: "newOwner",
4233
- type: "address"
4234
- }
4235
- ],
4236
- name: "transferOwnership",
4237
- outputs: [],
4238
- stateMutability: "nonpayable",
4239
- type: "function"
4240
- },
4241
- {
4242
- inputs: [
4243
- {
4244
- internalType: "address",
4245
- name: "newImplementation",
4246
- type: "address"
4247
- },
4248
- {
4249
- internalType: "bytes",
4250
- name: "data",
4251
- type: "bytes"
4252
- }
4253
- ],
4254
- name: "upgradeToAndCall",
4255
- outputs: [],
4256
- stateMutability: "payable",
4257
- type: "function"
4258
- },
4259
- {
4260
- inputs: [
4261
- {
4262
- internalType: "address",
4263
- name: "validatorAddress",
4264
- type: "address"
4265
- },
4266
- {
4267
- internalType: "uint256",
4268
- name: "agentId",
4269
- type: "uint256"
4270
- },
4271
- {
4272
- internalType: "string",
4273
- name: "requestURI",
4274
- type: "string"
4275
- },
4276
- {
4277
- internalType: "bytes32",
4278
- name: "requestHash",
4279
- type: "bytes32"
4280
- }
4281
- ],
4282
- name: "validationRequest",
4283
- outputs: [],
4284
- stateMutability: "nonpayable",
4285
- type: "function"
4286
- },
4287
- {
4288
- inputs: [
4289
- {
4290
- internalType: "bytes32",
4291
- name: "requestHash",
4292
- type: "bytes32"
4293
- },
4294
- {
4295
- internalType: "uint8",
4296
- name: "response",
4297
- type: "uint8"
4298
- },
4299
- {
4300
- internalType: "string",
4301
- name: "responseURI",
4302
- type: "string"
4303
- },
4304
- {
4305
- internalType: "bytes32",
4306
- name: "responseHash",
4307
- type: "bytes32"
4308
- },
4309
- {
4310
- internalType: "string",
4311
- name: "tag",
4312
- type: "string"
4313
- }
4314
- ],
4315
- name: "validationResponse",
4316
- outputs: [],
4317
- stateMutability: "nonpayable",
4318
- type: "function"
4319
- }
4320
- ];
4321
-
4322
- // src/index.ts
4323
- var CHAIN_ID = {
4324
- MAINNET: 1,
4325
- SEPOLIA: 11155111,
4326
- BASE_SEPOLIA: 84532
4327
- };
4328
- var ADDRESSES = {
4329
- [CHAIN_ID.MAINNET]: {
4330
- identityRegistry: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
4331
- reputationRegistry: "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63",
4332
- validationRegistry: "0x8004Cc8439f36fd5F9F049D9fF86523Df6dAAB58"
4333
- },
4334
- [CHAIN_ID.SEPOLIA]: {
4335
- identityRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e",
4336
- reputationRegistry: "0x8004B663056A597Dffe9eCcC1965A193B7388713",
4337
- validationRegistry: "0x8004Cb1BF31DAf7788923b405b754f57acEB4272"
4338
- },
4339
- [CHAIN_ID.BASE_SEPOLIA]: {
4340
- identityRegistry: "0x8004A818BFB912233c491871b3d84c89A494BD9e",
4341
- reputationRegistry: "0x8004B663056A597Dffe9eCcC1965A193B7388713",
4342
- validationRegistry: "0x8004Cb1BF31DAf7788923b405b754f57acEB4272"
4343
- }
4344
- };
4345
- function isSupportedChainId(chainId) {
4346
- return Object.values(CHAIN_ID).includes(chainId);
4347
- }
4348
- function getRegistryAddress(chainId) {
4349
- if (isSupportedChainId(chainId) === false) {
4350
- throw new Error(`Unsupported chain ID: ${chainId}.`);
4351
- }
4352
- return ADDRESSES[chainId];
4353
- }
4354
- function getIdentityRegistryAddress(chainId) {
4355
- return getRegistryAddress(chainId).identityRegistry;
4356
- }
4357
- function getReputationRegistryAddress(chainId) {
4358
- return getRegistryAddress(chainId).reputationRegistry;
4359
- }
4360
- function getValidationRegistryAddress(chainId) {
4361
- return getRegistryAddress(chainId).validationRegistry;
4362
- }
4363
- export {
4364
- getValidationRegistryAddress,
4365
- getReputationRegistryAddress,
4366
- getRegistryAddress,
4367
- getIdentityRegistryAddress,
4368
- ValidationRegistryAbi_V1,
4369
- ValidationRegistryAbi_V1 as ValidationRegistryAbi,
4370
- ReputationRegistryAbi_V3,
4371
- ReputationRegistryAbi_V2,
4372
- ReputationRegistryAbi_V1,
4373
- ReputationRegistryAbi_V3 as ReputationRegistryAbi,
4374
- IdentityRegistryAbi_V2,
4375
- IdentityRegistryAbi_V1,
4376
- IdentityRegistryAbi_V2 as IdentityRegistryAbi,
4377
- CHAIN_ID,
4378
- ADDRESSES
4379
- };