@rainprotocolsdk/sdk 1.1.1 → 1.3.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,1478 @@
1
+ export const CreateMarketAbi = [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "inputs": [
9
+ {
10
+ "internalType": "address",
11
+ "name": "target",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "name": "AddressEmptyCode",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "BalanceMismatch",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "address",
27
+ "name": "implementation",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "ERC1967InvalidImplementation",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "ERC1967NonPayable",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "FailedCall",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "InsufficientPoolLiquidity",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "InvalidAddress",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "InvalidBytes",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "InvalidInitialLiquidity",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "InvalidInitialization",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "InvalidValue",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "LengthMismatch",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "NotInitializing",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "OnlyCreatedPool",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [
91
+ {
92
+ "internalType": "address",
93
+ "name": "owner",
94
+ "type": "address"
95
+ }
96
+ ],
97
+ "name": "OwnableInvalidOwner",
98
+ "type": "error"
99
+ },
100
+ {
101
+ "inputs": [
102
+ {
103
+ "internalType": "address",
104
+ "name": "account",
105
+ "type": "address"
106
+ }
107
+ ],
108
+ "name": "OwnableUnauthorizedAccount",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [
113
+ {
114
+ "internalType": "address",
115
+ "name": "token",
116
+ "type": "address"
117
+ }
118
+ ],
119
+ "name": "SafeERC20FailedOperation",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [],
124
+ "name": "TokenNotAllowed",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "inputs": [],
129
+ "name": "UUPSUnauthorizedCallContext",
130
+ "type": "error"
131
+ },
132
+ {
133
+ "inputs": [
134
+ {
135
+ "internalType": "bytes32",
136
+ "name": "slot",
137
+ "type": "bytes32"
138
+ }
139
+ ],
140
+ "name": "UUPSUnsupportedProxiableUUID",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "anonymous": false,
145
+ "inputs": [
146
+ {
147
+ "indexed": true,
148
+ "internalType": "address",
149
+ "name": "tokenAddress",
150
+ "type": "address"
151
+ },
152
+ {
153
+ "indexed": false,
154
+ "internalType": "uint256",
155
+ "name": "tokenDecimals",
156
+ "type": "uint256"
157
+ },
158
+ {
159
+ "indexed": false,
160
+ "internalType": "string",
161
+ "name": "tokenName",
162
+ "type": "string"
163
+ },
164
+ {
165
+ "indexed": false,
166
+ "internalType": "string",
167
+ "name": "tokenSymbol",
168
+ "type": "string"
169
+ }
170
+ ],
171
+ "name": "ExistingTokenDisallowed",
172
+ "type": "event"
173
+ },
174
+ {
175
+ "anonymous": false,
176
+ "inputs": [
177
+ {
178
+ "indexed": false,
179
+ "internalType": "uint64",
180
+ "name": "version",
181
+ "type": "uint64"
182
+ }
183
+ ],
184
+ "name": "Initialized",
185
+ "type": "event"
186
+ },
187
+ {
188
+ "anonymous": false,
189
+ "inputs": [
190
+ {
191
+ "indexed": true,
192
+ "internalType": "address",
193
+ "name": "tokenAddress",
194
+ "type": "address"
195
+ },
196
+ {
197
+ "indexed": false,
198
+ "internalType": "uint256",
199
+ "name": "tokenDecimals",
200
+ "type": "uint256"
201
+ },
202
+ {
203
+ "indexed": false,
204
+ "internalType": "string",
205
+ "name": "tokenName",
206
+ "type": "string"
207
+ },
208
+ {
209
+ "indexed": false,
210
+ "internalType": "string",
211
+ "name": "tokenSymbol",
212
+ "type": "string"
213
+ }
214
+ ],
215
+ "name": "NewTokenAllowed",
216
+ "type": "event"
217
+ },
218
+ {
219
+ "anonymous": false,
220
+ "inputs": [
221
+ {
222
+ "indexed": true,
223
+ "internalType": "address",
224
+ "name": "previousOwner",
225
+ "type": "address"
226
+ },
227
+ {
228
+ "indexed": true,
229
+ "internalType": "address",
230
+ "name": "newOwner",
231
+ "type": "address"
232
+ }
233
+ ],
234
+ "name": "OwnershipTransferred",
235
+ "type": "event"
236
+ },
237
+ {
238
+ "anonymous": false,
239
+ "inputs": [
240
+ {
241
+ "indexed": true,
242
+ "internalType": "address",
243
+ "name": "poolAddress",
244
+ "type": "address"
245
+ },
246
+ {
247
+ "indexed": true,
248
+ "internalType": "address",
249
+ "name": "poolCreator",
250
+ "type": "address"
251
+ },
252
+ {
253
+ "indexed": false,
254
+ "internalType": "string",
255
+ "name": "uri",
256
+ "type": "string"
257
+ }
258
+ ],
259
+ "name": "PoolCreated",
260
+ "type": "event"
261
+ },
262
+ {
263
+ "anonymous": false,
264
+ "inputs": [
265
+ {
266
+ "indexed": true,
267
+ "internalType": "address",
268
+ "name": "poolAddress",
269
+ "type": "address"
270
+ },
271
+ {
272
+ "indexed": true,
273
+ "internalType": "address",
274
+ "name": "tokenAddress",
275
+ "type": "address"
276
+ },
277
+ {
278
+ "indexed": false,
279
+ "internalType": "uint256",
280
+ "name": "tokenDecimals",
281
+ "type": "uint256"
282
+ },
283
+ {
284
+ "indexed": false,
285
+ "internalType": "string",
286
+ "name": "tokenName",
287
+ "type": "string"
288
+ },
289
+ {
290
+ "indexed": false,
291
+ "internalType": "string",
292
+ "name": "tokenSymbol",
293
+ "type": "string"
294
+ }
295
+ ],
296
+ "name": "PoolTokenSet",
297
+ "type": "event"
298
+ },
299
+ {
300
+ "anonymous": false,
301
+ "inputs": [
302
+ {
303
+ "indexed": true,
304
+ "internalType": "address",
305
+ "name": "implementation",
306
+ "type": "address"
307
+ }
308
+ ],
309
+ "name": "Upgraded",
310
+ "type": "event"
311
+ },
312
+ {
313
+ "inputs": [],
314
+ "name": "UPGRADE_INTERFACE_VERSION",
315
+ "outputs": [
316
+ {
317
+ "internalType": "string",
318
+ "name": "",
319
+ "type": "string"
320
+ }
321
+ ],
322
+ "stateMutability": "view",
323
+ "type": "function"
324
+ },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "",
330
+ "type": "uint256"
331
+ }
332
+ ],
333
+ "name": "allPools",
334
+ "outputs": [
335
+ {
336
+ "internalType": "address",
337
+ "name": "",
338
+ "type": "address"
339
+ }
340
+ ],
341
+ "stateMutability": "view",
342
+ "type": "function"
343
+ },
344
+ {
345
+ "inputs": [
346
+ {
347
+ "internalType": "address",
348
+ "name": "newTokenAddress",
349
+ "type": "address"
350
+ },
351
+ {
352
+ "components": [
353
+ {
354
+ "internalType": "enum IRainDeployer.TokenPool",
355
+ "name": "tokenPool",
356
+ "type": "uint8"
357
+ },
358
+ {
359
+ "internalType": "bool",
360
+ "name": "isAllowed",
361
+ "type": "bool"
362
+ },
363
+ {
364
+ "internalType": "address",
365
+ "name": "routerAddress",
366
+ "type": "address"
367
+ },
368
+ {
369
+ "internalType": "address",
370
+ "name": "routerHelper",
371
+ "type": "address"
372
+ },
373
+ {
374
+ "internalType": "bytes",
375
+ "name": "pathUSDTToToken",
376
+ "type": "bytes"
377
+ },
378
+ {
379
+ "internalType": "bytes",
380
+ "name": "pathTokenToUSDT",
381
+ "type": "bytes"
382
+ },
383
+ {
384
+ "internalType": "bytes",
385
+ "name": "pathTokenWETH",
386
+ "type": "bytes"
387
+ }
388
+ ],
389
+ "internalType": "struct IRainDeployer.TokenData",
390
+ "name": "tokenData_",
391
+ "type": "tuple"
392
+ }
393
+ ],
394
+ "name": "allowNewToken",
395
+ "outputs": [],
396
+ "stateMutability": "nonpayable",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [],
401
+ "name": "baseToken",
402
+ "outputs": [
403
+ {
404
+ "internalType": "address",
405
+ "name": "",
406
+ "type": "address"
407
+ }
408
+ ],
409
+ "stateMutability": "view",
410
+ "type": "function"
411
+ },
412
+ {
413
+ "inputs": [
414
+ {
415
+ "internalType": "uint256",
416
+ "name": "numberOfOracles",
417
+ "type": "uint256"
418
+ },
419
+ {
420
+ "internalType": "uint256",
421
+ "name": "oracleReward",
422
+ "type": "uint256"
423
+ },
424
+ {
425
+ "internalType": "uint256",
426
+ "name": "fixedFee",
427
+ "type": "uint256"
428
+ },
429
+ {
430
+ "internalType": "address",
431
+ "name": "creator",
432
+ "type": "address"
433
+ },
434
+ {
435
+ "internalType": "uint256",
436
+ "name": "endTime",
437
+ "type": "uint256"
438
+ },
439
+ {
440
+ "internalType": "uint256",
441
+ "name": "totalNumberOfOptions",
442
+ "type": "uint256"
443
+ },
444
+ {
445
+ "internalType": "string",
446
+ "name": "questionUri",
447
+ "type": "string"
448
+ }
449
+ ],
450
+ "name": "createOracle",
451
+ "outputs": [
452
+ {
453
+ "internalType": "address",
454
+ "name": "",
455
+ "type": "address"
456
+ }
457
+ ],
458
+ "stateMutability": "nonpayable",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [
463
+ {
464
+ "components": [
465
+ {
466
+ "internalType": "bool",
467
+ "name": "isPublic",
468
+ "type": "bool"
469
+ },
470
+ {
471
+ "internalType": "bool",
472
+ "name": "resolverIsAI",
473
+ "type": "bool"
474
+ },
475
+ {
476
+ "internalType": "address",
477
+ "name": "poolOwner",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "internalType": "address",
482
+ "name": "referrer",
483
+ "type": "address"
484
+ },
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "startTime",
488
+ "type": "uint256"
489
+ },
490
+ {
491
+ "internalType": "uint256",
492
+ "name": "endTime",
493
+ "type": "uint256"
494
+ },
495
+ {
496
+ "internalType": "uint256",
497
+ "name": "numberOfOptions",
498
+ "type": "uint256"
499
+ },
500
+ {
501
+ "internalType": "uint256",
502
+ "name": "oracleEndTime",
503
+ "type": "uint256"
504
+ },
505
+ {
506
+ "internalType": "string",
507
+ "name": "ipfsUri",
508
+ "type": "string"
509
+ },
510
+ {
511
+ "internalType": "uint256",
512
+ "name": "initialLiquidity",
513
+ "type": "uint256"
514
+ },
515
+ {
516
+ "internalType": "uint256[]",
517
+ "name": "liquidityPercentages",
518
+ "type": "uint256[]"
519
+ },
520
+ {
521
+ "internalType": "address",
522
+ "name": "poolResolver",
523
+ "type": "address"
524
+ },
525
+ {
526
+ "internalType": "address",
527
+ "name": "baseToken",
528
+ "type": "address"
529
+ }
530
+ ],
531
+ "internalType": "struct IRainDeployer.Params",
532
+ "name": "params",
533
+ "type": "tuple"
534
+ }
535
+ ],
536
+ "name": "createPool",
537
+ "outputs": [
538
+ {
539
+ "internalType": "address",
540
+ "name": "poolInstance",
541
+ "type": "address"
542
+ }
543
+ ],
544
+ "stateMutability": "nonpayable",
545
+ "type": "function"
546
+ },
547
+ {
548
+ "inputs": [
549
+ {
550
+ "internalType": "address",
551
+ "name": "",
552
+ "type": "address"
553
+ }
554
+ ],
555
+ "name": "createdPools",
556
+ "outputs": [
557
+ {
558
+ "internalType": "bool",
559
+ "name": "",
560
+ "type": "bool"
561
+ }
562
+ ],
563
+ "stateMutability": "view",
564
+ "type": "function"
565
+ },
566
+ {
567
+ "inputs": [],
568
+ "name": "creatorFee",
569
+ "outputs": [
570
+ {
571
+ "internalType": "uint256",
572
+ "name": "",
573
+ "type": "uint256"
574
+ }
575
+ ],
576
+ "stateMutability": "view",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [
581
+ {
582
+ "internalType": "address",
583
+ "name": "",
584
+ "type": "address"
585
+ }
586
+ ],
587
+ "name": "currentIndex",
588
+ "outputs": [
589
+ {
590
+ "internalType": "uint256",
591
+ "name": "",
592
+ "type": "uint256"
593
+ }
594
+ ],
595
+ "stateMutability": "view",
596
+ "type": "function"
597
+ },
598
+ {
599
+ "inputs": [],
600
+ "name": "diamondCancelOrderFacet",
601
+ "outputs": [
602
+ {
603
+ "internalType": "address",
604
+ "name": "",
605
+ "type": "address"
606
+ }
607
+ ],
608
+ "stateMutability": "view",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "inputs": [],
613
+ "name": "diamondClaimFacet",
614
+ "outputs": [
615
+ {
616
+ "internalType": "address",
617
+ "name": "",
618
+ "type": "address"
619
+ }
620
+ ],
621
+ "stateMutability": "view",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [],
626
+ "name": "diamondCutFacet",
627
+ "outputs": [
628
+ {
629
+ "internalType": "address",
630
+ "name": "",
631
+ "type": "address"
632
+ }
633
+ ],
634
+ "stateMutability": "view",
635
+ "type": "function"
636
+ },
637
+ {
638
+ "inputs": [],
639
+ "name": "diamondDisputeFacet",
640
+ "outputs": [
641
+ {
642
+ "internalType": "address",
643
+ "name": "",
644
+ "type": "address"
645
+ }
646
+ ],
647
+ "stateMutability": "view",
648
+ "type": "function"
649
+ },
650
+ {
651
+ "inputs": [],
652
+ "name": "diamondFactory",
653
+ "outputs": [
654
+ {
655
+ "internalType": "address",
656
+ "name": "",
657
+ "type": "address"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [],
665
+ "name": "diamondGetterFacet",
666
+ "outputs": [
667
+ {
668
+ "internalType": "address",
669
+ "name": "",
670
+ "type": "address"
671
+ }
672
+ ],
673
+ "stateMutability": "view",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [],
678
+ "name": "diamondInfoFacet",
679
+ "outputs": [
680
+ {
681
+ "internalType": "address",
682
+ "name": "",
683
+ "type": "address"
684
+ }
685
+ ],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [],
691
+ "name": "diamondLoupeFacet",
692
+ "outputs": [
693
+ {
694
+ "internalType": "address",
695
+ "name": "",
696
+ "type": "address"
697
+ }
698
+ ],
699
+ "stateMutability": "view",
700
+ "type": "function"
701
+ },
702
+ {
703
+ "inputs": [],
704
+ "name": "diamondOracleFeeFacet",
705
+ "outputs": [
706
+ {
707
+ "internalType": "address",
708
+ "name": "",
709
+ "type": "address"
710
+ }
711
+ ],
712
+ "stateMutability": "view",
713
+ "type": "function"
714
+ },
715
+ {
716
+ "inputs": [],
717
+ "name": "diamondResolutionFacet",
718
+ "outputs": [
719
+ {
720
+ "internalType": "address",
721
+ "name": "",
722
+ "type": "address"
723
+ }
724
+ ],
725
+ "stateMutability": "view",
726
+ "type": "function"
727
+ },
728
+ {
729
+ "inputs": [],
730
+ "name": "diamondTradingFacet",
731
+ "outputs": [
732
+ {
733
+ "internalType": "address",
734
+ "name": "",
735
+ "type": "address"
736
+ }
737
+ ],
738
+ "stateMutability": "view",
739
+ "type": "function"
740
+ },
741
+ {
742
+ "inputs": [
743
+ {
744
+ "internalType": "address",
745
+ "name": "tokenAddress",
746
+ "type": "address"
747
+ }
748
+ ],
749
+ "name": "disallowExistingToken",
750
+ "outputs": [],
751
+ "stateMutability": "nonpayable",
752
+ "type": "function"
753
+ },
754
+ {
755
+ "inputs": [],
756
+ "name": "disputeResolverAI",
757
+ "outputs": [
758
+ {
759
+ "internalType": "address",
760
+ "name": "",
761
+ "type": "address"
762
+ }
763
+ ],
764
+ "stateMutability": "view",
765
+ "type": "function"
766
+ },
767
+ {
768
+ "inputs": [
769
+ {
770
+ "internalType": "address",
771
+ "name": "",
772
+ "type": "address"
773
+ },
774
+ {
775
+ "internalType": "uint256",
776
+ "name": "",
777
+ "type": "uint256"
778
+ }
779
+ ],
780
+ "name": "facetFunctionSelectors",
781
+ "outputs": [
782
+ {
783
+ "internalType": "bytes4",
784
+ "name": "",
785
+ "type": "bytes4"
786
+ }
787
+ ],
788
+ "stateMutability": "view",
789
+ "type": "function"
790
+ },
791
+ {
792
+ "inputs": [
793
+ {
794
+ "internalType": "address",
795
+ "name": "tokenAddress",
796
+ "type": "address"
797
+ }
798
+ ],
799
+ "name": "getOracleFixedFeeInToken",
800
+ "outputs": [
801
+ {
802
+ "internalType": "uint256",
803
+ "name": "",
804
+ "type": "uint256"
805
+ }
806
+ ],
807
+ "stateMutability": "nonpayable",
808
+ "type": "function"
809
+ },
810
+ {
811
+ "inputs": [
812
+ {
813
+ "internalType": "address",
814
+ "name": "_oracleFactoryAddress",
815
+ "type": "address"
816
+ },
817
+ {
818
+ "internalType": "address",
819
+ "name": "_baseToken",
820
+ "type": "address"
821
+ },
822
+ {
823
+ "internalType": "address",
824
+ "name": "_platformAddress",
825
+ "type": "address"
826
+ },
827
+ {
828
+ "internalType": "address",
829
+ "name": "_resolverAI",
830
+ "type": "address"
831
+ },
832
+ {
833
+ "internalType": "address",
834
+ "name": "_disputeResolverAI",
835
+ "type": "address"
836
+ },
837
+ {
838
+ "internalType": "address",
839
+ "name": "_rainToken",
840
+ "type": "address"
841
+ },
842
+ {
843
+ "internalType": "address",
844
+ "name": "_diamondFactory",
845
+ "type": "address"
846
+ },
847
+ {
848
+ "internalType": "uint256",
849
+ "name": "_baseTokenDecimals",
850
+ "type": "uint256"
851
+ },
852
+ {
853
+ "internalType": "uint256",
854
+ "name": "_liquidityFee",
855
+ "type": "uint256"
856
+ },
857
+ {
858
+ "internalType": "uint256",
859
+ "name": "_platformFee",
860
+ "type": "uint256"
861
+ },
862
+ {
863
+ "internalType": "uint256",
864
+ "name": "_oracleFixedFee",
865
+ "type": "uint256"
866
+ },
867
+ {
868
+ "internalType": "uint256",
869
+ "name": "_creatorFee",
870
+ "type": "uint256"
871
+ },
872
+ {
873
+ "internalType": "uint256",
874
+ "name": "_resultResolverFee",
875
+ "type": "uint256"
876
+ }
877
+ ],
878
+ "name": "initialize",
879
+ "outputs": [],
880
+ "stateMutability": "nonpayable",
881
+ "type": "function"
882
+ },
883
+ {
884
+ "inputs": [],
885
+ "name": "liquidityFee",
886
+ "outputs": [
887
+ {
888
+ "internalType": "uint256",
889
+ "name": "",
890
+ "type": "uint256"
891
+ }
892
+ ],
893
+ "stateMutability": "view",
894
+ "type": "function"
895
+ },
896
+ {
897
+ "inputs": [],
898
+ "name": "oracleFactoryAddress",
899
+ "outputs": [
900
+ {
901
+ "internalType": "address",
902
+ "name": "",
903
+ "type": "address"
904
+ }
905
+ ],
906
+ "stateMutability": "view",
907
+ "type": "function"
908
+ },
909
+ {
910
+ "inputs": [],
911
+ "name": "oracleFixedFee",
912
+ "outputs": [
913
+ {
914
+ "internalType": "uint256",
915
+ "name": "",
916
+ "type": "uint256"
917
+ }
918
+ ],
919
+ "stateMutability": "view",
920
+ "type": "function"
921
+ },
922
+ {
923
+ "inputs": [],
924
+ "name": "owner",
925
+ "outputs": [
926
+ {
927
+ "internalType": "address",
928
+ "name": "",
929
+ "type": "address"
930
+ }
931
+ ],
932
+ "stateMutability": "view",
933
+ "type": "function"
934
+ },
935
+ {
936
+ "inputs": [],
937
+ "name": "platformAddress",
938
+ "outputs": [
939
+ {
940
+ "internalType": "address",
941
+ "name": "",
942
+ "type": "address"
943
+ }
944
+ ],
945
+ "stateMutability": "view",
946
+ "type": "function"
947
+ },
948
+ {
949
+ "inputs": [],
950
+ "name": "platformFee",
951
+ "outputs": [
952
+ {
953
+ "internalType": "uint256",
954
+ "name": "",
955
+ "type": "uint256"
956
+ }
957
+ ],
958
+ "stateMutability": "view",
959
+ "type": "function"
960
+ },
961
+ {
962
+ "inputs": [],
963
+ "name": "proxiableUUID",
964
+ "outputs": [
965
+ {
966
+ "internalType": "bytes32",
967
+ "name": "",
968
+ "type": "bytes32"
969
+ }
970
+ ],
971
+ "stateMutability": "view",
972
+ "type": "function"
973
+ },
974
+ {
975
+ "inputs": [],
976
+ "name": "rainToken",
977
+ "outputs": [
978
+ {
979
+ "internalType": "address",
980
+ "name": "",
981
+ "type": "address"
982
+ }
983
+ ],
984
+ "stateMutability": "view",
985
+ "type": "function"
986
+ },
987
+ {
988
+ "inputs": [],
989
+ "name": "renounceOwnership",
990
+ "outputs": [],
991
+ "stateMutability": "nonpayable",
992
+ "type": "function"
993
+ },
994
+ {
995
+ "inputs": [],
996
+ "name": "resolverAI",
997
+ "outputs": [
998
+ {
999
+ "internalType": "address",
1000
+ "name": "",
1001
+ "type": "address"
1002
+ }
1003
+ ],
1004
+ "stateMutability": "view",
1005
+ "type": "function"
1006
+ },
1007
+ {
1008
+ "inputs": [],
1009
+ "name": "resultResolverFee",
1010
+ "outputs": [
1011
+ {
1012
+ "internalType": "uint256",
1013
+ "name": "",
1014
+ "type": "uint256"
1015
+ }
1016
+ ],
1017
+ "stateMutability": "view",
1018
+ "type": "function"
1019
+ },
1020
+ {
1021
+ "inputs": [
1022
+ {
1023
+ "internalType": "address",
1024
+ "name": "newBaseToken",
1025
+ "type": "address"
1026
+ },
1027
+ {
1028
+ "internalType": "uint256",
1029
+ "name": "newBaseTokenDecimals",
1030
+ "type": "uint256"
1031
+ }
1032
+ ],
1033
+ "name": "setBaseToken",
1034
+ "outputs": [],
1035
+ "stateMutability": "nonpayable",
1036
+ "type": "function"
1037
+ },
1038
+ {
1039
+ "inputs": [
1040
+ {
1041
+ "internalType": "uint256",
1042
+ "name": "newCreatorFee",
1043
+ "type": "uint256"
1044
+ }
1045
+ ],
1046
+ "name": "setCreatorFee",
1047
+ "outputs": [],
1048
+ "stateMutability": "nonpayable",
1049
+ "type": "function"
1050
+ },
1051
+ {
1052
+ "inputs": [
1053
+ {
1054
+ "internalType": "address",
1055
+ "name": "newDiamondFactory",
1056
+ "type": "address"
1057
+ }
1058
+ ],
1059
+ "name": "setDiamondFactory",
1060
+ "outputs": [],
1061
+ "stateMutability": "nonpayable",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "address",
1068
+ "name": "newDisputeResolverAI",
1069
+ "type": "address"
1070
+ }
1071
+ ],
1072
+ "name": "setDisputeResolverAI",
1073
+ "outputs": [],
1074
+ "stateMutability": "nonpayable",
1075
+ "type": "function"
1076
+ },
1077
+ {
1078
+ "inputs": [
1079
+ {
1080
+ "internalType": "uint256",
1081
+ "name": "newLiquidityFee",
1082
+ "type": "uint256"
1083
+ }
1084
+ ],
1085
+ "name": "setLiquidityFee",
1086
+ "outputs": [],
1087
+ "stateMutability": "nonpayable",
1088
+ "type": "function"
1089
+ },
1090
+ {
1091
+ "inputs": [
1092
+ {
1093
+ "internalType": "address",
1094
+ "name": "newDiamondCancelOrderFacet",
1095
+ "type": "address"
1096
+ },
1097
+ {
1098
+ "internalType": "bytes4[]",
1099
+ "name": "newFacetFunctionSelectors",
1100
+ "type": "bytes4[]"
1101
+ }
1102
+ ],
1103
+ "name": "setNewDiamondCancelOrderFacet",
1104
+ "outputs": [],
1105
+ "stateMutability": "nonpayable",
1106
+ "type": "function"
1107
+ },
1108
+ {
1109
+ "inputs": [
1110
+ {
1111
+ "internalType": "address",
1112
+ "name": "newDiamondClaimFacet",
1113
+ "type": "address"
1114
+ },
1115
+ {
1116
+ "internalType": "bytes4[]",
1117
+ "name": "newFacetFunctionSelectors",
1118
+ "type": "bytes4[]"
1119
+ }
1120
+ ],
1121
+ "name": "setNewDiamondClaimFacet",
1122
+ "outputs": [],
1123
+ "stateMutability": "nonpayable",
1124
+ "type": "function"
1125
+ },
1126
+ {
1127
+ "inputs": [
1128
+ {
1129
+ "internalType": "address",
1130
+ "name": "newDiamondCutFacet",
1131
+ "type": "address"
1132
+ },
1133
+ {
1134
+ "internalType": "bytes4[]",
1135
+ "name": "newFacetFunctionSelectors",
1136
+ "type": "bytes4[]"
1137
+ }
1138
+ ],
1139
+ "name": "setNewDiamondCutFacet",
1140
+ "outputs": [],
1141
+ "stateMutability": "nonpayable",
1142
+ "type": "function"
1143
+ },
1144
+ {
1145
+ "inputs": [
1146
+ {
1147
+ "internalType": "address",
1148
+ "name": "newDiamondDisputeFacet",
1149
+ "type": "address"
1150
+ },
1151
+ {
1152
+ "internalType": "bytes4[]",
1153
+ "name": "newFacetFunctionSelectors",
1154
+ "type": "bytes4[]"
1155
+ }
1156
+ ],
1157
+ "name": "setNewDiamondDisputeFacet",
1158
+ "outputs": [],
1159
+ "stateMutability": "nonpayable",
1160
+ "type": "function"
1161
+ },
1162
+ {
1163
+ "inputs": [
1164
+ {
1165
+ "internalType": "address",
1166
+ "name": "newDiamondGetterFacet",
1167
+ "type": "address"
1168
+ },
1169
+ {
1170
+ "internalType": "bytes4[]",
1171
+ "name": "newFacetFunctionSelectors",
1172
+ "type": "bytes4[]"
1173
+ }
1174
+ ],
1175
+ "name": "setNewDiamondGetterFacet",
1176
+ "outputs": [],
1177
+ "stateMutability": "nonpayable",
1178
+ "type": "function"
1179
+ },
1180
+ {
1181
+ "inputs": [
1182
+ {
1183
+ "internalType": "address",
1184
+ "name": "newDiamondInfoFacet",
1185
+ "type": "address"
1186
+ },
1187
+ {
1188
+ "internalType": "bytes4[]",
1189
+ "name": "newFacetFunctionSelectors",
1190
+ "type": "bytes4[]"
1191
+ }
1192
+ ],
1193
+ "name": "setNewDiamondInfoFacet",
1194
+ "outputs": [],
1195
+ "stateMutability": "nonpayable",
1196
+ "type": "function"
1197
+ },
1198
+ {
1199
+ "inputs": [
1200
+ {
1201
+ "internalType": "address",
1202
+ "name": "newDiamondLoupeFacet",
1203
+ "type": "address"
1204
+ },
1205
+ {
1206
+ "internalType": "bytes4[]",
1207
+ "name": "newFacetFunctionSelectors",
1208
+ "type": "bytes4[]"
1209
+ }
1210
+ ],
1211
+ "name": "setNewDiamondLoupeFacet",
1212
+ "outputs": [],
1213
+ "stateMutability": "nonpayable",
1214
+ "type": "function"
1215
+ },
1216
+ {
1217
+ "inputs": [
1218
+ {
1219
+ "internalType": "address",
1220
+ "name": "newDiamondResolutionFacet",
1221
+ "type": "address"
1222
+ },
1223
+ {
1224
+ "internalType": "bytes4[]",
1225
+ "name": "newFacetFunctionSelectors",
1226
+ "type": "bytes4[]"
1227
+ }
1228
+ ],
1229
+ "name": "setNewDiamondResolutionFacet",
1230
+ "outputs": [],
1231
+ "stateMutability": "nonpayable",
1232
+ "type": "function"
1233
+ },
1234
+ {
1235
+ "inputs": [
1236
+ {
1237
+ "internalType": "address",
1238
+ "name": "newDiamondTradingFacet",
1239
+ "type": "address"
1240
+ },
1241
+ {
1242
+ "internalType": "bytes4[]",
1243
+ "name": "newFacetFunctionSelectors",
1244
+ "type": "bytes4[]"
1245
+ }
1246
+ ],
1247
+ "name": "setNewDiamondTradingFacet",
1248
+ "outputs": [],
1249
+ "stateMutability": "nonpayable",
1250
+ "type": "function"
1251
+ },
1252
+ {
1253
+ "inputs": [
1254
+ {
1255
+ "internalType": "address",
1256
+ "name": "newDiamondOracleFixedFeeFacet",
1257
+ "type": "address"
1258
+ },
1259
+ {
1260
+ "internalType": "bytes4[]",
1261
+ "name": "newFacetFunctionSelectors",
1262
+ "type": "bytes4[]"
1263
+ }
1264
+ ],
1265
+ "name": "setNewOracleFeeFacet",
1266
+ "outputs": [],
1267
+ "stateMutability": "nonpayable",
1268
+ "type": "function"
1269
+ },
1270
+ {
1271
+ "inputs": [
1272
+ {
1273
+ "internalType": "address",
1274
+ "name": "newOracleFactoryAddress",
1275
+ "type": "address"
1276
+ }
1277
+ ],
1278
+ "name": "setOracleFactoryAddress",
1279
+ "outputs": [],
1280
+ "stateMutability": "nonpayable",
1281
+ "type": "function"
1282
+ },
1283
+ {
1284
+ "inputs": [
1285
+ {
1286
+ "internalType": "uint256",
1287
+ "name": "newOracleFixedFee",
1288
+ "type": "uint256"
1289
+ }
1290
+ ],
1291
+ "name": "setOracleFixedFee",
1292
+ "outputs": [],
1293
+ "stateMutability": "nonpayable",
1294
+ "type": "function"
1295
+ },
1296
+ {
1297
+ "inputs": [
1298
+ {
1299
+ "internalType": "address",
1300
+ "name": "newPlatformAddress",
1301
+ "type": "address"
1302
+ }
1303
+ ],
1304
+ "name": "setPlatformAddress",
1305
+ "outputs": [],
1306
+ "stateMutability": "nonpayable",
1307
+ "type": "function"
1308
+ },
1309
+ {
1310
+ "inputs": [
1311
+ {
1312
+ "internalType": "uint256",
1313
+ "name": "newPlatformFee",
1314
+ "type": "uint256"
1315
+ }
1316
+ ],
1317
+ "name": "setPlatformFee",
1318
+ "outputs": [],
1319
+ "stateMutability": "nonpayable",
1320
+ "type": "function"
1321
+ },
1322
+ {
1323
+ "inputs": [
1324
+ {
1325
+ "internalType": "address",
1326
+ "name": "newRainToken",
1327
+ "type": "address"
1328
+ }
1329
+ ],
1330
+ "name": "setRainToken",
1331
+ "outputs": [],
1332
+ "stateMutability": "nonpayable",
1333
+ "type": "function"
1334
+ },
1335
+ {
1336
+ "inputs": [
1337
+ {
1338
+ "internalType": "address",
1339
+ "name": "newResolverAI",
1340
+ "type": "address"
1341
+ }
1342
+ ],
1343
+ "name": "setResolverAI",
1344
+ "outputs": [],
1345
+ "stateMutability": "nonpayable",
1346
+ "type": "function"
1347
+ },
1348
+ {
1349
+ "inputs": [
1350
+ {
1351
+ "internalType": "uint256",
1352
+ "name": "newResultResolverFee",
1353
+ "type": "uint256"
1354
+ }
1355
+ ],
1356
+ "name": "setResultResolverFee",
1357
+ "outputs": [],
1358
+ "stateMutability": "nonpayable",
1359
+ "type": "function"
1360
+ },
1361
+ {
1362
+ "inputs": [
1363
+ {
1364
+ "internalType": "address",
1365
+ "name": "tokenAddress",
1366
+ "type": "address"
1367
+ }
1368
+ ],
1369
+ "name": "tokenData",
1370
+ "outputs": [
1371
+ {
1372
+ "internalType": "enum IRainDeployer.TokenPool",
1373
+ "name": "tokenPool",
1374
+ "type": "uint8"
1375
+ },
1376
+ {
1377
+ "internalType": "bool",
1378
+ "name": "isAllowed",
1379
+ "type": "bool"
1380
+ },
1381
+ {
1382
+ "internalType": "address",
1383
+ "name": "routerAddress",
1384
+ "type": "address"
1385
+ },
1386
+ {
1387
+ "internalType": "address",
1388
+ "name": "routerHelper",
1389
+ "type": "address"
1390
+ },
1391
+ {
1392
+ "internalType": "bytes",
1393
+ "name": "pathUSDTToToken",
1394
+ "type": "bytes"
1395
+ },
1396
+ {
1397
+ "internalType": "bytes",
1398
+ "name": "pathTokenToUSDT",
1399
+ "type": "bytes"
1400
+ },
1401
+ {
1402
+ "internalType": "bytes",
1403
+ "name": "pathTokenWETH",
1404
+ "type": "bytes"
1405
+ }
1406
+ ],
1407
+ "stateMutability": "view",
1408
+ "type": "function"
1409
+ },
1410
+ {
1411
+ "inputs": [],
1412
+ "name": "totalPools",
1413
+ "outputs": [
1414
+ {
1415
+ "internalType": "uint256",
1416
+ "name": "",
1417
+ "type": "uint256"
1418
+ }
1419
+ ],
1420
+ "stateMutability": "view",
1421
+ "type": "function"
1422
+ },
1423
+ {
1424
+ "inputs": [
1425
+ {
1426
+ "internalType": "address",
1427
+ "name": "newOwner",
1428
+ "type": "address"
1429
+ }
1430
+ ],
1431
+ "name": "transferOwnership",
1432
+ "outputs": [],
1433
+ "stateMutability": "nonpayable",
1434
+ "type": "function"
1435
+ },
1436
+ {
1437
+ "inputs": [
1438
+ {
1439
+ "internalType": "address",
1440
+ "name": "newImplementation",
1441
+ "type": "address"
1442
+ },
1443
+ {
1444
+ "internalType": "bytes",
1445
+ "name": "data",
1446
+ "type": "bytes"
1447
+ }
1448
+ ],
1449
+ "name": "upgradeToAndCall",
1450
+ "outputs": [],
1451
+ "stateMutability": "payable",
1452
+ "type": "function"
1453
+ },
1454
+ {
1455
+ "inputs": [
1456
+ {
1457
+ "internalType": "address",
1458
+ "name": "",
1459
+ "type": "address"
1460
+ },
1461
+ {
1462
+ "internalType": "uint256",
1463
+ "name": "",
1464
+ "type": "uint256"
1465
+ }
1466
+ ],
1467
+ "name": "userPools",
1468
+ "outputs": [
1469
+ {
1470
+ "internalType": "address",
1471
+ "name": "",
1472
+ "type": "address"
1473
+ }
1474
+ ],
1475
+ "stateMutability": "view",
1476
+ "type": "function"
1477
+ }
1478
+ ];