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