@cgentai/cgent-contracts 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +312 -0
  3. package/dist/src/browser.d.ts +36 -0
  4. package/dist/src/browser.d.ts.map +1 -0
  5. package/dist/src/browser.js +36 -0
  6. package/dist/src/browser.js.map +1 -0
  7. package/dist/src/constants.d.ts +5 -0
  8. package/dist/src/constants.d.ts.map +1 -0
  9. package/dist/src/constants.js +8 -0
  10. package/dist/src/constants.js.map +1 -0
  11. package/dist/src/contracts/p2pEscrowClient.d.ts +70 -0
  12. package/dist/src/contracts/p2pEscrowClient.d.ts.map +1 -0
  13. package/dist/src/contracts/p2pEscrowClient.js +160 -0
  14. package/dist/src/contracts/p2pEscrowClient.js.map +1 -0
  15. package/dist/src/index.d.ts +5 -0
  16. package/dist/src/index.d.ts.map +1 -0
  17. package/dist/src/index.js +21 -0
  18. package/dist/src/index.js.map +1 -0
  19. package/dist/src/types.d.ts +70 -0
  20. package/dist/src/types.d.ts.map +1 -0
  21. package/dist/src/types.js +16 -0
  22. package/dist/src/types.js.map +1 -0
  23. package/dist/typechain-types/common.d.ts +51 -0
  24. package/dist/typechain-types/common.d.ts.map +1 -0
  25. package/dist/typechain-types/common.js +3 -0
  26. package/dist/typechain-types/common.js.map +1 -0
  27. package/dist/typechain-types/contracts/P2PEscrow.d.ts +555 -0
  28. package/dist/typechain-types/contracts/P2PEscrow.d.ts.map +1 -0
  29. package/dist/typechain-types/contracts/P2PEscrow.js +3 -0
  30. package/dist/typechain-types/contracts/P2PEscrow.js.map +1 -0
  31. package/dist/typechain-types/factories/contracts/P2PEscrow__factory.d.ts +671 -0
  32. package/dist/typechain-types/factories/contracts/P2PEscrow__factory.d.ts.map +1 -0
  33. package/dist/typechain-types/factories/contracts/P2PEscrow__factory.js +874 -0
  34. package/dist/typechain-types/factories/contracts/P2PEscrow__factory.js.map +1 -0
  35. package/package.json +66 -0
@@ -0,0 +1,874 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.P2PEscrow__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "usdt",
14
+ type: "address",
15
+ },
16
+ {
17
+ internalType: "address",
18
+ name: "usdc",
19
+ type: "address",
20
+ },
21
+ {
22
+ internalType: "address",
23
+ name: "initialFeeRecipient",
24
+ type: "address",
25
+ },
26
+ {
27
+ internalType: "address",
28
+ name: "initialArbitrator",
29
+ type: "address",
30
+ },
31
+ {
32
+ internalType: "address",
33
+ name: "contractOwner",
34
+ type: "address",
35
+ },
36
+ ],
37
+ stateMutability: "nonpayable",
38
+ type: "constructor",
39
+ },
40
+ {
41
+ inputs: [],
42
+ name: "InvalidAmount",
43
+ type: "error",
44
+ },
45
+ {
46
+ inputs: [],
47
+ name: "InvalidStatus",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [
52
+ {
53
+ internalType: "address",
54
+ name: "token",
55
+ type: "address",
56
+ },
57
+ ],
58
+ name: "InvalidToken",
59
+ type: "error",
60
+ },
61
+ {
62
+ inputs: [
63
+ {
64
+ internalType: "uint256",
65
+ name: "until",
66
+ type: "uint256",
67
+ },
68
+ ],
69
+ name: "LockPeriodActive",
70
+ type: "error",
71
+ },
72
+ {
73
+ inputs: [],
74
+ name: "NothingToRelease",
75
+ type: "error",
76
+ },
77
+ {
78
+ inputs: [],
79
+ name: "OrderAlreadyExists",
80
+ type: "error",
81
+ },
82
+ {
83
+ inputs: [
84
+ {
85
+ internalType: "address",
86
+ name: "owner",
87
+ type: "address",
88
+ },
89
+ ],
90
+ name: "OwnableInvalidOwner",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [
95
+ {
96
+ internalType: "address",
97
+ name: "account",
98
+ type: "address",
99
+ },
100
+ ],
101
+ name: "OwnableUnauthorizedAccount",
102
+ type: "error",
103
+ },
104
+ {
105
+ inputs: [],
106
+ name: "ReentrancyGuardReentrantCall",
107
+ type: "error",
108
+ },
109
+ {
110
+ inputs: [
111
+ {
112
+ internalType: "address",
113
+ name: "token",
114
+ type: "address",
115
+ },
116
+ ],
117
+ name: "SafeERC20FailedOperation",
118
+ type: "error",
119
+ },
120
+ {
121
+ inputs: [],
122
+ name: "Unauthorized",
123
+ type: "error",
124
+ },
125
+ {
126
+ anonymous: false,
127
+ inputs: [
128
+ {
129
+ indexed: true,
130
+ internalType: "bytes32",
131
+ name: "orderKey",
132
+ type: "bytes32",
133
+ },
134
+ {
135
+ indexed: false,
136
+ internalType: "enum P2PEscrow.OrderStatus",
137
+ name: "restoredStatus",
138
+ type: "uint8",
139
+ },
140
+ ],
141
+ name: "ArbitrationCancelled",
142
+ type: "event",
143
+ },
144
+ {
145
+ anonymous: false,
146
+ inputs: [
147
+ {
148
+ indexed: true,
149
+ internalType: "bytes32",
150
+ name: "orderKey",
151
+ type: "bytes32",
152
+ },
153
+ ],
154
+ name: "ArbitrationPendingSet",
155
+ type: "event",
156
+ },
157
+ {
158
+ anonymous: false,
159
+ inputs: [
160
+ {
161
+ indexed: true,
162
+ internalType: "bytes32",
163
+ name: "orderKey",
164
+ type: "bytes32",
165
+ },
166
+ {
167
+ indexed: false,
168
+ internalType: "bool",
169
+ name: "releasedToSeller",
170
+ type: "bool",
171
+ },
172
+ {
173
+ indexed: false,
174
+ internalType: "uint256",
175
+ name: "amount",
176
+ type: "uint256",
177
+ },
178
+ {
179
+ indexed: false,
180
+ internalType: "uint256",
181
+ name: "feeAmount",
182
+ type: "uint256",
183
+ },
184
+ ],
185
+ name: "ArbitrationResolved",
186
+ type: "event",
187
+ },
188
+ {
189
+ anonymous: false,
190
+ inputs: [
191
+ {
192
+ indexed: true,
193
+ internalType: "address",
194
+ name: "newArbitrator",
195
+ type: "address",
196
+ },
197
+ ],
198
+ name: "ArbitratorUpdated",
199
+ type: "event",
200
+ },
201
+ {
202
+ anonymous: false,
203
+ inputs: [
204
+ {
205
+ indexed: true,
206
+ internalType: "bytes32",
207
+ name: "orderKey",
208
+ type: "bytes32",
209
+ },
210
+ ],
211
+ name: "BuyerWithdrawn",
212
+ type: "event",
213
+ },
214
+ {
215
+ anonymous: false,
216
+ inputs: [
217
+ {
218
+ indexed: true,
219
+ internalType: "address",
220
+ name: "newRecipient",
221
+ type: "address",
222
+ },
223
+ ],
224
+ name: "FeeRecipientUpdated",
225
+ type: "event",
226
+ },
227
+ {
228
+ anonymous: false,
229
+ inputs: [
230
+ {
231
+ indexed: true,
232
+ internalType: "bytes32",
233
+ name: "orderKey",
234
+ type: "bytes32",
235
+ },
236
+ {
237
+ indexed: true,
238
+ internalType: "address",
239
+ name: "buyer",
240
+ type: "address",
241
+ },
242
+ {
243
+ indexed: true,
244
+ internalType: "address",
245
+ name: "seller",
246
+ type: "address",
247
+ },
248
+ {
249
+ indexed: false,
250
+ internalType: "uint256",
251
+ name: "orderId",
252
+ type: "uint256",
253
+ },
254
+ {
255
+ indexed: false,
256
+ internalType: "address",
257
+ name: "token",
258
+ type: "address",
259
+ },
260
+ {
261
+ indexed: false,
262
+ internalType: "uint256",
263
+ name: "amount",
264
+ type: "uint256",
265
+ },
266
+ ],
267
+ name: "OrderCreated",
268
+ type: "event",
269
+ },
270
+ {
271
+ anonymous: false,
272
+ inputs: [
273
+ {
274
+ indexed: true,
275
+ internalType: "bytes32",
276
+ name: "orderKey",
277
+ type: "bytes32",
278
+ },
279
+ {
280
+ indexed: false,
281
+ internalType: "uint256",
282
+ name: "lockedUntil",
283
+ type: "uint256",
284
+ },
285
+ ],
286
+ name: "OrderLocked",
287
+ type: "event",
288
+ },
289
+ {
290
+ anonymous: false,
291
+ inputs: [
292
+ {
293
+ indexed: true,
294
+ internalType: "address",
295
+ name: "previousOwner",
296
+ type: "address",
297
+ },
298
+ {
299
+ indexed: true,
300
+ internalType: "address",
301
+ name: "newOwner",
302
+ type: "address",
303
+ },
304
+ ],
305
+ name: "OwnershipTransferred",
306
+ type: "event",
307
+ },
308
+ {
309
+ anonymous: false,
310
+ inputs: [
311
+ {
312
+ indexed: true,
313
+ internalType: "bytes32",
314
+ name: "orderKey",
315
+ type: "bytes32",
316
+ },
317
+ ],
318
+ name: "SellerRefunded",
319
+ type: "event",
320
+ },
321
+ {
322
+ anonymous: false,
323
+ inputs: [
324
+ {
325
+ indexed: true,
326
+ internalType: "bytes32",
327
+ name: "orderKey",
328
+ type: "bytes32",
329
+ },
330
+ {
331
+ indexed: false,
332
+ internalType: "uint256",
333
+ name: "sellerAmount",
334
+ type: "uint256",
335
+ },
336
+ {
337
+ indexed: false,
338
+ internalType: "uint256",
339
+ name: "feeAmount",
340
+ type: "uint256",
341
+ },
342
+ ],
343
+ name: "SellerReleased",
344
+ type: "event",
345
+ },
346
+ {
347
+ anonymous: false,
348
+ inputs: [
349
+ {
350
+ indexed: true,
351
+ internalType: "address",
352
+ name: "token",
353
+ type: "address",
354
+ },
355
+ ],
356
+ name: "SupportedTokenAdded",
357
+ type: "event",
358
+ },
359
+ {
360
+ anonymous: false,
361
+ inputs: [
362
+ {
363
+ indexed: true,
364
+ internalType: "address",
365
+ name: "token",
366
+ type: "address",
367
+ },
368
+ ],
369
+ name: "SupportedTokenRemoved",
370
+ type: "event",
371
+ },
372
+ {
373
+ inputs: [
374
+ {
375
+ internalType: "address",
376
+ name: "token",
377
+ type: "address",
378
+ },
379
+ ],
380
+ name: "addSupportedToken",
381
+ outputs: [],
382
+ stateMutability: "nonpayable",
383
+ type: "function",
384
+ },
385
+ {
386
+ inputs: [
387
+ {
388
+ internalType: "address",
389
+ name: "buyer",
390
+ type: "address",
391
+ },
392
+ {
393
+ internalType: "address",
394
+ name: "seller",
395
+ type: "address",
396
+ },
397
+ {
398
+ internalType: "uint256",
399
+ name: "orderId",
400
+ type: "uint256",
401
+ },
402
+ {
403
+ internalType: "bool",
404
+ name: "releaseToSeller",
405
+ type: "bool",
406
+ },
407
+ ],
408
+ name: "arbitrate",
409
+ outputs: [],
410
+ stateMutability: "nonpayable",
411
+ type: "function",
412
+ },
413
+ {
414
+ inputs: [],
415
+ name: "arbitrator",
416
+ outputs: [
417
+ {
418
+ internalType: "address",
419
+ name: "",
420
+ type: "address",
421
+ },
422
+ ],
423
+ stateMutability: "view",
424
+ type: "function",
425
+ },
426
+ {
427
+ inputs: [
428
+ {
429
+ internalType: "address",
430
+ name: "seller",
431
+ type: "address",
432
+ },
433
+ {
434
+ internalType: "uint256",
435
+ name: "orderId",
436
+ type: "uint256",
437
+ },
438
+ ],
439
+ name: "buyerConfirmReceipt",
440
+ outputs: [],
441
+ stateMutability: "nonpayable",
442
+ type: "function",
443
+ },
444
+ {
445
+ inputs: [
446
+ {
447
+ internalType: "address",
448
+ name: "seller",
449
+ type: "address",
450
+ },
451
+ {
452
+ internalType: "uint256",
453
+ name: "orderId",
454
+ type: "uint256",
455
+ },
456
+ ],
457
+ name: "buyerWithdraw",
458
+ outputs: [],
459
+ stateMutability: "nonpayable",
460
+ type: "function",
461
+ },
462
+ {
463
+ inputs: [
464
+ {
465
+ internalType: "address",
466
+ name: "buyer",
467
+ type: "address",
468
+ },
469
+ {
470
+ internalType: "address",
471
+ name: "seller",
472
+ type: "address",
473
+ },
474
+ {
475
+ internalType: "uint256",
476
+ name: "orderId",
477
+ type: "uint256",
478
+ },
479
+ ],
480
+ name: "cancelArbitration",
481
+ outputs: [],
482
+ stateMutability: "nonpayable",
483
+ type: "function",
484
+ },
485
+ {
486
+ inputs: [
487
+ {
488
+ internalType: "address",
489
+ name: "buyer",
490
+ type: "address",
491
+ },
492
+ {
493
+ internalType: "address",
494
+ name: "seller",
495
+ type: "address",
496
+ },
497
+ {
498
+ internalType: "uint256",
499
+ name: "orderId",
500
+ type: "uint256",
501
+ },
502
+ {
503
+ internalType: "uint256",
504
+ name: "amount",
505
+ type: "uint256",
506
+ },
507
+ {
508
+ internalType: "address",
509
+ name: "token",
510
+ type: "address",
511
+ },
512
+ ],
513
+ name: "createOrder",
514
+ outputs: [],
515
+ stateMutability: "nonpayable",
516
+ type: "function",
517
+ },
518
+ {
519
+ inputs: [],
520
+ name: "feeRecipient",
521
+ outputs: [
522
+ {
523
+ internalType: "address",
524
+ name: "",
525
+ type: "address",
526
+ },
527
+ ],
528
+ stateMutability: "view",
529
+ type: "function",
530
+ },
531
+ {
532
+ inputs: [
533
+ {
534
+ internalType: "address",
535
+ name: "buyer",
536
+ type: "address",
537
+ },
538
+ {
539
+ internalType: "address",
540
+ name: "seller",
541
+ type: "address",
542
+ },
543
+ {
544
+ internalType: "uint256",
545
+ name: "orderId",
546
+ type: "uint256",
547
+ },
548
+ ],
549
+ name: "getOrder",
550
+ outputs: [
551
+ {
552
+ components: [
553
+ {
554
+ internalType: "address",
555
+ name: "buyer",
556
+ type: "address",
557
+ },
558
+ {
559
+ internalType: "address",
560
+ name: "seller",
561
+ type: "address",
562
+ },
563
+ {
564
+ internalType: "uint256",
565
+ name: "amount",
566
+ type: "uint256",
567
+ },
568
+ {
569
+ internalType: "uint256",
570
+ name: "lockedUntil",
571
+ type: "uint256",
572
+ },
573
+ {
574
+ internalType: "address",
575
+ name: "token",
576
+ type: "address",
577
+ },
578
+ {
579
+ internalType: "enum P2PEscrow.OrderStatus",
580
+ name: "status",
581
+ type: "uint8",
582
+ },
583
+ {
584
+ internalType: "enum P2PEscrow.OrderStatus",
585
+ name: "previousStatus",
586
+ type: "uint8",
587
+ },
588
+ ],
589
+ internalType: "struct P2PEscrow.Order",
590
+ name: "",
591
+ type: "tuple",
592
+ },
593
+ ],
594
+ stateMutability: "view",
595
+ type: "function",
596
+ },
597
+ {
598
+ inputs: [
599
+ {
600
+ internalType: "address",
601
+ name: "buyer",
602
+ type: "address",
603
+ },
604
+ {
605
+ internalType: "address",
606
+ name: "seller",
607
+ type: "address",
608
+ },
609
+ {
610
+ internalType: "uint256",
611
+ name: "orderId",
612
+ type: "uint256",
613
+ },
614
+ ],
615
+ name: "getOrderId",
616
+ outputs: [
617
+ {
618
+ internalType: "bytes32",
619
+ name: "",
620
+ type: "bytes32",
621
+ },
622
+ ],
623
+ stateMutability: "pure",
624
+ type: "function",
625
+ },
626
+ {
627
+ inputs: [
628
+ {
629
+ internalType: "address",
630
+ name: "buyer",
631
+ type: "address",
632
+ },
633
+ {
634
+ internalType: "uint256",
635
+ name: "orderId",
636
+ type: "uint256",
637
+ },
638
+ ],
639
+ name: "lockOrder",
640
+ outputs: [],
641
+ stateMutability: "nonpayable",
642
+ type: "function",
643
+ },
644
+ {
645
+ inputs: [
646
+ {
647
+ internalType: "bytes32",
648
+ name: "",
649
+ type: "bytes32",
650
+ },
651
+ ],
652
+ name: "orders",
653
+ outputs: [
654
+ {
655
+ internalType: "address",
656
+ name: "buyer",
657
+ type: "address",
658
+ },
659
+ {
660
+ internalType: "address",
661
+ name: "seller",
662
+ type: "address",
663
+ },
664
+ {
665
+ internalType: "uint256",
666
+ name: "amount",
667
+ type: "uint256",
668
+ },
669
+ {
670
+ internalType: "uint256",
671
+ name: "lockedUntil",
672
+ type: "uint256",
673
+ },
674
+ {
675
+ internalType: "address",
676
+ name: "token",
677
+ type: "address",
678
+ },
679
+ {
680
+ internalType: "enum P2PEscrow.OrderStatus",
681
+ name: "status",
682
+ type: "uint8",
683
+ },
684
+ {
685
+ internalType: "enum P2PEscrow.OrderStatus",
686
+ name: "previousStatus",
687
+ type: "uint8",
688
+ },
689
+ ],
690
+ stateMutability: "view",
691
+ type: "function",
692
+ },
693
+ {
694
+ inputs: [],
695
+ name: "owner",
696
+ outputs: [
697
+ {
698
+ internalType: "address",
699
+ name: "",
700
+ type: "address",
701
+ },
702
+ ],
703
+ stateMutability: "view",
704
+ type: "function",
705
+ },
706
+ {
707
+ inputs: [
708
+ {
709
+ internalType: "address",
710
+ name: "token",
711
+ type: "address",
712
+ },
713
+ ],
714
+ name: "removeSupportedToken",
715
+ outputs: [],
716
+ stateMutability: "nonpayable",
717
+ type: "function",
718
+ },
719
+ {
720
+ inputs: [],
721
+ name: "renounceOwnership",
722
+ outputs: [],
723
+ stateMutability: "nonpayable",
724
+ type: "function",
725
+ },
726
+ {
727
+ inputs: [
728
+ {
729
+ internalType: "address",
730
+ name: "buyer",
731
+ type: "address",
732
+ },
733
+ {
734
+ internalType: "uint256",
735
+ name: "orderId",
736
+ type: "uint256",
737
+ },
738
+ ],
739
+ name: "sellerRefund",
740
+ outputs: [],
741
+ stateMutability: "nonpayable",
742
+ type: "function",
743
+ },
744
+ {
745
+ inputs: [
746
+ {
747
+ internalType: "address",
748
+ name: "buyer",
749
+ type: "address",
750
+ },
751
+ {
752
+ internalType: "uint256",
753
+ name: "orderId",
754
+ type: "uint256",
755
+ },
756
+ ],
757
+ name: "sellerRelease",
758
+ outputs: [],
759
+ stateMutability: "nonpayable",
760
+ type: "function",
761
+ },
762
+ {
763
+ inputs: [
764
+ {
765
+ internalType: "address",
766
+ name: "buyer",
767
+ type: "address",
768
+ },
769
+ {
770
+ internalType: "address",
771
+ name: "seller",
772
+ type: "address",
773
+ },
774
+ {
775
+ internalType: "uint256",
776
+ name: "orderId",
777
+ type: "uint256",
778
+ },
779
+ ],
780
+ name: "setArbitrationPending",
781
+ outputs: [],
782
+ stateMutability: "nonpayable",
783
+ type: "function",
784
+ },
785
+ {
786
+ inputs: [
787
+ {
788
+ internalType: "address",
789
+ name: "newArbitrator",
790
+ type: "address",
791
+ },
792
+ ],
793
+ name: "setArbitrator",
794
+ outputs: [],
795
+ stateMutability: "nonpayable",
796
+ type: "function",
797
+ },
798
+ {
799
+ inputs: [
800
+ {
801
+ internalType: "address",
802
+ name: "newRecipient",
803
+ type: "address",
804
+ },
805
+ ],
806
+ name: "setFeeRecipient",
807
+ outputs: [],
808
+ stateMutability: "nonpayable",
809
+ type: "function",
810
+ },
811
+ {
812
+ inputs: [
813
+ {
814
+ internalType: "address",
815
+ name: "",
816
+ type: "address",
817
+ },
818
+ ],
819
+ name: "supportedTokens",
820
+ outputs: [
821
+ {
822
+ internalType: "bool",
823
+ name: "",
824
+ type: "bool",
825
+ },
826
+ ],
827
+ stateMutability: "view",
828
+ type: "function",
829
+ },
830
+ {
831
+ inputs: [
832
+ {
833
+ internalType: "address",
834
+ name: "newOwner",
835
+ type: "address",
836
+ },
837
+ ],
838
+ name: "transferOwnership",
839
+ outputs: [],
840
+ stateMutability: "nonpayable",
841
+ type: "function",
842
+ },
843
+ ];
844
+ const _bytecode = "0x608034620001a557601f6200168638819003918201601f191683019291906001600160401b03841183851017620001aa578160a09284926040968752833981010312620001a55760806200005382620001c0565b916200006260208201620001c0565b6200006f858301620001c0565b6200007d60608401620001c0565b6001600160a01b039490938591620000969101620001c0565b169384156200018d57600080546001600160a01b0319808216881783558951989097929492849283167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08780a36001805516968715801562000182575b6200016c57508116938415620001545781169586156200015457918791600193825260036020528282209460ff1995858782541617905516815220918254161790558160045416176004556005541617600555516114b09081620001d68239f35b875163961c9a4f60e01b815260048101849052602490fd5b63961c9a4f60e01b815260048101849052602490fd5b5082851615620000f3565b8651631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001a55756fe6040608081526004908136101561001557600080fd5b600091823560e01c806301fb6543146110775780630e81c03d14610f7b5780632784ed1014610ebd5780632b3c7dd714610c765780634564edd814610b675780634690484014610b4057806349470d2014610b1d57806368c4ac2614610adf5780636cc6cde114610ab65780636d69fcaf14610a315780636fe8f11c14610933578063715018a6146108d657806376319190146108445780637e6b57c8146105d25780638da5cb5b146105aa578063975c6108146104cd5780639c3f1e9014610448578063a711d9b414610398578063acb41c2214610289578063b0eefabe1461021c578063e74b981b1461019c5763f2fde38b1461011357600080fd5b346101985760203660031901126101985761012c611126565b906101356113e6565b6001600160a01b0391821692831561018257505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5034610198576020366003190112610198576101b6611126565b6101be6113e6565b6001600160a01b0316918215610206575080546001600160a01b031916821790557f7a7b5a0a132f9e0581eb8527f66eae9ee89c2a3e79d4ac7e41a1f1f4d48a7fc28280a280f35b5163961c9a4f60e01b8152908101839052602490fd5b503461019857602036600319011261019857610236611126565b61023e6113e6565b6001600160a01b0316918215610206575050600580546001600160a01b031916821790557f961c543f04f95b46a6d6af9e463eb4f186ceea8ca52f869ec568c0197080401b8280a280f35b5034610198576103969061038b8360e0956102dc6102a636611157565b918460c087516102b58161121a565b82815282602082015282898201528260608201528260808201528260a0820152015261126e565b8152600260205220918451946102f18661121a565b8560018060a01b0394859283825416835283600183015416946020840195865260028301549082850191825260038401549360608601948552015497889661035f60ff60c06080890198858c168a526103538360a083019d60a01c168d6112a7565b019b60a81c168b6112a7565b8184519c51168c52511660208b01525190890152516060880152511660808601525160a085019061118c565b5160c083019061118c565bf35b509190346104445780600319360112610444576103c86103b6611126565b6103be6112b3565b602435903361126e565b9081835260026020528083209060ff8583015460a01c16600981101561043157600203610422578154336001600160a01b039091160361041457509061040d91611328565b6001805580f35b516282b42960e81b81528490fd5b516307a92f1960e51b81528490fd5b634e487b7160e01b855260218652602485fd5b5080fd5b50903461019857602036600319011261019857806103969160e0948435815260026020522060018060a01b039081815416948260018301541693600283015491600384015493015494815197885260208801528601526060850152811660808401526104bd60a0840160ff8360a01c1661118c565b60ff60c084019160a81c1661118c565b5034610198576104dc36611157565b6005549092906001600160a01b0316330361059b57906104fc929161126e565b91828452600260205281818520019160ff835460a01c169160098310156105885760018314158061057d575b61057057505061053890826111d3565b805460ff60a01b1916600360a11b1790557fb347dfee77f162626997042efd006623dbd0fd8e488067d1dbdbf07178b8c4478280a280f35b516307a92f1960e51b8152fd5b506002831415610528565b634e487b7160e01b865260218252602486fd5b84516282b42960e81b81528490fd5b505034610444578160031936011261044457905490516001600160a01b039091168152602090f35b508290346104445760a0366003190112610444576105ee611126565b906105f7611141565b9360443590606435906084356001600160a01b03818116918290036108405761061e6112b3565b80871695863303610833578289526020916003835260ff858b2054161561081c57851561080d57808b169889156107f65760ff83876106648e9f9d9e9c9d8c908661126e565b9b8c81526002885220015460a01c1660098110156107d3576107e65785516323b872dd60e01b858201526001600160a01b0390911660248201523060448201526064810187905284918c918a918d916106d4906106ce81608481015b03601f19810183528261124c565b86611412565b858d8a51906106e28261121a565b8152888101938452888b82018d8152848d8960026060870195828752608088019d8e5260a088019b60018d5260c089019d8e5283525220935116956bffffffffffffffffffffffff60a01b968785541617845585600185019151168782541617905551600283015551600382015501945116908454161783555160098110156107d35761076f90836111af565b519160098310156107c05750916107ad60609694927f9f05dfe89486697f0e6ae7c9776cbf981a14a5dc5f3fd468f91d4340704647ad9896946111d3565b8251948552840152820152a46001805580f35b634e487b7160e01b8c526021905260248bfd5b634e487b7160e01b8d526021845260248dfd5b855163966753c560e01b81528390fd5b855163961c9a4f60e01b81528084018b9052602490fd5b50835163162908e360e11b8152fd5b845163961c9a4f60e01b8152808301859052602490fd5b83516282b42960e81b8152fd5b8780fd5b5090346101985760203660031901126101985761085f611126565b6108676113e6565b6001600160a01b031680845260036020528184205490929060ff16156108c1575081835260036020528220805460ff191690557fbea12876694c4055c71f74308f752b9027cf3d554194000a366abddfc239a3068280a280f35b82602492519163961c9a4f60e01b8352820152fd5b83346109305780600319360112610930576108ef6113e6565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b503461019857816003193601126101985761095a61094f611126565b60243590339061126e565b9182845260026020528084208281019081549060ff8260a01c166009811015610a1e57600103610a0e576001810154336001600160a01b03909116036109ff5762278d004201948542116109ec575060030184905561ffff60a01b1916600160a11b179055519081527fe88cea854b1fc2dd9f5bc9eaf26ada71dce7d2ecfba27b4c6f9d24916a3d8f3890602090a280f35b634e487b7160e01b885260119052602487fd5b505050516282b42960e81b8152fd5b505050516307a92f1960e51b8152fd5b634e487b7160e01b885260218652602488fd5b50903461019857602036600319011261019857610a4c611126565b610a546113e6565b6001600160a01b0316918215610aa1575081835260036020528220805460ff191660011790557fd1be2e90bd3d24839d9dd94ad871068e1f9688b02fa43f2a62c9975dfa9de2d78280a280f35b83602492519163961c9a4f60e01b8352820152fd5b50503461044457816003193601126104445760055490516001600160a01b039091168152602090f35b5050346104445760203660031901126104445760209160ff9082906001600160a01b03610b0a611126565b1681526003855220541690519015158152f35b50503461044457602090610b39610b3336611157565b9161126e565b9051908152f35b50346101985782600319360112610198575490516001600160a01b03909116815260209150f35b503461019857610b7636611157565b6005549092906001600160a01b0316330361059b5790610b96929161126e565b9182845260026020528181852001805460ff8160a01c166009811015610c6357600603610c545760a81c60ff16926009841015610c4157600184141580610c36575b610c28575091610c2460209284610c10847fba7626ab7042d43f6286475d2d61162a0286b19d6d7e512777e4a5a949fbae7b976111af565b805460ff60a81b191690555191829061118c565ba280f35b82516307a92f1960e51b8152fd5b506002841415610bd8565b634e487b7160e01b865260219052602485fd5b5050516307a92f1960e51b8152fd5b634e487b7160e01b875260218552602487fd5b50903461019857608036600319011261019857610c91611126565b90610c9a611141565b91606435908115158203610eb957610cb06112b3565b6005546001600160a01b03949085163303610eaa5790610cd3916044359161126e565b9283865260026020528286209185830195865460ff8160a01c1660098110159081610e975760018114159182610e89575b82610e64575b5050610e55576002850154908115610e4557841692899015610de7575060648102818104606403610dd4579484610d75947f695f91699971b3aa63ee1419e587a0016f0b5bb5e4212f35feafff2b5ec7ef6e9894610d8a9460019861271060609b04988980936111f7565b998a960154169381610dc0575b5050506112d6565b865460ff60a01b1916600160a31b1787558051600181526020810193909352820152a25b805460ff60a81b191690556001805580f35b610dcc925416836112d6565b388681610d82565b634e487b7160e01b8a526011835260248afd5b927f695f91699971b3aa63ee1419e587a0016f0b5bb5e4212f35feafff2b5ec7ef6e96925090610e1e9181956060975416906112d6565b865460ff60a01b1916600760a01b17875580518281526020810193909352820152a2610dae565b865163b10205ed60e01b81528390fd5b5084516307a92f1960e51b8152fd5b909150610e7657600614153880610d0a565b634e487b7160e01b8a526021835260248afd5b50600281141591508a610d04565b634e487b7160e01b8b526021845260248bfd5b83516282b42960e81b81528690fd5b8580fd5b50829034610444578260031936011261044457610ee3610edb611126565b61094f6112b3565b9081835260026020528383209060ff8183015460a01c166009811015610f6857600203610f5a576001820154336001600160a01b0390911603610f4d576003820154804210610f37578461040d8585611328565b855163211c7ad360e21b81529182015260249150fd5b84516282b42960e81b8152fd5b84516307a92f1960e51b8152fd5b634e487b7160e01b855260218252602485fd5b50919034610444578060031936011261044457610f99610edb611126565b908183526002602052808320938085019182549160ff8360a01c1660098110156110645760018114159081611058575b5061104a5760018701546001600160a01b039290339084160361103e575050600286015461ffff60a01b198316600360a01b179093559454939492936110139390811691166112d6565b7fa8a43259a822d2db6a98f421135ea2dc8a1328e57f206879ccd712ecb12d35528280a26001805580f35b516282b42960e81b8152fd5b90516307a92f1960e51b8152fd5b60029150141538610fc9565b634e487b7160e01b875260218252602487fd5b509190346104445780600319360112610444576110956103b6611126565b908183526002602052808320938085019182549160ff8360a01c1660098110156110645760010361104a5786546001600160a01b039290339084160361103e57505060026110fb949596015492600560a01b61ffff60a01b1984161790553391166112d6565b7f80e9400033486e7416cfa265351480358efd0d846286c35f8dd44be19d2d479e8280a26001805580f35b600435906001600160a01b038216820361113c57565b600080fd5b602435906001600160a01b038216820361113c57565b606090600319011261113c576001600160a01b0390600435828116810361113c5791602435908116810361113c579060443590565b9060098210156111995752565b634e487b7160e01b600052602160045260246000fd5b90600981101561119957815460ff60a01b191660a09190911b60ff60a01b16179055565b90600981101561119957815460ff60a81b191660a89190911b60ff60a81b16179055565b9190820391821161120457565b634e487b7160e01b600052601160045260246000fd5b60e0810190811067ffffffffffffffff82111761123657604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761123657604052565b604080516001600160a01b0392831660208201908152929093169083015260608201929092526112a181608081016106c0565b51902090565b60098210156111995752565b6002600154146112c4576002600155565b604051633ee5aeb560e01b8152600490fd5b60405163a9059cbb60e01b60208201526001600160a01b039092166024830152604480830193909352918152608081019167ffffffffffffffff8311828410176112365761132692604052611412565b565b60028101549081156113d4576064820290828204606403611204577f8c9a761b9fb02d0383952d5074cec2cc8298ebe7ade19aa9634aa5d177c47c52926113b36113796127106040950480936111f7565b60048401805461ffff60a01b198116600160a21b17909155909384916001600160a01b0390811691600190866113c0575b015416906112d6565b82519182526020820152a2565b6113cf878460045416866112d6565b6113aa565b60405163b10205ed60e01b8152600490fd5b6000546001600160a01b031633036113fa57565b60405163118cdaa760e01b8152336004820152602490fd5b906000602091828151910182855af11561146e576000513d61146557506001600160a01b0381163b155b6114435750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561143c565b6040513d6000823e3d90fdfea26469706673582212200cf140b3dccad053dc43ea6cd1249a3665ba07d60716f2ab1f351868e575f41564736f6c63430008180033";
845
+ const isSuperArgs = (xs) => xs.length > 1;
846
+ class P2PEscrow__factory extends ethers_1.ContractFactory {
847
+ constructor(...args) {
848
+ if (isSuperArgs(args)) {
849
+ super(...args);
850
+ }
851
+ else {
852
+ super(_abi, _bytecode, args[0]);
853
+ }
854
+ }
855
+ getDeployTransaction(usdt, usdc, initialFeeRecipient, initialArbitrator, contractOwner, overrides) {
856
+ return super.getDeployTransaction(usdt, usdc, initialFeeRecipient, initialArbitrator, contractOwner, overrides || {});
857
+ }
858
+ deploy(usdt, usdc, initialFeeRecipient, initialArbitrator, contractOwner, overrides) {
859
+ return super.deploy(usdt, usdc, initialFeeRecipient, initialArbitrator, contractOwner, overrides || {});
860
+ }
861
+ connect(runner) {
862
+ return super.connect(runner);
863
+ }
864
+ static bytecode = _bytecode;
865
+ static abi = _abi;
866
+ static createInterface() {
867
+ return new ethers_1.Interface(_abi);
868
+ }
869
+ static connect(address, runner) {
870
+ return new ethers_1.Contract(address, _abi, runner);
871
+ }
872
+ }
873
+ exports.P2PEscrow__factory = P2PEscrow__factory;
874
+ //# sourceMappingURL=P2PEscrow__factory.js.map