@agentpactai/runtime 0.1.1

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/abi.cjs ADDED
@@ -0,0 +1,2524 @@
1
+ 'use strict';
2
+
3
+ // src/abi.ts
4
+ var ESCROW_ABI = [
5
+ {
6
+ "inputs": [],
7
+ "stateMutability": "nonpayable",
8
+ "type": "constructor"
9
+ },
10
+ {
11
+ "inputs": [
12
+ {
13
+ "internalType": "address",
14
+ "name": "target",
15
+ "type": "address"
16
+ }
17
+ ],
18
+ "name": "AddressEmptyCode",
19
+ "type": "error"
20
+ },
21
+ {
22
+ "inputs": [],
23
+ "name": "DeadlineNotReached",
24
+ "type": "error"
25
+ },
26
+ {
27
+ "inputs": [],
28
+ "name": "ECDSAInvalidSignature",
29
+ "type": "error"
30
+ },
31
+ {
32
+ "inputs": [
33
+ {
34
+ "internalType": "uint256",
35
+ "name": "length",
36
+ "type": "uint256"
37
+ }
38
+ ],
39
+ "name": "ECDSAInvalidSignatureLength",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [
44
+ {
45
+ "internalType": "bytes32",
46
+ "name": "s",
47
+ "type": "bytes32"
48
+ }
49
+ ],
50
+ "name": "ECDSAInvalidSignatureS",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [
55
+ {
56
+ "internalType": "address",
57
+ "name": "implementation",
58
+ "type": "address"
59
+ }
60
+ ],
61
+ "name": "ERC1967InvalidImplementation",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "ERC1967NonPayable",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "FailedCall",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "InsufficientDeposit",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "InvalidAcceptanceWindow",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "InvalidCriteriaCount",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "InvalidDuration",
92
+ "type": "error"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "InvalidFundWeight",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "InvalidInitialization",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "InvalidMaxRevisions",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "InvalidNonce",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "InvalidPassRate",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "InvalidSignature",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "inputs": [
126
+ {
127
+ "internalType": "enum IAgentPactEscrow.TaskState",
128
+ "name": "current",
129
+ "type": "uint8"
130
+ },
131
+ {
132
+ "internalType": "enum IAgentPactEscrow.TaskState",
133
+ "name": "expected",
134
+ "type": "uint8"
135
+ }
136
+ ],
137
+ "name": "InvalidState",
138
+ "type": "error"
139
+ },
140
+ {
141
+ "inputs": [],
142
+ "name": "NotInitializing",
143
+ "type": "error"
144
+ },
145
+ {
146
+ "inputs": [],
147
+ "name": "OnlyParties",
148
+ "type": "error"
149
+ },
150
+ {
151
+ "inputs": [],
152
+ "name": "OnlyProvider",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "inputs": [],
157
+ "name": "OnlyRequester",
158
+ "type": "error"
159
+ },
160
+ {
161
+ "inputs": [
162
+ {
163
+ "internalType": "address",
164
+ "name": "owner",
165
+ "type": "address"
166
+ }
167
+ ],
168
+ "name": "OwnableInvalidOwner",
169
+ "type": "error"
170
+ },
171
+ {
172
+ "inputs": [
173
+ {
174
+ "internalType": "address",
175
+ "name": "account",
176
+ "type": "address"
177
+ }
178
+ ],
179
+ "name": "OwnableUnauthorizedAccount",
180
+ "type": "error"
181
+ },
182
+ {
183
+ "inputs": [],
184
+ "name": "ReentrancyGuardReentrantCall",
185
+ "type": "error"
186
+ },
187
+ {
188
+ "inputs": [
189
+ {
190
+ "internalType": "address",
191
+ "name": "token",
192
+ "type": "address"
193
+ }
194
+ ],
195
+ "name": "SafeERC20FailedOperation",
196
+ "type": "error"
197
+ },
198
+ {
199
+ "inputs": [],
200
+ "name": "SignatureExpired",
201
+ "type": "error"
202
+ },
203
+ {
204
+ "inputs": [],
205
+ "name": "TokenNotAllowed",
206
+ "type": "error"
207
+ },
208
+ {
209
+ "inputs": [],
210
+ "name": "UUPSUnauthorizedCallContext",
211
+ "type": "error"
212
+ },
213
+ {
214
+ "inputs": [
215
+ {
216
+ "internalType": "bytes32",
217
+ "name": "slot",
218
+ "type": "bytes32"
219
+ }
220
+ ],
221
+ "name": "UUPSUnsupportedProxiableUUID",
222
+ "type": "error"
223
+ },
224
+ {
225
+ "inputs": [],
226
+ "name": "WeightCountMismatch",
227
+ "type": "error"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "WeightsSumNot100",
232
+ "type": "error"
233
+ },
234
+ {
235
+ "inputs": [],
236
+ "name": "ZeroAddress",
237
+ "type": "error"
238
+ },
239
+ {
240
+ "inputs": [],
241
+ "name": "ZeroAmount",
242
+ "type": "error"
243
+ },
244
+ {
245
+ "anonymous": false,
246
+ "inputs": [
247
+ {
248
+ "indexed": true,
249
+ "internalType": "uint256",
250
+ "name": "escrowId",
251
+ "type": "uint256"
252
+ },
253
+ {
254
+ "indexed": false,
255
+ "internalType": "uint256",
256
+ "name": "providerPayout",
257
+ "type": "uint256"
258
+ },
259
+ {
260
+ "indexed": false,
261
+ "internalType": "uint256",
262
+ "name": "platformFee",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "name": "DeliveryAccepted",
267
+ "type": "event"
268
+ },
269
+ {
270
+ "anonymous": false,
271
+ "inputs": [
272
+ {
273
+ "indexed": true,
274
+ "internalType": "uint256",
275
+ "name": "escrowId",
276
+ "type": "uint256"
277
+ },
278
+ {
279
+ "indexed": false,
280
+ "internalType": "bytes32",
281
+ "name": "deliveryHash",
282
+ "type": "bytes32"
283
+ },
284
+ {
285
+ "indexed": false,
286
+ "internalType": "uint8",
287
+ "name": "revision",
288
+ "type": "uint8"
289
+ },
290
+ {
291
+ "indexed": false,
292
+ "internalType": "uint64",
293
+ "name": "acceptanceDeadline",
294
+ "type": "uint64"
295
+ }
296
+ ],
297
+ "name": "DeliverySubmitted",
298
+ "type": "event"
299
+ },
300
+ {
301
+ "anonymous": false,
302
+ "inputs": [],
303
+ "name": "EIP712DomainChanged",
304
+ "type": "event"
305
+ },
306
+ {
307
+ "anonymous": false,
308
+ "inputs": [
309
+ {
310
+ "indexed": true,
311
+ "internalType": "uint256",
312
+ "name": "escrowId",
313
+ "type": "uint256"
314
+ },
315
+ {
316
+ "indexed": true,
317
+ "internalType": "address",
318
+ "name": "requester",
319
+ "type": "address"
320
+ },
321
+ {
322
+ "indexed": false,
323
+ "internalType": "bytes32",
324
+ "name": "taskHash",
325
+ "type": "bytes32"
326
+ },
327
+ {
328
+ "indexed": false,
329
+ "internalType": "uint256",
330
+ "name": "rewardAmount",
331
+ "type": "uint256"
332
+ },
333
+ {
334
+ "indexed": false,
335
+ "internalType": "uint256",
336
+ "name": "requesterDeposit",
337
+ "type": "uint256"
338
+ },
339
+ {
340
+ "indexed": false,
341
+ "internalType": "address",
342
+ "name": "token",
343
+ "type": "address"
344
+ },
345
+ {
346
+ "indexed": false,
347
+ "internalType": "uint64",
348
+ "name": "deliveryDurationSeconds",
349
+ "type": "uint64"
350
+ },
351
+ {
352
+ "indexed": false,
353
+ "internalType": "uint8",
354
+ "name": "maxRevisions",
355
+ "type": "uint8"
356
+ },
357
+ {
358
+ "indexed": false,
359
+ "internalType": "uint8",
360
+ "name": "acceptanceWindowHours",
361
+ "type": "uint8"
362
+ },
363
+ {
364
+ "indexed": false,
365
+ "internalType": "uint8",
366
+ "name": "criteriaCount",
367
+ "type": "uint8"
368
+ }
369
+ ],
370
+ "name": "EscrowCreated",
371
+ "type": "event"
372
+ },
373
+ {
374
+ "anonymous": false,
375
+ "inputs": [
376
+ {
377
+ "indexed": false,
378
+ "internalType": "uint64",
379
+ "name": "version",
380
+ "type": "uint64"
381
+ }
382
+ ],
383
+ "name": "Initialized",
384
+ "type": "event"
385
+ },
386
+ {
387
+ "anonymous": false,
388
+ "inputs": [
389
+ {
390
+ "indexed": true,
391
+ "internalType": "address",
392
+ "name": "previousOwner",
393
+ "type": "address"
394
+ },
395
+ {
396
+ "indexed": true,
397
+ "internalType": "address",
398
+ "name": "newOwner",
399
+ "type": "address"
400
+ }
401
+ ],
402
+ "name": "OwnershipTransferred",
403
+ "type": "event"
404
+ },
405
+ {
406
+ "anonymous": false,
407
+ "inputs": [
408
+ {
409
+ "indexed": true,
410
+ "internalType": "uint256",
411
+ "name": "escrowId",
412
+ "type": "uint256"
413
+ },
414
+ {
415
+ "indexed": false,
416
+ "internalType": "bytes32",
417
+ "name": "reasonHash",
418
+ "type": "bytes32"
419
+ },
420
+ {
421
+ "indexed": false,
422
+ "internalType": "bytes32",
423
+ "name": "criteriaResultsHash",
424
+ "type": "bytes32"
425
+ },
426
+ {
427
+ "indexed": false,
428
+ "internalType": "uint8",
429
+ "name": "currentRevision",
430
+ "type": "uint8"
431
+ },
432
+ {
433
+ "indexed": false,
434
+ "internalType": "uint256",
435
+ "name": "depositPenalty",
436
+ "type": "uint256"
437
+ },
438
+ {
439
+ "indexed": false,
440
+ "internalType": "uint8",
441
+ "name": "passRate",
442
+ "type": "uint8"
443
+ }
444
+ ],
445
+ "name": "RevisionRequested",
446
+ "type": "event"
447
+ },
448
+ {
449
+ "anonymous": false,
450
+ "inputs": [
451
+ {
452
+ "indexed": true,
453
+ "internalType": "uint256",
454
+ "name": "escrowId",
455
+ "type": "uint256"
456
+ },
457
+ {
458
+ "indexed": true,
459
+ "internalType": "address",
460
+ "name": "provider",
461
+ "type": "address"
462
+ }
463
+ ],
464
+ "name": "TaskAbandoned",
465
+ "type": "event"
466
+ },
467
+ {
468
+ "anonymous": false,
469
+ "inputs": [
470
+ {
471
+ "indexed": true,
472
+ "internalType": "uint256",
473
+ "name": "escrowId",
474
+ "type": "uint256"
475
+ },
476
+ {
477
+ "indexed": false,
478
+ "internalType": "uint8",
479
+ "name": "passRate",
480
+ "type": "uint8"
481
+ },
482
+ {
483
+ "indexed": false,
484
+ "internalType": "uint256",
485
+ "name": "providerShare",
486
+ "type": "uint256"
487
+ },
488
+ {
489
+ "indexed": false,
490
+ "internalType": "uint256",
491
+ "name": "requesterRefund",
492
+ "type": "uint256"
493
+ },
494
+ {
495
+ "indexed": false,
496
+ "internalType": "uint256",
497
+ "name": "platformFee",
498
+ "type": "uint256"
499
+ }
500
+ ],
501
+ "name": "TaskAutoSettled",
502
+ "type": "event"
503
+ },
504
+ {
505
+ "anonymous": false,
506
+ "inputs": [
507
+ {
508
+ "indexed": true,
509
+ "internalType": "uint256",
510
+ "name": "escrowId",
511
+ "type": "uint256"
512
+ },
513
+ {
514
+ "indexed": false,
515
+ "internalType": "uint256",
516
+ "name": "compensation",
517
+ "type": "uint256"
518
+ }
519
+ ],
520
+ "name": "TaskCancelled",
521
+ "type": "event"
522
+ },
523
+ {
524
+ "anonymous": false,
525
+ "inputs": [
526
+ {
527
+ "indexed": true,
528
+ "internalType": "uint256",
529
+ "name": "escrowId",
530
+ "type": "uint256"
531
+ },
532
+ {
533
+ "indexed": true,
534
+ "internalType": "address",
535
+ "name": "provider",
536
+ "type": "address"
537
+ },
538
+ {
539
+ "indexed": false,
540
+ "internalType": "uint64",
541
+ "name": "confirmationDeadline",
542
+ "type": "uint64"
543
+ }
544
+ ],
545
+ "name": "TaskClaimed",
546
+ "type": "event"
547
+ },
548
+ {
549
+ "anonymous": false,
550
+ "inputs": [
551
+ {
552
+ "indexed": true,
553
+ "internalType": "uint256",
554
+ "name": "escrowId",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "indexed": true,
559
+ "internalType": "address",
560
+ "name": "provider",
561
+ "type": "address"
562
+ },
563
+ {
564
+ "indexed": false,
565
+ "internalType": "uint64",
566
+ "name": "deliveryDeadline",
567
+ "type": "uint64"
568
+ }
569
+ ],
570
+ "name": "TaskConfirmed",
571
+ "type": "event"
572
+ },
573
+ {
574
+ "anonymous": false,
575
+ "inputs": [
576
+ {
577
+ "indexed": true,
578
+ "internalType": "uint256",
579
+ "name": "escrowId",
580
+ "type": "uint256"
581
+ },
582
+ {
583
+ "indexed": true,
584
+ "internalType": "address",
585
+ "name": "provider",
586
+ "type": "address"
587
+ }
588
+ ],
589
+ "name": "TaskDeclined",
590
+ "type": "event"
591
+ },
592
+ {
593
+ "anonymous": false,
594
+ "inputs": [
595
+ {
596
+ "indexed": true,
597
+ "internalType": "uint256",
598
+ "name": "escrowId",
599
+ "type": "uint256"
600
+ },
601
+ {
602
+ "indexed": false,
603
+ "internalType": "uint8",
604
+ "name": "declineCount",
605
+ "type": "uint8"
606
+ }
607
+ ],
608
+ "name": "TaskSuspendedAfterDeclines",
609
+ "type": "event"
610
+ },
611
+ {
612
+ "anonymous": false,
613
+ "inputs": [
614
+ {
615
+ "indexed": true,
616
+ "internalType": "uint256",
617
+ "name": "escrowId",
618
+ "type": "uint256"
619
+ },
620
+ {
621
+ "indexed": false,
622
+ "internalType": "enum IAgentPactEscrow.TaskState",
623
+ "name": "previousState",
624
+ "type": "uint8"
625
+ },
626
+ {
627
+ "indexed": true,
628
+ "internalType": "address",
629
+ "name": "claimedBy",
630
+ "type": "address"
631
+ }
632
+ ],
633
+ "name": "TimeoutClaimed",
634
+ "type": "event"
635
+ },
636
+ {
637
+ "anonymous": false,
638
+ "inputs": [
639
+ {
640
+ "indexed": true,
641
+ "internalType": "address",
642
+ "name": "implementation",
643
+ "type": "address"
644
+ }
645
+ ],
646
+ "name": "Upgraded",
647
+ "type": "event"
648
+ },
649
+ {
650
+ "inputs": [],
651
+ "name": "ASSIGNMENT_TYPEHASH",
652
+ "outputs": [
653
+ {
654
+ "internalType": "bytes32",
655
+ "name": "",
656
+ "type": "bytes32"
657
+ }
658
+ ],
659
+ "stateMutability": "view",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [],
664
+ "name": "CONFIRMATION_WINDOW",
665
+ "outputs": [
666
+ {
667
+ "internalType": "uint64",
668
+ "name": "",
669
+ "type": "uint64"
670
+ }
671
+ ],
672
+ "stateMutability": "view",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [],
677
+ "name": "MAX_DECLINE_COUNT",
678
+ "outputs": [
679
+ {
680
+ "internalType": "uint8",
681
+ "name": "",
682
+ "type": "uint8"
683
+ }
684
+ ],
685
+ "stateMutability": "view",
686
+ "type": "function"
687
+ },
688
+ {
689
+ "inputs": [],
690
+ "name": "MIN_PASS_RATE",
691
+ "outputs": [
692
+ {
693
+ "internalType": "uint8",
694
+ "name": "",
695
+ "type": "uint8"
696
+ }
697
+ ],
698
+ "stateMutability": "view",
699
+ "type": "function"
700
+ },
701
+ {
702
+ "inputs": [],
703
+ "name": "PLATFORM_FEE_BPS",
704
+ "outputs": [
705
+ {
706
+ "internalType": "uint256",
707
+ "name": "",
708
+ "type": "uint256"
709
+ }
710
+ ],
711
+ "stateMutability": "view",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [],
716
+ "name": "UPGRADE_INTERFACE_VERSION",
717
+ "outputs": [
718
+ {
719
+ "internalType": "string",
720
+ "name": "",
721
+ "type": "string"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [
729
+ {
730
+ "internalType": "uint256",
731
+ "name": "escrowId",
732
+ "type": "uint256"
733
+ }
734
+ ],
735
+ "name": "abandonTask",
736
+ "outputs": [],
737
+ "stateMutability": "nonpayable",
738
+ "type": "function"
739
+ },
740
+ {
741
+ "inputs": [
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "escrowId",
745
+ "type": "uint256"
746
+ }
747
+ ],
748
+ "name": "acceptDelivery",
749
+ "outputs": [],
750
+ "stateMutability": "nonpayable",
751
+ "type": "function"
752
+ },
753
+ {
754
+ "inputs": [
755
+ {
756
+ "internalType": "address",
757
+ "name": "",
758
+ "type": "address"
759
+ }
760
+ ],
761
+ "name": "allowedTokens",
762
+ "outputs": [
763
+ {
764
+ "internalType": "bool",
765
+ "name": "",
766
+ "type": "bool"
767
+ }
768
+ ],
769
+ "stateMutability": "view",
770
+ "type": "function"
771
+ },
772
+ {
773
+ "inputs": [
774
+ {
775
+ "internalType": "uint256",
776
+ "name": "",
777
+ "type": "uint256"
778
+ }
779
+ ],
780
+ "name": "assignmentNonces",
781
+ "outputs": [
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "",
785
+ "type": "uint256"
786
+ }
787
+ ],
788
+ "stateMutability": "view",
789
+ "type": "function"
790
+ },
791
+ {
792
+ "inputs": [
793
+ {
794
+ "internalType": "uint256",
795
+ "name": "escrowId",
796
+ "type": "uint256"
797
+ }
798
+ ],
799
+ "name": "cancelTask",
800
+ "outputs": [],
801
+ "stateMutability": "nonpayable",
802
+ "type": "function"
803
+ },
804
+ {
805
+ "inputs": [
806
+ {
807
+ "internalType": "uint256",
808
+ "name": "escrowId",
809
+ "type": "uint256"
810
+ }
811
+ ],
812
+ "name": "claimAcceptanceTimeout",
813
+ "outputs": [],
814
+ "stateMutability": "nonpayable",
815
+ "type": "function"
816
+ },
817
+ {
818
+ "inputs": [
819
+ {
820
+ "internalType": "uint256",
821
+ "name": "escrowId",
822
+ "type": "uint256"
823
+ }
824
+ ],
825
+ "name": "claimConfirmationTimeout",
826
+ "outputs": [],
827
+ "stateMutability": "nonpayable",
828
+ "type": "function"
829
+ },
830
+ {
831
+ "inputs": [
832
+ {
833
+ "internalType": "uint256",
834
+ "name": "escrowId",
835
+ "type": "uint256"
836
+ }
837
+ ],
838
+ "name": "claimDeliveryTimeout",
839
+ "outputs": [],
840
+ "stateMutability": "nonpayable",
841
+ "type": "function"
842
+ },
843
+ {
844
+ "inputs": [
845
+ {
846
+ "internalType": "uint256",
847
+ "name": "escrowId",
848
+ "type": "uint256"
849
+ },
850
+ {
851
+ "internalType": "uint256",
852
+ "name": "nonce",
853
+ "type": "uint256"
854
+ },
855
+ {
856
+ "internalType": "uint256",
857
+ "name": "expiredAt",
858
+ "type": "uint256"
859
+ },
860
+ {
861
+ "internalType": "bytes",
862
+ "name": "platformSignature",
863
+ "type": "bytes"
864
+ }
865
+ ],
866
+ "name": "claimTask",
867
+ "outputs": [],
868
+ "stateMutability": "nonpayable",
869
+ "type": "function"
870
+ },
871
+ {
872
+ "inputs": [
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "escrowId",
876
+ "type": "uint256"
877
+ }
878
+ ],
879
+ "name": "confirmTask",
880
+ "outputs": [],
881
+ "stateMutability": "nonpayable",
882
+ "type": "function"
883
+ },
884
+ {
885
+ "inputs": [
886
+ {
887
+ "internalType": "bytes32",
888
+ "name": "taskHash",
889
+ "type": "bytes32"
890
+ },
891
+ {
892
+ "internalType": "uint64",
893
+ "name": "deliveryDurationSeconds",
894
+ "type": "uint64"
895
+ },
896
+ {
897
+ "internalType": "uint8",
898
+ "name": "maxRevisions",
899
+ "type": "uint8"
900
+ },
901
+ {
902
+ "internalType": "uint8",
903
+ "name": "acceptanceWindowHours",
904
+ "type": "uint8"
905
+ },
906
+ {
907
+ "internalType": "uint8",
908
+ "name": "criteriaCount",
909
+ "type": "uint8"
910
+ },
911
+ {
912
+ "internalType": "uint8[]",
913
+ "name": "fundWeights",
914
+ "type": "uint8[]"
915
+ },
916
+ {
917
+ "internalType": "address",
918
+ "name": "token",
919
+ "type": "address"
920
+ },
921
+ {
922
+ "internalType": "uint256",
923
+ "name": "totalAmount",
924
+ "type": "uint256"
925
+ }
926
+ ],
927
+ "name": "createEscrow",
928
+ "outputs": [
929
+ {
930
+ "internalType": "uint256",
931
+ "name": "escrowId",
932
+ "type": "uint256"
933
+ }
934
+ ],
935
+ "stateMutability": "payable",
936
+ "type": "function"
937
+ },
938
+ {
939
+ "inputs": [
940
+ {
941
+ "internalType": "uint256",
942
+ "name": "escrowId",
943
+ "type": "uint256"
944
+ }
945
+ ],
946
+ "name": "declineTask",
947
+ "outputs": [],
948
+ "stateMutability": "nonpayable",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [],
953
+ "name": "eip712Domain",
954
+ "outputs": [
955
+ {
956
+ "internalType": "bytes1",
957
+ "name": "fields",
958
+ "type": "bytes1"
959
+ },
960
+ {
961
+ "internalType": "string",
962
+ "name": "name",
963
+ "type": "string"
964
+ },
965
+ {
966
+ "internalType": "string",
967
+ "name": "version",
968
+ "type": "string"
969
+ },
970
+ {
971
+ "internalType": "uint256",
972
+ "name": "chainId",
973
+ "type": "uint256"
974
+ },
975
+ {
976
+ "internalType": "address",
977
+ "name": "verifyingContract",
978
+ "type": "address"
979
+ },
980
+ {
981
+ "internalType": "bytes32",
982
+ "name": "salt",
983
+ "type": "bytes32"
984
+ },
985
+ {
986
+ "internalType": "uint256[]",
987
+ "name": "extensions",
988
+ "type": "uint256[]"
989
+ }
990
+ ],
991
+ "stateMutability": "view",
992
+ "type": "function"
993
+ },
994
+ {
995
+ "inputs": [
996
+ {
997
+ "internalType": "uint256",
998
+ "name": "",
999
+ "type": "uint256"
1000
+ },
1001
+ {
1002
+ "internalType": "uint8",
1003
+ "name": "",
1004
+ "type": "uint8"
1005
+ }
1006
+ ],
1007
+ "name": "escrowFundWeights",
1008
+ "outputs": [
1009
+ {
1010
+ "internalType": "uint8",
1011
+ "name": "",
1012
+ "type": "uint8"
1013
+ }
1014
+ ],
1015
+ "stateMutability": "view",
1016
+ "type": "function"
1017
+ },
1018
+ {
1019
+ "inputs": [
1020
+ {
1021
+ "internalType": "uint256",
1022
+ "name": "",
1023
+ "type": "uint256"
1024
+ }
1025
+ ],
1026
+ "name": "escrows",
1027
+ "outputs": [
1028
+ {
1029
+ "internalType": "address",
1030
+ "name": "requester",
1031
+ "type": "address"
1032
+ },
1033
+ {
1034
+ "internalType": "address",
1035
+ "name": "provider",
1036
+ "type": "address"
1037
+ },
1038
+ {
1039
+ "internalType": "uint256",
1040
+ "name": "rewardAmount",
1041
+ "type": "uint256"
1042
+ },
1043
+ {
1044
+ "internalType": "uint256",
1045
+ "name": "requesterDeposit",
1046
+ "type": "uint256"
1047
+ },
1048
+ {
1049
+ "internalType": "uint256",
1050
+ "name": "depositConsumed",
1051
+ "type": "uint256"
1052
+ },
1053
+ {
1054
+ "internalType": "address",
1055
+ "name": "token",
1056
+ "type": "address"
1057
+ },
1058
+ {
1059
+ "internalType": "enum IAgentPactEscrow.TaskState",
1060
+ "name": "state",
1061
+ "type": "uint8"
1062
+ },
1063
+ {
1064
+ "internalType": "bytes32",
1065
+ "name": "taskHash",
1066
+ "type": "bytes32"
1067
+ },
1068
+ {
1069
+ "internalType": "bytes32",
1070
+ "name": "latestDeliveryHash",
1071
+ "type": "bytes32"
1072
+ },
1073
+ {
1074
+ "internalType": "bytes32",
1075
+ "name": "latestCriteriaHash",
1076
+ "type": "bytes32"
1077
+ },
1078
+ {
1079
+ "internalType": "uint64",
1080
+ "name": "deliveryDurationSeconds",
1081
+ "type": "uint64"
1082
+ },
1083
+ {
1084
+ "internalType": "uint64",
1085
+ "name": "deliveryDeadline",
1086
+ "type": "uint64"
1087
+ },
1088
+ {
1089
+ "internalType": "uint64",
1090
+ "name": "acceptanceDeadline",
1091
+ "type": "uint64"
1092
+ },
1093
+ {
1094
+ "internalType": "uint64",
1095
+ "name": "confirmationDeadline",
1096
+ "type": "uint64"
1097
+ },
1098
+ {
1099
+ "internalType": "uint8",
1100
+ "name": "maxRevisions",
1101
+ "type": "uint8"
1102
+ },
1103
+ {
1104
+ "internalType": "uint8",
1105
+ "name": "currentRevision",
1106
+ "type": "uint8"
1107
+ },
1108
+ {
1109
+ "internalType": "uint8",
1110
+ "name": "criteriaCount",
1111
+ "type": "uint8"
1112
+ },
1113
+ {
1114
+ "internalType": "uint8",
1115
+ "name": "declineCount",
1116
+ "type": "uint8"
1117
+ },
1118
+ {
1119
+ "internalType": "uint8",
1120
+ "name": "acceptanceWindowHours",
1121
+ "type": "uint8"
1122
+ }
1123
+ ],
1124
+ "stateMutability": "view",
1125
+ "type": "function"
1126
+ },
1127
+ {
1128
+ "inputs": [],
1129
+ "name": "getDomainSeparator",
1130
+ "outputs": [
1131
+ {
1132
+ "internalType": "bytes32",
1133
+ "name": "",
1134
+ "type": "bytes32"
1135
+ }
1136
+ ],
1137
+ "stateMutability": "view",
1138
+ "type": "function"
1139
+ },
1140
+ {
1141
+ "inputs": [
1142
+ {
1143
+ "internalType": "uint256",
1144
+ "name": "escrowId",
1145
+ "type": "uint256"
1146
+ }
1147
+ ],
1148
+ "name": "getEscrow",
1149
+ "outputs": [
1150
+ {
1151
+ "components": [
1152
+ {
1153
+ "internalType": "address",
1154
+ "name": "requester",
1155
+ "type": "address"
1156
+ },
1157
+ {
1158
+ "internalType": "address",
1159
+ "name": "provider",
1160
+ "type": "address"
1161
+ },
1162
+ {
1163
+ "internalType": "uint256",
1164
+ "name": "rewardAmount",
1165
+ "type": "uint256"
1166
+ },
1167
+ {
1168
+ "internalType": "uint256",
1169
+ "name": "requesterDeposit",
1170
+ "type": "uint256"
1171
+ },
1172
+ {
1173
+ "internalType": "uint256",
1174
+ "name": "depositConsumed",
1175
+ "type": "uint256"
1176
+ },
1177
+ {
1178
+ "internalType": "address",
1179
+ "name": "token",
1180
+ "type": "address"
1181
+ },
1182
+ {
1183
+ "internalType": "enum IAgentPactEscrow.TaskState",
1184
+ "name": "state",
1185
+ "type": "uint8"
1186
+ },
1187
+ {
1188
+ "internalType": "bytes32",
1189
+ "name": "taskHash",
1190
+ "type": "bytes32"
1191
+ },
1192
+ {
1193
+ "internalType": "bytes32",
1194
+ "name": "latestDeliveryHash",
1195
+ "type": "bytes32"
1196
+ },
1197
+ {
1198
+ "internalType": "bytes32",
1199
+ "name": "latestCriteriaHash",
1200
+ "type": "bytes32"
1201
+ },
1202
+ {
1203
+ "internalType": "uint64",
1204
+ "name": "deliveryDurationSeconds",
1205
+ "type": "uint64"
1206
+ },
1207
+ {
1208
+ "internalType": "uint64",
1209
+ "name": "deliveryDeadline",
1210
+ "type": "uint64"
1211
+ },
1212
+ {
1213
+ "internalType": "uint64",
1214
+ "name": "acceptanceDeadline",
1215
+ "type": "uint64"
1216
+ },
1217
+ {
1218
+ "internalType": "uint64",
1219
+ "name": "confirmationDeadline",
1220
+ "type": "uint64"
1221
+ },
1222
+ {
1223
+ "internalType": "uint8",
1224
+ "name": "maxRevisions",
1225
+ "type": "uint8"
1226
+ },
1227
+ {
1228
+ "internalType": "uint8",
1229
+ "name": "currentRevision",
1230
+ "type": "uint8"
1231
+ },
1232
+ {
1233
+ "internalType": "uint8",
1234
+ "name": "criteriaCount",
1235
+ "type": "uint8"
1236
+ },
1237
+ {
1238
+ "internalType": "uint8",
1239
+ "name": "declineCount",
1240
+ "type": "uint8"
1241
+ },
1242
+ {
1243
+ "internalType": "uint8",
1244
+ "name": "acceptanceWindowHours",
1245
+ "type": "uint8"
1246
+ }
1247
+ ],
1248
+ "internalType": "struct IAgentPactEscrow.EscrowRecord",
1249
+ "name": "",
1250
+ "type": "tuple"
1251
+ }
1252
+ ],
1253
+ "stateMutability": "view",
1254
+ "type": "function"
1255
+ },
1256
+ {
1257
+ "inputs": [
1258
+ {
1259
+ "internalType": "uint256",
1260
+ "name": "escrowId",
1261
+ "type": "uint256"
1262
+ },
1263
+ {
1264
+ "internalType": "uint8",
1265
+ "name": "criteriaIndex",
1266
+ "type": "uint8"
1267
+ }
1268
+ ],
1269
+ "name": "getFundWeight",
1270
+ "outputs": [
1271
+ {
1272
+ "internalType": "uint8",
1273
+ "name": "",
1274
+ "type": "uint8"
1275
+ }
1276
+ ],
1277
+ "stateMutability": "view",
1278
+ "type": "function"
1279
+ },
1280
+ {
1281
+ "inputs": [
1282
+ {
1283
+ "internalType": "uint256",
1284
+ "name": "escrowId",
1285
+ "type": "uint256"
1286
+ }
1287
+ ],
1288
+ "name": "getFundWeights",
1289
+ "outputs": [
1290
+ {
1291
+ "internalType": "uint8[]",
1292
+ "name": "",
1293
+ "type": "uint8[]"
1294
+ }
1295
+ ],
1296
+ "stateMutability": "view",
1297
+ "type": "function"
1298
+ },
1299
+ {
1300
+ "inputs": [
1301
+ {
1302
+ "internalType": "address",
1303
+ "name": "_platformSigner",
1304
+ "type": "address"
1305
+ },
1306
+ {
1307
+ "internalType": "address",
1308
+ "name": "_platformFund",
1309
+ "type": "address"
1310
+ },
1311
+ {
1312
+ "internalType": "address",
1313
+ "name": "_owner",
1314
+ "type": "address"
1315
+ }
1316
+ ],
1317
+ "name": "initialize",
1318
+ "outputs": [],
1319
+ "stateMutability": "nonpayable",
1320
+ "type": "function"
1321
+ },
1322
+ {
1323
+ "inputs": [],
1324
+ "name": "nextEscrowId",
1325
+ "outputs": [
1326
+ {
1327
+ "internalType": "uint256",
1328
+ "name": "",
1329
+ "type": "uint256"
1330
+ }
1331
+ ],
1332
+ "stateMutability": "view",
1333
+ "type": "function"
1334
+ },
1335
+ {
1336
+ "inputs": [],
1337
+ "name": "owner",
1338
+ "outputs": [
1339
+ {
1340
+ "internalType": "address",
1341
+ "name": "",
1342
+ "type": "address"
1343
+ }
1344
+ ],
1345
+ "stateMutability": "view",
1346
+ "type": "function"
1347
+ },
1348
+ {
1349
+ "inputs": [],
1350
+ "name": "platformFund",
1351
+ "outputs": [
1352
+ {
1353
+ "internalType": "address",
1354
+ "name": "",
1355
+ "type": "address"
1356
+ }
1357
+ ],
1358
+ "stateMutability": "view",
1359
+ "type": "function"
1360
+ },
1361
+ {
1362
+ "inputs": [],
1363
+ "name": "platformSigner",
1364
+ "outputs": [
1365
+ {
1366
+ "internalType": "address",
1367
+ "name": "",
1368
+ "type": "address"
1369
+ }
1370
+ ],
1371
+ "stateMutability": "view",
1372
+ "type": "function"
1373
+ },
1374
+ {
1375
+ "inputs": [],
1376
+ "name": "proxiableUUID",
1377
+ "outputs": [
1378
+ {
1379
+ "internalType": "bytes32",
1380
+ "name": "",
1381
+ "type": "bytes32"
1382
+ }
1383
+ ],
1384
+ "stateMutability": "view",
1385
+ "type": "function"
1386
+ },
1387
+ {
1388
+ "inputs": [],
1389
+ "name": "renounceOwnership",
1390
+ "outputs": [],
1391
+ "stateMutability": "nonpayable",
1392
+ "type": "function"
1393
+ },
1394
+ {
1395
+ "inputs": [],
1396
+ "name": "reputationRegistry",
1397
+ "outputs": [
1398
+ {
1399
+ "internalType": "contract IAgentPactReputationRegistry",
1400
+ "name": "",
1401
+ "type": "address"
1402
+ }
1403
+ ],
1404
+ "stateMutability": "view",
1405
+ "type": "function"
1406
+ },
1407
+ {
1408
+ "inputs": [
1409
+ {
1410
+ "internalType": "uint256",
1411
+ "name": "escrowId",
1412
+ "type": "uint256"
1413
+ },
1414
+ {
1415
+ "internalType": "bytes32",
1416
+ "name": "reasonHash",
1417
+ "type": "bytes32"
1418
+ },
1419
+ {
1420
+ "internalType": "bool[]",
1421
+ "name": "criteriaResults",
1422
+ "type": "bool[]"
1423
+ }
1424
+ ],
1425
+ "name": "requestRevision",
1426
+ "outputs": [],
1427
+ "stateMutability": "nonpayable",
1428
+ "type": "function"
1429
+ },
1430
+ {
1431
+ "inputs": [
1432
+ {
1433
+ "internalType": "address",
1434
+ "name": "token",
1435
+ "type": "address"
1436
+ },
1437
+ {
1438
+ "internalType": "bool",
1439
+ "name": "allowed",
1440
+ "type": "bool"
1441
+ }
1442
+ ],
1443
+ "name": "setAllowedToken",
1444
+ "outputs": [],
1445
+ "stateMutability": "nonpayable",
1446
+ "type": "function"
1447
+ },
1448
+ {
1449
+ "inputs": [
1450
+ {
1451
+ "internalType": "address",
1452
+ "name": "newFund",
1453
+ "type": "address"
1454
+ }
1455
+ ],
1456
+ "name": "setPlatformFund",
1457
+ "outputs": [],
1458
+ "stateMutability": "nonpayable",
1459
+ "type": "function"
1460
+ },
1461
+ {
1462
+ "inputs": [
1463
+ {
1464
+ "internalType": "address",
1465
+ "name": "newSigner",
1466
+ "type": "address"
1467
+ }
1468
+ ],
1469
+ "name": "setPlatformSigner",
1470
+ "outputs": [],
1471
+ "stateMutability": "nonpayable",
1472
+ "type": "function"
1473
+ },
1474
+ {
1475
+ "inputs": [
1476
+ {
1477
+ "internalType": "address",
1478
+ "name": "_treasury",
1479
+ "type": "address"
1480
+ }
1481
+ ],
1482
+ "name": "setTreasury",
1483
+ "outputs": [],
1484
+ "stateMutability": "nonpayable",
1485
+ "type": "function"
1486
+ },
1487
+ {
1488
+ "inputs": [
1489
+ {
1490
+ "internalType": "uint256",
1491
+ "name": "escrowId",
1492
+ "type": "uint256"
1493
+ },
1494
+ {
1495
+ "internalType": "bytes32",
1496
+ "name": "deliveryHash",
1497
+ "type": "bytes32"
1498
+ }
1499
+ ],
1500
+ "name": "submitDelivery",
1501
+ "outputs": [],
1502
+ "stateMutability": "nonpayable",
1503
+ "type": "function"
1504
+ },
1505
+ {
1506
+ "inputs": [
1507
+ {
1508
+ "internalType": "address",
1509
+ "name": "newOwner",
1510
+ "type": "address"
1511
+ }
1512
+ ],
1513
+ "name": "transferOwnership",
1514
+ "outputs": [],
1515
+ "stateMutability": "nonpayable",
1516
+ "type": "function"
1517
+ },
1518
+ {
1519
+ "inputs": [],
1520
+ "name": "treasuryContract",
1521
+ "outputs": [
1522
+ {
1523
+ "internalType": "contract IAgentPactTreasury",
1524
+ "name": "",
1525
+ "type": "address"
1526
+ }
1527
+ ],
1528
+ "stateMutability": "view",
1529
+ "type": "function"
1530
+ },
1531
+ {
1532
+ "inputs": [
1533
+ {
1534
+ "internalType": "address",
1535
+ "name": "newImplementation",
1536
+ "type": "address"
1537
+ },
1538
+ {
1539
+ "internalType": "bytes",
1540
+ "name": "data",
1541
+ "type": "bytes"
1542
+ }
1543
+ ],
1544
+ "name": "upgradeToAndCall",
1545
+ "outputs": [],
1546
+ "stateMutability": "payable",
1547
+ "type": "function"
1548
+ },
1549
+ {
1550
+ "stateMutability": "payable",
1551
+ "type": "receive"
1552
+ }
1553
+ ];
1554
+ var TIPJAR_ABI = [
1555
+ {
1556
+ "inputs": [],
1557
+ "stateMutability": "nonpayable",
1558
+ "type": "constructor"
1559
+ },
1560
+ {
1561
+ "inputs": [
1562
+ {
1563
+ "internalType": "address",
1564
+ "name": "target",
1565
+ "type": "address"
1566
+ }
1567
+ ],
1568
+ "name": "AddressEmptyCode",
1569
+ "type": "error"
1570
+ },
1571
+ {
1572
+ "inputs": [],
1573
+ "name": "BelowMinTip",
1574
+ "type": "error"
1575
+ },
1576
+ {
1577
+ "inputs": [],
1578
+ "name": "ECDSAInvalidSignature",
1579
+ "type": "error"
1580
+ },
1581
+ {
1582
+ "inputs": [
1583
+ {
1584
+ "internalType": "uint256",
1585
+ "name": "length",
1586
+ "type": "uint256"
1587
+ }
1588
+ ],
1589
+ "name": "ECDSAInvalidSignatureLength",
1590
+ "type": "error"
1591
+ },
1592
+ {
1593
+ "inputs": [
1594
+ {
1595
+ "internalType": "bytes32",
1596
+ "name": "s",
1597
+ "type": "bytes32"
1598
+ }
1599
+ ],
1600
+ "name": "ECDSAInvalidSignatureS",
1601
+ "type": "error"
1602
+ },
1603
+ {
1604
+ "inputs": [
1605
+ {
1606
+ "internalType": "address",
1607
+ "name": "implementation",
1608
+ "type": "address"
1609
+ }
1610
+ ],
1611
+ "name": "ERC1967InvalidImplementation",
1612
+ "type": "error"
1613
+ },
1614
+ {
1615
+ "inputs": [],
1616
+ "name": "ERC1967NonPayable",
1617
+ "type": "error"
1618
+ },
1619
+ {
1620
+ "inputs": [],
1621
+ "name": "ExceedsDailyCap",
1622
+ "type": "error"
1623
+ },
1624
+ {
1625
+ "inputs": [],
1626
+ "name": "ExceedsMaxTip",
1627
+ "type": "error"
1628
+ },
1629
+ {
1630
+ "inputs": [],
1631
+ "name": "FailedCall",
1632
+ "type": "error"
1633
+ },
1634
+ {
1635
+ "inputs": [],
1636
+ "name": "FeeTooHigh",
1637
+ "type": "error"
1638
+ },
1639
+ {
1640
+ "inputs": [],
1641
+ "name": "InsufficientAllowance",
1642
+ "type": "error"
1643
+ },
1644
+ {
1645
+ "inputs": [],
1646
+ "name": "InvalidInitialization",
1647
+ "type": "error"
1648
+ },
1649
+ {
1650
+ "inputs": [],
1651
+ "name": "InvalidSignature",
1652
+ "type": "error"
1653
+ },
1654
+ {
1655
+ "inputs": [],
1656
+ "name": "NonceAlreadyUsed",
1657
+ "type": "error"
1658
+ },
1659
+ {
1660
+ "inputs": [],
1661
+ "name": "NotInitializing",
1662
+ "type": "error"
1663
+ },
1664
+ {
1665
+ "inputs": [
1666
+ {
1667
+ "internalType": "address",
1668
+ "name": "owner",
1669
+ "type": "address"
1670
+ }
1671
+ ],
1672
+ "name": "OwnableInvalidOwner",
1673
+ "type": "error"
1674
+ },
1675
+ {
1676
+ "inputs": [
1677
+ {
1678
+ "internalType": "address",
1679
+ "name": "account",
1680
+ "type": "address"
1681
+ }
1682
+ ],
1683
+ "name": "OwnableUnauthorizedAccount",
1684
+ "type": "error"
1685
+ },
1686
+ {
1687
+ "inputs": [],
1688
+ "name": "ReentrancyGuardReentrantCall",
1689
+ "type": "error"
1690
+ },
1691
+ {
1692
+ "inputs": [
1693
+ {
1694
+ "internalType": "address",
1695
+ "name": "token",
1696
+ "type": "address"
1697
+ }
1698
+ ],
1699
+ "name": "SafeERC20FailedOperation",
1700
+ "type": "error"
1701
+ },
1702
+ {
1703
+ "inputs": [],
1704
+ "name": "SelfTipNotAllowed",
1705
+ "type": "error"
1706
+ },
1707
+ {
1708
+ "inputs": [],
1709
+ "name": "SignatureExpired",
1710
+ "type": "error"
1711
+ },
1712
+ {
1713
+ "inputs": [],
1714
+ "name": "TippingPausedError",
1715
+ "type": "error"
1716
+ },
1717
+ {
1718
+ "inputs": [],
1719
+ "name": "UUPSUnauthorizedCallContext",
1720
+ "type": "error"
1721
+ },
1722
+ {
1723
+ "inputs": [
1724
+ {
1725
+ "internalType": "bytes32",
1726
+ "name": "slot",
1727
+ "type": "bytes32"
1728
+ }
1729
+ ],
1730
+ "name": "UUPSUnsupportedProxiableUUID",
1731
+ "type": "error"
1732
+ },
1733
+ {
1734
+ "inputs": [],
1735
+ "name": "ZeroAddress",
1736
+ "type": "error"
1737
+ },
1738
+ {
1739
+ "inputs": [],
1740
+ "name": "ZeroAmount",
1741
+ "type": "error"
1742
+ },
1743
+ {
1744
+ "anonymous": false,
1745
+ "inputs": [
1746
+ {
1747
+ "indexed": false,
1748
+ "internalType": "uint256",
1749
+ "name": "oldCap",
1750
+ "type": "uint256"
1751
+ },
1752
+ {
1753
+ "indexed": false,
1754
+ "internalType": "uint256",
1755
+ "name": "newCap",
1756
+ "type": "uint256"
1757
+ }
1758
+ ],
1759
+ "name": "DailyTipCapUpdated",
1760
+ "type": "event"
1761
+ },
1762
+ {
1763
+ "anonymous": false,
1764
+ "inputs": [],
1765
+ "name": "EIP712DomainChanged",
1766
+ "type": "event"
1767
+ },
1768
+ {
1769
+ "anonymous": false,
1770
+ "inputs": [
1771
+ {
1772
+ "indexed": false,
1773
+ "internalType": "uint64",
1774
+ "name": "version",
1775
+ "type": "uint64"
1776
+ }
1777
+ ],
1778
+ "name": "Initialized",
1779
+ "type": "event"
1780
+ },
1781
+ {
1782
+ "anonymous": false,
1783
+ "inputs": [
1784
+ {
1785
+ "indexed": false,
1786
+ "internalType": "uint256",
1787
+ "name": "oldMax",
1788
+ "type": "uint256"
1789
+ },
1790
+ {
1791
+ "indexed": false,
1792
+ "internalType": "uint256",
1793
+ "name": "newMax",
1794
+ "type": "uint256"
1795
+ }
1796
+ ],
1797
+ "name": "MaxTipAmountUpdated",
1798
+ "type": "event"
1799
+ },
1800
+ {
1801
+ "anonymous": false,
1802
+ "inputs": [
1803
+ {
1804
+ "indexed": true,
1805
+ "internalType": "address",
1806
+ "name": "previousOwner",
1807
+ "type": "address"
1808
+ },
1809
+ {
1810
+ "indexed": true,
1811
+ "internalType": "address",
1812
+ "name": "newOwner",
1813
+ "type": "address"
1814
+ }
1815
+ ],
1816
+ "name": "OwnershipTransferred",
1817
+ "type": "event"
1818
+ },
1819
+ {
1820
+ "anonymous": false,
1821
+ "inputs": [
1822
+ {
1823
+ "indexed": false,
1824
+ "internalType": "uint16",
1825
+ "name": "oldFeeBps",
1826
+ "type": "uint16"
1827
+ },
1828
+ {
1829
+ "indexed": false,
1830
+ "internalType": "uint16",
1831
+ "name": "newFeeBps",
1832
+ "type": "uint16"
1833
+ }
1834
+ ],
1835
+ "name": "PlatformFeeUpdated",
1836
+ "type": "event"
1837
+ },
1838
+ {
1839
+ "anonymous": false,
1840
+ "inputs": [
1841
+ {
1842
+ "indexed": false,
1843
+ "internalType": "address",
1844
+ "name": "oldSigner",
1845
+ "type": "address"
1846
+ },
1847
+ {
1848
+ "indexed": false,
1849
+ "internalType": "address",
1850
+ "name": "newSigner",
1851
+ "type": "address"
1852
+ }
1853
+ ],
1854
+ "name": "PlatformSignerUpdated",
1855
+ "type": "event"
1856
+ },
1857
+ {
1858
+ "anonymous": false,
1859
+ "inputs": [
1860
+ {
1861
+ "indexed": true,
1862
+ "internalType": "address",
1863
+ "name": "from",
1864
+ "type": "address"
1865
+ },
1866
+ {
1867
+ "indexed": true,
1868
+ "internalType": "address",
1869
+ "name": "to",
1870
+ "type": "address"
1871
+ },
1872
+ {
1873
+ "indexed": false,
1874
+ "internalType": "uint256",
1875
+ "name": "amount",
1876
+ "type": "uint256"
1877
+ },
1878
+ {
1879
+ "indexed": false,
1880
+ "internalType": "uint256",
1881
+ "name": "fee",
1882
+ "type": "uint256"
1883
+ },
1884
+ {
1885
+ "indexed": false,
1886
+ "internalType": "string",
1887
+ "name": "postId",
1888
+ "type": "string"
1889
+ }
1890
+ ],
1891
+ "name": "TipSent",
1892
+ "type": "event"
1893
+ },
1894
+ {
1895
+ "anonymous": false,
1896
+ "inputs": [
1897
+ {
1898
+ "indexed": false,
1899
+ "internalType": "bool",
1900
+ "name": "paused",
1901
+ "type": "bool"
1902
+ }
1903
+ ],
1904
+ "name": "TippingPaused",
1905
+ "type": "event"
1906
+ },
1907
+ {
1908
+ "anonymous": false,
1909
+ "inputs": [
1910
+ {
1911
+ "indexed": false,
1912
+ "internalType": "address",
1913
+ "name": "oldTreasury",
1914
+ "type": "address"
1915
+ },
1916
+ {
1917
+ "indexed": false,
1918
+ "internalType": "address",
1919
+ "name": "newTreasury",
1920
+ "type": "address"
1921
+ }
1922
+ ],
1923
+ "name": "TreasuryUpdated",
1924
+ "type": "event"
1925
+ },
1926
+ {
1927
+ "anonymous": false,
1928
+ "inputs": [
1929
+ {
1930
+ "indexed": true,
1931
+ "internalType": "address",
1932
+ "name": "implementation",
1933
+ "type": "address"
1934
+ }
1935
+ ],
1936
+ "name": "Upgraded",
1937
+ "type": "event"
1938
+ },
1939
+ {
1940
+ "inputs": [],
1941
+ "name": "MAX_FEE_BPS",
1942
+ "outputs": [
1943
+ {
1944
+ "internalType": "uint16",
1945
+ "name": "",
1946
+ "type": "uint16"
1947
+ }
1948
+ ],
1949
+ "stateMutability": "view",
1950
+ "type": "function"
1951
+ },
1952
+ {
1953
+ "inputs": [],
1954
+ "name": "MIN_TIP_AMOUNT",
1955
+ "outputs": [
1956
+ {
1957
+ "internalType": "uint256",
1958
+ "name": "",
1959
+ "type": "uint256"
1960
+ }
1961
+ ],
1962
+ "stateMutability": "view",
1963
+ "type": "function"
1964
+ },
1965
+ {
1966
+ "inputs": [],
1967
+ "name": "TIP_TYPEHASH",
1968
+ "outputs": [
1969
+ {
1970
+ "internalType": "bytes32",
1971
+ "name": "",
1972
+ "type": "bytes32"
1973
+ }
1974
+ ],
1975
+ "stateMutability": "view",
1976
+ "type": "function"
1977
+ },
1978
+ {
1979
+ "inputs": [],
1980
+ "name": "UPGRADE_INTERFACE_VERSION",
1981
+ "outputs": [
1982
+ {
1983
+ "internalType": "string",
1984
+ "name": "",
1985
+ "type": "string"
1986
+ }
1987
+ ],
1988
+ "stateMutability": "view",
1989
+ "type": "function"
1990
+ },
1991
+ {
1992
+ "inputs": [],
1993
+ "name": "dailyTipCap",
1994
+ "outputs": [
1995
+ {
1996
+ "internalType": "uint256",
1997
+ "name": "",
1998
+ "type": "uint256"
1999
+ }
2000
+ ],
2001
+ "stateMutability": "view",
2002
+ "type": "function"
2003
+ },
2004
+ {
2005
+ "inputs": [
2006
+ {
2007
+ "internalType": "address",
2008
+ "name": "user",
2009
+ "type": "address"
2010
+ }
2011
+ ],
2012
+ "name": "dailyTipSpent",
2013
+ "outputs": [
2014
+ {
2015
+ "internalType": "uint256",
2016
+ "name": "",
2017
+ "type": "uint256"
2018
+ }
2019
+ ],
2020
+ "stateMutability": "view",
2021
+ "type": "function"
2022
+ },
2023
+ {
2024
+ "inputs": [],
2025
+ "name": "domainSeparator",
2026
+ "outputs": [
2027
+ {
2028
+ "internalType": "bytes32",
2029
+ "name": "",
2030
+ "type": "bytes32"
2031
+ }
2032
+ ],
2033
+ "stateMutability": "view",
2034
+ "type": "function"
2035
+ },
2036
+ {
2037
+ "inputs": [],
2038
+ "name": "eip712Domain",
2039
+ "outputs": [
2040
+ {
2041
+ "internalType": "bytes1",
2042
+ "name": "fields",
2043
+ "type": "bytes1"
2044
+ },
2045
+ {
2046
+ "internalType": "string",
2047
+ "name": "name",
2048
+ "type": "string"
2049
+ },
2050
+ {
2051
+ "internalType": "string",
2052
+ "name": "version",
2053
+ "type": "string"
2054
+ },
2055
+ {
2056
+ "internalType": "uint256",
2057
+ "name": "chainId",
2058
+ "type": "uint256"
2059
+ },
2060
+ {
2061
+ "internalType": "address",
2062
+ "name": "verifyingContract",
2063
+ "type": "address"
2064
+ },
2065
+ {
2066
+ "internalType": "bytes32",
2067
+ "name": "salt",
2068
+ "type": "bytes32"
2069
+ },
2070
+ {
2071
+ "internalType": "uint256[]",
2072
+ "name": "extensions",
2073
+ "type": "uint256[]"
2074
+ }
2075
+ ],
2076
+ "stateMutability": "view",
2077
+ "type": "function"
2078
+ },
2079
+ {
2080
+ "inputs": [
2081
+ {
2082
+ "internalType": "address",
2083
+ "name": "_usdc",
2084
+ "type": "address"
2085
+ },
2086
+ {
2087
+ "internalType": "address",
2088
+ "name": "_platformSigner",
2089
+ "type": "address"
2090
+ },
2091
+ {
2092
+ "internalType": "address",
2093
+ "name": "_treasury",
2094
+ "type": "address"
2095
+ },
2096
+ {
2097
+ "internalType": "address",
2098
+ "name": "_owner",
2099
+ "type": "address"
2100
+ }
2101
+ ],
2102
+ "name": "initialize",
2103
+ "outputs": [],
2104
+ "stateMutability": "nonpayable",
2105
+ "type": "function"
2106
+ },
2107
+ {
2108
+ "inputs": [
2109
+ {
2110
+ "internalType": "address",
2111
+ "name": "tipper",
2112
+ "type": "address"
2113
+ },
2114
+ {
2115
+ "internalType": "uint256",
2116
+ "name": "nonce",
2117
+ "type": "uint256"
2118
+ }
2119
+ ],
2120
+ "name": "isNonceUsed",
2121
+ "outputs": [
2122
+ {
2123
+ "internalType": "bool",
2124
+ "name": "",
2125
+ "type": "bool"
2126
+ }
2127
+ ],
2128
+ "stateMutability": "view",
2129
+ "type": "function"
2130
+ },
2131
+ {
2132
+ "inputs": [],
2133
+ "name": "maxTipAmount",
2134
+ "outputs": [
2135
+ {
2136
+ "internalType": "uint256",
2137
+ "name": "",
2138
+ "type": "uint256"
2139
+ }
2140
+ ],
2141
+ "stateMutability": "view",
2142
+ "type": "function"
2143
+ },
2144
+ {
2145
+ "inputs": [],
2146
+ "name": "owner",
2147
+ "outputs": [
2148
+ {
2149
+ "internalType": "address",
2150
+ "name": "",
2151
+ "type": "address"
2152
+ }
2153
+ ],
2154
+ "stateMutability": "view",
2155
+ "type": "function"
2156
+ },
2157
+ {
2158
+ "inputs": [],
2159
+ "name": "paused",
2160
+ "outputs": [
2161
+ {
2162
+ "internalType": "bool",
2163
+ "name": "",
2164
+ "type": "bool"
2165
+ }
2166
+ ],
2167
+ "stateMutability": "view",
2168
+ "type": "function"
2169
+ },
2170
+ {
2171
+ "inputs": [],
2172
+ "name": "platformFeeBps",
2173
+ "outputs": [
2174
+ {
2175
+ "internalType": "uint16",
2176
+ "name": "",
2177
+ "type": "uint16"
2178
+ }
2179
+ ],
2180
+ "stateMutability": "view",
2181
+ "type": "function"
2182
+ },
2183
+ {
2184
+ "inputs": [],
2185
+ "name": "platformSigner",
2186
+ "outputs": [
2187
+ {
2188
+ "internalType": "address",
2189
+ "name": "",
2190
+ "type": "address"
2191
+ }
2192
+ ],
2193
+ "stateMutability": "view",
2194
+ "type": "function"
2195
+ },
2196
+ {
2197
+ "inputs": [],
2198
+ "name": "proxiableUUID",
2199
+ "outputs": [
2200
+ {
2201
+ "internalType": "bytes32",
2202
+ "name": "",
2203
+ "type": "bytes32"
2204
+ }
2205
+ ],
2206
+ "stateMutability": "view",
2207
+ "type": "function"
2208
+ },
2209
+ {
2210
+ "inputs": [],
2211
+ "name": "renounceOwnership",
2212
+ "outputs": [],
2213
+ "stateMutability": "nonpayable",
2214
+ "type": "function"
2215
+ },
2216
+ {
2217
+ "inputs": [],
2218
+ "name": "reputationRegistry",
2219
+ "outputs": [
2220
+ {
2221
+ "internalType": "contract IAgentPactReputationRegistry",
2222
+ "name": "",
2223
+ "type": "address"
2224
+ }
2225
+ ],
2226
+ "stateMutability": "view",
2227
+ "type": "function"
2228
+ },
2229
+ {
2230
+ "inputs": [
2231
+ {
2232
+ "internalType": "uint256",
2233
+ "name": "newCap",
2234
+ "type": "uint256"
2235
+ }
2236
+ ],
2237
+ "name": "setDailyTipCap",
2238
+ "outputs": [],
2239
+ "stateMutability": "nonpayable",
2240
+ "type": "function"
2241
+ },
2242
+ {
2243
+ "inputs": [
2244
+ {
2245
+ "internalType": "uint256",
2246
+ "name": "newMax",
2247
+ "type": "uint256"
2248
+ }
2249
+ ],
2250
+ "name": "setMaxTipAmount",
2251
+ "outputs": [],
2252
+ "stateMutability": "nonpayable",
2253
+ "type": "function"
2254
+ },
2255
+ {
2256
+ "inputs": [
2257
+ {
2258
+ "internalType": "bool",
2259
+ "name": "_paused",
2260
+ "type": "bool"
2261
+ }
2262
+ ],
2263
+ "name": "setPaused",
2264
+ "outputs": [],
2265
+ "stateMutability": "nonpayable",
2266
+ "type": "function"
2267
+ },
2268
+ {
2269
+ "inputs": [
2270
+ {
2271
+ "internalType": "uint16",
2272
+ "name": "newFeeBps",
2273
+ "type": "uint16"
2274
+ }
2275
+ ],
2276
+ "name": "setPlatformFeeBps",
2277
+ "outputs": [],
2278
+ "stateMutability": "nonpayable",
2279
+ "type": "function"
2280
+ },
2281
+ {
2282
+ "inputs": [
2283
+ {
2284
+ "internalType": "address",
2285
+ "name": "newSigner",
2286
+ "type": "address"
2287
+ }
2288
+ ],
2289
+ "name": "setPlatformSigner",
2290
+ "outputs": [],
2291
+ "stateMutability": "nonpayable",
2292
+ "type": "function"
2293
+ },
2294
+ {
2295
+ "inputs": [
2296
+ {
2297
+ "internalType": "address",
2298
+ "name": "registry",
2299
+ "type": "address"
2300
+ }
2301
+ ],
2302
+ "name": "setReputationRegistry",
2303
+ "outputs": [],
2304
+ "stateMutability": "nonpayable",
2305
+ "type": "function"
2306
+ },
2307
+ {
2308
+ "inputs": [
2309
+ {
2310
+ "internalType": "address",
2311
+ "name": "newTreasury",
2312
+ "type": "address"
2313
+ }
2314
+ ],
2315
+ "name": "setTreasury",
2316
+ "outputs": [],
2317
+ "stateMutability": "nonpayable",
2318
+ "type": "function"
2319
+ },
2320
+ {
2321
+ "inputs": [
2322
+ {
2323
+ "internalType": "address",
2324
+ "name": "_treasury",
2325
+ "type": "address"
2326
+ }
2327
+ ],
2328
+ "name": "setTreasuryContract",
2329
+ "outputs": [],
2330
+ "stateMutability": "nonpayable",
2331
+ "type": "function"
2332
+ },
2333
+ {
2334
+ "inputs": [
2335
+ {
2336
+ "internalType": "address",
2337
+ "name": "_usdc",
2338
+ "type": "address"
2339
+ }
2340
+ ],
2341
+ "name": "setUsdcToken",
2342
+ "outputs": [],
2343
+ "stateMutability": "nonpayable",
2344
+ "type": "function"
2345
+ },
2346
+ {
2347
+ "inputs": [
2348
+ {
2349
+ "internalType": "address",
2350
+ "name": "recipient",
2351
+ "type": "address"
2352
+ },
2353
+ {
2354
+ "internalType": "uint256",
2355
+ "name": "amount",
2356
+ "type": "uint256"
2357
+ },
2358
+ {
2359
+ "internalType": "string",
2360
+ "name": "postId",
2361
+ "type": "string"
2362
+ },
2363
+ {
2364
+ "internalType": "uint256",
2365
+ "name": "nonce",
2366
+ "type": "uint256"
2367
+ },
2368
+ {
2369
+ "internalType": "uint256",
2370
+ "name": "expiredAt",
2371
+ "type": "uint256"
2372
+ },
2373
+ {
2374
+ "internalType": "bytes",
2375
+ "name": "platformSignature",
2376
+ "type": "bytes"
2377
+ }
2378
+ ],
2379
+ "name": "tip",
2380
+ "outputs": [],
2381
+ "stateMutability": "nonpayable",
2382
+ "type": "function"
2383
+ },
2384
+ {
2385
+ "inputs": [
2386
+ {
2387
+ "internalType": "address",
2388
+ "name": "user",
2389
+ "type": "address"
2390
+ }
2391
+ ],
2392
+ "name": "tipStats",
2393
+ "outputs": [
2394
+ {
2395
+ "components": [
2396
+ {
2397
+ "internalType": "uint256",
2398
+ "name": "totalSent",
2399
+ "type": "uint256"
2400
+ },
2401
+ {
2402
+ "internalType": "uint256",
2403
+ "name": "totalReceived",
2404
+ "type": "uint256"
2405
+ },
2406
+ {
2407
+ "internalType": "uint256",
2408
+ "name": "totalFeesPaid",
2409
+ "type": "uint256"
2410
+ },
2411
+ {
2412
+ "internalType": "uint64",
2413
+ "name": "tipsSentCount",
2414
+ "type": "uint64"
2415
+ },
2416
+ {
2417
+ "internalType": "uint64",
2418
+ "name": "tipsReceivedCount",
2419
+ "type": "uint64"
2420
+ }
2421
+ ],
2422
+ "internalType": "struct IAgentPactTipJar.TipStats",
2423
+ "name": "",
2424
+ "type": "tuple"
2425
+ }
2426
+ ],
2427
+ "stateMutability": "view",
2428
+ "type": "function"
2429
+ },
2430
+ {
2431
+ "inputs": [
2432
+ {
2433
+ "internalType": "address",
2434
+ "name": "newOwner",
2435
+ "type": "address"
2436
+ }
2437
+ ],
2438
+ "name": "transferOwnership",
2439
+ "outputs": [],
2440
+ "stateMutability": "nonpayable",
2441
+ "type": "function"
2442
+ },
2443
+ {
2444
+ "inputs": [],
2445
+ "name": "treasury",
2446
+ "outputs": [
2447
+ {
2448
+ "internalType": "address",
2449
+ "name": "",
2450
+ "type": "address"
2451
+ }
2452
+ ],
2453
+ "stateMutability": "view",
2454
+ "type": "function"
2455
+ },
2456
+ {
2457
+ "inputs": [],
2458
+ "name": "treasuryContract",
2459
+ "outputs": [
2460
+ {
2461
+ "internalType": "contract IAgentPactTreasury",
2462
+ "name": "",
2463
+ "type": "address"
2464
+ }
2465
+ ],
2466
+ "stateMutability": "view",
2467
+ "type": "function"
2468
+ },
2469
+ {
2470
+ "inputs": [
2471
+ {
2472
+ "internalType": "address",
2473
+ "name": "newImplementation",
2474
+ "type": "address"
2475
+ },
2476
+ {
2477
+ "internalType": "bytes",
2478
+ "name": "data",
2479
+ "type": "bytes"
2480
+ }
2481
+ ],
2482
+ "name": "upgradeToAndCall",
2483
+ "outputs": [],
2484
+ "stateMutability": "payable",
2485
+ "type": "function"
2486
+ },
2487
+ {
2488
+ "inputs": [],
2489
+ "name": "usdcToken",
2490
+ "outputs": [
2491
+ {
2492
+ "internalType": "contract IERC20",
2493
+ "name": "",
2494
+ "type": "address"
2495
+ }
2496
+ ],
2497
+ "stateMutability": "view",
2498
+ "type": "function"
2499
+ },
2500
+ {
2501
+ "inputs": [
2502
+ {
2503
+ "internalType": "bytes32",
2504
+ "name": "nonceHash",
2505
+ "type": "bytes32"
2506
+ }
2507
+ ],
2508
+ "name": "usedNonces",
2509
+ "outputs": [
2510
+ {
2511
+ "internalType": "bool",
2512
+ "name": "",
2513
+ "type": "bool"
2514
+ }
2515
+ ],
2516
+ "stateMutability": "view",
2517
+ "type": "function"
2518
+ }
2519
+ ];
2520
+
2521
+ exports.ESCROW_ABI = ESCROW_ABI;
2522
+ exports.TIPJAR_ABI = TIPJAR_ABI;
2523
+ //# sourceMappingURL=abi.cjs.map
2524
+ //# sourceMappingURL=abi.cjs.map