everyblock-mcp 0.2.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/dist/abi.js ADDED
@@ -0,0 +1,1720 @@
1
+ // Generated by scripts/gen-abi.ts from contracts/out (Everyblock, TestUSD). Do not edit.
2
+ export const everyblockAbi = [
3
+ {
4
+ "type": "constructor",
5
+ "inputs": [
6
+ {
7
+ "name": "collateral_",
8
+ "type": "address",
9
+ "internalType": "contract IERC20"
10
+ },
11
+ {
12
+ "name": "cent_",
13
+ "type": "uint256",
14
+ "internalType": "uint256"
15
+ },
16
+ {
17
+ "name": "pyth_",
18
+ "type": "address",
19
+ "internalType": "contract IPyth"
20
+ },
21
+ {
22
+ "name": "owner_",
23
+ "type": "address",
24
+ "internalType": "address"
25
+ }
26
+ ],
27
+ "stateMutability": "nonpayable"
28
+ },
29
+ {
30
+ "type": "function",
31
+ "name": "CENT",
32
+ "inputs": [],
33
+ "outputs": [
34
+ {
35
+ "name": "",
36
+ "type": "uint256",
37
+ "internalType": "uint256"
38
+ }
39
+ ],
40
+ "stateMutability": "view"
41
+ },
42
+ {
43
+ "type": "function",
44
+ "name": "GRACE",
45
+ "inputs": [],
46
+ "outputs": [
47
+ {
48
+ "name": "",
49
+ "type": "uint256",
50
+ "internalType": "uint256"
51
+ }
52
+ ],
53
+ "stateMutability": "view"
54
+ },
55
+ {
56
+ "type": "function",
57
+ "name": "MAX_FEE_BPS",
58
+ "inputs": [],
59
+ "outputs": [
60
+ {
61
+ "name": "",
62
+ "type": "uint16",
63
+ "internalType": "uint16"
64
+ }
65
+ ],
66
+ "stateMutability": "view"
67
+ },
68
+ {
69
+ "type": "function",
70
+ "name": "MAX_SAMPLE_DELAY",
71
+ "inputs": [],
72
+ "outputs": [
73
+ {
74
+ "name": "",
75
+ "type": "uint256",
76
+ "internalType": "uint256"
77
+ }
78
+ ],
79
+ "stateMutability": "view"
80
+ },
81
+ {
82
+ "type": "function",
83
+ "name": "SAMPLES",
84
+ "inputs": [],
85
+ "outputs": [
86
+ {
87
+ "name": "",
88
+ "type": "uint256",
89
+ "internalType": "uint256"
90
+ }
91
+ ],
92
+ "stateMutability": "view"
93
+ },
94
+ {
95
+ "type": "function",
96
+ "name": "SAMPLE_SPACING",
97
+ "inputs": [],
98
+ "outputs": [
99
+ {
100
+ "name": "",
101
+ "type": "uint256",
102
+ "internalType": "uint256"
103
+ }
104
+ ],
105
+ "stateMutability": "view"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "WINDOW",
110
+ "inputs": [],
111
+ "outputs": [
112
+ {
113
+ "name": "",
114
+ "type": "uint256",
115
+ "internalType": "uint256"
116
+ }
117
+ ],
118
+ "stateMutability": "view"
119
+ },
120
+ {
121
+ "type": "function",
122
+ "name": "accruedFees",
123
+ "inputs": [],
124
+ "outputs": [
125
+ {
126
+ "name": "",
127
+ "type": "uint256",
128
+ "internalType": "uint256"
129
+ }
130
+ ],
131
+ "stateMutability": "view"
132
+ },
133
+ {
134
+ "type": "function",
135
+ "name": "claim",
136
+ "inputs": [
137
+ {
138
+ "name": "nonce",
139
+ "type": "uint256",
140
+ "internalType": "uint256"
141
+ }
142
+ ],
143
+ "outputs": [
144
+ {
145
+ "name": "filled",
146
+ "type": "uint256",
147
+ "internalType": "uint256"
148
+ },
149
+ {
150
+ "name": "upOut",
151
+ "type": "uint256",
152
+ "internalType": "uint256"
153
+ },
154
+ {
155
+ "name": "downOut",
156
+ "type": "uint256",
157
+ "internalType": "uint256"
158
+ },
159
+ {
160
+ "name": "cashOut",
161
+ "type": "uint256",
162
+ "internalType": "uint256"
163
+ }
164
+ ],
165
+ "stateMutability": "nonpayable"
166
+ },
167
+ {
168
+ "type": "function",
169
+ "name": "clear",
170
+ "inputs": [
171
+ {
172
+ "name": "marketId",
173
+ "type": "uint256",
174
+ "internalType": "uint256"
175
+ }
176
+ ],
177
+ "outputs": [
178
+ {
179
+ "name": "cleared",
180
+ "type": "bool",
181
+ "internalType": "bool"
182
+ }
183
+ ],
184
+ "stateMutability": "nonpayable"
185
+ },
186
+ {
187
+ "type": "function",
188
+ "name": "collateral",
189
+ "inputs": [],
190
+ "outputs": [
191
+ {
192
+ "name": "",
193
+ "type": "address",
194
+ "internalType": "contract IERC20"
195
+ }
196
+ ],
197
+ "stateMutability": "view"
198
+ },
199
+ {
200
+ "type": "function",
201
+ "name": "collectFees",
202
+ "inputs": [],
203
+ "outputs": [
204
+ {
205
+ "name": "amount",
206
+ "type": "uint256",
207
+ "internalType": "uint256"
208
+ }
209
+ ],
210
+ "stateMutability": "nonpayable"
211
+ },
212
+ {
213
+ "type": "function",
214
+ "name": "createMarket",
215
+ "inputs": [
216
+ {
217
+ "name": "feedId",
218
+ "type": "bytes32",
219
+ "internalType": "bytes32"
220
+ },
221
+ {
222
+ "name": "openTime",
223
+ "type": "uint64",
224
+ "internalType": "uint64"
225
+ },
226
+ {
227
+ "name": "closeTime",
228
+ "type": "uint64",
229
+ "internalType": "uint64"
230
+ }
231
+ ],
232
+ "outputs": [
233
+ {
234
+ "name": "marketId",
235
+ "type": "uint256",
236
+ "internalType": "uint256"
237
+ }
238
+ ],
239
+ "stateMutability": "nonpayable"
240
+ },
241
+ {
242
+ "type": "function",
243
+ "name": "downBalance",
244
+ "inputs": [
245
+ {
246
+ "name": "",
247
+ "type": "uint256",
248
+ "internalType": "uint256"
249
+ },
250
+ {
251
+ "name": "",
252
+ "type": "address",
253
+ "internalType": "address"
254
+ }
255
+ ],
256
+ "outputs": [
257
+ {
258
+ "name": "",
259
+ "type": "uint256",
260
+ "internalType": "uint256"
261
+ }
262
+ ],
263
+ "stateMutability": "view"
264
+ },
265
+ {
266
+ "type": "function",
267
+ "name": "feeBps",
268
+ "inputs": [],
269
+ "outputs": [
270
+ {
271
+ "name": "",
272
+ "type": "uint16",
273
+ "internalType": "uint16"
274
+ }
275
+ ],
276
+ "stateMutability": "view"
277
+ },
278
+ {
279
+ "type": "function",
280
+ "name": "feeRecipient",
281
+ "inputs": [],
282
+ "outputs": [
283
+ {
284
+ "name": "",
285
+ "type": "address",
286
+ "internalType": "address"
287
+ }
288
+ ],
289
+ "stateMutability": "view"
290
+ },
291
+ {
292
+ "type": "function",
293
+ "name": "feedDuration",
294
+ "inputs": [
295
+ {
296
+ "name": "",
297
+ "type": "bytes32",
298
+ "internalType": "bytes32"
299
+ }
300
+ ],
301
+ "outputs": [
302
+ {
303
+ "name": "",
304
+ "type": "uint64",
305
+ "internalType": "uint64"
306
+ }
307
+ ],
308
+ "stateMutability": "view"
309
+ },
310
+ {
311
+ "type": "function",
312
+ "name": "getBatch",
313
+ "inputs": [
314
+ {
315
+ "name": "marketId",
316
+ "type": "uint256",
317
+ "internalType": "uint256"
318
+ },
319
+ {
320
+ "name": "batchId",
321
+ "type": "uint256",
322
+ "internalType": "uint256"
323
+ }
324
+ ],
325
+ "outputs": [
326
+ {
327
+ "name": "bidBits",
328
+ "type": "uint128",
329
+ "internalType": "uint128"
330
+ },
331
+ {
332
+ "name": "askBits",
333
+ "type": "uint128",
334
+ "internalType": "uint128"
335
+ },
336
+ {
337
+ "name": "clearingTick",
338
+ "type": "uint8",
339
+ "internalType": "uint8"
340
+ },
341
+ {
342
+ "name": "volume",
343
+ "type": "uint128",
344
+ "internalType": "uint128"
345
+ },
346
+ {
347
+ "name": "bidFillAtTick",
348
+ "type": "uint128",
349
+ "internalType": "uint128"
350
+ },
351
+ {
352
+ "name": "askFillAtTick",
353
+ "type": "uint128",
354
+ "internalType": "uint128"
355
+ }
356
+ ],
357
+ "stateMutability": "view"
358
+ },
359
+ {
360
+ "type": "function",
361
+ "name": "getLevel",
362
+ "inputs": [
363
+ {
364
+ "name": "marketId",
365
+ "type": "uint256",
366
+ "internalType": "uint256"
367
+ },
368
+ {
369
+ "name": "batchId",
370
+ "type": "uint256",
371
+ "internalType": "uint256"
372
+ },
373
+ {
374
+ "name": "tick",
375
+ "type": "uint8",
376
+ "internalType": "uint8"
377
+ }
378
+ ],
379
+ "outputs": [
380
+ {
381
+ "name": "bid",
382
+ "type": "uint96",
383
+ "internalType": "uint96"
384
+ },
385
+ {
386
+ "name": "ask",
387
+ "type": "uint96",
388
+ "internalType": "uint96"
389
+ }
390
+ ],
391
+ "stateMutability": "view"
392
+ },
393
+ {
394
+ "type": "function",
395
+ "name": "getMarket",
396
+ "inputs": [
397
+ {
398
+ "name": "marketId",
399
+ "type": "uint256",
400
+ "internalType": "uint256"
401
+ }
402
+ ],
403
+ "outputs": [
404
+ {
405
+ "name": "",
406
+ "type": "tuple",
407
+ "internalType": "struct Everyblock.Market",
408
+ "components": [
409
+ {
410
+ "name": "feedId",
411
+ "type": "bytes32",
412
+ "internalType": "bytes32"
413
+ },
414
+ {
415
+ "name": "openTime",
416
+ "type": "uint64",
417
+ "internalType": "uint64"
418
+ },
419
+ {
420
+ "name": "closeTime",
421
+ "type": "uint64",
422
+ "internalType": "uint64"
423
+ },
424
+ {
425
+ "name": "pendingBatch",
426
+ "type": "uint64",
427
+ "internalType": "uint64"
428
+ },
429
+ {
430
+ "name": "outcome",
431
+ "type": "uint8",
432
+ "internalType": "enum Everyblock.Outcome"
433
+ },
434
+ {
435
+ "name": "strikeSet",
436
+ "type": "bool",
437
+ "internalType": "bool"
438
+ },
439
+ {
440
+ "name": "expo",
441
+ "type": "int32",
442
+ "internalType": "int32"
443
+ },
444
+ {
445
+ "name": "strikeSum",
446
+ "type": "int128",
447
+ "internalType": "int128"
448
+ },
449
+ {
450
+ "name": "closeSum",
451
+ "type": "int128",
452
+ "internalType": "int128"
453
+ }
454
+ ]
455
+ }
456
+ ],
457
+ "stateMutability": "view"
458
+ },
459
+ {
460
+ "type": "function",
461
+ "name": "getOrder",
462
+ "inputs": [
463
+ {
464
+ "name": "trader",
465
+ "type": "address",
466
+ "internalType": "address"
467
+ },
468
+ {
469
+ "name": "nonce",
470
+ "type": "uint256",
471
+ "internalType": "uint256"
472
+ }
473
+ ],
474
+ "outputs": [
475
+ {
476
+ "name": "o",
477
+ "type": "tuple",
478
+ "internalType": "struct Everyblock.Order",
479
+ "components": [
480
+ {
481
+ "name": "marketId",
482
+ "type": "uint32",
483
+ "internalType": "uint32"
484
+ },
485
+ {
486
+ "name": "batchId",
487
+ "type": "uint40",
488
+ "internalType": "uint40"
489
+ },
490
+ {
491
+ "name": "size",
492
+ "type": "uint64",
493
+ "internalType": "uint64"
494
+ },
495
+ {
496
+ "name": "tick",
497
+ "type": "uint8",
498
+ "internalType": "uint8"
499
+ },
500
+ {
501
+ "name": "kind",
502
+ "type": "uint8",
503
+ "internalType": "enum Everyblock.Kind"
504
+ },
505
+ {
506
+ "name": "offset",
507
+ "type": "uint96",
508
+ "internalType": "uint96"
509
+ }
510
+ ]
511
+ }
512
+ ],
513
+ "stateMutability": "view"
514
+ },
515
+ {
516
+ "type": "function",
517
+ "name": "isCleared",
518
+ "inputs": [
519
+ {
520
+ "name": "marketId",
521
+ "type": "uint256",
522
+ "internalType": "uint256"
523
+ },
524
+ {
525
+ "name": "batchId",
526
+ "type": "uint256",
527
+ "internalType": "uint256"
528
+ }
529
+ ],
530
+ "outputs": [
531
+ {
532
+ "name": "",
533
+ "type": "bool",
534
+ "internalType": "bool"
535
+ }
536
+ ],
537
+ "stateMutability": "view"
538
+ },
539
+ {
540
+ "type": "function",
541
+ "name": "listFeed",
542
+ "inputs": [
543
+ {
544
+ "name": "feedId",
545
+ "type": "bytes32",
546
+ "internalType": "bytes32"
547
+ },
548
+ {
549
+ "name": "duration",
550
+ "type": "uint64",
551
+ "internalType": "uint64"
552
+ }
553
+ ],
554
+ "outputs": [],
555
+ "stateMutability": "nonpayable"
556
+ },
557
+ {
558
+ "type": "function",
559
+ "name": "marketCount",
560
+ "inputs": [],
561
+ "outputs": [
562
+ {
563
+ "name": "",
564
+ "type": "uint256",
565
+ "internalType": "uint256"
566
+ }
567
+ ],
568
+ "stateMutability": "view"
569
+ },
570
+ {
571
+ "type": "function",
572
+ "name": "marketFeeBps",
573
+ "inputs": [
574
+ {
575
+ "name": "",
576
+ "type": "uint256",
577
+ "internalType": "uint256"
578
+ }
579
+ ],
580
+ "outputs": [
581
+ {
582
+ "name": "",
583
+ "type": "uint16",
584
+ "internalType": "uint16"
585
+ }
586
+ ],
587
+ "stateMutability": "view"
588
+ },
589
+ {
590
+ "type": "function",
591
+ "name": "marketOf",
592
+ "inputs": [
593
+ {
594
+ "name": "",
595
+ "type": "bytes32",
596
+ "internalType": "bytes32"
597
+ },
598
+ {
599
+ "name": "",
600
+ "type": "uint64",
601
+ "internalType": "uint64"
602
+ }
603
+ ],
604
+ "outputs": [
605
+ {
606
+ "name": "",
607
+ "type": "uint256",
608
+ "internalType": "uint256"
609
+ }
610
+ ],
611
+ "stateMutability": "view"
612
+ },
613
+ {
614
+ "type": "function",
615
+ "name": "merge",
616
+ "inputs": [
617
+ {
618
+ "name": "marketId",
619
+ "type": "uint256",
620
+ "internalType": "uint256"
621
+ },
622
+ {
623
+ "name": "sets",
624
+ "type": "uint256",
625
+ "internalType": "uint256"
626
+ }
627
+ ],
628
+ "outputs": [],
629
+ "stateMutability": "nonpayable"
630
+ },
631
+ {
632
+ "type": "function",
633
+ "name": "openMarket",
634
+ "inputs": [
635
+ {
636
+ "name": "feedId",
637
+ "type": "bytes32",
638
+ "internalType": "bytes32"
639
+ },
640
+ {
641
+ "name": "openTime",
642
+ "type": "uint64",
643
+ "internalType": "uint64"
644
+ }
645
+ ],
646
+ "outputs": [
647
+ {
648
+ "name": "marketId",
649
+ "type": "uint256",
650
+ "internalType": "uint256"
651
+ }
652
+ ],
653
+ "stateMutability": "nonpayable"
654
+ },
655
+ {
656
+ "type": "function",
657
+ "name": "orderFill",
658
+ "inputs": [
659
+ {
660
+ "name": "trader",
661
+ "type": "address",
662
+ "internalType": "address"
663
+ },
664
+ {
665
+ "name": "nonce",
666
+ "type": "uint256",
667
+ "internalType": "uint256"
668
+ }
669
+ ],
670
+ "outputs": [
671
+ {
672
+ "name": "filled",
673
+ "type": "uint256",
674
+ "internalType": "uint256"
675
+ },
676
+ {
677
+ "name": "clearingTick",
678
+ "type": "uint8",
679
+ "internalType": "uint8"
680
+ }
681
+ ],
682
+ "stateMutability": "view"
683
+ },
684
+ {
685
+ "type": "function",
686
+ "name": "orderNonce",
687
+ "inputs": [
688
+ {
689
+ "name": "",
690
+ "type": "address",
691
+ "internalType": "address"
692
+ }
693
+ ],
694
+ "outputs": [
695
+ {
696
+ "name": "",
697
+ "type": "uint256",
698
+ "internalType": "uint256"
699
+ }
700
+ ],
701
+ "stateMutability": "view"
702
+ },
703
+ {
704
+ "type": "function",
705
+ "name": "outcome",
706
+ "inputs": [
707
+ {
708
+ "name": "marketId",
709
+ "type": "uint256",
710
+ "internalType": "uint256"
711
+ }
712
+ ],
713
+ "outputs": [
714
+ {
715
+ "name": "",
716
+ "type": "uint8",
717
+ "internalType": "enum Everyblock.Outcome"
718
+ }
719
+ ],
720
+ "stateMutability": "view"
721
+ },
722
+ {
723
+ "type": "function",
724
+ "name": "owner",
725
+ "inputs": [],
726
+ "outputs": [
727
+ {
728
+ "name": "",
729
+ "type": "address",
730
+ "internalType": "address"
731
+ }
732
+ ],
733
+ "stateMutability": "view"
734
+ },
735
+ {
736
+ "type": "function",
737
+ "name": "placeOrder",
738
+ "inputs": [
739
+ {
740
+ "name": "marketId",
741
+ "type": "uint256",
742
+ "internalType": "uint256"
743
+ },
744
+ {
745
+ "name": "kind",
746
+ "type": "uint8",
747
+ "internalType": "enum Everyblock.Kind"
748
+ },
749
+ {
750
+ "name": "price",
751
+ "type": "uint8",
752
+ "internalType": "uint8"
753
+ },
754
+ {
755
+ "name": "size",
756
+ "type": "uint64",
757
+ "internalType": "uint64"
758
+ }
759
+ ],
760
+ "outputs": [
761
+ {
762
+ "name": "batchId",
763
+ "type": "uint256",
764
+ "internalType": "uint256"
765
+ },
766
+ {
767
+ "name": "nonce",
768
+ "type": "uint256",
769
+ "internalType": "uint256"
770
+ }
771
+ ],
772
+ "stateMutability": "nonpayable"
773
+ },
774
+ {
775
+ "type": "function",
776
+ "name": "previewClaim",
777
+ "inputs": [
778
+ {
779
+ "name": "trader",
780
+ "type": "address",
781
+ "internalType": "address"
782
+ },
783
+ {
784
+ "name": "nonce",
785
+ "type": "uint256",
786
+ "internalType": "uint256"
787
+ }
788
+ ],
789
+ "outputs": [
790
+ {
791
+ "name": "filled",
792
+ "type": "uint256",
793
+ "internalType": "uint256"
794
+ },
795
+ {
796
+ "name": "upOut",
797
+ "type": "uint256",
798
+ "internalType": "uint256"
799
+ },
800
+ {
801
+ "name": "downOut",
802
+ "type": "uint256",
803
+ "internalType": "uint256"
804
+ },
805
+ {
806
+ "name": "cashOut",
807
+ "type": "uint256",
808
+ "internalType": "uint256"
809
+ }
810
+ ],
811
+ "stateMutability": "view"
812
+ },
813
+ {
814
+ "type": "function",
815
+ "name": "pyth",
816
+ "inputs": [],
817
+ "outputs": [
818
+ {
819
+ "name": "",
820
+ "type": "address",
821
+ "internalType": "contract IPyth"
822
+ }
823
+ ],
824
+ "stateMutability": "view"
825
+ },
826
+ {
827
+ "type": "function",
828
+ "name": "redeem",
829
+ "inputs": [
830
+ {
831
+ "name": "marketId",
832
+ "type": "uint256",
833
+ "internalType": "uint256"
834
+ }
835
+ ],
836
+ "outputs": [
837
+ {
838
+ "name": "payout",
839
+ "type": "uint256",
840
+ "internalType": "uint256"
841
+ }
842
+ ],
843
+ "stateMutability": "nonpayable"
844
+ },
845
+ {
846
+ "type": "function",
847
+ "name": "resolve",
848
+ "inputs": [
849
+ {
850
+ "name": "marketId",
851
+ "type": "uint256",
852
+ "internalType": "uint256"
853
+ },
854
+ {
855
+ "name": "updates",
856
+ "type": "bytes[]",
857
+ "internalType": "bytes[]"
858
+ }
859
+ ],
860
+ "outputs": [],
861
+ "stateMutability": "payable"
862
+ },
863
+ {
864
+ "type": "function",
865
+ "name": "setFee",
866
+ "inputs": [
867
+ {
868
+ "name": "bps",
869
+ "type": "uint16",
870
+ "internalType": "uint16"
871
+ },
872
+ {
873
+ "name": "recipient",
874
+ "type": "address",
875
+ "internalType": "address"
876
+ }
877
+ ],
878
+ "outputs": [],
879
+ "stateMutability": "nonpayable"
880
+ },
881
+ {
882
+ "type": "function",
883
+ "name": "setStrike",
884
+ "inputs": [
885
+ {
886
+ "name": "marketId",
887
+ "type": "uint256",
888
+ "internalType": "uint256"
889
+ },
890
+ {
891
+ "name": "updates",
892
+ "type": "bytes[]",
893
+ "internalType": "bytes[]"
894
+ }
895
+ ],
896
+ "outputs": [],
897
+ "stateMutability": "payable"
898
+ },
899
+ {
900
+ "type": "function",
901
+ "name": "split",
902
+ "inputs": [
903
+ {
904
+ "name": "marketId",
905
+ "type": "uint256",
906
+ "internalType": "uint256"
907
+ },
908
+ {
909
+ "name": "sets",
910
+ "type": "uint256",
911
+ "internalType": "uint256"
912
+ }
913
+ ],
914
+ "outputs": [],
915
+ "stateMutability": "nonpayable"
916
+ },
917
+ {
918
+ "type": "function",
919
+ "name": "upBalance",
920
+ "inputs": [
921
+ {
922
+ "name": "",
923
+ "type": "uint256",
924
+ "internalType": "uint256"
925
+ },
926
+ {
927
+ "name": "",
928
+ "type": "address",
929
+ "internalType": "address"
930
+ }
931
+ ],
932
+ "outputs": [
933
+ {
934
+ "name": "",
935
+ "type": "uint256",
936
+ "internalType": "uint256"
937
+ }
938
+ ],
939
+ "stateMutability": "view"
940
+ },
941
+ {
942
+ "type": "event",
943
+ "name": "BatchCleared",
944
+ "inputs": [
945
+ {
946
+ "name": "marketId",
947
+ "type": "uint256",
948
+ "indexed": true,
949
+ "internalType": "uint256"
950
+ },
951
+ {
952
+ "name": "batchId",
953
+ "type": "uint256",
954
+ "indexed": true,
955
+ "internalType": "uint256"
956
+ },
957
+ {
958
+ "name": "clearingTick",
959
+ "type": "uint8",
960
+ "indexed": false,
961
+ "internalType": "uint8"
962
+ },
963
+ {
964
+ "name": "volume",
965
+ "type": "uint128",
966
+ "indexed": false,
967
+ "internalType": "uint128"
968
+ },
969
+ {
970
+ "name": "bidFillAtTick",
971
+ "type": "uint128",
972
+ "indexed": false,
973
+ "internalType": "uint128"
974
+ },
975
+ {
976
+ "name": "askFillAtTick",
977
+ "type": "uint128",
978
+ "indexed": false,
979
+ "internalType": "uint128"
980
+ }
981
+ ],
982
+ "anonymous": false
983
+ },
984
+ {
985
+ "type": "event",
986
+ "name": "Claimed",
987
+ "inputs": [
988
+ {
989
+ "name": "trader",
990
+ "type": "address",
991
+ "indexed": true,
992
+ "internalType": "address"
993
+ },
994
+ {
995
+ "name": "nonce",
996
+ "type": "uint256",
997
+ "indexed": true,
998
+ "internalType": "uint256"
999
+ },
1000
+ {
1001
+ "name": "marketId",
1002
+ "type": "uint256",
1003
+ "indexed": true,
1004
+ "internalType": "uint256"
1005
+ },
1006
+ {
1007
+ "name": "batchId",
1008
+ "type": "uint256",
1009
+ "indexed": false,
1010
+ "internalType": "uint256"
1011
+ },
1012
+ {
1013
+ "name": "filled",
1014
+ "type": "uint256",
1015
+ "indexed": false,
1016
+ "internalType": "uint256"
1017
+ },
1018
+ {
1019
+ "name": "upOut",
1020
+ "type": "uint256",
1021
+ "indexed": false,
1022
+ "internalType": "uint256"
1023
+ },
1024
+ {
1025
+ "name": "downOut",
1026
+ "type": "uint256",
1027
+ "indexed": false,
1028
+ "internalType": "uint256"
1029
+ },
1030
+ {
1031
+ "name": "cashOut",
1032
+ "type": "uint256",
1033
+ "indexed": false,
1034
+ "internalType": "uint256"
1035
+ }
1036
+ ],
1037
+ "anonymous": false
1038
+ },
1039
+ {
1040
+ "type": "event",
1041
+ "name": "FeeCharged",
1042
+ "inputs": [
1043
+ {
1044
+ "name": "marketId",
1045
+ "type": "uint256",
1046
+ "indexed": true,
1047
+ "internalType": "uint256"
1048
+ },
1049
+ {
1050
+ "name": "trader",
1051
+ "type": "address",
1052
+ "indexed": true,
1053
+ "internalType": "address"
1054
+ },
1055
+ {
1056
+ "name": "nonce",
1057
+ "type": "uint256",
1058
+ "indexed": true,
1059
+ "internalType": "uint256"
1060
+ },
1061
+ {
1062
+ "name": "fee",
1063
+ "type": "uint256",
1064
+ "indexed": false,
1065
+ "internalType": "uint256"
1066
+ }
1067
+ ],
1068
+ "anonymous": false
1069
+ },
1070
+ {
1071
+ "type": "event",
1072
+ "name": "FeeUpdated",
1073
+ "inputs": [
1074
+ {
1075
+ "name": "feeBps",
1076
+ "type": "uint16",
1077
+ "indexed": false,
1078
+ "internalType": "uint16"
1079
+ },
1080
+ {
1081
+ "name": "feeRecipient",
1082
+ "type": "address",
1083
+ "indexed": false,
1084
+ "internalType": "address"
1085
+ }
1086
+ ],
1087
+ "anonymous": false
1088
+ },
1089
+ {
1090
+ "type": "event",
1091
+ "name": "FeedListed",
1092
+ "inputs": [
1093
+ {
1094
+ "name": "feedId",
1095
+ "type": "bytes32",
1096
+ "indexed": true,
1097
+ "internalType": "bytes32"
1098
+ },
1099
+ {
1100
+ "name": "duration",
1101
+ "type": "uint64",
1102
+ "indexed": false,
1103
+ "internalType": "uint64"
1104
+ }
1105
+ ],
1106
+ "anonymous": false
1107
+ },
1108
+ {
1109
+ "type": "event",
1110
+ "name": "FeesCollected",
1111
+ "inputs": [
1112
+ {
1113
+ "name": "recipient",
1114
+ "type": "address",
1115
+ "indexed": true,
1116
+ "internalType": "address"
1117
+ },
1118
+ {
1119
+ "name": "amount",
1120
+ "type": "uint256",
1121
+ "indexed": false,
1122
+ "internalType": "uint256"
1123
+ }
1124
+ ],
1125
+ "anonymous": false
1126
+ },
1127
+ {
1128
+ "type": "event",
1129
+ "name": "MarketCreated",
1130
+ "inputs": [
1131
+ {
1132
+ "name": "marketId",
1133
+ "type": "uint256",
1134
+ "indexed": true,
1135
+ "internalType": "uint256"
1136
+ },
1137
+ {
1138
+ "name": "feedId",
1139
+ "type": "bytes32",
1140
+ "indexed": true,
1141
+ "internalType": "bytes32"
1142
+ },
1143
+ {
1144
+ "name": "openTime",
1145
+ "type": "uint64",
1146
+ "indexed": false,
1147
+ "internalType": "uint64"
1148
+ },
1149
+ {
1150
+ "name": "closeTime",
1151
+ "type": "uint64",
1152
+ "indexed": false,
1153
+ "internalType": "uint64"
1154
+ }
1155
+ ],
1156
+ "anonymous": false
1157
+ },
1158
+ {
1159
+ "type": "event",
1160
+ "name": "Merged",
1161
+ "inputs": [
1162
+ {
1163
+ "name": "marketId",
1164
+ "type": "uint256",
1165
+ "indexed": true,
1166
+ "internalType": "uint256"
1167
+ },
1168
+ {
1169
+ "name": "account",
1170
+ "type": "address",
1171
+ "indexed": true,
1172
+ "internalType": "address"
1173
+ },
1174
+ {
1175
+ "name": "sets",
1176
+ "type": "uint256",
1177
+ "indexed": false,
1178
+ "internalType": "uint256"
1179
+ }
1180
+ ],
1181
+ "anonymous": false
1182
+ },
1183
+ {
1184
+ "type": "event",
1185
+ "name": "OrderPlaced",
1186
+ "inputs": [
1187
+ {
1188
+ "name": "marketId",
1189
+ "type": "uint256",
1190
+ "indexed": true,
1191
+ "internalType": "uint256"
1192
+ },
1193
+ {
1194
+ "name": "batchId",
1195
+ "type": "uint256",
1196
+ "indexed": true,
1197
+ "internalType": "uint256"
1198
+ },
1199
+ {
1200
+ "name": "trader",
1201
+ "type": "address",
1202
+ "indexed": true,
1203
+ "internalType": "address"
1204
+ },
1205
+ {
1206
+ "name": "nonce",
1207
+ "type": "uint256",
1208
+ "indexed": false,
1209
+ "internalType": "uint256"
1210
+ },
1211
+ {
1212
+ "name": "kind",
1213
+ "type": "uint8",
1214
+ "indexed": false,
1215
+ "internalType": "enum Everyblock.Kind"
1216
+ },
1217
+ {
1218
+ "name": "price",
1219
+ "type": "uint8",
1220
+ "indexed": false,
1221
+ "internalType": "uint8"
1222
+ },
1223
+ {
1224
+ "name": "tick",
1225
+ "type": "uint8",
1226
+ "indexed": false,
1227
+ "internalType": "uint8"
1228
+ },
1229
+ {
1230
+ "name": "size",
1231
+ "type": "uint64",
1232
+ "indexed": false,
1233
+ "internalType": "uint64"
1234
+ }
1235
+ ],
1236
+ "anonymous": false
1237
+ },
1238
+ {
1239
+ "type": "event",
1240
+ "name": "Redeemed",
1241
+ "inputs": [
1242
+ {
1243
+ "name": "marketId",
1244
+ "type": "uint256",
1245
+ "indexed": true,
1246
+ "internalType": "uint256"
1247
+ },
1248
+ {
1249
+ "name": "account",
1250
+ "type": "address",
1251
+ "indexed": true,
1252
+ "internalType": "address"
1253
+ },
1254
+ {
1255
+ "name": "up",
1256
+ "type": "uint256",
1257
+ "indexed": false,
1258
+ "internalType": "uint256"
1259
+ },
1260
+ {
1261
+ "name": "down",
1262
+ "type": "uint256",
1263
+ "indexed": false,
1264
+ "internalType": "uint256"
1265
+ },
1266
+ {
1267
+ "name": "payout",
1268
+ "type": "uint256",
1269
+ "indexed": false,
1270
+ "internalType": "uint256"
1271
+ }
1272
+ ],
1273
+ "anonymous": false
1274
+ },
1275
+ {
1276
+ "type": "event",
1277
+ "name": "Resolved",
1278
+ "inputs": [
1279
+ {
1280
+ "name": "marketId",
1281
+ "type": "uint256",
1282
+ "indexed": true,
1283
+ "internalType": "uint256"
1284
+ },
1285
+ {
1286
+ "name": "outcome",
1287
+ "type": "uint8",
1288
+ "indexed": false,
1289
+ "internalType": "enum Everyblock.Outcome"
1290
+ },
1291
+ {
1292
+ "name": "strikeSum",
1293
+ "type": "int128",
1294
+ "indexed": false,
1295
+ "internalType": "int128"
1296
+ },
1297
+ {
1298
+ "name": "closeSum",
1299
+ "type": "int128",
1300
+ "indexed": false,
1301
+ "internalType": "int128"
1302
+ }
1303
+ ],
1304
+ "anonymous": false
1305
+ },
1306
+ {
1307
+ "type": "event",
1308
+ "name": "Split",
1309
+ "inputs": [
1310
+ {
1311
+ "name": "marketId",
1312
+ "type": "uint256",
1313
+ "indexed": true,
1314
+ "internalType": "uint256"
1315
+ },
1316
+ {
1317
+ "name": "account",
1318
+ "type": "address",
1319
+ "indexed": true,
1320
+ "internalType": "address"
1321
+ },
1322
+ {
1323
+ "name": "sets",
1324
+ "type": "uint256",
1325
+ "indexed": false,
1326
+ "internalType": "uint256"
1327
+ }
1328
+ ],
1329
+ "anonymous": false
1330
+ },
1331
+ {
1332
+ "type": "event",
1333
+ "name": "StrikeSet",
1334
+ "inputs": [
1335
+ {
1336
+ "name": "marketId",
1337
+ "type": "uint256",
1338
+ "indexed": true,
1339
+ "internalType": "uint256"
1340
+ },
1341
+ {
1342
+ "name": "strikeSum",
1343
+ "type": "int128",
1344
+ "indexed": false,
1345
+ "internalType": "int128"
1346
+ },
1347
+ {
1348
+ "name": "expo",
1349
+ "type": "int32",
1350
+ "indexed": false,
1351
+ "internalType": "int32"
1352
+ }
1353
+ ],
1354
+ "anonymous": false
1355
+ },
1356
+ {
1357
+ "type": "error",
1358
+ "name": "AlreadyResolved",
1359
+ "inputs": []
1360
+ },
1361
+ {
1362
+ "type": "error",
1363
+ "name": "BadPrice",
1364
+ "inputs": []
1365
+ },
1366
+ {
1367
+ "type": "error",
1368
+ "name": "BadSampleCount",
1369
+ "inputs": []
1370
+ },
1371
+ {
1372
+ "type": "error",
1373
+ "name": "BadTimes",
1374
+ "inputs": []
1375
+ },
1376
+ {
1377
+ "type": "error",
1378
+ "name": "BatchNotCleared",
1379
+ "inputs": []
1380
+ },
1381
+ {
1382
+ "type": "error",
1383
+ "name": "ExpoChanged",
1384
+ "inputs": []
1385
+ },
1386
+ {
1387
+ "type": "error",
1388
+ "name": "FeeTooHigh",
1389
+ "inputs": []
1390
+ },
1391
+ {
1392
+ "type": "error",
1393
+ "name": "FeedNotListed",
1394
+ "inputs": []
1395
+ },
1396
+ {
1397
+ "type": "error",
1398
+ "name": "InsufficientBalance",
1399
+ "inputs": []
1400
+ },
1401
+ {
1402
+ "type": "error",
1403
+ "name": "InsufficientFee",
1404
+ "inputs": []
1405
+ },
1406
+ {
1407
+ "type": "error",
1408
+ "name": "MarketExists",
1409
+ "inputs": []
1410
+ },
1411
+ {
1412
+ "type": "error",
1413
+ "name": "MarketNotTrading",
1414
+ "inputs": []
1415
+ },
1416
+ {
1417
+ "type": "error",
1418
+ "name": "NoFeeRecipient",
1419
+ "inputs": []
1420
+ },
1421
+ {
1422
+ "type": "error",
1423
+ "name": "NotOwner",
1424
+ "inputs": []
1425
+ },
1426
+ {
1427
+ "type": "error",
1428
+ "name": "NotSettled",
1429
+ "inputs": []
1430
+ },
1431
+ {
1432
+ "type": "error",
1433
+ "name": "NothingToRedeem",
1434
+ "inputs": []
1435
+ },
1436
+ {
1437
+ "type": "error",
1438
+ "name": "Reentrancy",
1439
+ "inputs": []
1440
+ },
1441
+ {
1442
+ "type": "error",
1443
+ "name": "SettlementClosed",
1444
+ "inputs": []
1445
+ },
1446
+ {
1447
+ "type": "error",
1448
+ "name": "StrikeAlreadySet",
1449
+ "inputs": []
1450
+ },
1451
+ {
1452
+ "type": "error",
1453
+ "name": "StrikeNotSet",
1454
+ "inputs": []
1455
+ },
1456
+ {
1457
+ "type": "error",
1458
+ "name": "TransferFailed",
1459
+ "inputs": []
1460
+ },
1461
+ {
1462
+ "type": "error",
1463
+ "name": "UnknownMarket",
1464
+ "inputs": []
1465
+ },
1466
+ {
1467
+ "type": "error",
1468
+ "name": "UnknownOrder",
1469
+ "inputs": []
1470
+ },
1471
+ {
1472
+ "type": "error",
1473
+ "name": "ZeroSize",
1474
+ "inputs": []
1475
+ }
1476
+ ];
1477
+ export const testUsdAbi = [
1478
+ {
1479
+ "type": "function",
1480
+ "name": "FAUCET_AMOUNT",
1481
+ "inputs": [],
1482
+ "outputs": [
1483
+ {
1484
+ "name": "",
1485
+ "type": "uint256",
1486
+ "internalType": "uint256"
1487
+ }
1488
+ ],
1489
+ "stateMutability": "view"
1490
+ },
1491
+ {
1492
+ "type": "function",
1493
+ "name": "allowance",
1494
+ "inputs": [
1495
+ {
1496
+ "name": "",
1497
+ "type": "address",
1498
+ "internalType": "address"
1499
+ },
1500
+ {
1501
+ "name": "",
1502
+ "type": "address",
1503
+ "internalType": "address"
1504
+ }
1505
+ ],
1506
+ "outputs": [
1507
+ {
1508
+ "name": "",
1509
+ "type": "uint256",
1510
+ "internalType": "uint256"
1511
+ }
1512
+ ],
1513
+ "stateMutability": "view"
1514
+ },
1515
+ {
1516
+ "type": "function",
1517
+ "name": "approve",
1518
+ "inputs": [
1519
+ {
1520
+ "name": "spender",
1521
+ "type": "address",
1522
+ "internalType": "address"
1523
+ },
1524
+ {
1525
+ "name": "amount",
1526
+ "type": "uint256",
1527
+ "internalType": "uint256"
1528
+ }
1529
+ ],
1530
+ "outputs": [
1531
+ {
1532
+ "name": "",
1533
+ "type": "bool",
1534
+ "internalType": "bool"
1535
+ }
1536
+ ],
1537
+ "stateMutability": "nonpayable"
1538
+ },
1539
+ {
1540
+ "type": "function",
1541
+ "name": "balanceOf",
1542
+ "inputs": [
1543
+ {
1544
+ "name": "",
1545
+ "type": "address",
1546
+ "internalType": "address"
1547
+ }
1548
+ ],
1549
+ "outputs": [
1550
+ {
1551
+ "name": "",
1552
+ "type": "uint256",
1553
+ "internalType": "uint256"
1554
+ }
1555
+ ],
1556
+ "stateMutability": "view"
1557
+ },
1558
+ {
1559
+ "type": "function",
1560
+ "name": "decimals",
1561
+ "inputs": [],
1562
+ "outputs": [
1563
+ {
1564
+ "name": "",
1565
+ "type": "uint8",
1566
+ "internalType": "uint8"
1567
+ }
1568
+ ],
1569
+ "stateMutability": "view"
1570
+ },
1571
+ {
1572
+ "type": "function",
1573
+ "name": "faucet",
1574
+ "inputs": [],
1575
+ "outputs": [],
1576
+ "stateMutability": "nonpayable"
1577
+ },
1578
+ {
1579
+ "type": "function",
1580
+ "name": "name",
1581
+ "inputs": [],
1582
+ "outputs": [
1583
+ {
1584
+ "name": "",
1585
+ "type": "string",
1586
+ "internalType": "string"
1587
+ }
1588
+ ],
1589
+ "stateMutability": "view"
1590
+ },
1591
+ {
1592
+ "type": "function",
1593
+ "name": "symbol",
1594
+ "inputs": [],
1595
+ "outputs": [
1596
+ {
1597
+ "name": "",
1598
+ "type": "string",
1599
+ "internalType": "string"
1600
+ }
1601
+ ],
1602
+ "stateMutability": "view"
1603
+ },
1604
+ {
1605
+ "type": "function",
1606
+ "name": "totalSupply",
1607
+ "inputs": [],
1608
+ "outputs": [
1609
+ {
1610
+ "name": "",
1611
+ "type": "uint256",
1612
+ "internalType": "uint256"
1613
+ }
1614
+ ],
1615
+ "stateMutability": "view"
1616
+ },
1617
+ {
1618
+ "type": "function",
1619
+ "name": "transfer",
1620
+ "inputs": [
1621
+ {
1622
+ "name": "to",
1623
+ "type": "address",
1624
+ "internalType": "address"
1625
+ },
1626
+ {
1627
+ "name": "amount",
1628
+ "type": "uint256",
1629
+ "internalType": "uint256"
1630
+ }
1631
+ ],
1632
+ "outputs": [
1633
+ {
1634
+ "name": "",
1635
+ "type": "bool",
1636
+ "internalType": "bool"
1637
+ }
1638
+ ],
1639
+ "stateMutability": "nonpayable"
1640
+ },
1641
+ {
1642
+ "type": "function",
1643
+ "name": "transferFrom",
1644
+ "inputs": [
1645
+ {
1646
+ "name": "from",
1647
+ "type": "address",
1648
+ "internalType": "address"
1649
+ },
1650
+ {
1651
+ "name": "to",
1652
+ "type": "address",
1653
+ "internalType": "address"
1654
+ },
1655
+ {
1656
+ "name": "amount",
1657
+ "type": "uint256",
1658
+ "internalType": "uint256"
1659
+ }
1660
+ ],
1661
+ "outputs": [
1662
+ {
1663
+ "name": "",
1664
+ "type": "bool",
1665
+ "internalType": "bool"
1666
+ }
1667
+ ],
1668
+ "stateMutability": "nonpayable"
1669
+ },
1670
+ {
1671
+ "type": "event",
1672
+ "name": "Approval",
1673
+ "inputs": [
1674
+ {
1675
+ "name": "owner",
1676
+ "type": "address",
1677
+ "indexed": true,
1678
+ "internalType": "address"
1679
+ },
1680
+ {
1681
+ "name": "spender",
1682
+ "type": "address",
1683
+ "indexed": true,
1684
+ "internalType": "address"
1685
+ },
1686
+ {
1687
+ "name": "value",
1688
+ "type": "uint256",
1689
+ "indexed": false,
1690
+ "internalType": "uint256"
1691
+ }
1692
+ ],
1693
+ "anonymous": false
1694
+ },
1695
+ {
1696
+ "type": "event",
1697
+ "name": "Transfer",
1698
+ "inputs": [
1699
+ {
1700
+ "name": "from",
1701
+ "type": "address",
1702
+ "indexed": true,
1703
+ "internalType": "address"
1704
+ },
1705
+ {
1706
+ "name": "to",
1707
+ "type": "address",
1708
+ "indexed": true,
1709
+ "internalType": "address"
1710
+ },
1711
+ {
1712
+ "name": "value",
1713
+ "type": "uint256",
1714
+ "indexed": false,
1715
+ "internalType": "uint256"
1716
+ }
1717
+ ],
1718
+ "anonymous": false
1719
+ }
1720
+ ];