@gensyn-ai/gensyn-delphi-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +310 -0
  2. package/dist/abi/DynamicParimutuelGateway.d.ts +1910 -0
  3. package/dist/abi/DynamicParimutuelGateway.d.ts.map +1 -0
  4. package/dist/abi/DynamicParimutuelGateway.js +1260 -0
  5. package/dist/abi/DynamicParimutuelGateway.js.map +1 -0
  6. package/dist/abi/ERC20.d.ts +552 -0
  7. package/dist/abi/ERC20.d.ts.map +1 -0
  8. package/dist/abi/ERC20.js +365 -0
  9. package/dist/abi/ERC20.js.map +1 -0
  10. package/dist/client/DelphiClient.d.ts +128 -0
  11. package/dist/client/DelphiClient.d.ts.map +1 -0
  12. package/dist/client/DelphiClient.js +436 -0
  13. package/dist/client/DelphiClient.js.map +1 -0
  14. package/dist/client/signer.d.ts +41 -0
  15. package/dist/client/signer.d.ts.map +1 -0
  16. package/dist/client/signer.js +72 -0
  17. package/dist/client/signer.js.map +1 -0
  18. package/dist/client/subgraph.d.ts +39 -0
  19. package/dist/client/subgraph.d.ts.map +1 -0
  20. package/dist/client/subgraph.js +91 -0
  21. package/dist/client/subgraph.js.map +1 -0
  22. package/dist/client/token.d.ts +18 -0
  23. package/dist/client/token.d.ts.map +1 -0
  24. package/dist/client/token.js +58 -0
  25. package/dist/client/token.js.map +1 -0
  26. package/dist/client/wallet.d.ts +28 -0
  27. package/dist/client/wallet.d.ts.map +1 -0
  28. package/dist/client/wallet.js +57 -0
  29. package/dist/client/wallet.js.map +1 -0
  30. package/dist/index.d.ts +8 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +10 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/types/index.d.ts +239 -0
  35. package/dist/types/index.d.ts.map +1 -0
  36. package/dist/types/index.js +3 -0
  37. package/dist/types/index.js.map +1 -0
  38. package/package.json +54 -0
@@ -0,0 +1,1260 @@
1
+ const DYNAMIC_PARIMUTUEL_GATEWAY_ABI = [
2
+ {
3
+ "inputs": [],
4
+ "name": "GrossTokensOutNotPositive",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "InvalidInitialization",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "inputs": [],
14
+ "name": "MarketNotOpen",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [],
19
+ "name": "NotInitializing",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "newSupply",
27
+ "type": "uint256"
28
+ },
29
+ {
30
+ "internalType": "uint256",
31
+ "name": "minDelta",
32
+ "type": "uint256"
33
+ }
34
+ ],
35
+ "name": "OutcomeSupplyBelowMinDelta",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "SellOverlap",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "sharesIn",
48
+ "type": "uint256"
49
+ },
50
+ {
51
+ "internalType": "uint256",
52
+ "name": "minDelta",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "name": "SharesInBelowMinDelta",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "internalType": "uint256",
63
+ "name": "sharesIn",
64
+ "type": "uint256"
65
+ },
66
+ {
67
+ "internalType": "uint256",
68
+ "name": "supply",
69
+ "type": "uint256"
70
+ }
71
+ ],
72
+ "name": "SharesInExceedSupply",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [
77
+ {
78
+ "internalType": "uint256",
79
+ "name": "sharesOut",
80
+ "type": "uint256"
81
+ },
82
+ {
83
+ "internalType": "uint256",
84
+ "name": "minDelta",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "name": "SharesOutBelowMinDelta",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "tokensIn",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "minTokensIn",
101
+ "type": "uint256"
102
+ }
103
+ ],
104
+ "name": "TokensInBelowMin",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "uint256",
111
+ "name": "tokensIn",
112
+ "type": "uint256"
113
+ },
114
+ {
115
+ "internalType": "uint256",
116
+ "name": "maxTokensIn",
117
+ "type": "uint256"
118
+ }
119
+ ],
120
+ "name": "TokensInExceedsMax",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [
125
+ {
126
+ "internalType": "uint256",
127
+ "name": "tokensOut",
128
+ "type": "uint256"
129
+ },
130
+ {
131
+ "internalType": "uint256",
132
+ "name": "minTokensOut",
133
+ "type": "uint256"
134
+ }
135
+ ],
136
+ "name": "TokensOutBelowMin",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [],
141
+ "name": "ZeroNetTokensIn",
142
+ "type": "error"
143
+ },
144
+ {
145
+ "inputs": [],
146
+ "name": "ZeroTokensIn",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "anonymous": false,
151
+ "inputs": [
152
+ {
153
+ "indexed": true,
154
+ "internalType": "contract IDynamicParimutuelMarket",
155
+ "name": "marketProxy",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "indexed": true,
160
+ "internalType": "address",
161
+ "name": "buyer",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "indexed": true,
166
+ "internalType": "uint256",
167
+ "name": "outcomeIdx",
168
+ "type": "uint256"
169
+ },
170
+ {
171
+ "indexed": false,
172
+ "internalType": "uint256",
173
+ "name": "tokensIn",
174
+ "type": "uint256"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "uint256",
179
+ "name": "sharesOut",
180
+ "type": "uint256"
181
+ }
182
+ ],
183
+ "name": "GatewayBuy",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": true,
191
+ "internalType": "contract IDynamicParimutuelMarket",
192
+ "name": "marketProxy",
193
+ "type": "address"
194
+ },
195
+ {
196
+ "indexed": true,
197
+ "internalType": "address",
198
+ "name": "liquidator",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "indexed": true,
203
+ "internalType": "uint256[]",
204
+ "name": "outcomeIndices",
205
+ "type": "uint256[]"
206
+ },
207
+ {
208
+ "indexed": false,
209
+ "internalType": "uint256[]",
210
+ "name": "sharesIn",
211
+ "type": "uint256[]"
212
+ },
213
+ {
214
+ "indexed": false,
215
+ "internalType": "uint256",
216
+ "name": "totalTokensOut",
217
+ "type": "uint256"
218
+ }
219
+ ],
220
+ "name": "GatewayLiquidation",
221
+ "type": "event"
222
+ },
223
+ {
224
+ "anonymous": false,
225
+ "inputs": [
226
+ {
227
+ "indexed": true,
228
+ "internalType": "contract IDynamicParimutuelMarket",
229
+ "name": "marketProxy",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "indexed": true,
234
+ "internalType": "address",
235
+ "name": "redeemer",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "indexed": false,
240
+ "internalType": "uint256",
241
+ "name": "sharesIn",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "indexed": false,
246
+ "internalType": "uint256",
247
+ "name": "tokensOut",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "GatewayRedemption",
252
+ "type": "event"
253
+ },
254
+ {
255
+ "anonymous": false,
256
+ "inputs": [
257
+ {
258
+ "indexed": true,
259
+ "internalType": "contract IDynamicParimutuelMarket",
260
+ "name": "marketProxy",
261
+ "type": "address"
262
+ },
263
+ {
264
+ "indexed": true,
265
+ "internalType": "address",
266
+ "name": "seller",
267
+ "type": "address"
268
+ },
269
+ {
270
+ "indexed": true,
271
+ "internalType": "uint256",
272
+ "name": "outcomeIdx",
273
+ "type": "uint256"
274
+ },
275
+ {
276
+ "indexed": false,
277
+ "internalType": "uint256",
278
+ "name": "sharesIn",
279
+ "type": "uint256"
280
+ },
281
+ {
282
+ "indexed": false,
283
+ "internalType": "uint256",
284
+ "name": "tokensOut",
285
+ "type": "uint256"
286
+ }
287
+ ],
288
+ "name": "GatewaySell",
289
+ "type": "event"
290
+ },
291
+ {
292
+ "anonymous": false,
293
+ "inputs": [
294
+ {
295
+ "indexed": true,
296
+ "internalType": "contract IDynamicParimutuelMarket",
297
+ "name": "marketProxy",
298
+ "type": "address"
299
+ },
300
+ {
301
+ "indexed": false,
302
+ "internalType": "uint256",
303
+ "name": "winningOutcomeIdx",
304
+ "type": "uint256"
305
+ }
306
+ ],
307
+ "name": "GatewayWinnerSubmitted",
308
+ "type": "event"
309
+ },
310
+ {
311
+ "anonymous": false,
312
+ "inputs": [
313
+ {
314
+ "indexed": false,
315
+ "internalType": "uint64",
316
+ "name": "version",
317
+ "type": "uint64"
318
+ }
319
+ ],
320
+ "name": "Initialized",
321
+ "type": "event"
322
+ },
323
+ {
324
+ "inputs": [
325
+ {
326
+ "internalType": "contract IDynamicParimutuelMarket",
327
+ "name": "marketProxy",
328
+ "type": "address"
329
+ },
330
+ {
331
+ "internalType": "address",
332
+ "name": "owner",
333
+ "type": "address"
334
+ },
335
+ {
336
+ "internalType": "address",
337
+ "name": "spender",
338
+ "type": "address"
339
+ },
340
+ {
341
+ "internalType": "uint256",
342
+ "name": "id",
343
+ "type": "uint256"
344
+ }
345
+ ],
346
+ "name": "allowance",
347
+ "outputs": [
348
+ {
349
+ "internalType": "uint256",
350
+ "name": "",
351
+ "type": "uint256"
352
+ }
353
+ ],
354
+ "stateMutability": "view",
355
+ "type": "function"
356
+ },
357
+ {
358
+ "inputs": [
359
+ {
360
+ "internalType": "contract IDynamicParimutuelMarket",
361
+ "name": "marketProxy",
362
+ "type": "address"
363
+ },
364
+ {
365
+ "internalType": "address",
366
+ "name": "owner",
367
+ "type": "address"
368
+ },
369
+ {
370
+ "internalType": "uint256",
371
+ "name": "outcomeIdx",
372
+ "type": "uint256"
373
+ }
374
+ ],
375
+ "name": "balanceOf",
376
+ "outputs": [
377
+ {
378
+ "internalType": "uint256",
379
+ "name": "",
380
+ "type": "uint256"
381
+ }
382
+ ],
383
+ "stateMutability": "view",
384
+ "type": "function"
385
+ },
386
+ {
387
+ "inputs": [
388
+ {
389
+ "internalType": "contract IDynamicParimutuelMarket",
390
+ "name": "marketProxy",
391
+ "type": "address"
392
+ },
393
+ {
394
+ "internalType": "address[]",
395
+ "name": "owners",
396
+ "type": "address[]"
397
+ },
398
+ {
399
+ "internalType": "uint256[]",
400
+ "name": "outcomeIndices",
401
+ "type": "uint256[]"
402
+ }
403
+ ],
404
+ "name": "batchBalanceOf",
405
+ "outputs": [
406
+ {
407
+ "internalType": "uint256[]",
408
+ "name": "",
409
+ "type": "uint256[]"
410
+ }
411
+ ],
412
+ "stateMutability": "view",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "internalType": "contract IDynamicParimutuelMarket",
419
+ "name": "marketProxy",
420
+ "type": "address"
421
+ },
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "outcomeIdx",
425
+ "type": "uint256"
426
+ },
427
+ {
428
+ "internalType": "uint256",
429
+ "name": "sharesOut",
430
+ "type": "uint256"
431
+ },
432
+ {
433
+ "internalType": "uint256",
434
+ "name": "maxTokensIn",
435
+ "type": "uint256"
436
+ }
437
+ ],
438
+ "name": "buyExactOut",
439
+ "outputs": [
440
+ {
441
+ "internalType": "uint256",
442
+ "name": "tokensIn",
443
+ "type": "uint256"
444
+ }
445
+ ],
446
+ "stateMutability": "nonpayable",
447
+ "type": "function"
448
+ },
449
+ {
450
+ "inputs": [],
451
+ "name": "delphiFactory",
452
+ "outputs": [
453
+ {
454
+ "internalType": "contract IDelphiFactory",
455
+ "name": "",
456
+ "type": "address"
457
+ }
458
+ ],
459
+ "stateMutability": "view",
460
+ "type": "function"
461
+ },
462
+ {
463
+ "inputs": [
464
+ {
465
+ "internalType": "contract IDynamicParimutuelMarket",
466
+ "name": "marketProxy",
467
+ "type": "address"
468
+ }
469
+ ],
470
+ "name": "getMarket",
471
+ "outputs": [
472
+ {
473
+ "components": [
474
+ {
475
+ "components": [
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "outcomeCount",
479
+ "type": "uint256"
480
+ },
481
+ {
482
+ "internalType": "uint256",
483
+ "name": "k",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "internalType": "uint256",
488
+ "name": "tradingFee",
489
+ "type": "uint256"
490
+ },
491
+ {
492
+ "internalType": "uint256",
493
+ "name": "tradingDeadline",
494
+ "type": "uint256"
495
+ },
496
+ {
497
+ "internalType": "uint256",
498
+ "name": "settlementDeadline",
499
+ "type": "uint256"
500
+ }
501
+ ],
502
+ "internalType": "struct IDynamicParimutuelMarket.MarketConfig",
503
+ "name": "config",
504
+ "type": "tuple"
505
+ },
506
+ {
507
+ "internalType": "uint256",
508
+ "name": "pool",
509
+ "type": "uint256"
510
+ },
511
+ {
512
+ "internalType": "uint256",
513
+ "name": "tradingFees",
514
+ "type": "uint256"
515
+ },
516
+ {
517
+ "internalType": "uint256",
518
+ "name": "sumTerm36",
519
+ "type": "uint256"
520
+ },
521
+ {
522
+ "internalType": "uint256",
523
+ "name": "winningOutcomeIdx",
524
+ "type": "uint256"
525
+ }
526
+ ],
527
+ "internalType": "struct IDynamicParimutuelMarket.Market",
528
+ "name": "",
529
+ "type": "tuple"
530
+ }
531
+ ],
532
+ "stateMutability": "view",
533
+ "type": "function"
534
+ },
535
+ {
536
+ "inputs": [
537
+ {
538
+ "internalType": "contract IDelphiFactory",
539
+ "name": "delphiFactory_",
540
+ "type": "address"
541
+ }
542
+ ],
543
+ "name": "initialize",
544
+ "outputs": [],
545
+ "stateMutability": "nonpayable",
546
+ "type": "function"
547
+ },
548
+ {
549
+ "inputs": [
550
+ {
551
+ "internalType": "contract IDynamicParimutuelMarket",
552
+ "name": "marketProxy",
553
+ "type": "address"
554
+ },
555
+ {
556
+ "internalType": "address",
557
+ "name": "operator",
558
+ "type": "address"
559
+ },
560
+ {
561
+ "internalType": "address",
562
+ "name": "spender",
563
+ "type": "address"
564
+ }
565
+ ],
566
+ "name": "isOperator",
567
+ "outputs": [
568
+ {
569
+ "internalType": "bool",
570
+ "name": "",
571
+ "type": "bool"
572
+ }
573
+ ],
574
+ "stateMutability": "view",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [
579
+ {
580
+ "internalType": "contract IDynamicParimutuelMarket",
581
+ "name": "marketProxy",
582
+ "type": "address"
583
+ },
584
+ {
585
+ "internalType": "uint256[]",
586
+ "name": "outcomeIndices",
587
+ "type": "uint256[]"
588
+ }
589
+ ],
590
+ "name": "liquidate",
591
+ "outputs": [
592
+ {
593
+ "internalType": "uint256[]",
594
+ "name": "sharesIn",
595
+ "type": "uint256[]"
596
+ },
597
+ {
598
+ "internalType": "uint256",
599
+ "name": "totalTokensOut",
600
+ "type": "uint256"
601
+ }
602
+ ],
603
+ "stateMutability": "nonpayable",
604
+ "type": "function"
605
+ },
606
+ {
607
+ "inputs": [
608
+ {
609
+ "internalType": "contract IDynamicParimutuelMarket",
610
+ "name": "marketProxy",
611
+ "type": "address"
612
+ }
613
+ ],
614
+ "name": "marketCreator",
615
+ "outputs": [
616
+ {
617
+ "internalType": "address",
618
+ "name": "",
619
+ "type": "address"
620
+ }
621
+ ],
622
+ "stateMutability": "view",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "inputs": [
627
+ {
628
+ "internalType": "contract IDynamicParimutuelMarket",
629
+ "name": "marketProxy",
630
+ "type": "address"
631
+ }
632
+ ],
633
+ "name": "marketMetadata",
634
+ "outputs": [
635
+ {
636
+ "components": [
637
+ {
638
+ "internalType": "string",
639
+ "name": "uri",
640
+ "type": "string"
641
+ },
642
+ {
643
+ "internalType": "bytes32",
644
+ "name": "uriContentHash",
645
+ "type": "bytes32"
646
+ }
647
+ ],
648
+ "internalType": "struct IDelphiMarket.VerifiableUri",
649
+ "name": "",
650
+ "type": "tuple"
651
+ }
652
+ ],
653
+ "stateMutability": "view",
654
+ "type": "function"
655
+ },
656
+ {
657
+ "inputs": [
658
+ {
659
+ "internalType": "contract IDynamicParimutuelMarket",
660
+ "name": "marketProxy",
661
+ "type": "address"
662
+ }
663
+ ],
664
+ "name": "marketStatus",
665
+ "outputs": [
666
+ {
667
+ "internalType": "enum IDynamicParimutuelMarket.MarketStatus",
668
+ "name": "",
669
+ "type": "uint8"
670
+ }
671
+ ],
672
+ "stateMutability": "view",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [
677
+ {
678
+ "internalType": "contract IDynamicParimutuelMarket",
679
+ "name": "marketProxy",
680
+ "type": "address"
681
+ }
682
+ ],
683
+ "name": "maxInitialLiquidity",
684
+ "outputs": [
685
+ {
686
+ "internalType": "uint256",
687
+ "name": "",
688
+ "type": "uint256"
689
+ }
690
+ ],
691
+ "stateMutability": "view",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [
696
+ {
697
+ "internalType": "contract IDynamicParimutuelMarket",
698
+ "name": "marketProxy",
699
+ "type": "address"
700
+ }
701
+ ],
702
+ "name": "maxK",
703
+ "outputs": [
704
+ {
705
+ "internalType": "uint256",
706
+ "name": "",
707
+ "type": "uint256"
708
+ }
709
+ ],
710
+ "stateMutability": "view",
711
+ "type": "function"
712
+ },
713
+ {
714
+ "inputs": [
715
+ {
716
+ "internalType": "contract IDynamicParimutuelMarket",
717
+ "name": "marketProxy",
718
+ "type": "address"
719
+ }
720
+ ],
721
+ "name": "maxOutcomeCount",
722
+ "outputs": [
723
+ {
724
+ "internalType": "uint256",
725
+ "name": "",
726
+ "type": "uint256"
727
+ }
728
+ ],
729
+ "stateMutability": "view",
730
+ "type": "function"
731
+ },
732
+ {
733
+ "inputs": [
734
+ {
735
+ "internalType": "contract IDynamicParimutuelMarket",
736
+ "name": "marketProxy",
737
+ "type": "address"
738
+ }
739
+ ],
740
+ "name": "maxSettlementWindow",
741
+ "outputs": [
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "",
745
+ "type": "uint256"
746
+ }
747
+ ],
748
+ "stateMutability": "view",
749
+ "type": "function"
750
+ },
751
+ {
752
+ "inputs": [
753
+ {
754
+ "internalType": "contract IDynamicParimutuelMarket",
755
+ "name": "marketProxy",
756
+ "type": "address"
757
+ }
758
+ ],
759
+ "name": "maxTradingFee",
760
+ "outputs": [
761
+ {
762
+ "internalType": "uint256",
763
+ "name": "",
764
+ "type": "uint256"
765
+ }
766
+ ],
767
+ "stateMutability": "view",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "inputs": [
772
+ {
773
+ "internalType": "contract IDynamicParimutuelMarket",
774
+ "name": "marketProxy",
775
+ "type": "address"
776
+ }
777
+ ],
778
+ "name": "maxTradingWindow",
779
+ "outputs": [
780
+ {
781
+ "internalType": "uint256",
782
+ "name": "",
783
+ "type": "uint256"
784
+ }
785
+ ],
786
+ "stateMutability": "view",
787
+ "type": "function"
788
+ },
789
+ {
790
+ "inputs": [
791
+ {
792
+ "internalType": "contract IDynamicParimutuelMarket",
793
+ "name": "marketProxy",
794
+ "type": "address"
795
+ }
796
+ ],
797
+ "name": "minInitialLiquidity",
798
+ "outputs": [
799
+ {
800
+ "internalType": "uint256",
801
+ "name": "",
802
+ "type": "uint256"
803
+ }
804
+ ],
805
+ "stateMutability": "view",
806
+ "type": "function"
807
+ },
808
+ {
809
+ "inputs": [
810
+ {
811
+ "internalType": "contract IDynamicParimutuelMarket",
812
+ "name": "marketProxy",
813
+ "type": "address"
814
+ }
815
+ ],
816
+ "name": "minK",
817
+ "outputs": [
818
+ {
819
+ "internalType": "uint256",
820
+ "name": "",
821
+ "type": "uint256"
822
+ }
823
+ ],
824
+ "stateMutability": "view",
825
+ "type": "function"
826
+ },
827
+ {
828
+ "inputs": [
829
+ {
830
+ "internalType": "contract IDynamicParimutuelMarket",
831
+ "name": "marketProxy",
832
+ "type": "address"
833
+ }
834
+ ],
835
+ "name": "minOutcomeCount",
836
+ "outputs": [
837
+ {
838
+ "internalType": "uint256",
839
+ "name": "",
840
+ "type": "uint256"
841
+ }
842
+ ],
843
+ "stateMutability": "view",
844
+ "type": "function"
845
+ },
846
+ {
847
+ "inputs": [
848
+ {
849
+ "internalType": "contract IDynamicParimutuelMarket",
850
+ "name": "marketProxy",
851
+ "type": "address"
852
+ }
853
+ ],
854
+ "name": "minSettlementWindow",
855
+ "outputs": [
856
+ {
857
+ "internalType": "uint256",
858
+ "name": "",
859
+ "type": "uint256"
860
+ }
861
+ ],
862
+ "stateMutability": "view",
863
+ "type": "function"
864
+ },
865
+ {
866
+ "inputs": [
867
+ {
868
+ "internalType": "contract IDynamicParimutuelMarket",
869
+ "name": "marketProxy",
870
+ "type": "address"
871
+ }
872
+ ],
873
+ "name": "minSharesDelta",
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",
893
+ "outputs": [
894
+ {
895
+ "internalType": "uint256",
896
+ "name": "",
897
+ "type": "uint256"
898
+ }
899
+ ],
900
+ "stateMutability": "view",
901
+ "type": "function"
902
+ },
903
+ {
904
+ "inputs": [
905
+ {
906
+ "internalType": "contract IDynamicParimutuelMarket",
907
+ "name": "marketProxy",
908
+ "type": "address"
909
+ }
910
+ ],
911
+ "name": "minTradingFee",
912
+ "outputs": [
913
+ {
914
+ "internalType": "uint256",
915
+ "name": "",
916
+ "type": "uint256"
917
+ }
918
+ ],
919
+ "stateMutability": "view",
920
+ "type": "function"
921
+ },
922
+ {
923
+ "inputs": [
924
+ {
925
+ "internalType": "contract IDynamicParimutuelMarket",
926
+ "name": "marketProxy",
927
+ "type": "address"
928
+ }
929
+ ],
930
+ "name": "minTradingWindow",
931
+ "outputs": [
932
+ {
933
+ "internalType": "uint256",
934
+ "name": "",
935
+ "type": "uint256"
936
+ }
937
+ ],
938
+ "stateMutability": "view",
939
+ "type": "function"
940
+ },
941
+ {
942
+ "inputs": [
943
+ {
944
+ "internalType": "contract IDynamicParimutuelMarket",
945
+ "name": "marketProxy",
946
+ "type": "address"
947
+ },
948
+ {
949
+ "internalType": "uint256",
950
+ "name": "outcomeIdx",
951
+ "type": "uint256"
952
+ },
953
+ {
954
+ "internalType": "uint256",
955
+ "name": "sharesOut",
956
+ "type": "uint256"
957
+ }
958
+ ],
959
+ "name": "quoteBuyExactOut",
960
+ "outputs": [
961
+ {
962
+ "internalType": "uint256",
963
+ "name": "tokensIn",
964
+ "type": "uint256"
965
+ }
966
+ ],
967
+ "stateMutability": "view",
968
+ "type": "function"
969
+ },
970
+ {
971
+ "inputs": [
972
+ {
973
+ "internalType": "contract IDynamicParimutuelMarket",
974
+ "name": "marketProxy",
975
+ "type": "address"
976
+ },
977
+ {
978
+ "internalType": "uint256",
979
+ "name": "outcomeIdx",
980
+ "type": "uint256"
981
+ },
982
+ {
983
+ "internalType": "uint256",
984
+ "name": "sharesIn",
985
+ "type": "uint256"
986
+ }
987
+ ],
988
+ "name": "quoteSellExactIn",
989
+ "outputs": [
990
+ {
991
+ "internalType": "uint256",
992
+ "name": "tokensOut",
993
+ "type": "uint256"
994
+ }
995
+ ],
996
+ "stateMutability": "view",
997
+ "type": "function"
998
+ },
999
+ {
1000
+ "inputs": [
1001
+ {
1002
+ "internalType": "contract IDynamicParimutuelMarket",
1003
+ "name": "marketProxy",
1004
+ "type": "address"
1005
+ }
1006
+ ],
1007
+ "name": "redeem",
1008
+ "outputs": [
1009
+ {
1010
+ "internalType": "uint256",
1011
+ "name": "sharesIn",
1012
+ "type": "uint256"
1013
+ },
1014
+ {
1015
+ "internalType": "uint256",
1016
+ "name": "tokensOut",
1017
+ "type": "uint256"
1018
+ }
1019
+ ],
1020
+ "stateMutability": "nonpayable",
1021
+ "type": "function"
1022
+ },
1023
+ {
1024
+ "inputs": [
1025
+ {
1026
+ "internalType": "contract IDynamicParimutuelMarket",
1027
+ "name": "marketProxy",
1028
+ "type": "address"
1029
+ },
1030
+ {
1031
+ "internalType": "uint256",
1032
+ "name": "outcomeIdx",
1033
+ "type": "uint256"
1034
+ },
1035
+ {
1036
+ "internalType": "uint256",
1037
+ "name": "sharesIn",
1038
+ "type": "uint256"
1039
+ },
1040
+ {
1041
+ "internalType": "uint256",
1042
+ "name": "minTokensOut",
1043
+ "type": "uint256"
1044
+ }
1045
+ ],
1046
+ "name": "sellExactIn",
1047
+ "outputs": [
1048
+ {
1049
+ "internalType": "uint256",
1050
+ "name": "tokensOut",
1051
+ "type": "uint256"
1052
+ }
1053
+ ],
1054
+ "stateMutability": "nonpayable",
1055
+ "type": "function"
1056
+ },
1057
+ {
1058
+ "inputs": [
1059
+ {
1060
+ "internalType": "contract IDynamicParimutuelMarket",
1061
+ "name": "marketProxy",
1062
+ "type": "address"
1063
+ },
1064
+ {
1065
+ "internalType": "uint256[]",
1066
+ "name": "outcomeIndices",
1067
+ "type": "uint256[]"
1068
+ }
1069
+ ],
1070
+ "name": "spotImpliedProbabilities",
1071
+ "outputs": [
1072
+ {
1073
+ "internalType": "uint256[]",
1074
+ "name": "",
1075
+ "type": "uint256[]"
1076
+ }
1077
+ ],
1078
+ "stateMutability": "view",
1079
+ "type": "function"
1080
+ },
1081
+ {
1082
+ "inputs": [
1083
+ {
1084
+ "internalType": "contract IDynamicParimutuelMarket",
1085
+ "name": "marketProxy",
1086
+ "type": "address"
1087
+ },
1088
+ {
1089
+ "internalType": "uint256",
1090
+ "name": "outcomeIdx",
1091
+ "type": "uint256"
1092
+ }
1093
+ ],
1094
+ "name": "spotImpliedProbability",
1095
+ "outputs": [
1096
+ {
1097
+ "internalType": "uint256",
1098
+ "name": "",
1099
+ "type": "uint256"
1100
+ }
1101
+ ],
1102
+ "stateMutability": "view",
1103
+ "type": "function"
1104
+ },
1105
+ {
1106
+ "inputs": [
1107
+ {
1108
+ "internalType": "contract IDynamicParimutuelMarket",
1109
+ "name": "marketProxy",
1110
+ "type": "address"
1111
+ },
1112
+ {
1113
+ "internalType": "uint256",
1114
+ "name": "outcomeIdx",
1115
+ "type": "uint256"
1116
+ }
1117
+ ],
1118
+ "name": "spotPrice",
1119
+ "outputs": [
1120
+ {
1121
+ "internalType": "uint256",
1122
+ "name": "",
1123
+ "type": "uint256"
1124
+ }
1125
+ ],
1126
+ "stateMutability": "view",
1127
+ "type": "function"
1128
+ },
1129
+ {
1130
+ "inputs": [
1131
+ {
1132
+ "internalType": "contract IDynamicParimutuelMarket",
1133
+ "name": "marketProxy",
1134
+ "type": "address"
1135
+ },
1136
+ {
1137
+ "internalType": "uint256[]",
1138
+ "name": "outcomeIndices",
1139
+ "type": "uint256[]"
1140
+ }
1141
+ ],
1142
+ "name": "spotPrices",
1143
+ "outputs": [
1144
+ {
1145
+ "internalType": "uint256[]",
1146
+ "name": "",
1147
+ "type": "uint256[]"
1148
+ }
1149
+ ],
1150
+ "stateMutability": "view",
1151
+ "type": "function"
1152
+ },
1153
+ {
1154
+ "inputs": [
1155
+ {
1156
+ "internalType": "contract IDynamicParimutuelMarket",
1157
+ "name": "marketProxy",
1158
+ "type": "address"
1159
+ },
1160
+ {
1161
+ "internalType": "uint256",
1162
+ "name": "winningOutcomeIdx",
1163
+ "type": "uint256"
1164
+ }
1165
+ ],
1166
+ "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
+ "outputs": [
1181
+ {
1182
+ "internalType": "contract IERC20Metadata",
1183
+ "name": "",
1184
+ "type": "address"
1185
+ }
1186
+ ],
1187
+ "stateMutability": "view",
1188
+ "type": "function"
1189
+ },
1190
+ {
1191
+ "inputs": [
1192
+ {
1193
+ "internalType": "contract IDynamicParimutuelMarket",
1194
+ "name": "marketProxy",
1195
+ "type": "address"
1196
+ }
1197
+ ],
1198
+ "name": "tokenDecimalScaler",
1199
+ "outputs": [
1200
+ {
1201
+ "internalType": "uint256",
1202
+ "name": "",
1203
+ "type": "uint256"
1204
+ }
1205
+ ],
1206
+ "stateMutability": "view",
1207
+ "type": "function"
1208
+ },
1209
+ {
1210
+ "inputs": [
1211
+ {
1212
+ "internalType": "contract IDynamicParimutuelMarket",
1213
+ "name": "marketProxy",
1214
+ "type": "address"
1215
+ },
1216
+ {
1217
+ "internalType": "uint256[]",
1218
+ "name": "outcomeIndices",
1219
+ "type": "uint256[]"
1220
+ }
1221
+ ],
1222
+ "name": "totalSupplies",
1223
+ "outputs": [
1224
+ {
1225
+ "internalType": "uint256[]",
1226
+ "name": "",
1227
+ "type": "uint256[]"
1228
+ }
1229
+ ],
1230
+ "stateMutability": "view",
1231
+ "type": "function"
1232
+ },
1233
+ {
1234
+ "inputs": [
1235
+ {
1236
+ "internalType": "contract IDynamicParimutuelMarket",
1237
+ "name": "marketProxy",
1238
+ "type": "address"
1239
+ },
1240
+ {
1241
+ "internalType": "uint256",
1242
+ "name": "outcomeIdx",
1243
+ "type": "uint256"
1244
+ }
1245
+ ],
1246
+ "name": "totalSupply",
1247
+ "outputs": [
1248
+ {
1249
+ "internalType": "uint256",
1250
+ "name": "",
1251
+ "type": "uint256"
1252
+ }
1253
+ ],
1254
+ "stateMutability": "view",
1255
+ "type": "function"
1256
+ }
1257
+ ];
1258
+ export const ABI = DYNAMIC_PARIMUTUEL_GATEWAY_ABI;
1259
+ export default DYNAMIC_PARIMUTUEL_GATEWAY_ABI;
1260
+ //# sourceMappingURL=DynamicParimutuelGateway.js.map