@agentfromzero/agentpassport-sdk 0.1.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.
package/src/abis.ts ADDED
@@ -0,0 +1,2225 @@
1
+ // GENERATED by scripts/gen-abis.mjs from the Foundry build output. Do not edit by hand.
2
+
3
+ export const agentPassportAbi = [
4
+ {
5
+ "type": "constructor",
6
+ "inputs": [
7
+ {
8
+ "name": "identityRegistry_",
9
+ "type": "address",
10
+ "internalType": "address"
11
+ },
12
+ {
13
+ "name": "reputationRegistry_",
14
+ "type": "address",
15
+ "internalType": "address"
16
+ }
17
+ ],
18
+ "stateMutability": "nonpayable"
19
+ },
20
+ {
21
+ "type": "function",
22
+ "name": "attest",
23
+ "inputs": [
24
+ {
25
+ "name": "agentId",
26
+ "type": "uint256",
27
+ "internalType": "uint256"
28
+ },
29
+ {
30
+ "name": "jobRef",
31
+ "type": "bytes32",
32
+ "internalType": "bytes32"
33
+ },
34
+ {
35
+ "name": "outcome",
36
+ "type": "uint8",
37
+ "internalType": "enum IAgentPassport.Outcome"
38
+ },
39
+ {
40
+ "name": "token",
41
+ "type": "address",
42
+ "internalType": "address"
43
+ },
44
+ {
45
+ "name": "amount",
46
+ "type": "uint256",
47
+ "internalType": "uint256"
48
+ },
49
+ {
50
+ "name": "hirer",
51
+ "type": "address",
52
+ "internalType": "address"
53
+ },
54
+ {
55
+ "name": "endpoint",
56
+ "type": "string",
57
+ "internalType": "string"
58
+ }
59
+ ],
60
+ "outputs": [],
61
+ "stateMutability": "nonpayable"
62
+ },
63
+ {
64
+ "type": "function",
65
+ "name": "identityRegistry",
66
+ "inputs": [],
67
+ "outputs": [
68
+ {
69
+ "name": "",
70
+ "type": "address",
71
+ "internalType": "address"
72
+ }
73
+ ],
74
+ "stateMutability": "view"
75
+ },
76
+ {
77
+ "type": "function",
78
+ "name": "isAttester",
79
+ "inputs": [
80
+ {
81
+ "name": "attester",
82
+ "type": "address",
83
+ "internalType": "address"
84
+ }
85
+ ],
86
+ "outputs": [
87
+ {
88
+ "name": "",
89
+ "type": "bool",
90
+ "internalType": "bool"
91
+ }
92
+ ],
93
+ "stateMutability": "view"
94
+ },
95
+ {
96
+ "type": "function",
97
+ "name": "meets",
98
+ "inputs": [
99
+ {
100
+ "name": "agentId",
101
+ "type": "uint256",
102
+ "internalType": "uint256"
103
+ },
104
+ {
105
+ "name": "policy",
106
+ "type": "tuple",
107
+ "internalType": "struct IAgentPassport.Policy",
108
+ "components": [
109
+ {
110
+ "name": "minJobsSettled",
111
+ "type": "uint64",
112
+ "internalType": "uint64"
113
+ },
114
+ {
115
+ "name": "minVolumeSettled",
116
+ "type": "uint128",
117
+ "internalType": "uint128"
118
+ },
119
+ {
120
+ "name": "maxJobsDisputed",
121
+ "type": "uint64",
122
+ "internalType": "uint64"
123
+ },
124
+ {
125
+ "name": "maxAgeOfLastSettlement",
126
+ "type": "uint64",
127
+ "internalType": "uint64"
128
+ }
129
+ ]
130
+ }
131
+ ],
132
+ "outputs": [
133
+ {
134
+ "name": "",
135
+ "type": "bool",
136
+ "internalType": "bool"
137
+ }
138
+ ],
139
+ "stateMutability": "view"
140
+ },
141
+ {
142
+ "type": "function",
143
+ "name": "owner",
144
+ "inputs": [],
145
+ "outputs": [
146
+ {
147
+ "name": "",
148
+ "type": "address",
149
+ "internalType": "address"
150
+ }
151
+ ],
152
+ "stateMutability": "view"
153
+ },
154
+ {
155
+ "type": "function",
156
+ "name": "passportOf",
157
+ "inputs": [
158
+ {
159
+ "name": "agentId",
160
+ "type": "uint256",
161
+ "internalType": "uint256"
162
+ }
163
+ ],
164
+ "outputs": [
165
+ {
166
+ "name": "",
167
+ "type": "tuple",
168
+ "internalType": "struct IAgentPassport.Passport",
169
+ "components": [
170
+ {
171
+ "name": "jobsSettled",
172
+ "type": "uint64",
173
+ "internalType": "uint64"
174
+ },
175
+ {
176
+ "name": "jobsRefunded",
177
+ "type": "uint64",
178
+ "internalType": "uint64"
179
+ },
180
+ {
181
+ "name": "jobsDisputed",
182
+ "type": "uint64",
183
+ "internalType": "uint64"
184
+ },
185
+ {
186
+ "name": "firstSeen",
187
+ "type": "uint64",
188
+ "internalType": "uint64"
189
+ },
190
+ {
191
+ "name": "lastSettled",
192
+ "type": "uint64",
193
+ "internalType": "uint64"
194
+ },
195
+ {
196
+ "name": "volumeSettled",
197
+ "type": "uint128",
198
+ "internalType": "uint128"
199
+ },
200
+ {
201
+ "name": "token",
202
+ "type": "address",
203
+ "internalType": "address"
204
+ }
205
+ ]
206
+ }
207
+ ],
208
+ "stateMutability": "view"
209
+ },
210
+ {
211
+ "type": "function",
212
+ "name": "reputationRegistry",
213
+ "inputs": [],
214
+ "outputs": [
215
+ {
216
+ "name": "",
217
+ "type": "address",
218
+ "internalType": "address"
219
+ }
220
+ ],
221
+ "stateMutability": "view"
222
+ },
223
+ {
224
+ "type": "function",
225
+ "name": "setAttester",
226
+ "inputs": [
227
+ {
228
+ "name": "attester",
229
+ "type": "address",
230
+ "internalType": "address"
231
+ },
232
+ {
233
+ "name": "allowed",
234
+ "type": "bool",
235
+ "internalType": "bool"
236
+ }
237
+ ],
238
+ "outputs": [],
239
+ "stateMutability": "nonpayable"
240
+ },
241
+ {
242
+ "type": "function",
243
+ "name": "settledBetween",
244
+ "inputs": [
245
+ {
246
+ "name": "hirer",
247
+ "type": "address",
248
+ "internalType": "address"
249
+ },
250
+ {
251
+ "name": "agentId",
252
+ "type": "uint256",
253
+ "internalType": "uint256"
254
+ }
255
+ ],
256
+ "outputs": [
257
+ {
258
+ "name": "",
259
+ "type": "uint64",
260
+ "internalType": "uint64"
261
+ }
262
+ ],
263
+ "stateMutability": "view"
264
+ },
265
+ {
266
+ "type": "function",
267
+ "name": "transferOwnership",
268
+ "inputs": [
269
+ {
270
+ "name": "newOwner",
271
+ "type": "address",
272
+ "internalType": "address"
273
+ }
274
+ ],
275
+ "outputs": [],
276
+ "stateMutability": "nonpayable"
277
+ },
278
+ {
279
+ "type": "event",
280
+ "name": "Attested",
281
+ "inputs": [
282
+ {
283
+ "name": "agentId",
284
+ "type": "uint256",
285
+ "indexed": true,
286
+ "internalType": "uint256"
287
+ },
288
+ {
289
+ "name": "attester",
290
+ "type": "address",
291
+ "indexed": true,
292
+ "internalType": "address"
293
+ },
294
+ {
295
+ "name": "jobRef",
296
+ "type": "bytes32",
297
+ "indexed": true,
298
+ "internalType": "bytes32"
299
+ },
300
+ {
301
+ "name": "outcome",
302
+ "type": "uint8",
303
+ "indexed": false,
304
+ "internalType": "enum IAgentPassport.Outcome"
305
+ },
306
+ {
307
+ "name": "token",
308
+ "type": "address",
309
+ "indexed": false,
310
+ "internalType": "address"
311
+ },
312
+ {
313
+ "name": "amount",
314
+ "type": "uint256",
315
+ "indexed": false,
316
+ "internalType": "uint256"
317
+ },
318
+ {
319
+ "name": "hirer",
320
+ "type": "address",
321
+ "indexed": false,
322
+ "internalType": "address"
323
+ }
324
+ ],
325
+ "anonymous": false
326
+ },
327
+ {
328
+ "type": "event",
329
+ "name": "AttesterSet",
330
+ "inputs": [
331
+ {
332
+ "name": "attester",
333
+ "type": "address",
334
+ "indexed": true,
335
+ "internalType": "address"
336
+ },
337
+ {
338
+ "name": "allowed",
339
+ "type": "bool",
340
+ "indexed": false,
341
+ "internalType": "bool"
342
+ }
343
+ ],
344
+ "anonymous": false
345
+ },
346
+ {
347
+ "type": "event",
348
+ "name": "FeedbackMirrored",
349
+ "inputs": [
350
+ {
351
+ "name": "agentId",
352
+ "type": "uint256",
353
+ "indexed": true,
354
+ "internalType": "uint256"
355
+ },
356
+ {
357
+ "name": "jobRef",
358
+ "type": "bytes32",
359
+ "indexed": true,
360
+ "internalType": "bytes32"
361
+ },
362
+ {
363
+ "name": "ok",
364
+ "type": "bool",
365
+ "indexed": false,
366
+ "internalType": "bool"
367
+ }
368
+ ],
369
+ "anonymous": false
370
+ },
371
+ {
372
+ "type": "event",
373
+ "name": "OwnershipTransferred",
374
+ "inputs": [
375
+ {
376
+ "name": "previousOwner",
377
+ "type": "address",
378
+ "indexed": true,
379
+ "internalType": "address"
380
+ },
381
+ {
382
+ "name": "newOwner",
383
+ "type": "address",
384
+ "indexed": true,
385
+ "internalType": "address"
386
+ }
387
+ ],
388
+ "anonymous": false
389
+ },
390
+ {
391
+ "type": "error",
392
+ "name": "NotAttester",
393
+ "inputs": [
394
+ {
395
+ "name": "caller",
396
+ "type": "address",
397
+ "internalType": "address"
398
+ }
399
+ ]
400
+ },
401
+ {
402
+ "type": "error",
403
+ "name": "NotOwner",
404
+ "inputs": []
405
+ },
406
+ {
407
+ "type": "error",
408
+ "name": "TokenMismatch",
409
+ "inputs": [
410
+ {
411
+ "name": "expected",
412
+ "type": "address",
413
+ "internalType": "address"
414
+ },
415
+ {
416
+ "name": "given",
417
+ "type": "address",
418
+ "internalType": "address"
419
+ }
420
+ ]
421
+ }
422
+ ] as const;
423
+
424
+ export const jobEscrowAbi = [
425
+ {
426
+ "type": "constructor",
427
+ "inputs": [
428
+ {
429
+ "name": "identityRegistry_",
430
+ "type": "address",
431
+ "internalType": "address"
432
+ },
433
+ {
434
+ "name": "passport_",
435
+ "type": "address",
436
+ "internalType": "address"
437
+ },
438
+ {
439
+ "name": "token_",
440
+ "type": "address",
441
+ "internalType": "address"
442
+ }
443
+ ],
444
+ "stateMutability": "nonpayable"
445
+ },
446
+ {
447
+ "type": "function",
448
+ "name": "deliver",
449
+ "inputs": [
450
+ {
451
+ "name": "jobId",
452
+ "type": "uint256",
453
+ "internalType": "uint256"
454
+ },
455
+ {
456
+ "name": "deliverableHash",
457
+ "type": "bytes32",
458
+ "internalType": "bytes32"
459
+ },
460
+ {
461
+ "name": "deliverableURI",
462
+ "type": "string",
463
+ "internalType": "string"
464
+ }
465
+ ],
466
+ "outputs": [],
467
+ "stateMutability": "nonpayable"
468
+ },
469
+ {
470
+ "type": "function",
471
+ "name": "dispute",
472
+ "inputs": [
473
+ {
474
+ "name": "jobId",
475
+ "type": "uint256",
476
+ "internalType": "uint256"
477
+ }
478
+ ],
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable"
481
+ },
482
+ {
483
+ "type": "function",
484
+ "name": "getJob",
485
+ "inputs": [
486
+ {
487
+ "name": "jobId",
488
+ "type": "uint256",
489
+ "internalType": "uint256"
490
+ }
491
+ ],
492
+ "outputs": [
493
+ {
494
+ "name": "",
495
+ "type": "tuple",
496
+ "internalType": "struct IJobEscrow.Job",
497
+ "components": [
498
+ {
499
+ "name": "agentId",
500
+ "type": "uint256",
501
+ "internalType": "uint256"
502
+ },
503
+ {
504
+ "name": "hirer",
505
+ "type": "address",
506
+ "internalType": "address"
507
+ },
508
+ {
509
+ "name": "verifier",
510
+ "type": "address",
511
+ "internalType": "address"
512
+ },
513
+ {
514
+ "name": "token",
515
+ "type": "address",
516
+ "internalType": "address"
517
+ },
518
+ {
519
+ "name": "amount",
520
+ "type": "uint128",
521
+ "internalType": "uint128"
522
+ },
523
+ {
524
+ "name": "deadline",
525
+ "type": "uint64",
526
+ "internalType": "uint64"
527
+ },
528
+ {
529
+ "name": "reviewWindow",
530
+ "type": "uint64",
531
+ "internalType": "uint64"
532
+ },
533
+ {
534
+ "name": "deliveredAt",
535
+ "type": "uint64",
536
+ "internalType": "uint64"
537
+ },
538
+ {
539
+ "name": "status",
540
+ "type": "uint8",
541
+ "internalType": "enum IJobEscrow.Status"
542
+ },
543
+ {
544
+ "name": "specHash",
545
+ "type": "bytes32",
546
+ "internalType": "bytes32"
547
+ },
548
+ {
549
+ "name": "deliverableHash",
550
+ "type": "bytes32",
551
+ "internalType": "bytes32"
552
+ }
553
+ ]
554
+ }
555
+ ],
556
+ "stateMutability": "view"
557
+ },
558
+ {
559
+ "type": "function",
560
+ "name": "identityRegistry",
561
+ "inputs": [],
562
+ "outputs": [
563
+ {
564
+ "name": "",
565
+ "type": "address",
566
+ "internalType": "address"
567
+ }
568
+ ],
569
+ "stateMutability": "view"
570
+ },
571
+ {
572
+ "type": "function",
573
+ "name": "jobCount",
574
+ "inputs": [],
575
+ "outputs": [
576
+ {
577
+ "name": "",
578
+ "type": "uint256",
579
+ "internalType": "uint256"
580
+ }
581
+ ],
582
+ "stateMutability": "view"
583
+ },
584
+ {
585
+ "type": "function",
586
+ "name": "open",
587
+ "inputs": [
588
+ {
589
+ "name": "p",
590
+ "type": "tuple",
591
+ "internalType": "struct IJobEscrow.OpenParams",
592
+ "components": [
593
+ {
594
+ "name": "agentId",
595
+ "type": "uint256",
596
+ "internalType": "uint256"
597
+ },
598
+ {
599
+ "name": "token",
600
+ "type": "address",
601
+ "internalType": "address"
602
+ },
603
+ {
604
+ "name": "amount",
605
+ "type": "uint128",
606
+ "internalType": "uint128"
607
+ },
608
+ {
609
+ "name": "deadline",
610
+ "type": "uint64",
611
+ "internalType": "uint64"
612
+ },
613
+ {
614
+ "name": "reviewWindow",
615
+ "type": "uint64",
616
+ "internalType": "uint64"
617
+ },
618
+ {
619
+ "name": "verifier",
620
+ "type": "address",
621
+ "internalType": "address"
622
+ },
623
+ {
624
+ "name": "specHash",
625
+ "type": "bytes32",
626
+ "internalType": "bytes32"
627
+ },
628
+ {
629
+ "name": "endpoint",
630
+ "type": "string",
631
+ "internalType": "string"
632
+ }
633
+ ]
634
+ }
635
+ ],
636
+ "outputs": [
637
+ {
638
+ "name": "jobId",
639
+ "type": "uint256",
640
+ "internalType": "uint256"
641
+ }
642
+ ],
643
+ "stateMutability": "nonpayable"
644
+ },
645
+ {
646
+ "type": "function",
647
+ "name": "openNonce",
648
+ "inputs": [
649
+ {
650
+ "name": "p",
651
+ "type": "tuple",
652
+ "internalType": "struct IJobEscrow.OpenParams",
653
+ "components": [
654
+ {
655
+ "name": "agentId",
656
+ "type": "uint256",
657
+ "internalType": "uint256"
658
+ },
659
+ {
660
+ "name": "token",
661
+ "type": "address",
662
+ "internalType": "address"
663
+ },
664
+ {
665
+ "name": "amount",
666
+ "type": "uint128",
667
+ "internalType": "uint128"
668
+ },
669
+ {
670
+ "name": "deadline",
671
+ "type": "uint64",
672
+ "internalType": "uint64"
673
+ },
674
+ {
675
+ "name": "reviewWindow",
676
+ "type": "uint64",
677
+ "internalType": "uint64"
678
+ },
679
+ {
680
+ "name": "verifier",
681
+ "type": "address",
682
+ "internalType": "address"
683
+ },
684
+ {
685
+ "name": "specHash",
686
+ "type": "bytes32",
687
+ "internalType": "bytes32"
688
+ },
689
+ {
690
+ "name": "endpoint",
691
+ "type": "string",
692
+ "internalType": "string"
693
+ }
694
+ ]
695
+ },
696
+ {
697
+ "name": "validAfter",
698
+ "type": "uint256",
699
+ "internalType": "uint256"
700
+ },
701
+ {
702
+ "name": "validBefore",
703
+ "type": "uint256",
704
+ "internalType": "uint256"
705
+ }
706
+ ],
707
+ "outputs": [
708
+ {
709
+ "name": "",
710
+ "type": "bytes32",
711
+ "internalType": "bytes32"
712
+ }
713
+ ],
714
+ "stateMutability": "view"
715
+ },
716
+ {
717
+ "type": "function",
718
+ "name": "openWithAuthorization",
719
+ "inputs": [
720
+ {
721
+ "name": "p",
722
+ "type": "tuple",
723
+ "internalType": "struct IJobEscrow.OpenParams",
724
+ "components": [
725
+ {
726
+ "name": "agentId",
727
+ "type": "uint256",
728
+ "internalType": "uint256"
729
+ },
730
+ {
731
+ "name": "token",
732
+ "type": "address",
733
+ "internalType": "address"
734
+ },
735
+ {
736
+ "name": "amount",
737
+ "type": "uint128",
738
+ "internalType": "uint128"
739
+ },
740
+ {
741
+ "name": "deadline",
742
+ "type": "uint64",
743
+ "internalType": "uint64"
744
+ },
745
+ {
746
+ "name": "reviewWindow",
747
+ "type": "uint64",
748
+ "internalType": "uint64"
749
+ },
750
+ {
751
+ "name": "verifier",
752
+ "type": "address",
753
+ "internalType": "address"
754
+ },
755
+ {
756
+ "name": "specHash",
757
+ "type": "bytes32",
758
+ "internalType": "bytes32"
759
+ },
760
+ {
761
+ "name": "endpoint",
762
+ "type": "string",
763
+ "internalType": "string"
764
+ }
765
+ ]
766
+ },
767
+ {
768
+ "name": "auth",
769
+ "type": "tuple",
770
+ "internalType": "struct IJobEscrow.Authorization",
771
+ "components": [
772
+ {
773
+ "name": "from",
774
+ "type": "address",
775
+ "internalType": "address"
776
+ },
777
+ {
778
+ "name": "validAfter",
779
+ "type": "uint256",
780
+ "internalType": "uint256"
781
+ },
782
+ {
783
+ "name": "validBefore",
784
+ "type": "uint256",
785
+ "internalType": "uint256"
786
+ },
787
+ {
788
+ "name": "nonce",
789
+ "type": "bytes32",
790
+ "internalType": "bytes32"
791
+ },
792
+ {
793
+ "name": "signature",
794
+ "type": "bytes",
795
+ "internalType": "bytes"
796
+ }
797
+ ]
798
+ }
799
+ ],
800
+ "outputs": [
801
+ {
802
+ "name": "jobId",
803
+ "type": "uint256",
804
+ "internalType": "uint256"
805
+ }
806
+ ],
807
+ "stateMutability": "nonpayable"
808
+ },
809
+ {
810
+ "type": "function",
811
+ "name": "passkeyOf",
812
+ "inputs": [
813
+ {
814
+ "name": "hirer",
815
+ "type": "address",
816
+ "internalType": "address"
817
+ }
818
+ ],
819
+ "outputs": [
820
+ {
821
+ "name": "",
822
+ "type": "tuple",
823
+ "internalType": "struct IJobEscrow.PasskeyPubKey",
824
+ "components": [
825
+ {
826
+ "name": "x",
827
+ "type": "uint256",
828
+ "internalType": "uint256"
829
+ },
830
+ {
831
+ "name": "y",
832
+ "type": "uint256",
833
+ "internalType": "uint256"
834
+ }
835
+ ]
836
+ }
837
+ ],
838
+ "stateMutability": "view"
839
+ },
840
+ {
841
+ "type": "function",
842
+ "name": "passport",
843
+ "inputs": [],
844
+ "outputs": [
845
+ {
846
+ "name": "",
847
+ "type": "address",
848
+ "internalType": "address"
849
+ }
850
+ ],
851
+ "stateMutability": "view"
852
+ },
853
+ {
854
+ "type": "function",
855
+ "name": "refund",
856
+ "inputs": [
857
+ {
858
+ "name": "jobId",
859
+ "type": "uint256",
860
+ "internalType": "uint256"
861
+ }
862
+ ],
863
+ "outputs": [],
864
+ "stateMutability": "nonpayable"
865
+ },
866
+ {
867
+ "type": "function",
868
+ "name": "registerPasskey",
869
+ "inputs": [
870
+ {
871
+ "name": "x",
872
+ "type": "uint256",
873
+ "internalType": "uint256"
874
+ },
875
+ {
876
+ "name": "y",
877
+ "type": "uint256",
878
+ "internalType": "uint256"
879
+ }
880
+ ],
881
+ "outputs": [],
882
+ "stateMutability": "nonpayable"
883
+ },
884
+ {
885
+ "type": "function",
886
+ "name": "release",
887
+ "inputs": [
888
+ {
889
+ "name": "jobId",
890
+ "type": "uint256",
891
+ "internalType": "uint256"
892
+ }
893
+ ],
894
+ "outputs": [],
895
+ "stateMutability": "nonpayable"
896
+ },
897
+ {
898
+ "type": "function",
899
+ "name": "releaseDigest",
900
+ "inputs": [
901
+ {
902
+ "name": "jobId",
903
+ "type": "uint256",
904
+ "internalType": "uint256"
905
+ }
906
+ ],
907
+ "outputs": [
908
+ {
909
+ "name": "",
910
+ "type": "bytes32",
911
+ "internalType": "bytes32"
912
+ }
913
+ ],
914
+ "stateMutability": "view"
915
+ },
916
+ {
917
+ "type": "function",
918
+ "name": "releaseWithPasskey",
919
+ "inputs": [
920
+ {
921
+ "name": "jobId",
922
+ "type": "uint256",
923
+ "internalType": "uint256"
924
+ },
925
+ {
926
+ "name": "authenticatorData",
927
+ "type": "bytes",
928
+ "internalType": "bytes"
929
+ },
930
+ {
931
+ "name": "clientDataJSON",
932
+ "type": "bytes",
933
+ "internalType": "bytes"
934
+ },
935
+ {
936
+ "name": "r",
937
+ "type": "uint256",
938
+ "internalType": "uint256"
939
+ },
940
+ {
941
+ "name": "s",
942
+ "type": "uint256",
943
+ "internalType": "uint256"
944
+ }
945
+ ],
946
+ "outputs": [],
947
+ "stateMutability": "nonpayable"
948
+ },
949
+ {
950
+ "type": "function",
951
+ "name": "settlementToken",
952
+ "inputs": [],
953
+ "outputs": [
954
+ {
955
+ "name": "",
956
+ "type": "address",
957
+ "internalType": "address"
958
+ }
959
+ ],
960
+ "stateMutability": "view"
961
+ },
962
+ {
963
+ "type": "event",
964
+ "name": "JobDelivered",
965
+ "inputs": [
966
+ {
967
+ "name": "jobId",
968
+ "type": "uint256",
969
+ "indexed": true,
970
+ "internalType": "uint256"
971
+ },
972
+ {
973
+ "name": "agentId",
974
+ "type": "uint256",
975
+ "indexed": true,
976
+ "internalType": "uint256"
977
+ },
978
+ {
979
+ "name": "deliverableHash",
980
+ "type": "bytes32",
981
+ "indexed": false,
982
+ "internalType": "bytes32"
983
+ },
984
+ {
985
+ "name": "deliverableURI",
986
+ "type": "string",
987
+ "indexed": false,
988
+ "internalType": "string"
989
+ }
990
+ ],
991
+ "anonymous": false
992
+ },
993
+ {
994
+ "type": "event",
995
+ "name": "JobDisputed",
996
+ "inputs": [
997
+ {
998
+ "name": "jobId",
999
+ "type": "uint256",
1000
+ "indexed": true,
1001
+ "internalType": "uint256"
1002
+ },
1003
+ {
1004
+ "name": "agentId",
1005
+ "type": "uint256",
1006
+ "indexed": true,
1007
+ "internalType": "uint256"
1008
+ },
1009
+ {
1010
+ "name": "by",
1011
+ "type": "address",
1012
+ "indexed": true,
1013
+ "internalType": "address"
1014
+ }
1015
+ ],
1016
+ "anonymous": false
1017
+ },
1018
+ {
1019
+ "type": "event",
1020
+ "name": "JobOpened",
1021
+ "inputs": [
1022
+ {
1023
+ "name": "jobId",
1024
+ "type": "uint256",
1025
+ "indexed": true,
1026
+ "internalType": "uint256"
1027
+ },
1028
+ {
1029
+ "name": "agentId",
1030
+ "type": "uint256",
1031
+ "indexed": true,
1032
+ "internalType": "uint256"
1033
+ },
1034
+ {
1035
+ "name": "hirer",
1036
+ "type": "address",
1037
+ "indexed": true,
1038
+ "internalType": "address"
1039
+ },
1040
+ {
1041
+ "name": "token",
1042
+ "type": "address",
1043
+ "indexed": false,
1044
+ "internalType": "address"
1045
+ },
1046
+ {
1047
+ "name": "amount",
1048
+ "type": "uint256",
1049
+ "indexed": false,
1050
+ "internalType": "uint256"
1051
+ },
1052
+ {
1053
+ "name": "deadline",
1054
+ "type": "uint64",
1055
+ "indexed": false,
1056
+ "internalType": "uint64"
1057
+ },
1058
+ {
1059
+ "name": "specHash",
1060
+ "type": "bytes32",
1061
+ "indexed": false,
1062
+ "internalType": "bytes32"
1063
+ },
1064
+ {
1065
+ "name": "endpoint",
1066
+ "type": "string",
1067
+ "indexed": false,
1068
+ "internalType": "string"
1069
+ }
1070
+ ],
1071
+ "anonymous": false
1072
+ },
1073
+ {
1074
+ "type": "event",
1075
+ "name": "JobRefunded",
1076
+ "inputs": [
1077
+ {
1078
+ "name": "jobId",
1079
+ "type": "uint256",
1080
+ "indexed": true,
1081
+ "internalType": "uint256"
1082
+ },
1083
+ {
1084
+ "name": "agentId",
1085
+ "type": "uint256",
1086
+ "indexed": true,
1087
+ "internalType": "uint256"
1088
+ },
1089
+ {
1090
+ "name": "amount",
1091
+ "type": "uint256",
1092
+ "indexed": false,
1093
+ "internalType": "uint256"
1094
+ }
1095
+ ],
1096
+ "anonymous": false
1097
+ },
1098
+ {
1099
+ "type": "event",
1100
+ "name": "JobReleased",
1101
+ "inputs": [
1102
+ {
1103
+ "name": "jobId",
1104
+ "type": "uint256",
1105
+ "indexed": true,
1106
+ "internalType": "uint256"
1107
+ },
1108
+ {
1109
+ "name": "agentId",
1110
+ "type": "uint256",
1111
+ "indexed": true,
1112
+ "internalType": "uint256"
1113
+ },
1114
+ {
1115
+ "name": "releasedBy",
1116
+ "type": "address",
1117
+ "indexed": true,
1118
+ "internalType": "address"
1119
+ },
1120
+ {
1121
+ "name": "amount",
1122
+ "type": "uint256",
1123
+ "indexed": false,
1124
+ "internalType": "uint256"
1125
+ }
1126
+ ],
1127
+ "anonymous": false
1128
+ },
1129
+ {
1130
+ "type": "event",
1131
+ "name": "PasskeyRegistered",
1132
+ "inputs": [
1133
+ {
1134
+ "name": "hirer",
1135
+ "type": "address",
1136
+ "indexed": true,
1137
+ "internalType": "address"
1138
+ },
1139
+ {
1140
+ "name": "x",
1141
+ "type": "uint256",
1142
+ "indexed": false,
1143
+ "internalType": "uint256"
1144
+ },
1145
+ {
1146
+ "name": "y",
1147
+ "type": "uint256",
1148
+ "indexed": false,
1149
+ "internalType": "uint256"
1150
+ }
1151
+ ],
1152
+ "anonymous": false
1153
+ },
1154
+ {
1155
+ "type": "error",
1156
+ "name": "AuthorizationMismatch",
1157
+ "inputs": [
1158
+ {
1159
+ "name": "expectedNonce",
1160
+ "type": "bytes32",
1161
+ "internalType": "bytes32"
1162
+ },
1163
+ {
1164
+ "name": "givenNonce",
1165
+ "type": "bytes32",
1166
+ "internalType": "bytes32"
1167
+ }
1168
+ ]
1169
+ },
1170
+ {
1171
+ "type": "error",
1172
+ "name": "BadDeadline",
1173
+ "inputs": []
1174
+ },
1175
+ {
1176
+ "type": "error",
1177
+ "name": "DeadlineNotPassed",
1178
+ "inputs": [
1179
+ {
1180
+ "name": "jobId",
1181
+ "type": "uint256",
1182
+ "internalType": "uint256"
1183
+ },
1184
+ {
1185
+ "name": "deadline",
1186
+ "type": "uint64",
1187
+ "internalType": "uint64"
1188
+ }
1189
+ ]
1190
+ },
1191
+ {
1192
+ "type": "error",
1193
+ "name": "InvalidPasskey",
1194
+ "inputs": []
1195
+ },
1196
+ {
1197
+ "type": "error",
1198
+ "name": "InvalidPasskeySignature",
1199
+ "inputs": []
1200
+ },
1201
+ {
1202
+ "type": "error",
1203
+ "name": "InvalidStatus",
1204
+ "inputs": [
1205
+ {
1206
+ "name": "jobId",
1207
+ "type": "uint256",
1208
+ "internalType": "uint256"
1209
+ },
1210
+ {
1211
+ "name": "current",
1212
+ "type": "uint8",
1213
+ "internalType": "enum IJobEscrow.Status"
1214
+ }
1215
+ ]
1216
+ },
1217
+ {
1218
+ "type": "error",
1219
+ "name": "NoAgentWallet",
1220
+ "inputs": [
1221
+ {
1222
+ "name": "agentId",
1223
+ "type": "uint256",
1224
+ "internalType": "uint256"
1225
+ }
1226
+ ]
1227
+ },
1228
+ {
1229
+ "type": "error",
1230
+ "name": "NoPasskey",
1231
+ "inputs": [
1232
+ {
1233
+ "name": "hirer",
1234
+ "type": "address",
1235
+ "internalType": "address"
1236
+ }
1237
+ ]
1238
+ },
1239
+ {
1240
+ "type": "error",
1241
+ "name": "NotAgent",
1242
+ "inputs": [
1243
+ {
1244
+ "name": "jobId",
1245
+ "type": "uint256",
1246
+ "internalType": "uint256"
1247
+ },
1248
+ {
1249
+ "name": "caller",
1250
+ "type": "address",
1251
+ "internalType": "address"
1252
+ }
1253
+ ]
1254
+ },
1255
+ {
1256
+ "type": "error",
1257
+ "name": "NotAuthorizedToRelease",
1258
+ "inputs": [
1259
+ {
1260
+ "name": "jobId",
1261
+ "type": "uint256",
1262
+ "internalType": "uint256"
1263
+ },
1264
+ {
1265
+ "name": "caller",
1266
+ "type": "address",
1267
+ "internalType": "address"
1268
+ }
1269
+ ]
1270
+ },
1271
+ {
1272
+ "type": "error",
1273
+ "name": "NotHirer",
1274
+ "inputs": [
1275
+ {
1276
+ "name": "jobId",
1277
+ "type": "uint256",
1278
+ "internalType": "uint256"
1279
+ },
1280
+ {
1281
+ "name": "caller",
1282
+ "type": "address",
1283
+ "internalType": "address"
1284
+ }
1285
+ ]
1286
+ },
1287
+ {
1288
+ "type": "error",
1289
+ "name": "Reentrancy",
1290
+ "inputs": []
1291
+ },
1292
+ {
1293
+ "type": "error",
1294
+ "name": "ReviewWindowClosed",
1295
+ "inputs": [
1296
+ {
1297
+ "name": "jobId",
1298
+ "type": "uint256",
1299
+ "internalType": "uint256"
1300
+ },
1301
+ {
1302
+ "name": "until",
1303
+ "type": "uint64",
1304
+ "internalType": "uint64"
1305
+ }
1306
+ ]
1307
+ },
1308
+ {
1309
+ "type": "error",
1310
+ "name": "TransferFailed",
1311
+ "inputs": []
1312
+ },
1313
+ {
1314
+ "type": "error",
1315
+ "name": "UnknownAgent",
1316
+ "inputs": [
1317
+ {
1318
+ "name": "agentId",
1319
+ "type": "uint256",
1320
+ "internalType": "uint256"
1321
+ }
1322
+ ]
1323
+ },
1324
+ {
1325
+ "type": "error",
1326
+ "name": "UnsupportedToken",
1327
+ "inputs": [
1328
+ {
1329
+ "name": "token",
1330
+ "type": "address",
1331
+ "internalType": "address"
1332
+ }
1333
+ ]
1334
+ },
1335
+ {
1336
+ "type": "error",
1337
+ "name": "ZeroAmount",
1338
+ "inputs": []
1339
+ }
1340
+ ] as const;
1341
+
1342
+ export const identityRegistryAbi = [
1343
+ {
1344
+ "type": "function",
1345
+ "name": "getAgentWallet",
1346
+ "inputs": [
1347
+ {
1348
+ "name": "agentId",
1349
+ "type": "uint256",
1350
+ "internalType": "uint256"
1351
+ }
1352
+ ],
1353
+ "outputs": [
1354
+ {
1355
+ "name": "",
1356
+ "type": "address",
1357
+ "internalType": "address"
1358
+ }
1359
+ ],
1360
+ "stateMutability": "view"
1361
+ },
1362
+ {
1363
+ "type": "function",
1364
+ "name": "getMetadata",
1365
+ "inputs": [
1366
+ {
1367
+ "name": "agentId",
1368
+ "type": "uint256",
1369
+ "internalType": "uint256"
1370
+ },
1371
+ {
1372
+ "name": "metadataKey",
1373
+ "type": "string",
1374
+ "internalType": "string"
1375
+ }
1376
+ ],
1377
+ "outputs": [
1378
+ {
1379
+ "name": "",
1380
+ "type": "bytes",
1381
+ "internalType": "bytes"
1382
+ }
1383
+ ],
1384
+ "stateMutability": "view"
1385
+ },
1386
+ {
1387
+ "type": "function",
1388
+ "name": "isAuthorizedOrOwner",
1389
+ "inputs": [
1390
+ {
1391
+ "name": "spender",
1392
+ "type": "address",
1393
+ "internalType": "address"
1394
+ },
1395
+ {
1396
+ "name": "agentId",
1397
+ "type": "uint256",
1398
+ "internalType": "uint256"
1399
+ }
1400
+ ],
1401
+ "outputs": [
1402
+ {
1403
+ "name": "",
1404
+ "type": "bool",
1405
+ "internalType": "bool"
1406
+ }
1407
+ ],
1408
+ "stateMutability": "view"
1409
+ },
1410
+ {
1411
+ "type": "function",
1412
+ "name": "ownerOf",
1413
+ "inputs": [
1414
+ {
1415
+ "name": "agentId",
1416
+ "type": "uint256",
1417
+ "internalType": "uint256"
1418
+ }
1419
+ ],
1420
+ "outputs": [
1421
+ {
1422
+ "name": "",
1423
+ "type": "address",
1424
+ "internalType": "address"
1425
+ }
1426
+ ],
1427
+ "stateMutability": "view"
1428
+ },
1429
+ {
1430
+ "type": "function",
1431
+ "name": "register",
1432
+ "inputs": [
1433
+ {
1434
+ "name": "agentURI",
1435
+ "type": "string",
1436
+ "internalType": "string"
1437
+ },
1438
+ {
1439
+ "name": "metadata",
1440
+ "type": "tuple[]",
1441
+ "internalType": "struct IIdentityRegistry.MetadataEntry[]",
1442
+ "components": [
1443
+ {
1444
+ "name": "metadataKey",
1445
+ "type": "string",
1446
+ "internalType": "string"
1447
+ },
1448
+ {
1449
+ "name": "metadataValue",
1450
+ "type": "bytes",
1451
+ "internalType": "bytes"
1452
+ }
1453
+ ]
1454
+ }
1455
+ ],
1456
+ "outputs": [
1457
+ {
1458
+ "name": "agentId",
1459
+ "type": "uint256",
1460
+ "internalType": "uint256"
1461
+ }
1462
+ ],
1463
+ "stateMutability": "nonpayable"
1464
+ },
1465
+ {
1466
+ "type": "function",
1467
+ "name": "register",
1468
+ "inputs": [
1469
+ {
1470
+ "name": "agentURI",
1471
+ "type": "string",
1472
+ "internalType": "string"
1473
+ }
1474
+ ],
1475
+ "outputs": [
1476
+ {
1477
+ "name": "agentId",
1478
+ "type": "uint256",
1479
+ "internalType": "uint256"
1480
+ }
1481
+ ],
1482
+ "stateMutability": "nonpayable"
1483
+ },
1484
+ {
1485
+ "type": "function",
1486
+ "name": "setAgentURI",
1487
+ "inputs": [
1488
+ {
1489
+ "name": "agentId",
1490
+ "type": "uint256",
1491
+ "internalType": "uint256"
1492
+ },
1493
+ {
1494
+ "name": "newURI",
1495
+ "type": "string",
1496
+ "internalType": "string"
1497
+ }
1498
+ ],
1499
+ "outputs": [],
1500
+ "stateMutability": "nonpayable"
1501
+ },
1502
+ {
1503
+ "type": "function",
1504
+ "name": "setMetadata",
1505
+ "inputs": [
1506
+ {
1507
+ "name": "agentId",
1508
+ "type": "uint256",
1509
+ "internalType": "uint256"
1510
+ },
1511
+ {
1512
+ "name": "metadataKey",
1513
+ "type": "string",
1514
+ "internalType": "string"
1515
+ },
1516
+ {
1517
+ "name": "metadataValue",
1518
+ "type": "bytes",
1519
+ "internalType": "bytes"
1520
+ }
1521
+ ],
1522
+ "outputs": [],
1523
+ "stateMutability": "nonpayable"
1524
+ },
1525
+ {
1526
+ "type": "event",
1527
+ "name": "MetadataSet",
1528
+ "inputs": [
1529
+ {
1530
+ "name": "agentId",
1531
+ "type": "uint256",
1532
+ "indexed": true,
1533
+ "internalType": "uint256"
1534
+ },
1535
+ {
1536
+ "name": "indexedMetadataKey",
1537
+ "type": "string",
1538
+ "indexed": true,
1539
+ "internalType": "string"
1540
+ },
1541
+ {
1542
+ "name": "metadataKey",
1543
+ "type": "string",
1544
+ "indexed": false,
1545
+ "internalType": "string"
1546
+ },
1547
+ {
1548
+ "name": "metadataValue",
1549
+ "type": "bytes",
1550
+ "indexed": false,
1551
+ "internalType": "bytes"
1552
+ }
1553
+ ],
1554
+ "anonymous": false
1555
+ },
1556
+ {
1557
+ "type": "event",
1558
+ "name": "Registered",
1559
+ "inputs": [
1560
+ {
1561
+ "name": "agentId",
1562
+ "type": "uint256",
1563
+ "indexed": true,
1564
+ "internalType": "uint256"
1565
+ },
1566
+ {
1567
+ "name": "agentURI",
1568
+ "type": "string",
1569
+ "indexed": false,
1570
+ "internalType": "string"
1571
+ },
1572
+ {
1573
+ "name": "owner",
1574
+ "type": "address",
1575
+ "indexed": true,
1576
+ "internalType": "address"
1577
+ }
1578
+ ],
1579
+ "anonymous": false
1580
+ },
1581
+ {
1582
+ "type": "function",
1583
+ "name": "tokenURI",
1584
+ "stateMutability": "view",
1585
+ "inputs": [
1586
+ {
1587
+ "name": "tokenId",
1588
+ "type": "uint256"
1589
+ }
1590
+ ],
1591
+ "outputs": [
1592
+ {
1593
+ "name": "",
1594
+ "type": "string"
1595
+ }
1596
+ ]
1597
+ },
1598
+ {
1599
+ "type": "function",
1600
+ "name": "balanceOf",
1601
+ "stateMutability": "view",
1602
+ "inputs": [
1603
+ {
1604
+ "name": "owner",
1605
+ "type": "address"
1606
+ }
1607
+ ],
1608
+ "outputs": [
1609
+ {
1610
+ "name": "",
1611
+ "type": "uint256"
1612
+ }
1613
+ ]
1614
+ }
1615
+ ] as const;
1616
+
1617
+ export const reputationRegistryAbi = [
1618
+ {
1619
+ "type": "function",
1620
+ "name": "getClients",
1621
+ "inputs": [
1622
+ {
1623
+ "name": "agentId",
1624
+ "type": "uint256",
1625
+ "internalType": "uint256"
1626
+ }
1627
+ ],
1628
+ "outputs": [
1629
+ {
1630
+ "name": "",
1631
+ "type": "address[]",
1632
+ "internalType": "address[]"
1633
+ }
1634
+ ],
1635
+ "stateMutability": "view"
1636
+ },
1637
+ {
1638
+ "type": "function",
1639
+ "name": "getIdentityRegistry",
1640
+ "inputs": [],
1641
+ "outputs": [
1642
+ {
1643
+ "name": "",
1644
+ "type": "address",
1645
+ "internalType": "address"
1646
+ }
1647
+ ],
1648
+ "stateMutability": "view"
1649
+ },
1650
+ {
1651
+ "type": "function",
1652
+ "name": "getLastIndex",
1653
+ "inputs": [
1654
+ {
1655
+ "name": "agentId",
1656
+ "type": "uint256",
1657
+ "internalType": "uint256"
1658
+ },
1659
+ {
1660
+ "name": "clientAddress",
1661
+ "type": "address",
1662
+ "internalType": "address"
1663
+ }
1664
+ ],
1665
+ "outputs": [
1666
+ {
1667
+ "name": "",
1668
+ "type": "uint64",
1669
+ "internalType": "uint64"
1670
+ }
1671
+ ],
1672
+ "stateMutability": "view"
1673
+ },
1674
+ {
1675
+ "type": "function",
1676
+ "name": "giveFeedback",
1677
+ "inputs": [
1678
+ {
1679
+ "name": "agentId",
1680
+ "type": "uint256",
1681
+ "internalType": "uint256"
1682
+ },
1683
+ {
1684
+ "name": "value",
1685
+ "type": "int128",
1686
+ "internalType": "int128"
1687
+ },
1688
+ {
1689
+ "name": "valueDecimals",
1690
+ "type": "uint8",
1691
+ "internalType": "uint8"
1692
+ },
1693
+ {
1694
+ "name": "tag1",
1695
+ "type": "string",
1696
+ "internalType": "string"
1697
+ },
1698
+ {
1699
+ "name": "tag2",
1700
+ "type": "string",
1701
+ "internalType": "string"
1702
+ },
1703
+ {
1704
+ "name": "endpoint",
1705
+ "type": "string",
1706
+ "internalType": "string"
1707
+ },
1708
+ {
1709
+ "name": "feedbackURI",
1710
+ "type": "string",
1711
+ "internalType": "string"
1712
+ },
1713
+ {
1714
+ "name": "feedbackHash",
1715
+ "type": "bytes32",
1716
+ "internalType": "bytes32"
1717
+ }
1718
+ ],
1719
+ "outputs": [],
1720
+ "stateMutability": "nonpayable"
1721
+ },
1722
+ {
1723
+ "type": "function",
1724
+ "name": "readFeedback",
1725
+ "inputs": [
1726
+ {
1727
+ "name": "agentId",
1728
+ "type": "uint256",
1729
+ "internalType": "uint256"
1730
+ },
1731
+ {
1732
+ "name": "clientAddress",
1733
+ "type": "address",
1734
+ "internalType": "address"
1735
+ },
1736
+ {
1737
+ "name": "feedbackIndex",
1738
+ "type": "uint64",
1739
+ "internalType": "uint64"
1740
+ }
1741
+ ],
1742
+ "outputs": [
1743
+ {
1744
+ "name": "value",
1745
+ "type": "int128",
1746
+ "internalType": "int128"
1747
+ },
1748
+ {
1749
+ "name": "valueDecimals",
1750
+ "type": "uint8",
1751
+ "internalType": "uint8"
1752
+ },
1753
+ {
1754
+ "name": "tag1",
1755
+ "type": "string",
1756
+ "internalType": "string"
1757
+ },
1758
+ {
1759
+ "name": "tag2",
1760
+ "type": "string",
1761
+ "internalType": "string"
1762
+ },
1763
+ {
1764
+ "name": "isRevoked",
1765
+ "type": "bool",
1766
+ "internalType": "bool"
1767
+ }
1768
+ ],
1769
+ "stateMutability": "view"
1770
+ },
1771
+ {
1772
+ "type": "event",
1773
+ "name": "NewFeedback",
1774
+ "inputs": [
1775
+ {
1776
+ "name": "agentId",
1777
+ "type": "uint256",
1778
+ "indexed": true,
1779
+ "internalType": "uint256"
1780
+ },
1781
+ {
1782
+ "name": "clientAddress",
1783
+ "type": "address",
1784
+ "indexed": true,
1785
+ "internalType": "address"
1786
+ },
1787
+ {
1788
+ "name": "feedbackIndex",
1789
+ "type": "uint64",
1790
+ "indexed": false,
1791
+ "internalType": "uint64"
1792
+ },
1793
+ {
1794
+ "name": "value",
1795
+ "type": "int128",
1796
+ "indexed": false,
1797
+ "internalType": "int128"
1798
+ },
1799
+ {
1800
+ "name": "valueDecimals",
1801
+ "type": "uint8",
1802
+ "indexed": false,
1803
+ "internalType": "uint8"
1804
+ },
1805
+ {
1806
+ "name": "indexedTag1",
1807
+ "type": "string",
1808
+ "indexed": true,
1809
+ "internalType": "string"
1810
+ },
1811
+ {
1812
+ "name": "tag1",
1813
+ "type": "string",
1814
+ "indexed": false,
1815
+ "internalType": "string"
1816
+ },
1817
+ {
1818
+ "name": "tag2",
1819
+ "type": "string",
1820
+ "indexed": false,
1821
+ "internalType": "string"
1822
+ },
1823
+ {
1824
+ "name": "endpoint",
1825
+ "type": "string",
1826
+ "indexed": false,
1827
+ "internalType": "string"
1828
+ },
1829
+ {
1830
+ "name": "feedbackURI",
1831
+ "type": "string",
1832
+ "indexed": false,
1833
+ "internalType": "string"
1834
+ },
1835
+ {
1836
+ "name": "feedbackHash",
1837
+ "type": "bytes32",
1838
+ "indexed": false,
1839
+ "internalType": "bytes32"
1840
+ }
1841
+ ],
1842
+ "anonymous": false
1843
+ },
1844
+ {
1845
+ "type": "function",
1846
+ "name": "getSummary",
1847
+ "stateMutability": "view",
1848
+ "inputs": [
1849
+ {
1850
+ "name": "agentId",
1851
+ "type": "uint256"
1852
+ },
1853
+ {
1854
+ "name": "clientAddresses",
1855
+ "type": "address[]"
1856
+ },
1857
+ {
1858
+ "name": "tag1",
1859
+ "type": "string"
1860
+ },
1861
+ {
1862
+ "name": "tag2",
1863
+ "type": "string"
1864
+ }
1865
+ ],
1866
+ "outputs": [
1867
+ {
1868
+ "name": "count",
1869
+ "type": "uint64"
1870
+ },
1871
+ {
1872
+ "name": "summaryValue",
1873
+ "type": "int128"
1874
+ },
1875
+ {
1876
+ "name": "summaryValueDecimals",
1877
+ "type": "uint8"
1878
+ }
1879
+ ]
1880
+ },
1881
+ {
1882
+ "type": "function",
1883
+ "name": "readAllFeedback",
1884
+ "stateMutability": "view",
1885
+ "inputs": [
1886
+ {
1887
+ "name": "agentId",
1888
+ "type": "uint256"
1889
+ },
1890
+ {
1891
+ "name": "clientAddresses",
1892
+ "type": "address[]"
1893
+ },
1894
+ {
1895
+ "name": "tag1",
1896
+ "type": "string"
1897
+ },
1898
+ {
1899
+ "name": "tag2",
1900
+ "type": "string"
1901
+ },
1902
+ {
1903
+ "name": "includeRevoked",
1904
+ "type": "bool"
1905
+ }
1906
+ ],
1907
+ "outputs": [
1908
+ {
1909
+ "name": "clients",
1910
+ "type": "address[]"
1911
+ },
1912
+ {
1913
+ "name": "feedbackIndexes",
1914
+ "type": "uint64[]"
1915
+ },
1916
+ {
1917
+ "name": "values",
1918
+ "type": "int128[]"
1919
+ },
1920
+ {
1921
+ "name": "valueDecimals",
1922
+ "type": "uint8[]"
1923
+ },
1924
+ {
1925
+ "name": "tag1s",
1926
+ "type": "string[]"
1927
+ },
1928
+ {
1929
+ "name": "tag2s",
1930
+ "type": "string[]"
1931
+ },
1932
+ {
1933
+ "name": "revokedStatuses",
1934
+ "type": "bool[]"
1935
+ }
1936
+ ]
1937
+ }
1938
+ ] as const;
1939
+
1940
+ export const usdcAbi = [
1941
+ {
1942
+ "type": "function",
1943
+ "name": "allowance",
1944
+ "inputs": [
1945
+ {
1946
+ "name": "owner",
1947
+ "type": "address",
1948
+ "internalType": "address"
1949
+ },
1950
+ {
1951
+ "name": "spender",
1952
+ "type": "address",
1953
+ "internalType": "address"
1954
+ }
1955
+ ],
1956
+ "outputs": [
1957
+ {
1958
+ "name": "",
1959
+ "type": "uint256",
1960
+ "internalType": "uint256"
1961
+ }
1962
+ ],
1963
+ "stateMutability": "view"
1964
+ },
1965
+ {
1966
+ "type": "function",
1967
+ "name": "approve",
1968
+ "inputs": [
1969
+ {
1970
+ "name": "spender",
1971
+ "type": "address",
1972
+ "internalType": "address"
1973
+ },
1974
+ {
1975
+ "name": "amount",
1976
+ "type": "uint256",
1977
+ "internalType": "uint256"
1978
+ }
1979
+ ],
1980
+ "outputs": [
1981
+ {
1982
+ "name": "",
1983
+ "type": "bool",
1984
+ "internalType": "bool"
1985
+ }
1986
+ ],
1987
+ "stateMutability": "nonpayable"
1988
+ },
1989
+ {
1990
+ "type": "function",
1991
+ "name": "balanceOf",
1992
+ "inputs": [
1993
+ {
1994
+ "name": "account",
1995
+ "type": "address",
1996
+ "internalType": "address"
1997
+ }
1998
+ ],
1999
+ "outputs": [
2000
+ {
2001
+ "name": "",
2002
+ "type": "uint256",
2003
+ "internalType": "uint256"
2004
+ }
2005
+ ],
2006
+ "stateMutability": "view"
2007
+ },
2008
+ {
2009
+ "type": "function",
2010
+ "name": "decimals",
2011
+ "inputs": [],
2012
+ "outputs": [
2013
+ {
2014
+ "name": "",
2015
+ "type": "uint8",
2016
+ "internalType": "uint8"
2017
+ }
2018
+ ],
2019
+ "stateMutability": "view"
2020
+ },
2021
+ {
2022
+ "type": "function",
2023
+ "name": "totalSupply",
2024
+ "inputs": [],
2025
+ "outputs": [
2026
+ {
2027
+ "name": "",
2028
+ "type": "uint256",
2029
+ "internalType": "uint256"
2030
+ }
2031
+ ],
2032
+ "stateMutability": "view"
2033
+ },
2034
+ {
2035
+ "type": "function",
2036
+ "name": "transfer",
2037
+ "inputs": [
2038
+ {
2039
+ "name": "to",
2040
+ "type": "address",
2041
+ "internalType": "address"
2042
+ },
2043
+ {
2044
+ "name": "amount",
2045
+ "type": "uint256",
2046
+ "internalType": "uint256"
2047
+ }
2048
+ ],
2049
+ "outputs": [
2050
+ {
2051
+ "name": "",
2052
+ "type": "bool",
2053
+ "internalType": "bool"
2054
+ }
2055
+ ],
2056
+ "stateMutability": "nonpayable"
2057
+ },
2058
+ {
2059
+ "type": "function",
2060
+ "name": "transferFrom",
2061
+ "inputs": [
2062
+ {
2063
+ "name": "from",
2064
+ "type": "address",
2065
+ "internalType": "address"
2066
+ },
2067
+ {
2068
+ "name": "to",
2069
+ "type": "address",
2070
+ "internalType": "address"
2071
+ },
2072
+ {
2073
+ "name": "amount",
2074
+ "type": "uint256",
2075
+ "internalType": "uint256"
2076
+ }
2077
+ ],
2078
+ "outputs": [
2079
+ {
2080
+ "name": "",
2081
+ "type": "bool",
2082
+ "internalType": "bool"
2083
+ }
2084
+ ],
2085
+ "stateMutability": "nonpayable"
2086
+ },
2087
+ {
2088
+ "type": "event",
2089
+ "name": "Approval",
2090
+ "inputs": [
2091
+ {
2092
+ "name": "owner",
2093
+ "type": "address",
2094
+ "indexed": true,
2095
+ "internalType": "address"
2096
+ },
2097
+ {
2098
+ "name": "spender",
2099
+ "type": "address",
2100
+ "indexed": true,
2101
+ "internalType": "address"
2102
+ },
2103
+ {
2104
+ "name": "value",
2105
+ "type": "uint256",
2106
+ "indexed": false,
2107
+ "internalType": "uint256"
2108
+ }
2109
+ ],
2110
+ "anonymous": false
2111
+ },
2112
+ {
2113
+ "type": "event",
2114
+ "name": "Transfer",
2115
+ "inputs": [
2116
+ {
2117
+ "name": "from",
2118
+ "type": "address",
2119
+ "indexed": true,
2120
+ "internalType": "address"
2121
+ },
2122
+ {
2123
+ "name": "to",
2124
+ "type": "address",
2125
+ "indexed": true,
2126
+ "internalType": "address"
2127
+ },
2128
+ {
2129
+ "name": "value",
2130
+ "type": "uint256",
2131
+ "indexed": false,
2132
+ "internalType": "uint256"
2133
+ }
2134
+ ],
2135
+ "anonymous": false
2136
+ },
2137
+ {
2138
+ "type": "function",
2139
+ "name": "receiveWithAuthorization",
2140
+ "inputs": [
2141
+ {
2142
+ "name": "from",
2143
+ "type": "address",
2144
+ "internalType": "address"
2145
+ },
2146
+ {
2147
+ "name": "to",
2148
+ "type": "address",
2149
+ "internalType": "address"
2150
+ },
2151
+ {
2152
+ "name": "value",
2153
+ "type": "uint256",
2154
+ "internalType": "uint256"
2155
+ },
2156
+ {
2157
+ "name": "validAfter",
2158
+ "type": "uint256",
2159
+ "internalType": "uint256"
2160
+ },
2161
+ {
2162
+ "name": "validBefore",
2163
+ "type": "uint256",
2164
+ "internalType": "uint256"
2165
+ },
2166
+ {
2167
+ "name": "nonce",
2168
+ "type": "bytes32",
2169
+ "internalType": "bytes32"
2170
+ },
2171
+ {
2172
+ "name": "signature",
2173
+ "type": "bytes",
2174
+ "internalType": "bytes"
2175
+ }
2176
+ ],
2177
+ "outputs": [],
2178
+ "stateMutability": "nonpayable"
2179
+ },
2180
+ {
2181
+ "type": "function",
2182
+ "name": "name",
2183
+ "stateMutability": "view",
2184
+ "inputs": [],
2185
+ "outputs": [
2186
+ {
2187
+ "name": "",
2188
+ "type": "string"
2189
+ }
2190
+ ]
2191
+ },
2192
+ {
2193
+ "type": "function",
2194
+ "name": "version",
2195
+ "stateMutability": "view",
2196
+ "inputs": [],
2197
+ "outputs": [
2198
+ {
2199
+ "name": "",
2200
+ "type": "string"
2201
+ }
2202
+ ]
2203
+ },
2204
+ {
2205
+ "type": "function",
2206
+ "name": "authorizationState",
2207
+ "stateMutability": "view",
2208
+ "inputs": [
2209
+ {
2210
+ "name": "authorizer",
2211
+ "type": "address"
2212
+ },
2213
+ {
2214
+ "name": "nonce",
2215
+ "type": "bytes32"
2216
+ }
2217
+ ],
2218
+ "outputs": [
2219
+ {
2220
+ "name": "",
2221
+ "type": "bool"
2222
+ }
2223
+ ]
2224
+ }
2225
+ ] as const;