@gensyn-ai/gensyn-delphi-sdk 0.1.0 → 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.
- package/LICENSE.TXT +21 -0
- package/README.md +132 -9
- package/dist/abi/DynamicParimutuelGateway.d.ts +578 -108
- package/dist/abi/DynamicParimutuelGateway.d.ts.map +1 -1
- package/dist/abi/DynamicParimutuelGateway.js +368 -60
- package/dist/abi/DynamicParimutuelGateway.js.map +1 -1
- package/dist/client/DelphiClient.d.ts.map +1 -1
- package/dist/client/DelphiClient.js +9 -7
- package/dist/client/DelphiClient.js.map +1 -1
- package/dist/types/index.d.ts +12 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicParimutuelGateway.d.ts","sourceRoot":"","sources":["../../src/abi/DynamicParimutuelGateway.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"DynamicParimutuelGateway.d.ts","sourceRoot":"","sources":["../../src/abi/DynamicParimutuelGateway.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,9 +1,62 @@
|
|
|
1
1
|
const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "contract IERC20Metadata",
|
|
6
|
+
"name": "token_",
|
|
7
|
+
"type": "address"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"stateMutability": "nonpayable",
|
|
11
|
+
"type": "constructor"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"inputs": [],
|
|
15
|
+
"name": "BuyTooSmall",
|
|
16
|
+
"type": "error"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"inputs": [
|
|
20
|
+
{
|
|
21
|
+
"internalType": "address",
|
|
22
|
+
"name": "delphiFactory",
|
|
23
|
+
"type": "address"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"name": "DelphiFactoryIsNotContract",
|
|
27
|
+
"type": "error"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"inputs": [],
|
|
31
|
+
"name": "DelphiFactoryIsZeroAddress",
|
|
32
|
+
"type": "error"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"inputs": [],
|
|
36
|
+
"name": "GatewayNotInitialized",
|
|
37
|
+
"type": "error"
|
|
38
|
+
},
|
|
2
39
|
{
|
|
3
40
|
"inputs": [],
|
|
4
41
|
"name": "GrossTokensOutNotPositive",
|
|
5
42
|
"type": "error"
|
|
6
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"inputs": [
|
|
46
|
+
{
|
|
47
|
+
"internalType": "address",
|
|
48
|
+
"name": "initializer",
|
|
49
|
+
"type": "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"internalType": "address",
|
|
53
|
+
"name": "deployer",
|
|
54
|
+
"type": "address"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"name": "InitializerNotDeployer",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
7
60
|
{
|
|
8
61
|
"inputs": [],
|
|
9
62
|
"name": "InvalidInitialization",
|
|
@@ -14,6 +67,17 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
14
67
|
"name": "MarketNotOpen",
|
|
15
68
|
"type": "error"
|
|
16
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [
|
|
72
|
+
{
|
|
73
|
+
"internalType": "address",
|
|
74
|
+
"name": "marketProxy",
|
|
75
|
+
"type": "address"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"name": "MarketProxyNotDeployedByFactory",
|
|
79
|
+
"type": "error"
|
|
80
|
+
},
|
|
17
81
|
{
|
|
18
82
|
"inputs": [],
|
|
19
83
|
"name": "NotInitializing",
|
|
@@ -40,6 +104,11 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
40
104
|
"name": "SellOverlap",
|
|
41
105
|
"type": "error"
|
|
42
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"inputs": [],
|
|
109
|
+
"name": "SellTooSmall",
|
|
110
|
+
"type": "error"
|
|
111
|
+
},
|
|
43
112
|
{
|
|
44
113
|
"inputs": [
|
|
45
114
|
{
|
|
@@ -88,6 +157,33 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
88
157
|
"name": "SharesOutBelowMinDelta",
|
|
89
158
|
"type": "error"
|
|
90
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"inputs": [],
|
|
162
|
+
"name": "SqrtOverlap",
|
|
163
|
+
"type": "error"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"inputs": [
|
|
167
|
+
{
|
|
168
|
+
"internalType": "uint8",
|
|
169
|
+
"name": "decimals",
|
|
170
|
+
"type": "uint8"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"name": "TokenDecimalsTooHigh",
|
|
174
|
+
"type": "error"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"inputs": [
|
|
178
|
+
{
|
|
179
|
+
"internalType": "uint8",
|
|
180
|
+
"name": "decimals",
|
|
181
|
+
"type": "uint8"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"name": "TokenDecimalsTooLow",
|
|
185
|
+
"type": "error"
|
|
186
|
+
},
|
|
91
187
|
{
|
|
92
188
|
"inputs": [
|
|
93
189
|
{
|
|
@@ -141,11 +237,26 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
141
237
|
"name": "ZeroNetTokensIn",
|
|
142
238
|
"type": "error"
|
|
143
239
|
},
|
|
240
|
+
{
|
|
241
|
+
"inputs": [],
|
|
242
|
+
"name": "ZeroSharesIn",
|
|
243
|
+
"type": "error"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"inputs": [],
|
|
247
|
+
"name": "ZeroSharesOut",
|
|
248
|
+
"type": "error"
|
|
249
|
+
},
|
|
144
250
|
{
|
|
145
251
|
"inputs": [],
|
|
146
252
|
"name": "ZeroTokensIn",
|
|
147
253
|
"type": "error"
|
|
148
254
|
},
|
|
255
|
+
{
|
|
256
|
+
"inputs": [],
|
|
257
|
+
"name": "ZeroTokensOut",
|
|
258
|
+
"type": "error"
|
|
259
|
+
},
|
|
149
260
|
{
|
|
150
261
|
"anonymous": false,
|
|
151
262
|
"inputs": [
|
|
@@ -199,7 +310,7 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
199
310
|
"type": "address"
|
|
200
311
|
},
|
|
201
312
|
{
|
|
202
|
-
"indexed":
|
|
313
|
+
"indexed": false,
|
|
203
314
|
"internalType": "uint256[]",
|
|
204
315
|
"name": "outcomeIndices",
|
|
205
316
|
"type": "uint256[]"
|
|
@@ -302,6 +413,24 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
302
413
|
"internalType": "uint256",
|
|
303
414
|
"name": "winningOutcomeIdx",
|
|
304
415
|
"type": "uint256"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"indexed": false,
|
|
419
|
+
"internalType": "uint256",
|
|
420
|
+
"name": "marketCreatorReward",
|
|
421
|
+
"type": "uint256"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"indexed": false,
|
|
425
|
+
"internalType": "uint256",
|
|
426
|
+
"name": "refund",
|
|
427
|
+
"type": "uint256"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"indexed": false,
|
|
431
|
+
"internalType": "uint256",
|
|
432
|
+
"name": "marketCreatorTradingFeesCut",
|
|
433
|
+
"type": "uint256"
|
|
305
434
|
}
|
|
306
435
|
],
|
|
307
436
|
"name": "GatewayWinnerSubmitted",
|
|
@@ -320,6 +449,58 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
320
449
|
"name": "Initialized",
|
|
321
450
|
"type": "event"
|
|
322
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"inputs": [],
|
|
454
|
+
"name": "MIN_SHARES_DELTA",
|
|
455
|
+
"outputs": [
|
|
456
|
+
{
|
|
457
|
+
"internalType": "uint256",
|
|
458
|
+
"name": "",
|
|
459
|
+
"type": "uint256"
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"stateMutability": "view",
|
|
463
|
+
"type": "function"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"inputs": [],
|
|
467
|
+
"name": "MIN_TOKENS_DELTA",
|
|
468
|
+
"outputs": [
|
|
469
|
+
{
|
|
470
|
+
"internalType": "uint256",
|
|
471
|
+
"name": "",
|
|
472
|
+
"type": "uint256"
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"stateMutability": "view",
|
|
476
|
+
"type": "function"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"inputs": [],
|
|
480
|
+
"name": "TOKEN",
|
|
481
|
+
"outputs": [
|
|
482
|
+
{
|
|
483
|
+
"internalType": "contract IERC20Metadata",
|
|
484
|
+
"name": "",
|
|
485
|
+
"type": "address"
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"stateMutability": "view",
|
|
489
|
+
"type": "function"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"inputs": [],
|
|
493
|
+
"name": "TOKEN_DECIMAL_SCALER",
|
|
494
|
+
"outputs": [
|
|
495
|
+
{
|
|
496
|
+
"internalType": "uint256",
|
|
497
|
+
"name": "",
|
|
498
|
+
"type": "uint256"
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"stateMutability": "view",
|
|
502
|
+
"type": "function"
|
|
503
|
+
},
|
|
323
504
|
{
|
|
324
505
|
"inputs": [
|
|
325
506
|
{
|
|
@@ -446,6 +627,64 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
446
627
|
"stateMutability": "nonpayable",
|
|
447
628
|
"type": "function"
|
|
448
629
|
},
|
|
630
|
+
{
|
|
631
|
+
"inputs": [
|
|
632
|
+
{
|
|
633
|
+
"internalType": "uint256",
|
|
634
|
+
"name": "initialPool",
|
|
635
|
+
"type": "uint256"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"internalType": "uint256",
|
|
639
|
+
"name": "outcomeCount",
|
|
640
|
+
"type": "uint256"
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
"name": "calculateInitialDepositAndRefund",
|
|
644
|
+
"outputs": [
|
|
645
|
+
{
|
|
646
|
+
"internalType": "uint256",
|
|
647
|
+
"name": "initialDeposit",
|
|
648
|
+
"type": "uint256"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"internalType": "uint256",
|
|
652
|
+
"name": "refund",
|
|
653
|
+
"type": "uint256"
|
|
654
|
+
}
|
|
655
|
+
],
|
|
656
|
+
"stateMutability": "pure",
|
|
657
|
+
"type": "function"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"inputs": [
|
|
661
|
+
{
|
|
662
|
+
"internalType": "uint256",
|
|
663
|
+
"name": "initialDeposit",
|
|
664
|
+
"type": "uint256"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"internalType": "uint256",
|
|
668
|
+
"name": "outcomeCount",
|
|
669
|
+
"type": "uint256"
|
|
670
|
+
}
|
|
671
|
+
],
|
|
672
|
+
"name": "calculateInitialPoolAndRefund",
|
|
673
|
+
"outputs": [
|
|
674
|
+
{
|
|
675
|
+
"internalType": "uint256",
|
|
676
|
+
"name": "initialPool",
|
|
677
|
+
"type": "uint256"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"internalType": "uint256",
|
|
681
|
+
"name": "refund",
|
|
682
|
+
"type": "uint256"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"stateMutability": "pure",
|
|
686
|
+
"type": "function"
|
|
687
|
+
},
|
|
449
688
|
{
|
|
450
689
|
"inputs": [],
|
|
451
690
|
"name": "delphiFactory",
|
|
@@ -499,10 +738,15 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
499
738
|
"type": "uint256"
|
|
500
739
|
}
|
|
501
740
|
],
|
|
502
|
-
"internalType": "struct
|
|
741
|
+
"internalType": "struct IDynamicParimutuelMarketTypes.MarketConfig",
|
|
503
742
|
"name": "config",
|
|
504
743
|
"type": "tuple"
|
|
505
744
|
},
|
|
745
|
+
{
|
|
746
|
+
"internalType": "uint256",
|
|
747
|
+
"name": "initialPool",
|
|
748
|
+
"type": "uint256"
|
|
749
|
+
},
|
|
506
750
|
{
|
|
507
751
|
"internalType": "uint256",
|
|
508
752
|
"name": "pool",
|
|
@@ -513,6 +757,11 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
513
757
|
"name": "tradingFees",
|
|
514
758
|
"type": "uint256"
|
|
515
759
|
},
|
|
760
|
+
{
|
|
761
|
+
"internalType": "uint256",
|
|
762
|
+
"name": "refund",
|
|
763
|
+
"type": "uint256"
|
|
764
|
+
},
|
|
516
765
|
{
|
|
517
766
|
"internalType": "uint256",
|
|
518
767
|
"name": "sumTerm36",
|
|
@@ -524,7 +773,7 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
524
773
|
"type": "uint256"
|
|
525
774
|
}
|
|
526
775
|
],
|
|
527
|
-
"internalType": "struct
|
|
776
|
+
"internalType": "struct IDynamicParimutuelMarketTypes.Market",
|
|
528
777
|
"name": "",
|
|
529
778
|
"type": "tuple"
|
|
530
779
|
}
|
|
@@ -603,6 +852,44 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
603
852
|
"stateMutability": "nonpayable",
|
|
604
853
|
"type": "function"
|
|
605
854
|
},
|
|
855
|
+
{
|
|
856
|
+
"inputs": [
|
|
857
|
+
{
|
|
858
|
+
"internalType": "contract IDynamicParimutuelMarket",
|
|
859
|
+
"name": "marketProxy",
|
|
860
|
+
"type": "address"
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
"name": "liquidateMarketCreationShares",
|
|
864
|
+
"outputs": [
|
|
865
|
+
{
|
|
866
|
+
"internalType": "uint256",
|
|
867
|
+
"name": "_totalTokensOut",
|
|
868
|
+
"type": "uint256"
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
"stateMutability": "nonpayable",
|
|
872
|
+
"type": "function"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"inputs": [
|
|
876
|
+
{
|
|
877
|
+
"internalType": "contract IDynamicParimutuelMarket",
|
|
878
|
+
"name": "marketProxy",
|
|
879
|
+
"type": "address"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"name": "marketCreationSharesLiquidated",
|
|
883
|
+
"outputs": [
|
|
884
|
+
{
|
|
885
|
+
"internalType": "bool",
|
|
886
|
+
"name": "",
|
|
887
|
+
"type": "bool"
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"stateMutability": "view",
|
|
891
|
+
"type": "function"
|
|
892
|
+
},
|
|
606
893
|
{
|
|
607
894
|
"inputs": [
|
|
608
895
|
{
|
|
@@ -622,6 +909,68 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
622
909
|
"stateMutability": "view",
|
|
623
910
|
"type": "function"
|
|
624
911
|
},
|
|
912
|
+
{
|
|
913
|
+
"inputs": [
|
|
914
|
+
{
|
|
915
|
+
"internalType": "contract IDynamicParimutuelMarket",
|
|
916
|
+
"name": "marketProxy",
|
|
917
|
+
"type": "address"
|
|
918
|
+
}
|
|
919
|
+
],
|
|
920
|
+
"name": "marketCreatorSharesPerOutcome",
|
|
921
|
+
"outputs": [
|
|
922
|
+
{
|
|
923
|
+
"internalType": "uint256",
|
|
924
|
+
"name": "",
|
|
925
|
+
"type": "uint256"
|
|
926
|
+
}
|
|
927
|
+
],
|
|
928
|
+
"stateMutability": "view",
|
|
929
|
+
"type": "function"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"inputs": [
|
|
933
|
+
{
|
|
934
|
+
"internalType": "contract IDynamicParimutuelMarket",
|
|
935
|
+
"name": "marketProxy",
|
|
936
|
+
"type": "address"
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
"name": "marketCreatorTotalSharesLiquidationValue",
|
|
940
|
+
"outputs": [
|
|
941
|
+
{
|
|
942
|
+
"internalType": "uint256",
|
|
943
|
+
"name": "tokensOut",
|
|
944
|
+
"type": "uint256"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
"stateMutability": "view",
|
|
948
|
+
"type": "function"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"inputs": [
|
|
952
|
+
{
|
|
953
|
+
"internalType": "contract IDynamicParimutuelMarket",
|
|
954
|
+
"name": "marketProxy",
|
|
955
|
+
"type": "address"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"internalType": "uint256",
|
|
959
|
+
"name": "outcomeIdx",
|
|
960
|
+
"type": "uint256"
|
|
961
|
+
}
|
|
962
|
+
],
|
|
963
|
+
"name": "marketCreatorWinningSharesSettlementValue",
|
|
964
|
+
"outputs": [
|
|
965
|
+
{
|
|
966
|
+
"internalType": "uint256",
|
|
967
|
+
"name": "tokensOut",
|
|
968
|
+
"type": "uint256"
|
|
969
|
+
}
|
|
970
|
+
],
|
|
971
|
+
"stateMutability": "view",
|
|
972
|
+
"type": "function"
|
|
973
|
+
},
|
|
625
974
|
{
|
|
626
975
|
"inputs": [
|
|
627
976
|
{
|
|
@@ -664,7 +1013,7 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
664
1013
|
"name": "marketStatus",
|
|
665
1014
|
"outputs": [
|
|
666
1015
|
{
|
|
667
|
-
"internalType": "enum
|
|
1016
|
+
"internalType": "enum IDynamicParimutuelMarketTypes.MarketStatus",
|
|
668
1017
|
"name": "",
|
|
669
1018
|
"type": "uint8"
|
|
670
1019
|
}
|
|
@@ -680,7 +1029,7 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
680
1029
|
"type": "address"
|
|
681
1030
|
}
|
|
682
1031
|
],
|
|
683
|
-
"name": "
|
|
1032
|
+
"name": "maxInitialDeposit",
|
|
684
1033
|
"outputs": [
|
|
685
1034
|
{
|
|
686
1035
|
"internalType": "uint256",
|
|
@@ -794,7 +1143,7 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
794
1143
|
"type": "address"
|
|
795
1144
|
}
|
|
796
1145
|
],
|
|
797
|
-
"name": "
|
|
1146
|
+
"name": "minInitialDeposit",
|
|
798
1147
|
"outputs": [
|
|
799
1148
|
{
|
|
800
1149
|
"internalType": "uint256",
|
|
@@ -870,26 +1219,7 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
870
1219
|
"type": "address"
|
|
871
1220
|
}
|
|
872
1221
|
],
|
|
873
|
-
"name": "
|
|
874
|
-
"outputs": [
|
|
875
|
-
{
|
|
876
|
-
"internalType": "uint256",
|
|
877
|
-
"name": "",
|
|
878
|
-
"type": "uint256"
|
|
879
|
-
}
|
|
880
|
-
],
|
|
881
|
-
"stateMutability": "view",
|
|
882
|
-
"type": "function"
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
"inputs": [
|
|
886
|
-
{
|
|
887
|
-
"internalType": "contract IDynamicParimutuelMarket",
|
|
888
|
-
"name": "marketProxy",
|
|
889
|
-
"type": "address"
|
|
890
|
-
}
|
|
891
|
-
],
|
|
892
|
-
"name": "minTokensDelta",
|
|
1222
|
+
"name": "minTradingFee",
|
|
893
1223
|
"outputs": [
|
|
894
1224
|
{
|
|
895
1225
|
"internalType": "uint256",
|
|
@@ -908,7 +1238,7 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
908
1238
|
"type": "address"
|
|
909
1239
|
}
|
|
910
1240
|
],
|
|
911
|
-
"name": "
|
|
1241
|
+
"name": "minTradingWindow",
|
|
912
1242
|
"outputs": [
|
|
913
1243
|
{
|
|
914
1244
|
"internalType": "uint256",
|
|
@@ -927,7 +1257,7 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
927
1257
|
"type": "address"
|
|
928
1258
|
}
|
|
929
1259
|
],
|
|
930
|
-
"name": "
|
|
1260
|
+
"name": "outcomeSuppliesSum",
|
|
931
1261
|
"outputs": [
|
|
932
1262
|
{
|
|
933
1263
|
"internalType": "uint256",
|
|
@@ -1164,46 +1494,24 @@ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
|
|
|
1164
1494
|
}
|
|
1165
1495
|
],
|
|
1166
1496
|
"name": "submitWinner",
|
|
1167
|
-
"outputs": [],
|
|
1168
|
-
"stateMutability": "nonpayable",
|
|
1169
|
-
"type": "function"
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
"inputs": [
|
|
1173
|
-
{
|
|
1174
|
-
"internalType": "contract IDynamicParimutuelMarket",
|
|
1175
|
-
"name": "marketProxy",
|
|
1176
|
-
"type": "address"
|
|
1177
|
-
}
|
|
1178
|
-
],
|
|
1179
|
-
"name": "token",
|
|
1180
1497
|
"outputs": [
|
|
1181
1498
|
{
|
|
1182
|
-
"internalType": "
|
|
1183
|
-
"name": "",
|
|
1184
|
-
"type": "
|
|
1185
|
-
}
|
|
1186
|
-
],
|
|
1187
|
-
"stateMutability": "view",
|
|
1188
|
-
"type": "function"
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
"inputs": [
|
|
1499
|
+
"internalType": "uint256",
|
|
1500
|
+
"name": "marketCreatorReward",
|
|
1501
|
+
"type": "uint256"
|
|
1502
|
+
},
|
|
1192
1503
|
{
|
|
1193
|
-
"internalType": "
|
|
1194
|
-
"name": "
|
|
1195
|
-
"type": "
|
|
1196
|
-
}
|
|
1197
|
-
],
|
|
1198
|
-
"name": "tokenDecimalScaler",
|
|
1199
|
-
"outputs": [
|
|
1504
|
+
"internalType": "uint256",
|
|
1505
|
+
"name": "refund",
|
|
1506
|
+
"type": "uint256"
|
|
1507
|
+
},
|
|
1200
1508
|
{
|
|
1201
1509
|
"internalType": "uint256",
|
|
1202
|
-
"name": "",
|
|
1510
|
+
"name": "marketCreatorTradingFeesCut",
|
|
1203
1511
|
"type": "uint256"
|
|
1204
1512
|
}
|
|
1205
1513
|
],
|
|
1206
|
-
"stateMutability": "
|
|
1514
|
+
"stateMutability": "nonpayable",
|
|
1207
1515
|
"type": "function"
|
|
1208
1516
|
},
|
|
1209
1517
|
{
|