@panal/sdk 0.19.1 → 0.21.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,1629 @@
1
+ /**
2
+ * Panal SDK — el ABI de PanalTablon, entero.
3
+ *
4
+ * GENERADO, NO SE EDITA A MANO. A diferencia de abis.ts —subconjuntos cortos y
5
+ * estables escritos a mano—, este contrato tiene más de cuarenta funciones,
6
+ * eventos y errores con nombre, y los errores hacen falta todos: sin ellos
7
+ * viem no sabe decir por qué revirtió una transacción, y «NotAllowed: daily
8
+ * quota used» se queda en un código hexadecimal. Se regenera con:
9
+ *
10
+ * cd contracts && forge build && cd .. && node scripts/abi-tablon.mjs
11
+ */
12
+ export const panalTablonAbi = [
13
+ {
14
+ "type": "function",
15
+ "name": "AUTO_ASSIGN_GRACE",
16
+ "inputs": [],
17
+ "outputs": [
18
+ {
19
+ "name": "",
20
+ "type": "uint64",
21
+ "internalType": "uint64"
22
+ }
23
+ ],
24
+ "stateMutability": "view"
25
+ },
26
+ {
27
+ "type": "function",
28
+ "name": "MAX_CHOOSE_WINDOW",
29
+ "inputs": [],
30
+ "outputs": [
31
+ {
32
+ "name": "",
33
+ "type": "uint64",
34
+ "internalType": "uint64"
35
+ }
36
+ ],
37
+ "stateMutability": "view"
38
+ },
39
+ {
40
+ "type": "function",
41
+ "name": "MIN_NATIVE",
42
+ "inputs": [],
43
+ "outputs": [
44
+ {
45
+ "name": "",
46
+ "type": "uint256",
47
+ "internalType": "uint256"
48
+ }
49
+ ],
50
+ "stateMutability": "view"
51
+ },
52
+ {
53
+ "type": "function",
54
+ "name": "MIN_TOKEN",
55
+ "inputs": [],
56
+ "outputs": [
57
+ {
58
+ "name": "",
59
+ "type": "uint256",
60
+ "internalType": "uint256"
61
+ }
62
+ ],
63
+ "stateMutability": "view"
64
+ },
65
+ {
66
+ "type": "function",
67
+ "name": "MIN_WORK_DURATION",
68
+ "inputs": [],
69
+ "outputs": [
70
+ {
71
+ "name": "",
72
+ "type": "uint64",
73
+ "internalType": "uint64"
74
+ }
75
+ ],
76
+ "stateMutability": "view"
77
+ },
78
+ {
79
+ "type": "function",
80
+ "name": "PANAL_TOKEN",
81
+ "inputs": [],
82
+ "outputs": [
83
+ {
84
+ "name": "",
85
+ "type": "address",
86
+ "internalType": "address"
87
+ }
88
+ ],
89
+ "stateMutability": "view"
90
+ },
91
+ {
92
+ "type": "function",
93
+ "name": "agentStats",
94
+ "inputs": [
95
+ {
96
+ "name": "",
97
+ "type": "address",
98
+ "internalType": "address"
99
+ }
100
+ ],
101
+ "outputs": [
102
+ {
103
+ "name": "day",
104
+ "type": "uint32",
105
+ "internalType": "uint32"
106
+ },
107
+ {
108
+ "name": "takenToday",
109
+ "type": "uint16",
110
+ "internalType": "uint16"
111
+ },
112
+ {
113
+ "name": "open",
114
+ "type": "uint16",
115
+ "internalType": "uint16"
116
+ },
117
+ {
118
+ "name": "newcomerUsed",
119
+ "type": "uint8",
120
+ "internalType": "uint8"
121
+ },
122
+ {
123
+ "name": "suspendedUntil",
124
+ "type": "uint64",
125
+ "internalType": "uint64"
126
+ }
127
+ ],
128
+ "stateMutability": "view"
129
+ },
130
+ {
131
+ "type": "function",
132
+ "name": "applyFor",
133
+ "inputs": [
134
+ {
135
+ "name": "jobId",
136
+ "type": "uint256",
137
+ "internalType": "uint256"
138
+ },
139
+ {
140
+ "name": "price",
141
+ "type": "uint256",
142
+ "internalType": "uint256"
143
+ },
144
+ {
145
+ "name": "workDuration",
146
+ "type": "uint64",
147
+ "internalType": "uint64"
148
+ }
149
+ ],
150
+ "outputs": [],
151
+ "stateMutability": "nonpayable"
152
+ },
153
+ {
154
+ "type": "function",
155
+ "name": "approve",
156
+ "inputs": [
157
+ {
158
+ "name": "jobId",
159
+ "type": "uint256",
160
+ "internalType": "uint256"
161
+ },
162
+ {
163
+ "name": "rating",
164
+ "type": "uint8",
165
+ "internalType": "uint8"
166
+ }
167
+ ],
168
+ "outputs": [],
169
+ "stateMutability": "nonpayable"
170
+ },
171
+ {
172
+ "type": "function",
173
+ "name": "attestResolution",
174
+ "inputs": [
175
+ {
176
+ "name": "jobId",
177
+ "type": "uint256",
178
+ "internalType": "uint256"
179
+ },
180
+ {
181
+ "name": "workerShareBps",
182
+ "type": "uint256",
183
+ "internalType": "uint256"
184
+ }
185
+ ],
186
+ "outputs": [],
187
+ "stateMutability": "nonpayable"
188
+ },
189
+ {
190
+ "type": "function",
191
+ "name": "autoAssign",
192
+ "inputs": [
193
+ {
194
+ "name": "jobId",
195
+ "type": "uint256",
196
+ "internalType": "uint256"
197
+ }
198
+ ],
199
+ "outputs": [],
200
+ "stateMutability": "nonpayable"
201
+ },
202
+ {
203
+ "type": "function",
204
+ "name": "books",
205
+ "inputs": [
206
+ {
207
+ "name": "",
208
+ "type": "address",
209
+ "internalType": "address"
210
+ }
211
+ ],
212
+ "outputs": [
213
+ {
214
+ "name": "posted",
215
+ "type": "uint256",
216
+ "internalType": "uint256"
217
+ },
218
+ {
219
+ "name": "inEscrow",
220
+ "type": "uint256",
221
+ "internalType": "uint256"
222
+ },
223
+ {
224
+ "name": "owedTotal",
225
+ "type": "uint256",
226
+ "internalType": "uint256"
227
+ },
228
+ {
229
+ "name": "pulled",
230
+ "type": "uint256",
231
+ "internalType": "uint256"
232
+ },
233
+ {
234
+ "name": "attributed",
235
+ "type": "uint256",
236
+ "internalType": "uint256"
237
+ }
238
+ ],
239
+ "stateMutability": "view"
240
+ },
241
+ {
242
+ "type": "function",
243
+ "name": "campaignCap",
244
+ "inputs": [
245
+ {
246
+ "name": "",
247
+ "type": "bytes32",
248
+ "internalType": "bytes32"
249
+ }
250
+ ],
251
+ "outputs": [
252
+ {
253
+ "name": "",
254
+ "type": "uint8",
255
+ "internalType": "uint8"
256
+ }
257
+ ],
258
+ "stateMutability": "view"
259
+ },
260
+ {
261
+ "type": "function",
262
+ "name": "campaignTaken",
263
+ "inputs": [
264
+ {
265
+ "name": "",
266
+ "type": "bytes32",
267
+ "internalType": "bytes32"
268
+ },
269
+ {
270
+ "name": "",
271
+ "type": "address",
272
+ "internalType": "address"
273
+ }
274
+ ],
275
+ "outputs": [
276
+ {
277
+ "name": "",
278
+ "type": "uint8",
279
+ "internalType": "uint8"
280
+ }
281
+ ],
282
+ "stateMutability": "view"
283
+ },
284
+ {
285
+ "type": "function",
286
+ "name": "canTake",
287
+ "inputs": [
288
+ {
289
+ "name": "agent",
290
+ "type": "address",
291
+ "internalType": "address"
292
+ },
293
+ {
294
+ "name": "jobId",
295
+ "type": "uint256",
296
+ "internalType": "uint256"
297
+ }
298
+ ],
299
+ "outputs": [
300
+ {
301
+ "name": "ok",
302
+ "type": "bool",
303
+ "internalType": "bool"
304
+ },
305
+ {
306
+ "name": "reason",
307
+ "type": "string",
308
+ "internalType": "string"
309
+ }
310
+ ],
311
+ "stateMutability": "view"
312
+ },
313
+ {
314
+ "type": "function",
315
+ "name": "caps",
316
+ "inputs": [
317
+ {
318
+ "name": "",
319
+ "type": "address",
320
+ "internalType": "address"
321
+ }
322
+ ],
323
+ "outputs": [
324
+ {
325
+ "name": "perJob",
326
+ "type": "uint256",
327
+ "internalType": "uint256"
328
+ },
329
+ {
330
+ "name": "total",
331
+ "type": "uint256",
332
+ "internalType": "uint256"
333
+ }
334
+ ],
335
+ "stateMutability": "view"
336
+ },
337
+ {
338
+ "type": "function",
339
+ "name": "categoryMask",
340
+ "inputs": [
341
+ {
342
+ "name": "",
343
+ "type": "address",
344
+ "internalType": "address"
345
+ }
346
+ ],
347
+ "outputs": [
348
+ {
349
+ "name": "",
350
+ "type": "uint256",
351
+ "internalType": "uint256"
352
+ }
353
+ ],
354
+ "stateMutability": "view"
355
+ },
356
+ {
357
+ "type": "function",
358
+ "name": "choose",
359
+ "inputs": [
360
+ {
361
+ "name": "jobId",
362
+ "type": "uint256",
363
+ "internalType": "uint256"
364
+ },
365
+ {
366
+ "name": "agent",
367
+ "type": "address",
368
+ "internalType": "address"
369
+ }
370
+ ],
371
+ "outputs": [],
372
+ "stateMutability": "payable"
373
+ },
374
+ {
375
+ "type": "function",
376
+ "name": "claim",
377
+ "inputs": [
378
+ {
379
+ "name": "currency",
380
+ "type": "address",
381
+ "internalType": "address"
382
+ }
383
+ ],
384
+ "outputs": [],
385
+ "stateMutability": "nonpayable"
386
+ },
387
+ {
388
+ "type": "function",
389
+ "name": "dispute",
390
+ "inputs": [
391
+ {
392
+ "name": "jobId",
393
+ "type": "uint256",
394
+ "internalType": "uint256"
395
+ }
396
+ ],
397
+ "outputs": [],
398
+ "stateMutability": "nonpayable"
399
+ },
400
+ {
401
+ "type": "function",
402
+ "name": "escrow",
403
+ "inputs": [],
404
+ "outputs": [
405
+ {
406
+ "name": "",
407
+ "type": "address",
408
+ "internalType": "contract ITablonEscrow"
409
+ }
410
+ ],
411
+ "stateMutability": "view"
412
+ },
413
+ {
414
+ "type": "function",
415
+ "name": "expire",
416
+ "inputs": [
417
+ {
418
+ "name": "jobId",
419
+ "type": "uint256",
420
+ "internalType": "uint256"
421
+ }
422
+ ],
423
+ "outputs": [],
424
+ "stateMutability": "nonpayable"
425
+ },
426
+ {
427
+ "type": "function",
428
+ "name": "getJob",
429
+ "inputs": [
430
+ {
431
+ "name": "jobId",
432
+ "type": "uint256",
433
+ "internalType": "uint256"
434
+ }
435
+ ],
436
+ "outputs": [
437
+ {
438
+ "name": "",
439
+ "type": "tuple",
440
+ "internalType": "struct PanalTablon.Job",
441
+ "components": [
442
+ {
443
+ "name": "client",
444
+ "type": "address",
445
+ "internalType": "address"
446
+ },
447
+ {
448
+ "name": "mode",
449
+ "type": "uint8",
450
+ "internalType": "enum PanalTablon.Mode"
451
+ },
452
+ {
453
+ "name": "state",
454
+ "type": "uint8",
455
+ "internalType": "enum PanalTablon.State"
456
+ },
457
+ {
458
+ "name": "category",
459
+ "type": "uint8",
460
+ "internalType": "uint8"
461
+ },
462
+ {
463
+ "name": "experiencedOnly",
464
+ "type": "bool",
465
+ "internalType": "bool"
466
+ },
467
+ {
468
+ "name": "relist",
469
+ "type": "bool",
470
+ "internalType": "bool"
471
+ },
472
+ {
473
+ "name": "attested",
474
+ "type": "bool",
475
+ "internalType": "bool"
476
+ },
477
+ {
478
+ "name": "refundPending",
479
+ "type": "bool",
480
+ "internalType": "bool"
481
+ },
482
+ {
483
+ "name": "currency",
484
+ "type": "address",
485
+ "internalType": "address"
486
+ },
487
+ {
488
+ "name": "amount",
489
+ "type": "uint256",
490
+ "internalType": "uint256"
491
+ },
492
+ {
493
+ "name": "taskHash",
494
+ "type": "bytes32",
495
+ "internalType": "bytes32"
496
+ },
497
+ {
498
+ "name": "advertHash",
499
+ "type": "bytes32",
500
+ "internalType": "bytes32"
501
+ },
502
+ {
503
+ "name": "campaignId",
504
+ "type": "bytes32",
505
+ "internalType": "bytes32"
506
+ },
507
+ {
508
+ "name": "postedAt",
509
+ "type": "uint64",
510
+ "internalType": "uint64"
511
+ },
512
+ {
513
+ "name": "expiresAt",
514
+ "type": "uint64",
515
+ "internalType": "uint64"
516
+ },
517
+ {
518
+ "name": "workDuration",
519
+ "type": "uint64",
520
+ "internalType": "uint64"
521
+ },
522
+ {
523
+ "name": "applyWindow",
524
+ "type": "uint64",
525
+ "internalType": "uint64"
526
+ },
527
+ {
528
+ "name": "chooseWindow",
529
+ "type": "uint64",
530
+ "internalType": "uint64"
531
+ },
532
+ {
533
+ "name": "workerShareBps",
534
+ "type": "uint16",
535
+ "internalType": "uint16"
536
+ },
537
+ {
538
+ "name": "agent",
539
+ "type": "address",
540
+ "internalType": "address"
541
+ },
542
+ {
543
+ "name": "escrowTaskId",
544
+ "type": "uint256",
545
+ "internalType": "uint256"
546
+ }
547
+ ]
548
+ }
549
+ ],
550
+ "stateMutability": "view"
551
+ },
552
+ {
553
+ "type": "function",
554
+ "name": "jobCount",
555
+ "inputs": [],
556
+ "outputs": [
557
+ {
558
+ "name": "",
559
+ "type": "uint256",
560
+ "internalType": "uint256"
561
+ }
562
+ ],
563
+ "stateMutability": "view"
564
+ },
565
+ {
566
+ "type": "function",
567
+ "name": "levelOf",
568
+ "inputs": [
569
+ {
570
+ "name": "agent",
571
+ "type": "address",
572
+ "internalType": "address"
573
+ }
574
+ ],
575
+ "outputs": [
576
+ {
577
+ "name": "level",
578
+ "type": "uint8",
579
+ "internalType": "uint8"
580
+ },
581
+ {
582
+ "name": "dailyCap",
583
+ "type": "uint16",
584
+ "internalType": "uint16"
585
+ }
586
+ ],
587
+ "stateMutability": "view"
588
+ },
589
+ {
590
+ "type": "function",
591
+ "name": "levels",
592
+ "inputs": [
593
+ {
594
+ "name": "",
595
+ "type": "uint256",
596
+ "internalType": "uint256"
597
+ }
598
+ ],
599
+ "outputs": [
600
+ {
601
+ "name": "minCompleted",
602
+ "type": "uint32",
603
+ "internalType": "uint32"
604
+ },
605
+ {
606
+ "name": "minRating",
607
+ "type": "uint16",
608
+ "internalType": "uint16"
609
+ },
610
+ {
611
+ "name": "dailyCap",
612
+ "type": "uint16",
613
+ "internalType": "uint16"
614
+ }
615
+ ],
616
+ "stateMutability": "view"
617
+ },
618
+ {
619
+ "type": "function",
620
+ "name": "newcomerJobs",
621
+ "inputs": [],
622
+ "outputs": [
623
+ {
624
+ "name": "",
625
+ "type": "uint8",
626
+ "internalType": "uint8"
627
+ }
628
+ ],
629
+ "stateMutability": "view"
630
+ },
631
+ {
632
+ "type": "function",
633
+ "name": "offers",
634
+ "inputs": [
635
+ {
636
+ "name": "jobId",
637
+ "type": "uint256",
638
+ "internalType": "uint256"
639
+ }
640
+ ],
641
+ "outputs": [
642
+ {
643
+ "name": "",
644
+ "type": "tuple[]",
645
+ "internalType": "struct PanalTablon.Offer[]",
646
+ "components": [
647
+ {
648
+ "name": "agent",
649
+ "type": "address",
650
+ "internalType": "address"
651
+ },
652
+ {
653
+ "name": "level",
654
+ "type": "uint8",
655
+ "internalType": "uint8"
656
+ },
657
+ {
658
+ "name": "workDuration",
659
+ "type": "uint64",
660
+ "internalType": "uint64"
661
+ },
662
+ {
663
+ "name": "seq",
664
+ "type": "uint64",
665
+ "internalType": "uint64"
666
+ },
667
+ {
668
+ "name": "price",
669
+ "type": "uint256",
670
+ "internalType": "uint256"
671
+ }
672
+ ]
673
+ }
674
+ ],
675
+ "stateMutability": "view"
676
+ },
677
+ {
678
+ "type": "function",
679
+ "name": "owed",
680
+ "inputs": [
681
+ {
682
+ "name": "",
683
+ "type": "address",
684
+ "internalType": "address"
685
+ },
686
+ {
687
+ "name": "",
688
+ "type": "address",
689
+ "internalType": "address"
690
+ }
691
+ ],
692
+ "outputs": [
693
+ {
694
+ "name": "",
695
+ "type": "uint256",
696
+ "internalType": "uint256"
697
+ }
698
+ ],
699
+ "stateMutability": "view"
700
+ },
701
+ {
702
+ "type": "function",
703
+ "name": "owner",
704
+ "inputs": [],
705
+ "outputs": [
706
+ {
707
+ "name": "",
708
+ "type": "address",
709
+ "internalType": "address"
710
+ }
711
+ ],
712
+ "stateMutability": "view"
713
+ },
714
+ {
715
+ "type": "function",
716
+ "name": "paused",
717
+ "inputs": [],
718
+ "outputs": [
719
+ {
720
+ "name": "",
721
+ "type": "bool",
722
+ "internalType": "bool"
723
+ }
724
+ ],
725
+ "stateMutability": "view"
726
+ },
727
+ {
728
+ "type": "function",
729
+ "name": "post",
730
+ "inputs": [
731
+ {
732
+ "name": "p",
733
+ "type": "tuple",
734
+ "internalType": "struct PanalTablon.PostParams",
735
+ "components": [
736
+ {
737
+ "name": "taskHash",
738
+ "type": "bytes32",
739
+ "internalType": "bytes32"
740
+ },
741
+ {
742
+ "name": "advertHash",
743
+ "type": "bytes32",
744
+ "internalType": "bytes32"
745
+ },
746
+ {
747
+ "name": "category",
748
+ "type": "uint8",
749
+ "internalType": "uint8"
750
+ },
751
+ {
752
+ "name": "currency",
753
+ "type": "address",
754
+ "internalType": "address"
755
+ },
756
+ {
757
+ "name": "amount",
758
+ "type": "uint256",
759
+ "internalType": "uint256"
760
+ },
761
+ {
762
+ "name": "workDuration",
763
+ "type": "uint64",
764
+ "internalType": "uint64"
765
+ },
766
+ {
767
+ "name": "expiresAt",
768
+ "type": "uint64",
769
+ "internalType": "uint64"
770
+ },
771
+ {
772
+ "name": "mode",
773
+ "type": "uint8",
774
+ "internalType": "enum PanalTablon.Mode"
775
+ },
776
+ {
777
+ "name": "applyWindow",
778
+ "type": "uint64",
779
+ "internalType": "uint64"
780
+ },
781
+ {
782
+ "name": "chooseWindow",
783
+ "type": "uint64",
784
+ "internalType": "uint64"
785
+ },
786
+ {
787
+ "name": "experiencedOnly",
788
+ "type": "bool",
789
+ "internalType": "bool"
790
+ },
791
+ {
792
+ "name": "relist",
793
+ "type": "bool",
794
+ "internalType": "bool"
795
+ },
796
+ {
797
+ "name": "campaignId",
798
+ "type": "bytes32",
799
+ "internalType": "bytes32"
800
+ },
801
+ {
802
+ "name": "campaignCapPerAgent",
803
+ "type": "uint8",
804
+ "internalType": "uint8"
805
+ }
806
+ ]
807
+ }
808
+ ],
809
+ "outputs": [
810
+ {
811
+ "name": "jobId",
812
+ "type": "uint256",
813
+ "internalType": "uint256"
814
+ }
815
+ ],
816
+ "stateMutability": "payable"
817
+ },
818
+ {
819
+ "type": "function",
820
+ "name": "registry",
821
+ "inputs": [],
822
+ "outputs": [
823
+ {
824
+ "name": "",
825
+ "type": "address",
826
+ "internalType": "contract ITablonRegistry"
827
+ }
828
+ ],
829
+ "stateMutability": "view"
830
+ },
831
+ {
832
+ "type": "function",
833
+ "name": "reputation",
834
+ "inputs": [],
835
+ "outputs": [
836
+ {
837
+ "name": "",
838
+ "type": "address",
839
+ "internalType": "contract ITablonReputation"
840
+ }
841
+ ],
842
+ "stateMutability": "view"
843
+ },
844
+ {
845
+ "type": "function",
846
+ "name": "setCaps",
847
+ "inputs": [
848
+ {
849
+ "name": "currency",
850
+ "type": "address",
851
+ "internalType": "address"
852
+ },
853
+ {
854
+ "name": "perJob",
855
+ "type": "uint256",
856
+ "internalType": "uint256"
857
+ },
858
+ {
859
+ "name": "total",
860
+ "type": "uint256",
861
+ "internalType": "uint256"
862
+ }
863
+ ],
864
+ "outputs": [],
865
+ "stateMutability": "nonpayable"
866
+ },
867
+ {
868
+ "type": "function",
869
+ "name": "setCategories",
870
+ "inputs": [
871
+ {
872
+ "name": "categories",
873
+ "type": "uint8[]",
874
+ "internalType": "uint8[]"
875
+ }
876
+ ],
877
+ "outputs": [],
878
+ "stateMutability": "nonpayable"
879
+ },
880
+ {
881
+ "type": "function",
882
+ "name": "setLevels",
883
+ "inputs": [
884
+ {
885
+ "name": "levels_",
886
+ "type": "tuple[5]",
887
+ "internalType": "struct PanalTablon.Level[5]",
888
+ "components": [
889
+ {
890
+ "name": "minCompleted",
891
+ "type": "uint32",
892
+ "internalType": "uint32"
893
+ },
894
+ {
895
+ "name": "minRating",
896
+ "type": "uint16",
897
+ "internalType": "uint16"
898
+ },
899
+ {
900
+ "name": "dailyCap",
901
+ "type": "uint16",
902
+ "internalType": "uint16"
903
+ }
904
+ ]
905
+ }
906
+ ],
907
+ "outputs": [],
908
+ "stateMutability": "nonpayable"
909
+ },
910
+ {
911
+ "type": "function",
912
+ "name": "setNewcomerJobs",
913
+ "inputs": [
914
+ {
915
+ "name": "jobs_",
916
+ "type": "uint8",
917
+ "internalType": "uint8"
918
+ }
919
+ ],
920
+ "outputs": [],
921
+ "stateMutability": "nonpayable"
922
+ },
923
+ {
924
+ "type": "function",
925
+ "name": "setPaused",
926
+ "inputs": [
927
+ {
928
+ "name": "paused_",
929
+ "type": "bool",
930
+ "internalType": "bool"
931
+ }
932
+ ],
933
+ "outputs": [],
934
+ "stateMutability": "nonpayable"
935
+ },
936
+ {
937
+ "type": "function",
938
+ "name": "settle",
939
+ "inputs": [
940
+ {
941
+ "name": "jobId",
942
+ "type": "uint256",
943
+ "internalType": "uint256"
944
+ }
945
+ ],
946
+ "outputs": [],
947
+ "stateMutability": "nonpayable"
948
+ },
949
+ {
950
+ "type": "function",
951
+ "name": "take",
952
+ "inputs": [
953
+ {
954
+ "name": "jobId",
955
+ "type": "uint256",
956
+ "internalType": "uint256"
957
+ }
958
+ ],
959
+ "outputs": [],
960
+ "stateMutability": "nonpayable"
961
+ },
962
+ {
963
+ "type": "function",
964
+ "name": "transferOwnership",
965
+ "inputs": [
966
+ {
967
+ "name": "newOwner",
968
+ "type": "address",
969
+ "internalType": "address"
970
+ }
971
+ ],
972
+ "outputs": [],
973
+ "stateMutability": "nonpayable"
974
+ },
975
+ {
976
+ "type": "function",
977
+ "name": "withdrawJob",
978
+ "inputs": [
979
+ {
980
+ "name": "jobId",
981
+ "type": "uint256",
982
+ "internalType": "uint256"
983
+ }
984
+ ],
985
+ "outputs": [],
986
+ "stateMutability": "nonpayable"
987
+ },
988
+ {
989
+ "type": "function",
990
+ "name": "withdrawOffer",
991
+ "inputs": [
992
+ {
993
+ "name": "jobId",
994
+ "type": "uint256",
995
+ "internalType": "uint256"
996
+ }
997
+ ],
998
+ "outputs": [],
999
+ "stateMutability": "nonpayable"
1000
+ },
1001
+ {
1002
+ "type": "event",
1003
+ "name": "Applied",
1004
+ "inputs": [
1005
+ {
1006
+ "name": "jobId",
1007
+ "type": "uint256",
1008
+ "indexed": true,
1009
+ "internalType": "uint256"
1010
+ },
1011
+ {
1012
+ "name": "agent",
1013
+ "type": "address",
1014
+ "indexed": true,
1015
+ "internalType": "address"
1016
+ },
1017
+ {
1018
+ "name": "level",
1019
+ "type": "uint8",
1020
+ "indexed": false,
1021
+ "internalType": "uint8"
1022
+ },
1023
+ {
1024
+ "name": "price",
1025
+ "type": "uint256",
1026
+ "indexed": false,
1027
+ "internalType": "uint256"
1028
+ },
1029
+ {
1030
+ "name": "workDuration",
1031
+ "type": "uint64",
1032
+ "indexed": false,
1033
+ "internalType": "uint64"
1034
+ }
1035
+ ],
1036
+ "anonymous": false
1037
+ },
1038
+ {
1039
+ "type": "event",
1040
+ "name": "CapsChanged",
1041
+ "inputs": [
1042
+ {
1043
+ "name": "currency",
1044
+ "type": "address",
1045
+ "indexed": true,
1046
+ "internalType": "address"
1047
+ },
1048
+ {
1049
+ "name": "perJob",
1050
+ "type": "uint256",
1051
+ "indexed": false,
1052
+ "internalType": "uint256"
1053
+ },
1054
+ {
1055
+ "name": "total",
1056
+ "type": "uint256",
1057
+ "indexed": false,
1058
+ "internalType": "uint256"
1059
+ }
1060
+ ],
1061
+ "anonymous": false
1062
+ },
1063
+ {
1064
+ "type": "event",
1065
+ "name": "CategoriesSet",
1066
+ "inputs": [
1067
+ {
1068
+ "name": "agent",
1069
+ "type": "address",
1070
+ "indexed": true,
1071
+ "internalType": "address"
1072
+ },
1073
+ {
1074
+ "name": "categories",
1075
+ "type": "uint8[]",
1076
+ "indexed": false,
1077
+ "internalType": "uint8[]"
1078
+ }
1079
+ ],
1080
+ "anonymous": false
1081
+ },
1082
+ {
1083
+ "type": "event",
1084
+ "name": "Claimed",
1085
+ "inputs": [
1086
+ {
1087
+ "name": "client",
1088
+ "type": "address",
1089
+ "indexed": true,
1090
+ "internalType": "address"
1091
+ },
1092
+ {
1093
+ "name": "currency",
1094
+ "type": "address",
1095
+ "indexed": true,
1096
+ "internalType": "address"
1097
+ },
1098
+ {
1099
+ "name": "amount",
1100
+ "type": "uint256",
1101
+ "indexed": false,
1102
+ "internalType": "uint256"
1103
+ }
1104
+ ],
1105
+ "anonymous": false
1106
+ },
1107
+ {
1108
+ "type": "event",
1109
+ "name": "Credited",
1110
+ "inputs": [
1111
+ {
1112
+ "name": "client",
1113
+ "type": "address",
1114
+ "indexed": true,
1115
+ "internalType": "address"
1116
+ },
1117
+ {
1118
+ "name": "currency",
1119
+ "type": "address",
1120
+ "indexed": true,
1121
+ "internalType": "address"
1122
+ },
1123
+ {
1124
+ "name": "amount",
1125
+ "type": "uint256",
1126
+ "indexed": false,
1127
+ "internalType": "uint256"
1128
+ }
1129
+ ],
1130
+ "anonymous": false
1131
+ },
1132
+ {
1133
+ "type": "event",
1134
+ "name": "JobAssigned",
1135
+ "inputs": [
1136
+ {
1137
+ "name": "jobId",
1138
+ "type": "uint256",
1139
+ "indexed": true,
1140
+ "internalType": "uint256"
1141
+ },
1142
+ {
1143
+ "name": "agent",
1144
+ "type": "address",
1145
+ "indexed": true,
1146
+ "internalType": "address"
1147
+ },
1148
+ {
1149
+ "name": "escrowTaskId",
1150
+ "type": "uint256",
1151
+ "indexed": false,
1152
+ "internalType": "uint256"
1153
+ },
1154
+ {
1155
+ "name": "price",
1156
+ "type": "uint256",
1157
+ "indexed": false,
1158
+ "internalType": "uint256"
1159
+ },
1160
+ {
1161
+ "name": "byClient",
1162
+ "type": "bool",
1163
+ "indexed": false,
1164
+ "internalType": "bool"
1165
+ }
1166
+ ],
1167
+ "anonymous": false
1168
+ },
1169
+ {
1170
+ "type": "event",
1171
+ "name": "JobExpired",
1172
+ "inputs": [
1173
+ {
1174
+ "name": "jobId",
1175
+ "type": "uint256",
1176
+ "indexed": true,
1177
+ "internalType": "uint256"
1178
+ }
1179
+ ],
1180
+ "anonymous": false
1181
+ },
1182
+ {
1183
+ "type": "event",
1184
+ "name": "JobPosted",
1185
+ "inputs": [
1186
+ {
1187
+ "name": "jobId",
1188
+ "type": "uint256",
1189
+ "indexed": true,
1190
+ "internalType": "uint256"
1191
+ },
1192
+ {
1193
+ "name": "client",
1194
+ "type": "address",
1195
+ "indexed": true,
1196
+ "internalType": "address"
1197
+ },
1198
+ {
1199
+ "name": "category",
1200
+ "type": "uint8",
1201
+ "indexed": true,
1202
+ "internalType": "uint8"
1203
+ },
1204
+ {
1205
+ "name": "currency",
1206
+ "type": "address",
1207
+ "indexed": false,
1208
+ "internalType": "address"
1209
+ },
1210
+ {
1211
+ "name": "amount",
1212
+ "type": "uint256",
1213
+ "indexed": false,
1214
+ "internalType": "uint256"
1215
+ },
1216
+ {
1217
+ "name": "mode",
1218
+ "type": "uint8",
1219
+ "indexed": false,
1220
+ "internalType": "enum PanalTablon.Mode"
1221
+ },
1222
+ {
1223
+ "name": "campaignId",
1224
+ "type": "bytes32",
1225
+ "indexed": false,
1226
+ "internalType": "bytes32"
1227
+ }
1228
+ ],
1229
+ "anonymous": false
1230
+ },
1231
+ {
1232
+ "type": "event",
1233
+ "name": "JobRelisted",
1234
+ "inputs": [
1235
+ {
1236
+ "name": "jobId",
1237
+ "type": "uint256",
1238
+ "indexed": true,
1239
+ "internalType": "uint256"
1240
+ }
1241
+ ],
1242
+ "anonymous": false
1243
+ },
1244
+ {
1245
+ "type": "event",
1246
+ "name": "JobSettled",
1247
+ "inputs": [
1248
+ {
1249
+ "name": "jobId",
1250
+ "type": "uint256",
1251
+ "indexed": true,
1252
+ "internalType": "uint256"
1253
+ },
1254
+ {
1255
+ "name": "refundToClient",
1256
+ "type": "uint256",
1257
+ "indexed": false,
1258
+ "internalType": "uint256"
1259
+ },
1260
+ {
1261
+ "name": "penalized",
1262
+ "type": "bool",
1263
+ "indexed": false,
1264
+ "internalType": "bool"
1265
+ }
1266
+ ],
1267
+ "anonymous": false
1268
+ },
1269
+ {
1270
+ "type": "event",
1271
+ "name": "JobWithdrawn",
1272
+ "inputs": [
1273
+ {
1274
+ "name": "jobId",
1275
+ "type": "uint256",
1276
+ "indexed": true,
1277
+ "internalType": "uint256"
1278
+ }
1279
+ ],
1280
+ "anonymous": false
1281
+ },
1282
+ {
1283
+ "type": "event",
1284
+ "name": "LevelsChanged",
1285
+ "inputs": [
1286
+ {
1287
+ "name": "levels",
1288
+ "type": "tuple[5]",
1289
+ "indexed": false,
1290
+ "internalType": "struct PanalTablon.Level[5]",
1291
+ "components": [
1292
+ {
1293
+ "name": "minCompleted",
1294
+ "type": "uint32",
1295
+ "internalType": "uint32"
1296
+ },
1297
+ {
1298
+ "name": "minRating",
1299
+ "type": "uint16",
1300
+ "internalType": "uint16"
1301
+ },
1302
+ {
1303
+ "name": "dailyCap",
1304
+ "type": "uint16",
1305
+ "internalType": "uint16"
1306
+ }
1307
+ ]
1308
+ }
1309
+ ],
1310
+ "anonymous": false
1311
+ },
1312
+ {
1313
+ "type": "event",
1314
+ "name": "NewcomerJobsChanged",
1315
+ "inputs": [
1316
+ {
1317
+ "name": "jobs",
1318
+ "type": "uint8",
1319
+ "indexed": false,
1320
+ "internalType": "uint8"
1321
+ }
1322
+ ],
1323
+ "anonymous": false
1324
+ },
1325
+ {
1326
+ "type": "event",
1327
+ "name": "OfferWithdrawn",
1328
+ "inputs": [
1329
+ {
1330
+ "name": "jobId",
1331
+ "type": "uint256",
1332
+ "indexed": true,
1333
+ "internalType": "uint256"
1334
+ },
1335
+ {
1336
+ "name": "agent",
1337
+ "type": "address",
1338
+ "indexed": true,
1339
+ "internalType": "address"
1340
+ }
1341
+ ],
1342
+ "anonymous": false
1343
+ },
1344
+ {
1345
+ "type": "event",
1346
+ "name": "OwnershipTransferred",
1347
+ "inputs": [
1348
+ {
1349
+ "name": "previousOwner",
1350
+ "type": "address",
1351
+ "indexed": true,
1352
+ "internalType": "address"
1353
+ },
1354
+ {
1355
+ "name": "newOwner",
1356
+ "type": "address",
1357
+ "indexed": true,
1358
+ "internalType": "address"
1359
+ }
1360
+ ],
1361
+ "anonymous": false
1362
+ },
1363
+ {
1364
+ "type": "event",
1365
+ "name": "PausedSet",
1366
+ "inputs": [
1367
+ {
1368
+ "name": "paused",
1369
+ "type": "bool",
1370
+ "indexed": false,
1371
+ "internalType": "bool"
1372
+ }
1373
+ ],
1374
+ "anonymous": false
1375
+ },
1376
+ {
1377
+ "type": "event",
1378
+ "name": "RefundPending",
1379
+ "inputs": [
1380
+ {
1381
+ "name": "jobId",
1382
+ "type": "uint256",
1383
+ "indexed": true,
1384
+ "internalType": "uint256"
1385
+ }
1386
+ ],
1387
+ "anonymous": false
1388
+ },
1389
+ {
1390
+ "type": "event",
1391
+ "name": "ResolutionAttested",
1392
+ "inputs": [
1393
+ {
1394
+ "name": "jobId",
1395
+ "type": "uint256",
1396
+ "indexed": true,
1397
+ "internalType": "uint256"
1398
+ },
1399
+ {
1400
+ "name": "workerShareBps",
1401
+ "type": "uint256",
1402
+ "indexed": false,
1403
+ "internalType": "uint256"
1404
+ }
1405
+ ],
1406
+ "anonymous": false
1407
+ },
1408
+ {
1409
+ "type": "event",
1410
+ "name": "Strike",
1411
+ "inputs": [
1412
+ {
1413
+ "name": "agent",
1414
+ "type": "address",
1415
+ "indexed": true,
1416
+ "internalType": "address"
1417
+ },
1418
+ {
1419
+ "name": "strikesIn90Days",
1420
+ "type": "uint8",
1421
+ "indexed": false,
1422
+ "internalType": "uint8"
1423
+ },
1424
+ {
1425
+ "name": "suspendedUntil",
1426
+ "type": "uint64",
1427
+ "indexed": false,
1428
+ "internalType": "uint64"
1429
+ }
1430
+ ],
1431
+ "anonymous": false
1432
+ },
1433
+ {
1434
+ "type": "error",
1435
+ "name": "AmountMismatch",
1436
+ "inputs": []
1437
+ },
1438
+ {
1439
+ "type": "error",
1440
+ "name": "BelowMinimum",
1441
+ "inputs": []
1442
+ },
1443
+ {
1444
+ "type": "error",
1445
+ "name": "ClientChoosing",
1446
+ "inputs": []
1447
+ },
1448
+ {
1449
+ "type": "error",
1450
+ "name": "EscrowAmountMismatch",
1451
+ "inputs": []
1452
+ },
1453
+ {
1454
+ "type": "error",
1455
+ "name": "Expired",
1456
+ "inputs": []
1457
+ },
1458
+ {
1459
+ "type": "error",
1460
+ "name": "InvalidCampaign",
1461
+ "inputs": []
1462
+ },
1463
+ {
1464
+ "type": "error",
1465
+ "name": "InvalidCategories",
1466
+ "inputs": []
1467
+ },
1468
+ {
1469
+ "type": "error",
1470
+ "name": "InvalidJob",
1471
+ "inputs": []
1472
+ },
1473
+ {
1474
+ "type": "error",
1475
+ "name": "InvalidLevels",
1476
+ "inputs": []
1477
+ },
1478
+ {
1479
+ "type": "error",
1480
+ "name": "InvalidSetup",
1481
+ "inputs": []
1482
+ },
1483
+ {
1484
+ "type": "error",
1485
+ "name": "InvalidShare",
1486
+ "inputs": []
1487
+ },
1488
+ {
1489
+ "type": "error",
1490
+ "name": "InvalidTimes",
1491
+ "inputs": []
1492
+ },
1493
+ {
1494
+ "type": "error",
1495
+ "name": "IsPaused",
1496
+ "inputs": []
1497
+ },
1498
+ {
1499
+ "type": "error",
1500
+ "name": "NoOffer",
1501
+ "inputs": []
1502
+ },
1503
+ {
1504
+ "type": "error",
1505
+ "name": "NoResolvedDispute",
1506
+ "inputs": []
1507
+ },
1508
+ {
1509
+ "type": "error",
1510
+ "name": "NoValidOffer",
1511
+ "inputs": []
1512
+ },
1513
+ {
1514
+ "type": "error",
1515
+ "name": "NotAllowed",
1516
+ "inputs": [
1517
+ {
1518
+ "name": "reason",
1519
+ "type": "string",
1520
+ "internalType": "string"
1521
+ }
1522
+ ]
1523
+ },
1524
+ {
1525
+ "type": "error",
1526
+ "name": "NotArbitrator",
1527
+ "inputs": []
1528
+ },
1529
+ {
1530
+ "type": "error",
1531
+ "name": "NotClient",
1532
+ "inputs": []
1533
+ },
1534
+ {
1535
+ "type": "error",
1536
+ "name": "NotExpired",
1537
+ "inputs": []
1538
+ },
1539
+ {
1540
+ "type": "error",
1541
+ "name": "NotFinished",
1542
+ "inputs": []
1543
+ },
1544
+ {
1545
+ "type": "error",
1546
+ "name": "NotOwner",
1547
+ "inputs": []
1548
+ },
1549
+ {
1550
+ "type": "error",
1551
+ "name": "NothingToClaim",
1552
+ "inputs": []
1553
+ },
1554
+ {
1555
+ "type": "error",
1556
+ "name": "OffersClosed",
1557
+ "inputs": []
1558
+ },
1559
+ {
1560
+ "type": "error",
1561
+ "name": "OffersFull",
1562
+ "inputs": []
1563
+ },
1564
+ {
1565
+ "type": "error",
1566
+ "name": "OffersOpen",
1567
+ "inputs": []
1568
+ },
1569
+ {
1570
+ "type": "error",
1571
+ "name": "OnlyEscrow",
1572
+ "inputs": []
1573
+ },
1574
+ {
1575
+ "type": "error",
1576
+ "name": "OverPerJobCap",
1577
+ "inputs": []
1578
+ },
1579
+ {
1580
+ "type": "error",
1581
+ "name": "OverTotalCap",
1582
+ "inputs": []
1583
+ },
1584
+ {
1585
+ "type": "error",
1586
+ "name": "Reentrant",
1587
+ "inputs": []
1588
+ },
1589
+ {
1590
+ "type": "error",
1591
+ "name": "RefundNotCredited",
1592
+ "inputs": []
1593
+ },
1594
+ {
1595
+ "type": "error",
1596
+ "name": "TooManyNewcomerJobs",
1597
+ "inputs": []
1598
+ },
1599
+ {
1600
+ "type": "error",
1601
+ "name": "TooSlow",
1602
+ "inputs": []
1603
+ },
1604
+ {
1605
+ "type": "error",
1606
+ "name": "TransferFailed",
1607
+ "inputs": []
1608
+ },
1609
+ {
1610
+ "type": "error",
1611
+ "name": "UnexpectedValue",
1612
+ "inputs": []
1613
+ },
1614
+ {
1615
+ "type": "error",
1616
+ "name": "UnsupportedCurrency",
1617
+ "inputs": []
1618
+ },
1619
+ {
1620
+ "type": "error",
1621
+ "name": "WrongMode",
1622
+ "inputs": []
1623
+ },
1624
+ {
1625
+ "type": "error",
1626
+ "name": "WrongState",
1627
+ "inputs": []
1628
+ }
1629
+ ];