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