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