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