@vercora-protocol/sdk 0.0.1

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,3717 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/vercora.json`.
6
+ */
7
+ export type Vercora = {
8
+ "address": "C5QvWnGHeC6o7N68heWFKPvC35eggZ9Mrgqzj86WwrBv";
9
+ "metadata": {
10
+ "name": "vercora";
11
+ "version": "0.1.0";
12
+ "spec": "0.1.0";
13
+ "description": "Vercora prediction market program (Anchor)";
14
+ };
15
+ "instructions": [
16
+ {
17
+ "name": "addAllowedCollateralMint";
18
+ "discriminator": [
19
+ 230,
20
+ 100,
21
+ 188,
22
+ 206,
23
+ 152,
24
+ 143,
25
+ 230,
26
+ 229
27
+ ];
28
+ "accounts": [
29
+ {
30
+ "name": "allowedMint";
31
+ "writable": true;
32
+ "pda": {
33
+ "seeds": [
34
+ {
35
+ "kind": "const";
36
+ "value": [
37
+ 97,
38
+ 108,
39
+ 108,
40
+ 111,
41
+ 119,
42
+ 101,
43
+ 100,
44
+ 45,
45
+ 109,
46
+ 105,
47
+ 110,
48
+ 116
49
+ ];
50
+ },
51
+ {
52
+ "kind": "account";
53
+ "path": "mint";
54
+ }
55
+ ];
56
+ };
57
+ },
58
+ {
59
+ "name": "globalConfig";
60
+ "writable": true;
61
+ "pda": {
62
+ "seeds": [
63
+ {
64
+ "kind": "const";
65
+ "value": [
66
+ 103,
67
+ 108,
68
+ 111,
69
+ 98,
70
+ 97,
71
+ 108,
72
+ 45,
73
+ 99,
74
+ 111,
75
+ 110,
76
+ 102,
77
+ 105,
78
+ 103
79
+ ];
80
+ }
81
+ ];
82
+ };
83
+ },
84
+ {
85
+ "name": "authority";
86
+ "writable": true;
87
+ "signer": true;
88
+ },
89
+ {
90
+ "name": "mint";
91
+ },
92
+ {
93
+ "name": "systemProgram";
94
+ "address": "11111111111111111111111111111111";
95
+ }
96
+ ];
97
+ "args": [];
98
+ },
99
+ {
100
+ "name": "closeMarketEarly";
101
+ "discriminator": [
102
+ 249,
103
+ 72,
104
+ 175,
105
+ 9,
106
+ 87,
107
+ 92,
108
+ 121,
109
+ 92
110
+ ];
111
+ "accounts": [
112
+ {
113
+ "name": "signer";
114
+ "signer": true;
115
+ },
116
+ {
117
+ "name": "globalConfig";
118
+ "pda": {
119
+ "seeds": [
120
+ {
121
+ "kind": "const";
122
+ "value": [
123
+ 103,
124
+ 108,
125
+ 111,
126
+ 98,
127
+ 97,
128
+ 108,
129
+ 45,
130
+ 99,
131
+ 111,
132
+ 110,
133
+ 102,
134
+ 105,
135
+ 103
136
+ ];
137
+ }
138
+ ];
139
+ };
140
+ },
141
+ {
142
+ "name": "market";
143
+ "writable": true;
144
+ "pda": {
145
+ "seeds": [
146
+ {
147
+ "kind": "const";
148
+ "value": [
149
+ 109,
150
+ 97,
151
+ 114,
152
+ 107,
153
+ 101,
154
+ 116
155
+ ];
156
+ },
157
+ {
158
+ "kind": "account";
159
+ "path": "market.creator";
160
+ "account": "market";
161
+ },
162
+ {
163
+ "kind": "arg";
164
+ "path": "args.market_id";
165
+ }
166
+ ];
167
+ };
168
+ }
169
+ ];
170
+ "args": [
171
+ {
172
+ "name": "args";
173
+ "type": {
174
+ "defined": {
175
+ "name": "closeMarketEarlyArgs";
176
+ };
177
+ };
178
+ }
179
+ ];
180
+ },
181
+ {
182
+ "name": "closeUserProfile";
183
+ "discriminator": [
184
+ 242,
185
+ 80,
186
+ 248,
187
+ 79,
188
+ 81,
189
+ 251,
190
+ 65,
191
+ 113
192
+ ];
193
+ "accounts": [
194
+ {
195
+ "name": "userProfile";
196
+ "writable": true;
197
+ "pda": {
198
+ "seeds": [
199
+ {
200
+ "kind": "const";
201
+ "value": [
202
+ 117,
203
+ 115,
204
+ 101,
205
+ 114,
206
+ 45,
207
+ 112,
208
+ 114,
209
+ 111,
210
+ 102,
211
+ 105,
212
+ 108,
213
+ 101
214
+ ];
215
+ },
216
+ {
217
+ "kind": "account";
218
+ "path": "wallet";
219
+ }
220
+ ];
221
+ };
222
+ },
223
+ {
224
+ "name": "wallet";
225
+ "docs": [
226
+ "Must match the seeds — only the profile owner can close it."
227
+ ];
228
+ "writable": true;
229
+ "signer": true;
230
+ }
231
+ ];
232
+ "args": [];
233
+ },
234
+ {
235
+ "name": "createMarket";
236
+ "discriminator": [
237
+ 103,
238
+ 226,
239
+ 97,
240
+ 235,
241
+ 200,
242
+ 188,
243
+ 251,
244
+ 254
245
+ ];
246
+ "accounts": [
247
+ {
248
+ "name": "payer";
249
+ "writable": true;
250
+ "signer": true;
251
+ },
252
+ {
253
+ "name": "market";
254
+ "writable": true;
255
+ "pda": {
256
+ "seeds": [
257
+ {
258
+ "kind": "const";
259
+ "value": [
260
+ 109,
261
+ 97,
262
+ 114,
263
+ 107,
264
+ 101,
265
+ 116
266
+ ];
267
+ },
268
+ {
269
+ "kind": "account";
270
+ "path": "creator";
271
+ },
272
+ {
273
+ "kind": "arg";
274
+ "path": "args.market_id";
275
+ }
276
+ ];
277
+ };
278
+ },
279
+ {
280
+ "name": "vault";
281
+ "writable": true;
282
+ "pda": {
283
+ "seeds": [
284
+ {
285
+ "kind": "account";
286
+ "path": "market";
287
+ },
288
+ {
289
+ "kind": "const";
290
+ "value": [
291
+ 118,
292
+ 97,
293
+ 117,
294
+ 108,
295
+ 116
296
+ ];
297
+ }
298
+ ];
299
+ };
300
+ },
301
+ {
302
+ "name": "collateralMint";
303
+ },
304
+ {
305
+ "name": "creator";
306
+ "signer": true;
307
+ },
308
+ {
309
+ "name": "creatorFeeAccount";
310
+ },
311
+ {
312
+ "name": "globalConfig";
313
+ "pda": {
314
+ "seeds": [
315
+ {
316
+ "kind": "const";
317
+ "value": [
318
+ 103,
319
+ 108,
320
+ 111,
321
+ 98,
322
+ 97,
323
+ 108,
324
+ 45,
325
+ 99,
326
+ 111,
327
+ 110,
328
+ 102,
329
+ 105,
330
+ 103
331
+ ];
332
+ }
333
+ ];
334
+ };
335
+ },
336
+ {
337
+ "name": "allowedMint";
338
+ "pda": {
339
+ "seeds": [
340
+ {
341
+ "kind": "const";
342
+ "value": [
343
+ 97,
344
+ 108,
345
+ 108,
346
+ 111,
347
+ 119,
348
+ 101,
349
+ 100,
350
+ 45,
351
+ 109,
352
+ 105,
353
+ 110,
354
+ 116
355
+ ];
356
+ },
357
+ {
358
+ "kind": "account";
359
+ "path": "collateralMint";
360
+ }
361
+ ];
362
+ };
363
+ },
364
+ {
365
+ "name": "marketCategory";
366
+ "docs": [
367
+ "Optional — omit account for uncategorized (`category = Pubkey::default()`)."
368
+ ];
369
+ "optional": true;
370
+ },
371
+ {
372
+ "name": "collateralTokenProgram";
373
+ },
374
+ {
375
+ "name": "tokenProgram";
376
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
377
+ },
378
+ {
379
+ "name": "systemProgram";
380
+ "address": "11111111111111111111111111111111";
381
+ }
382
+ ];
383
+ "args": [
384
+ {
385
+ "name": "args";
386
+ "type": {
387
+ "defined": {
388
+ "name": "createMarketArgs";
389
+ };
390
+ };
391
+ }
392
+ ];
393
+ },
394
+ {
395
+ "name": "createMarketCategory";
396
+ "discriminator": [
397
+ 244,
398
+ 9,
399
+ 114,
400
+ 166,
401
+ 86,
402
+ 220,
403
+ 26,
404
+ 67
405
+ ];
406
+ "accounts": [
407
+ {
408
+ "name": "globalConfig";
409
+ "writable": true;
410
+ "pda": {
411
+ "seeds": [
412
+ {
413
+ "kind": "const";
414
+ "value": [
415
+ 103,
416
+ 108,
417
+ 111,
418
+ 98,
419
+ 97,
420
+ 108,
421
+ 45,
422
+ 99,
423
+ 111,
424
+ 110,
425
+ 102,
426
+ 105,
427
+ 103
428
+ ];
429
+ }
430
+ ];
431
+ };
432
+ },
433
+ {
434
+ "name": "marketCategory";
435
+ "writable": true;
436
+ "pda": {
437
+ "seeds": [
438
+ {
439
+ "kind": "const";
440
+ "value": [
441
+ 109,
442
+ 97,
443
+ 114,
444
+ 107,
445
+ 101,
446
+ 116,
447
+ 45,
448
+ 99,
449
+ 97,
450
+ 116,
451
+ 101,
452
+ 103,
453
+ 111,
454
+ 114,
455
+ 121
456
+ ];
457
+ },
458
+ {
459
+ "kind": "arg";
460
+ "path": "categoryId";
461
+ }
462
+ ];
463
+ };
464
+ },
465
+ {
466
+ "name": "authority";
467
+ "writable": true;
468
+ "signer": true;
469
+ },
470
+ {
471
+ "name": "systemProgram";
472
+ "address": "11111111111111111111111111111111";
473
+ }
474
+ ];
475
+ "args": [
476
+ {
477
+ "name": "categoryId";
478
+ "type": "u64";
479
+ },
480
+ {
481
+ "name": "name";
482
+ "type": "string";
483
+ }
484
+ ];
485
+ },
486
+ {
487
+ "name": "finalizeResolution";
488
+ "discriminator": [
489
+ 191,
490
+ 74,
491
+ 94,
492
+ 214,
493
+ 45,
494
+ 150,
495
+ 152,
496
+ 125
497
+ ];
498
+ "accounts": [
499
+ {
500
+ "name": "market";
501
+ "writable": true;
502
+ "pda": {
503
+ "seeds": [
504
+ {
505
+ "kind": "const";
506
+ "value": [
507
+ 109,
508
+ 97,
509
+ 114,
510
+ 107,
511
+ 101,
512
+ 116
513
+ ];
514
+ },
515
+ {
516
+ "kind": "account";
517
+ "path": "market.creator";
518
+ "account": "market";
519
+ },
520
+ {
521
+ "kind": "arg";
522
+ "path": "args.market_id";
523
+ }
524
+ ];
525
+ };
526
+ },
527
+ {
528
+ "name": "outcomeTally0";
529
+ "optional": true;
530
+ },
531
+ {
532
+ "name": "outcomeTally1";
533
+ "optional": true;
534
+ },
535
+ {
536
+ "name": "outcomeTally2";
537
+ "optional": true;
538
+ },
539
+ {
540
+ "name": "outcomeTally3";
541
+ "optional": true;
542
+ },
543
+ {
544
+ "name": "outcomeTally4";
545
+ "optional": true;
546
+ },
547
+ {
548
+ "name": "outcomeTally5";
549
+ "optional": true;
550
+ },
551
+ {
552
+ "name": "outcomeTally6";
553
+ "optional": true;
554
+ },
555
+ {
556
+ "name": "outcomeTally7";
557
+ "optional": true;
558
+ }
559
+ ];
560
+ "args": [
561
+ {
562
+ "name": "args";
563
+ "type": {
564
+ "defined": {
565
+ "name": "finalizeResolutionArgs";
566
+ };
567
+ };
568
+ }
569
+ ];
570
+ },
571
+ {
572
+ "name": "initializeConfig";
573
+ "discriminator": [
574
+ 208,
575
+ 127,
576
+ 21,
577
+ 1,
578
+ 194,
579
+ 190,
580
+ 196,
581
+ 70
582
+ ];
583
+ "accounts": [
584
+ {
585
+ "name": "globalConfig";
586
+ "writable": true;
587
+ "pda": {
588
+ "seeds": [
589
+ {
590
+ "kind": "const";
591
+ "value": [
592
+ 103,
593
+ 108,
594
+ 111,
595
+ 98,
596
+ 97,
597
+ 108,
598
+ 45,
599
+ 99,
600
+ 111,
601
+ 110,
602
+ 102,
603
+ 105,
604
+ 103
605
+ ];
606
+ }
607
+ ];
608
+ };
609
+ },
610
+ {
611
+ "name": "authority";
612
+ "docs": [
613
+ "The wallet that signs this tx becomes the primary authority."
614
+ ];
615
+ "writable": true;
616
+ "signer": true;
617
+ },
618
+ {
619
+ "name": "secondaryAuthority";
620
+ "docs": [
621
+ "New secondary authority (does NOT need to sign — the primary authority is responsible).",
622
+ "Pass `Pubkey::default()` to leave it unset."
623
+ ];
624
+ },
625
+ {
626
+ "name": "systemProgram";
627
+ "address": "11111111111111111111111111111111";
628
+ }
629
+ ];
630
+ "args": [
631
+ {
632
+ "name": "secondaryAuthority";
633
+ "type": "pubkey";
634
+ },
635
+ {
636
+ "name": "depositPlatformFeeBps";
637
+ "type": "u16";
638
+ },
639
+ {
640
+ "name": "platformTreasury";
641
+ "type": "pubkey";
642
+ },
643
+ {
644
+ "name": "platformFeeLamports";
645
+ "type": "u64";
646
+ },
647
+ {
648
+ "name": "parimutuelPenaltyProtocolShareBps";
649
+ "type": "u16";
650
+ },
651
+ {
652
+ "name": "parimutuelWithdrawPlatformFeeBps";
653
+ "type": "u16";
654
+ }
655
+ ];
656
+ },
657
+ {
658
+ "name": "initializeMarketMints";
659
+ "discriminator": [
660
+ 150,
661
+ 238,
662
+ 104,
663
+ 206,
664
+ 134,
665
+ 88,
666
+ 76,
667
+ 226
668
+ ];
669
+ "accounts": [
670
+ {
671
+ "name": "payer";
672
+ "writable": true;
673
+ "signer": true;
674
+ },
675
+ {
676
+ "name": "market";
677
+ "pda": {
678
+ "seeds": [
679
+ {
680
+ "kind": "const";
681
+ "value": [
682
+ 109,
683
+ 97,
684
+ 114,
685
+ 107,
686
+ 101,
687
+ 116
688
+ ];
689
+ },
690
+ {
691
+ "kind": "account";
692
+ "path": "market.creator";
693
+ "account": "market";
694
+ },
695
+ {
696
+ "kind": "arg";
697
+ "path": "args.market_id";
698
+ }
699
+ ];
700
+ };
701
+ },
702
+ {
703
+ "name": "tokenProgram";
704
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
705
+ },
706
+ {
707
+ "name": "systemProgram";
708
+ "address": "11111111111111111111111111111111";
709
+ },
710
+ {
711
+ "name": "outcomeMint0";
712
+ "writable": true;
713
+ },
714
+ {
715
+ "name": "outcomeMint1";
716
+ "writable": true;
717
+ },
718
+ {
719
+ "name": "outcomeMint2";
720
+ "writable": true;
721
+ },
722
+ {
723
+ "name": "outcomeMint3";
724
+ "writable": true;
725
+ },
726
+ {
727
+ "name": "outcomeMint4";
728
+ "writable": true;
729
+ },
730
+ {
731
+ "name": "outcomeMint5";
732
+ "writable": true;
733
+ },
734
+ {
735
+ "name": "outcomeMint6";
736
+ "writable": true;
737
+ },
738
+ {
739
+ "name": "outcomeMint7";
740
+ "writable": true;
741
+ }
742
+ ];
743
+ "args": [
744
+ {
745
+ "name": "args";
746
+ "type": {
747
+ "defined": {
748
+ "name": "initializeMarketMintsArgs";
749
+ };
750
+ };
751
+ }
752
+ ];
753
+ },
754
+ {
755
+ "name": "initializeMarketResolver";
756
+ "discriminator": [
757
+ 195,
758
+ 54,
759
+ 0,
760
+ 135,
761
+ 56,
762
+ 129,
763
+ 135,
764
+ 99
765
+ ];
766
+ "accounts": [
767
+ {
768
+ "name": "payer";
769
+ "writable": true;
770
+ "signer": true;
771
+ },
772
+ {
773
+ "name": "market";
774
+ "pda": {
775
+ "seeds": [
776
+ {
777
+ "kind": "const";
778
+ "value": [
779
+ 109,
780
+ 97,
781
+ 114,
782
+ 107,
783
+ 101,
784
+ 116
785
+ ];
786
+ },
787
+ {
788
+ "kind": "account";
789
+ "path": "market.creator";
790
+ "account": "market";
791
+ },
792
+ {
793
+ "kind": "arg";
794
+ "path": "args.market_id";
795
+ }
796
+ ];
797
+ };
798
+ },
799
+ {
800
+ "name": "systemProgram";
801
+ "address": "11111111111111111111111111111111";
802
+ },
803
+ {
804
+ "name": "resolver";
805
+ "writable": true;
806
+ }
807
+ ];
808
+ "args": [
809
+ {
810
+ "name": "args";
811
+ "type": {
812
+ "defined": {
813
+ "name": "initializeMarketResolverArgs";
814
+ };
815
+ };
816
+ }
817
+ ];
818
+ },
819
+ {
820
+ "name": "initializeParimutuelState";
821
+ "discriminator": [
822
+ 73,
823
+ 2,
824
+ 25,
825
+ 61,
826
+ 222,
827
+ 225,
828
+ 184,
829
+ 112
830
+ ];
831
+ "accounts": [
832
+ {
833
+ "name": "payer";
834
+ "writable": true;
835
+ "signer": true;
836
+ },
837
+ {
838
+ "name": "market";
839
+ "pda": {
840
+ "seeds": [
841
+ {
842
+ "kind": "const";
843
+ "value": [
844
+ 109,
845
+ 97,
846
+ 114,
847
+ 107,
848
+ 101,
849
+ 116
850
+ ];
851
+ },
852
+ {
853
+ "kind": "account";
854
+ "path": "market.creator";
855
+ "account": "market";
856
+ },
857
+ {
858
+ "kind": "arg";
859
+ "path": "args.market_id";
860
+ }
861
+ ];
862
+ };
863
+ },
864
+ {
865
+ "name": "globalConfig";
866
+ "pda": {
867
+ "seeds": [
868
+ {
869
+ "kind": "const";
870
+ "value": [
871
+ 103,
872
+ 108,
873
+ 111,
874
+ 98,
875
+ 97,
876
+ 108,
877
+ 45,
878
+ 99,
879
+ 111,
880
+ 110,
881
+ 102,
882
+ 105,
883
+ 103
884
+ ];
885
+ }
886
+ ];
887
+ };
888
+ },
889
+ {
890
+ "name": "parimutuelState";
891
+ "writable": true;
892
+ "pda": {
893
+ "seeds": [
894
+ {
895
+ "kind": "const";
896
+ "value": [
897
+ 112,
898
+ 97,
899
+ 114,
900
+ 105
901
+ ];
902
+ },
903
+ {
904
+ "kind": "account";
905
+ "path": "market";
906
+ }
907
+ ];
908
+ };
909
+ },
910
+ {
911
+ "name": "systemProgram";
912
+ "address": "11111111111111111111111111111111";
913
+ }
914
+ ];
915
+ "args": [
916
+ {
917
+ "name": "args";
918
+ "type": {
919
+ "defined": {
920
+ "name": "initializeParimutuelStateArgs";
921
+ };
922
+ };
923
+ }
924
+ ];
925
+ },
926
+ {
927
+ "name": "mintCompleteSet";
928
+ "discriminator": [
929
+ 70,
930
+ 222,
931
+ 130,
932
+ 148,
933
+ 234,
934
+ 103,
935
+ 137,
936
+ 61
937
+ ];
938
+ "accounts": [
939
+ {
940
+ "name": "user";
941
+ "writable": true;
942
+ "signer": true;
943
+ },
944
+ {
945
+ "name": "market";
946
+ "writable": true;
947
+ "pda": {
948
+ "seeds": [
949
+ {
950
+ "kind": "const";
951
+ "value": [
952
+ 109,
953
+ 97,
954
+ 114,
955
+ 107,
956
+ 101,
957
+ 116
958
+ ];
959
+ },
960
+ {
961
+ "kind": "account";
962
+ "path": "market.creator";
963
+ "account": "market";
964
+ },
965
+ {
966
+ "kind": "arg";
967
+ "path": "args.market_id";
968
+ }
969
+ ];
970
+ };
971
+ },
972
+ {
973
+ "name": "vault";
974
+ "writable": true;
975
+ "pda": {
976
+ "seeds": [
977
+ {
978
+ "kind": "account";
979
+ "path": "market";
980
+ },
981
+ {
982
+ "kind": "const";
983
+ "value": [
984
+ 118,
985
+ 97,
986
+ 117,
987
+ 108,
988
+ 116
989
+ ];
990
+ }
991
+ ];
992
+ };
993
+ },
994
+ {
995
+ "name": "collateralMint";
996
+ },
997
+ {
998
+ "name": "userCollateralAccount";
999
+ "writable": true;
1000
+ },
1001
+ {
1002
+ "name": "creatorFeeAccount";
1003
+ "writable": true;
1004
+ },
1005
+ {
1006
+ "name": "globalConfig";
1007
+ "pda": {
1008
+ "seeds": [
1009
+ {
1010
+ "kind": "const";
1011
+ "value": [
1012
+ 103,
1013
+ 108,
1014
+ 111,
1015
+ 98,
1016
+ 97,
1017
+ 108,
1018
+ 45,
1019
+ 99,
1020
+ 111,
1021
+ 110,
1022
+ 102,
1023
+ 105,
1024
+ 103
1025
+ ];
1026
+ }
1027
+ ];
1028
+ };
1029
+ },
1030
+ {
1031
+ "name": "allowedMint";
1032
+ "pda": {
1033
+ "seeds": [
1034
+ {
1035
+ "kind": "const";
1036
+ "value": [
1037
+ 97,
1038
+ 108,
1039
+ 108,
1040
+ 111,
1041
+ 119,
1042
+ 101,
1043
+ 100,
1044
+ 45,
1045
+ 109,
1046
+ 105,
1047
+ 110,
1048
+ 116
1049
+ ];
1050
+ },
1051
+ {
1052
+ "kind": "account";
1053
+ "path": "collateralMint";
1054
+ }
1055
+ ];
1056
+ };
1057
+ },
1058
+ {
1059
+ "name": "platformTreasuryWallet";
1060
+ "docs": [
1061
+ "Wallet from global_config.platform_treasury (SOL + fee destination identity)."
1062
+ ];
1063
+ "writable": true;
1064
+ },
1065
+ {
1066
+ "name": "platformTreasuryAta";
1067
+ "docs": [
1068
+ "ATA for collateral mint; mint/owner validated in handler."
1069
+ ];
1070
+ "writable": true;
1071
+ },
1072
+ {
1073
+ "name": "collateralTokenProgram";
1074
+ },
1075
+ {
1076
+ "name": "tokenProgram";
1077
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1078
+ },
1079
+ {
1080
+ "name": "systemProgram";
1081
+ "address": "11111111111111111111111111111111";
1082
+ }
1083
+ ];
1084
+ "args": [
1085
+ {
1086
+ "name": "args";
1087
+ "type": {
1088
+ "defined": {
1089
+ "name": "mintCompleteSetArgs";
1090
+ };
1091
+ };
1092
+ }
1093
+ ];
1094
+ },
1095
+ {
1096
+ "name": "parimutuelClaim";
1097
+ "discriminator": [
1098
+ 14,
1099
+ 77,
1100
+ 244,
1101
+ 0,
1102
+ 58,
1103
+ 48,
1104
+ 251,
1105
+ 33
1106
+ ];
1107
+ "accounts": [
1108
+ {
1109
+ "name": "user";
1110
+ "writable": true;
1111
+ "signer": true;
1112
+ },
1113
+ {
1114
+ "name": "market";
1115
+ "writable": true;
1116
+ "pda": {
1117
+ "seeds": [
1118
+ {
1119
+ "kind": "const";
1120
+ "value": [
1121
+ 109,
1122
+ 97,
1123
+ 114,
1124
+ 107,
1125
+ 101,
1126
+ 116
1127
+ ];
1128
+ },
1129
+ {
1130
+ "kind": "account";
1131
+ "path": "market.creator";
1132
+ "account": "market";
1133
+ },
1134
+ {
1135
+ "kind": "arg";
1136
+ "path": "args.market_id";
1137
+ }
1138
+ ];
1139
+ };
1140
+ },
1141
+ {
1142
+ "name": "parimutuelState";
1143
+ "writable": true;
1144
+ "pda": {
1145
+ "seeds": [
1146
+ {
1147
+ "kind": "const";
1148
+ "value": [
1149
+ 112,
1150
+ 97,
1151
+ 114,
1152
+ 105
1153
+ ];
1154
+ },
1155
+ {
1156
+ "kind": "account";
1157
+ "path": "market";
1158
+ }
1159
+ ];
1160
+ };
1161
+ },
1162
+ {
1163
+ "name": "position";
1164
+ "writable": true;
1165
+ },
1166
+ {
1167
+ "name": "vault";
1168
+ "writable": true;
1169
+ "pda": {
1170
+ "seeds": [
1171
+ {
1172
+ "kind": "account";
1173
+ "path": "market";
1174
+ },
1175
+ {
1176
+ "kind": "const";
1177
+ "value": [
1178
+ 118,
1179
+ 97,
1180
+ 117,
1181
+ 108,
1182
+ 116
1183
+ ];
1184
+ }
1185
+ ];
1186
+ };
1187
+ },
1188
+ {
1189
+ "name": "collateralMint";
1190
+ },
1191
+ {
1192
+ "name": "userCollateralAccount";
1193
+ "writable": true;
1194
+ },
1195
+ {
1196
+ "name": "collateralTokenProgram";
1197
+ },
1198
+ {
1199
+ "name": "tokenProgram";
1200
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1201
+ }
1202
+ ];
1203
+ "args": [
1204
+ {
1205
+ "name": "args";
1206
+ "type": {
1207
+ "defined": {
1208
+ "name": "parimutuelClaimArgs";
1209
+ };
1210
+ };
1211
+ }
1212
+ ];
1213
+ },
1214
+ {
1215
+ "name": "parimutuelStake";
1216
+ "discriminator": [
1217
+ 163,
1218
+ 203,
1219
+ 81,
1220
+ 169,
1221
+ 132,
1222
+ 9,
1223
+ 117,
1224
+ 209
1225
+ ];
1226
+ "accounts": [
1227
+ {
1228
+ "name": "user";
1229
+ "writable": true;
1230
+ "signer": true;
1231
+ },
1232
+ {
1233
+ "name": "market";
1234
+ "writable": true;
1235
+ "pda": {
1236
+ "seeds": [
1237
+ {
1238
+ "kind": "const";
1239
+ "value": [
1240
+ 109,
1241
+ 97,
1242
+ 114,
1243
+ 107,
1244
+ 101,
1245
+ 116
1246
+ ];
1247
+ },
1248
+ {
1249
+ "kind": "account";
1250
+ "path": "market.creator";
1251
+ "account": "market";
1252
+ },
1253
+ {
1254
+ "kind": "arg";
1255
+ "path": "args.market_id";
1256
+ }
1257
+ ];
1258
+ };
1259
+ },
1260
+ {
1261
+ "name": "parimutuelState";
1262
+ "writable": true;
1263
+ "pda": {
1264
+ "seeds": [
1265
+ {
1266
+ "kind": "const";
1267
+ "value": [
1268
+ 112,
1269
+ 97,
1270
+ 114,
1271
+ 105
1272
+ ];
1273
+ },
1274
+ {
1275
+ "kind": "account";
1276
+ "path": "market";
1277
+ }
1278
+ ];
1279
+ };
1280
+ },
1281
+ {
1282
+ "name": "position";
1283
+ "writable": true;
1284
+ },
1285
+ {
1286
+ "name": "vault";
1287
+ "writable": true;
1288
+ "pda": {
1289
+ "seeds": [
1290
+ {
1291
+ "kind": "account";
1292
+ "path": "market";
1293
+ },
1294
+ {
1295
+ "kind": "const";
1296
+ "value": [
1297
+ 118,
1298
+ 97,
1299
+ 117,
1300
+ 108,
1301
+ 116
1302
+ ];
1303
+ }
1304
+ ];
1305
+ };
1306
+ },
1307
+ {
1308
+ "name": "collateralMint";
1309
+ },
1310
+ {
1311
+ "name": "userCollateralAccount";
1312
+ "writable": true;
1313
+ },
1314
+ {
1315
+ "name": "creatorFeeAccount";
1316
+ "writable": true;
1317
+ },
1318
+ {
1319
+ "name": "globalConfig";
1320
+ "pda": {
1321
+ "seeds": [
1322
+ {
1323
+ "kind": "const";
1324
+ "value": [
1325
+ 103,
1326
+ 108,
1327
+ 111,
1328
+ 98,
1329
+ 97,
1330
+ 108,
1331
+ 45,
1332
+ 99,
1333
+ 111,
1334
+ 110,
1335
+ 102,
1336
+ 105,
1337
+ 103
1338
+ ];
1339
+ }
1340
+ ];
1341
+ };
1342
+ },
1343
+ {
1344
+ "name": "platformTreasuryWallet";
1345
+ "writable": true;
1346
+ },
1347
+ {
1348
+ "name": "platformTreasuryAta";
1349
+ "writable": true;
1350
+ },
1351
+ {
1352
+ "name": "allowedMint";
1353
+ "pda": {
1354
+ "seeds": [
1355
+ {
1356
+ "kind": "const";
1357
+ "value": [
1358
+ 97,
1359
+ 108,
1360
+ 108,
1361
+ 111,
1362
+ 119,
1363
+ 101,
1364
+ 100,
1365
+ 45,
1366
+ 109,
1367
+ 105,
1368
+ 110,
1369
+ 116
1370
+ ];
1371
+ },
1372
+ {
1373
+ "kind": "account";
1374
+ "path": "collateralMint";
1375
+ }
1376
+ ];
1377
+ };
1378
+ },
1379
+ {
1380
+ "name": "collateralTokenProgram";
1381
+ },
1382
+ {
1383
+ "name": "tokenProgram";
1384
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1385
+ },
1386
+ {
1387
+ "name": "systemProgram";
1388
+ "address": "11111111111111111111111111111111";
1389
+ }
1390
+ ];
1391
+ "args": [
1392
+ {
1393
+ "name": "args";
1394
+ "type": {
1395
+ "defined": {
1396
+ "name": "parimutuelStakeArgs";
1397
+ };
1398
+ };
1399
+ }
1400
+ ];
1401
+ },
1402
+ {
1403
+ "name": "parimutuelWithdraw";
1404
+ "discriminator": [
1405
+ 189,
1406
+ 252,
1407
+ 247,
1408
+ 233,
1409
+ 149,
1410
+ 69,
1411
+ 178,
1412
+ 110
1413
+ ];
1414
+ "accounts": [
1415
+ {
1416
+ "name": "user";
1417
+ "writable": true;
1418
+ "signer": true;
1419
+ },
1420
+ {
1421
+ "name": "market";
1422
+ "writable": true;
1423
+ "pda": {
1424
+ "seeds": [
1425
+ {
1426
+ "kind": "const";
1427
+ "value": [
1428
+ 109,
1429
+ 97,
1430
+ 114,
1431
+ 107,
1432
+ 101,
1433
+ 116
1434
+ ];
1435
+ },
1436
+ {
1437
+ "kind": "account";
1438
+ "path": "market.creator";
1439
+ "account": "market";
1440
+ },
1441
+ {
1442
+ "kind": "arg";
1443
+ "path": "args.market_id";
1444
+ }
1445
+ ];
1446
+ };
1447
+ },
1448
+ {
1449
+ "name": "creatorFeeAccount";
1450
+ "writable": true;
1451
+ },
1452
+ {
1453
+ "name": "parimutuelState";
1454
+ "writable": true;
1455
+ "pda": {
1456
+ "seeds": [
1457
+ {
1458
+ "kind": "const";
1459
+ "value": [
1460
+ 112,
1461
+ 97,
1462
+ 114,
1463
+ 105
1464
+ ];
1465
+ },
1466
+ {
1467
+ "kind": "account";
1468
+ "path": "market";
1469
+ }
1470
+ ];
1471
+ };
1472
+ },
1473
+ {
1474
+ "name": "position";
1475
+ "writable": true;
1476
+ },
1477
+ {
1478
+ "name": "vault";
1479
+ "writable": true;
1480
+ "pda": {
1481
+ "seeds": [
1482
+ {
1483
+ "kind": "account";
1484
+ "path": "market";
1485
+ },
1486
+ {
1487
+ "kind": "const";
1488
+ "value": [
1489
+ 118,
1490
+ 97,
1491
+ 117,
1492
+ 108,
1493
+ 116
1494
+ ];
1495
+ }
1496
+ ];
1497
+ };
1498
+ },
1499
+ {
1500
+ "name": "collateralMint";
1501
+ },
1502
+ {
1503
+ "name": "userCollateralAccount";
1504
+ "writable": true;
1505
+ },
1506
+ {
1507
+ "name": "globalConfig";
1508
+ "pda": {
1509
+ "seeds": [
1510
+ {
1511
+ "kind": "const";
1512
+ "value": [
1513
+ 103,
1514
+ 108,
1515
+ 111,
1516
+ 98,
1517
+ 97,
1518
+ 108,
1519
+ 45,
1520
+ 99,
1521
+ 111,
1522
+ 110,
1523
+ 102,
1524
+ 105,
1525
+ 103
1526
+ ];
1527
+ }
1528
+ ];
1529
+ };
1530
+ },
1531
+ {
1532
+ "name": "platformTreasuryWallet";
1533
+ "writable": true;
1534
+ },
1535
+ {
1536
+ "name": "platformTreasuryAta";
1537
+ "writable": true;
1538
+ },
1539
+ {
1540
+ "name": "collateralTokenProgram";
1541
+ },
1542
+ {
1543
+ "name": "tokenProgram";
1544
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1545
+ },
1546
+ {
1547
+ "name": "systemProgram";
1548
+ "address": "11111111111111111111111111111111";
1549
+ }
1550
+ ];
1551
+ "args": [
1552
+ {
1553
+ "name": "args";
1554
+ "type": {
1555
+ "defined": {
1556
+ "name": "parimutuelWithdrawArgs";
1557
+ };
1558
+ };
1559
+ }
1560
+ ];
1561
+ },
1562
+ {
1563
+ "name": "redeemCompleteSet";
1564
+ "discriminator": [
1565
+ 73,
1566
+ 220,
1567
+ 176,
1568
+ 168,
1569
+ 65,
1570
+ 16,
1571
+ 70,
1572
+ 239
1573
+ ];
1574
+ "accounts": [
1575
+ {
1576
+ "name": "user";
1577
+ "writable": true;
1578
+ "signer": true;
1579
+ },
1580
+ {
1581
+ "name": "market";
1582
+ "writable": true;
1583
+ "pda": {
1584
+ "seeds": [
1585
+ {
1586
+ "kind": "const";
1587
+ "value": [
1588
+ 109,
1589
+ 97,
1590
+ 114,
1591
+ 107,
1592
+ 101,
1593
+ 116
1594
+ ];
1595
+ },
1596
+ {
1597
+ "kind": "account";
1598
+ "path": "market.creator";
1599
+ "account": "market";
1600
+ },
1601
+ {
1602
+ "kind": "arg";
1603
+ "path": "args.market_id";
1604
+ }
1605
+ ];
1606
+ };
1607
+ },
1608
+ {
1609
+ "name": "vault";
1610
+ "writable": true;
1611
+ "pda": {
1612
+ "seeds": [
1613
+ {
1614
+ "kind": "account";
1615
+ "path": "market";
1616
+ },
1617
+ {
1618
+ "kind": "const";
1619
+ "value": [
1620
+ 118,
1621
+ 97,
1622
+ 117,
1623
+ 108,
1624
+ 116
1625
+ ];
1626
+ }
1627
+ ];
1628
+ };
1629
+ },
1630
+ {
1631
+ "name": "collateralMint";
1632
+ },
1633
+ {
1634
+ "name": "userCollateralAccount";
1635
+ "writable": true;
1636
+ },
1637
+ {
1638
+ "name": "outcomeMint0";
1639
+ "writable": true;
1640
+ },
1641
+ {
1642
+ "name": "outcomeMint1";
1643
+ "writable": true;
1644
+ },
1645
+ {
1646
+ "name": "outcomeMint2";
1647
+ "writable": true;
1648
+ },
1649
+ {
1650
+ "name": "outcomeMint3";
1651
+ "writable": true;
1652
+ },
1653
+ {
1654
+ "name": "outcomeMint4";
1655
+ "writable": true;
1656
+ },
1657
+ {
1658
+ "name": "outcomeMint5";
1659
+ "writable": true;
1660
+ },
1661
+ {
1662
+ "name": "outcomeMint6";
1663
+ "writable": true;
1664
+ },
1665
+ {
1666
+ "name": "outcomeMint7";
1667
+ "writable": true;
1668
+ },
1669
+ {
1670
+ "name": "userOutcome0";
1671
+ "writable": true;
1672
+ },
1673
+ {
1674
+ "name": "userOutcome1";
1675
+ "writable": true;
1676
+ },
1677
+ {
1678
+ "name": "userOutcome2";
1679
+ "writable": true;
1680
+ },
1681
+ {
1682
+ "name": "userOutcome3";
1683
+ "writable": true;
1684
+ },
1685
+ {
1686
+ "name": "userOutcome4";
1687
+ "writable": true;
1688
+ },
1689
+ {
1690
+ "name": "userOutcome5";
1691
+ "writable": true;
1692
+ },
1693
+ {
1694
+ "name": "userOutcome6";
1695
+ "writable": true;
1696
+ },
1697
+ {
1698
+ "name": "userOutcome7";
1699
+ "writable": true;
1700
+ },
1701
+ {
1702
+ "name": "collateralTokenProgram";
1703
+ },
1704
+ {
1705
+ "name": "tokenProgram";
1706
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1707
+ }
1708
+ ];
1709
+ "args": [
1710
+ {
1711
+ "name": "args";
1712
+ "type": {
1713
+ "defined": {
1714
+ "name": "redeemCompleteSetArgs";
1715
+ };
1716
+ };
1717
+ }
1718
+ ];
1719
+ },
1720
+ {
1721
+ "name": "redeemWinning";
1722
+ "discriminator": [
1723
+ 191,
1724
+ 44,
1725
+ 57,
1726
+ 7,
1727
+ 31,
1728
+ 46,
1729
+ 190,
1730
+ 162
1731
+ ];
1732
+ "accounts": [
1733
+ {
1734
+ "name": "user";
1735
+ "writable": true;
1736
+ "signer": true;
1737
+ },
1738
+ {
1739
+ "name": "market";
1740
+ "writable": true;
1741
+ "pda": {
1742
+ "seeds": [
1743
+ {
1744
+ "kind": "const";
1745
+ "value": [
1746
+ 109,
1747
+ 97,
1748
+ 114,
1749
+ 107,
1750
+ 101,
1751
+ 116
1752
+ ];
1753
+ },
1754
+ {
1755
+ "kind": "account";
1756
+ "path": "market.creator";
1757
+ "account": "market";
1758
+ },
1759
+ {
1760
+ "kind": "arg";
1761
+ "path": "args.market_id";
1762
+ }
1763
+ ];
1764
+ };
1765
+ },
1766
+ {
1767
+ "name": "vault";
1768
+ "writable": true;
1769
+ "pda": {
1770
+ "seeds": [
1771
+ {
1772
+ "kind": "account";
1773
+ "path": "market";
1774
+ },
1775
+ {
1776
+ "kind": "const";
1777
+ "value": [
1778
+ 118,
1779
+ 97,
1780
+ 117,
1781
+ 108,
1782
+ 116
1783
+ ];
1784
+ }
1785
+ ];
1786
+ };
1787
+ },
1788
+ {
1789
+ "name": "collateralMint";
1790
+ },
1791
+ {
1792
+ "name": "userCollateralAccount";
1793
+ "writable": true;
1794
+ },
1795
+ {
1796
+ "name": "outcomeMint0";
1797
+ "writable": true;
1798
+ },
1799
+ {
1800
+ "name": "outcomeMint1";
1801
+ "writable": true;
1802
+ },
1803
+ {
1804
+ "name": "outcomeMint2";
1805
+ "writable": true;
1806
+ },
1807
+ {
1808
+ "name": "outcomeMint3";
1809
+ "writable": true;
1810
+ },
1811
+ {
1812
+ "name": "outcomeMint4";
1813
+ "writable": true;
1814
+ },
1815
+ {
1816
+ "name": "outcomeMint5";
1817
+ "writable": true;
1818
+ },
1819
+ {
1820
+ "name": "outcomeMint6";
1821
+ "writable": true;
1822
+ },
1823
+ {
1824
+ "name": "outcomeMint7";
1825
+ "writable": true;
1826
+ },
1827
+ {
1828
+ "name": "userWinningOutcome";
1829
+ "writable": true;
1830
+ },
1831
+ {
1832
+ "name": "globalConfig";
1833
+ "pda": {
1834
+ "seeds": [
1835
+ {
1836
+ "kind": "const";
1837
+ "value": [
1838
+ 103,
1839
+ 108,
1840
+ 111,
1841
+ 98,
1842
+ 97,
1843
+ 108,
1844
+ 45,
1845
+ 99,
1846
+ 111,
1847
+ 110,
1848
+ 102,
1849
+ 105,
1850
+ 103
1851
+ ];
1852
+ }
1853
+ ];
1854
+ };
1855
+ },
1856
+ {
1857
+ "name": "platformTreasuryWallet";
1858
+ "docs": [
1859
+ "Wallet address that receives the flat SOL fee."
1860
+ ];
1861
+ "writable": true;
1862
+ },
1863
+ {
1864
+ "name": "collateralTokenProgram";
1865
+ },
1866
+ {
1867
+ "name": "tokenProgram";
1868
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1869
+ },
1870
+ {
1871
+ "name": "systemProgram";
1872
+ "address": "11111111111111111111111111111111";
1873
+ }
1874
+ ];
1875
+ "args": [
1876
+ {
1877
+ "name": "args";
1878
+ "type": {
1879
+ "defined": {
1880
+ "name": "redeemWinningArgs";
1881
+ };
1882
+ };
1883
+ }
1884
+ ];
1885
+ },
1886
+ {
1887
+ "name": "removeAllowedCollateralMint";
1888
+ "discriminator": [
1889
+ 74,
1890
+ 156,
1891
+ 218,
1892
+ 211,
1893
+ 102,
1894
+ 182,
1895
+ 68,
1896
+ 197
1897
+ ];
1898
+ "accounts": [
1899
+ {
1900
+ "name": "allowedMint";
1901
+ "writable": true;
1902
+ "pda": {
1903
+ "seeds": [
1904
+ {
1905
+ "kind": "const";
1906
+ "value": [
1907
+ 97,
1908
+ 108,
1909
+ 108,
1910
+ 111,
1911
+ 119,
1912
+ 101,
1913
+ 100,
1914
+ 45,
1915
+ 109,
1916
+ 105,
1917
+ 110,
1918
+ 116
1919
+ ];
1920
+ },
1921
+ {
1922
+ "kind": "account";
1923
+ "path": "mint";
1924
+ }
1925
+ ];
1926
+ };
1927
+ },
1928
+ {
1929
+ "name": "globalConfig";
1930
+ "pda": {
1931
+ "seeds": [
1932
+ {
1933
+ "kind": "const";
1934
+ "value": [
1935
+ 103,
1936
+ 108,
1937
+ 111,
1938
+ 98,
1939
+ 97,
1940
+ 108,
1941
+ 45,
1942
+ 99,
1943
+ 111,
1944
+ 110,
1945
+ 102,
1946
+ 105,
1947
+ 103
1948
+ ];
1949
+ }
1950
+ ];
1951
+ };
1952
+ },
1953
+ {
1954
+ "name": "authority";
1955
+ "writable": true;
1956
+ "signer": true;
1957
+ },
1958
+ {
1959
+ "name": "mint";
1960
+ }
1961
+ ];
1962
+ "args": [];
1963
+ },
1964
+ {
1965
+ "name": "revokeResolutionVote";
1966
+ "discriminator": [
1967
+ 128,
1968
+ 185,
1969
+ 253,
1970
+ 225,
1971
+ 238,
1972
+ 21,
1973
+ 110,
1974
+ 20
1975
+ ];
1976
+ "accounts": [
1977
+ {
1978
+ "name": "resolverSigner";
1979
+ "writable": true;
1980
+ "signer": true;
1981
+ },
1982
+ {
1983
+ "name": "market";
1984
+ "writable": true;
1985
+ "pda": {
1986
+ "seeds": [
1987
+ {
1988
+ "kind": "const";
1989
+ "value": [
1990
+ 109,
1991
+ 97,
1992
+ 114,
1993
+ 107,
1994
+ 101,
1995
+ 116
1996
+ ];
1997
+ },
1998
+ {
1999
+ "kind": "account";
2000
+ "path": "market.creator";
2001
+ "account": "market";
2002
+ },
2003
+ {
2004
+ "kind": "arg";
2005
+ "path": "args.market_id";
2006
+ }
2007
+ ];
2008
+ };
2009
+ },
2010
+ {
2011
+ "name": "resolver";
2012
+ },
2013
+ {
2014
+ "name": "resolutionVote";
2015
+ "writable": true;
2016
+ },
2017
+ {
2018
+ "name": "outcomeTally";
2019
+ "writable": true;
2020
+ }
2021
+ ];
2022
+ "args": [
2023
+ {
2024
+ "name": "args";
2025
+ "type": {
2026
+ "defined": {
2027
+ "name": "revokeResolutionVoteArgs";
2028
+ };
2029
+ };
2030
+ }
2031
+ ];
2032
+ },
2033
+ {
2034
+ "name": "updateConfig";
2035
+ "discriminator": [
2036
+ 29,
2037
+ 158,
2038
+ 252,
2039
+ 191,
2040
+ 10,
2041
+ 83,
2042
+ 219,
2043
+ 99
2044
+ ];
2045
+ "accounts": [
2046
+ {
2047
+ "name": "globalConfig";
2048
+ "writable": true;
2049
+ "pda": {
2050
+ "seeds": [
2051
+ {
2052
+ "kind": "const";
2053
+ "value": [
2054
+ 103,
2055
+ 108,
2056
+ 111,
2057
+ 98,
2058
+ 97,
2059
+ 108,
2060
+ 45,
2061
+ 99,
2062
+ 111,
2063
+ 110,
2064
+ 102,
2065
+ 105,
2066
+ 103
2067
+ ];
2068
+ }
2069
+ ];
2070
+ };
2071
+ },
2072
+ {
2073
+ "name": "authority";
2074
+ "docs": [
2075
+ "Current authority (primary or secondary) — must sign."
2076
+ ];
2077
+ "signer": true;
2078
+ },
2079
+ {
2080
+ "name": "newAuthority";
2081
+ "docs": [
2082
+ "The new primary authority after this update.",
2083
+ "Does NOT need to sign — pass the same key as `authority` to keep it unchanged."
2084
+ ];
2085
+ }
2086
+ ];
2087
+ "args": [
2088
+ {
2089
+ "name": "secondaryAuthority";
2090
+ "type": "pubkey";
2091
+ },
2092
+ {
2093
+ "name": "depositPlatformFeeBps";
2094
+ "type": "u16";
2095
+ },
2096
+ {
2097
+ "name": "platformTreasury";
2098
+ "type": "pubkey";
2099
+ },
2100
+ {
2101
+ "name": "platformFeeLamports";
2102
+ "type": "u64";
2103
+ },
2104
+ {
2105
+ "name": "parimutuelPenaltyProtocolShareBps";
2106
+ "type": "u16";
2107
+ },
2108
+ {
2109
+ "name": "parimutuelWithdrawPlatformFeeBps";
2110
+ "type": "u16";
2111
+ }
2112
+ ];
2113
+ },
2114
+ {
2115
+ "name": "updateMarketCategory";
2116
+ "discriminator": [
2117
+ 113,
2118
+ 103,
2119
+ 2,
2120
+ 84,
2121
+ 209,
2122
+ 145,
2123
+ 109,
2124
+ 113
2125
+ ];
2126
+ "accounts": [
2127
+ {
2128
+ "name": "globalConfig";
2129
+ "pda": {
2130
+ "seeds": [
2131
+ {
2132
+ "kind": "const";
2133
+ "value": [
2134
+ 103,
2135
+ 108,
2136
+ 111,
2137
+ 98,
2138
+ 97,
2139
+ 108,
2140
+ 45,
2141
+ 99,
2142
+ 111,
2143
+ 110,
2144
+ 102,
2145
+ 105,
2146
+ 103
2147
+ ];
2148
+ }
2149
+ ];
2150
+ };
2151
+ },
2152
+ {
2153
+ "name": "marketCategory";
2154
+ "writable": true;
2155
+ "pda": {
2156
+ "seeds": [
2157
+ {
2158
+ "kind": "const";
2159
+ "value": [
2160
+ 109,
2161
+ 97,
2162
+ 114,
2163
+ 107,
2164
+ 101,
2165
+ 116,
2166
+ 45,
2167
+ 99,
2168
+ 97,
2169
+ 116,
2170
+ 101,
2171
+ 103,
2172
+ 111,
2173
+ 114,
2174
+ 121
2175
+ ];
2176
+ },
2177
+ {
2178
+ "kind": "account";
2179
+ "path": "market_category.id";
2180
+ "account": "marketCategory";
2181
+ }
2182
+ ];
2183
+ };
2184
+ },
2185
+ {
2186
+ "name": "authority";
2187
+ "signer": true;
2188
+ }
2189
+ ];
2190
+ "args": [
2191
+ {
2192
+ "name": "name";
2193
+ "type": "string";
2194
+ },
2195
+ {
2196
+ "name": "active";
2197
+ "type": "bool";
2198
+ }
2199
+ ];
2200
+ },
2201
+ {
2202
+ "name": "upsertUserProfile";
2203
+ "discriminator": [
2204
+ 28,
2205
+ 23,
2206
+ 233,
2207
+ 225,
2208
+ 9,
2209
+ 108,
2210
+ 138,
2211
+ 54
2212
+ ];
2213
+ "accounts": [
2214
+ {
2215
+ "name": "userProfile";
2216
+ "writable": true;
2217
+ "pda": {
2218
+ "seeds": [
2219
+ {
2220
+ "kind": "const";
2221
+ "value": [
2222
+ 117,
2223
+ 115,
2224
+ 101,
2225
+ 114,
2226
+ 45,
2227
+ 112,
2228
+ 114,
2229
+ 111,
2230
+ 102,
2231
+ 105,
2232
+ 108,
2233
+ 101
2234
+ ];
2235
+ },
2236
+ {
2237
+ "kind": "account";
2238
+ "path": "wallet";
2239
+ }
2240
+ ];
2241
+ };
2242
+ },
2243
+ {
2244
+ "name": "wallet";
2245
+ "docs": [
2246
+ "The wallet owner — pays rent on first creation, signs all updates."
2247
+ ];
2248
+ "writable": true;
2249
+ "signer": true;
2250
+ },
2251
+ {
2252
+ "name": "systemProgram";
2253
+ "address": "11111111111111111111111111111111";
2254
+ }
2255
+ ];
2256
+ "args": [
2257
+ {
2258
+ "name": "displayName";
2259
+ "type": "string";
2260
+ },
2261
+ {
2262
+ "name": "url";
2263
+ "type": "string";
2264
+ }
2265
+ ];
2266
+ },
2267
+ {
2268
+ "name": "verifyUserProfile";
2269
+ "discriminator": [
2270
+ 187,
2271
+ 26,
2272
+ 249,
2273
+ 161,
2274
+ 54,
2275
+ 75,
2276
+ 107,
2277
+ 22
2278
+ ];
2279
+ "accounts": [
2280
+ {
2281
+ "name": "userProfile";
2282
+ "docs": [
2283
+ "The profile to verify. Must already exist — user must have called",
2284
+ "`upsert_user_profile` first. The `target_wallet` key is embedded in the",
2285
+ "PDA seeds so the authority must pass the correct account."
2286
+ ];
2287
+ "writable": true;
2288
+ "pda": {
2289
+ "seeds": [
2290
+ {
2291
+ "kind": "const";
2292
+ "value": [
2293
+ 117,
2294
+ 115,
2295
+ 101,
2296
+ 114,
2297
+ 45,
2298
+ 112,
2299
+ 114,
2300
+ 111,
2301
+ 102,
2302
+ 105,
2303
+ 108,
2304
+ 101
2305
+ ];
2306
+ },
2307
+ {
2308
+ "kind": "account";
2309
+ "path": "targetWallet";
2310
+ }
2311
+ ];
2312
+ };
2313
+ },
2314
+ {
2315
+ "name": "targetWallet";
2316
+ "docs": [
2317
+ "The wallet whose profile is being verified (not required to sign)."
2318
+ ];
2319
+ },
2320
+ {
2321
+ "name": "authority";
2322
+ "docs": [
2323
+ "Platform primary or secondary authority."
2324
+ ];
2325
+ "signer": true;
2326
+ },
2327
+ {
2328
+ "name": "globalConfig";
2329
+ "pda": {
2330
+ "seeds": [
2331
+ {
2332
+ "kind": "const";
2333
+ "value": [
2334
+ 103,
2335
+ 108,
2336
+ 111,
2337
+ 98,
2338
+ 97,
2339
+ 108,
2340
+ 45,
2341
+ 99,
2342
+ 111,
2343
+ 110,
2344
+ 102,
2345
+ 105,
2346
+ 103
2347
+ ];
2348
+ }
2349
+ ];
2350
+ };
2351
+ }
2352
+ ];
2353
+ "args": [
2354
+ {
2355
+ "name": "verified";
2356
+ "type": "bool";
2357
+ }
2358
+ ];
2359
+ },
2360
+ {
2361
+ "name": "voidMarket";
2362
+ "discriminator": [
2363
+ 243,
2364
+ 175,
2365
+ 46,
2366
+ 124,
2367
+ 95,
2368
+ 101,
2369
+ 39,
2370
+ 69
2371
+ ];
2372
+ "accounts": [
2373
+ {
2374
+ "name": "signer";
2375
+ "signer": true;
2376
+ },
2377
+ {
2378
+ "name": "globalConfig";
2379
+ "pda": {
2380
+ "seeds": [
2381
+ {
2382
+ "kind": "const";
2383
+ "value": [
2384
+ 103,
2385
+ 108,
2386
+ 111,
2387
+ 98,
2388
+ 97,
2389
+ 108,
2390
+ 45,
2391
+ 99,
2392
+ 111,
2393
+ 110,
2394
+ 102,
2395
+ 105,
2396
+ 103
2397
+ ];
2398
+ }
2399
+ ];
2400
+ };
2401
+ },
2402
+ {
2403
+ "name": "market";
2404
+ "writable": true;
2405
+ "pda": {
2406
+ "seeds": [
2407
+ {
2408
+ "kind": "const";
2409
+ "value": [
2410
+ 109,
2411
+ 97,
2412
+ 114,
2413
+ 107,
2414
+ 101,
2415
+ 116
2416
+ ];
2417
+ },
2418
+ {
2419
+ "kind": "account";
2420
+ "path": "market.creator";
2421
+ "account": "market";
2422
+ },
2423
+ {
2424
+ "kind": "arg";
2425
+ "path": "args.market_id";
2426
+ }
2427
+ ];
2428
+ };
2429
+ }
2430
+ ];
2431
+ "args": [
2432
+ {
2433
+ "name": "args";
2434
+ "type": {
2435
+ "defined": {
2436
+ "name": "voidMarketArgs";
2437
+ };
2438
+ };
2439
+ }
2440
+ ];
2441
+ },
2442
+ {
2443
+ "name": "voteResolution";
2444
+ "discriminator": [
2445
+ 137,
2446
+ 137,
2447
+ 237,
2448
+ 83,
2449
+ 15,
2450
+ 30,
2451
+ 101,
2452
+ 248
2453
+ ];
2454
+ "accounts": [
2455
+ {
2456
+ "name": "resolverSigner";
2457
+ "writable": true;
2458
+ "signer": true;
2459
+ },
2460
+ {
2461
+ "name": "market";
2462
+ "writable": true;
2463
+ "pda": {
2464
+ "seeds": [
2465
+ {
2466
+ "kind": "const";
2467
+ "value": [
2468
+ 109,
2469
+ 97,
2470
+ 114,
2471
+ 107,
2472
+ 101,
2473
+ 116
2474
+ ];
2475
+ },
2476
+ {
2477
+ "kind": "account";
2478
+ "path": "market.creator";
2479
+ "account": "market";
2480
+ },
2481
+ {
2482
+ "kind": "arg";
2483
+ "path": "args.market_id";
2484
+ }
2485
+ ];
2486
+ };
2487
+ },
2488
+ {
2489
+ "name": "resolver";
2490
+ },
2491
+ {
2492
+ "name": "resolutionVote";
2493
+ "writable": true;
2494
+ },
2495
+ {
2496
+ "name": "outcomeTally";
2497
+ "writable": true;
2498
+ },
2499
+ {
2500
+ "name": "systemProgram";
2501
+ "address": "11111111111111111111111111111111";
2502
+ }
2503
+ ];
2504
+ "args": [
2505
+ {
2506
+ "name": "args";
2507
+ "type": {
2508
+ "defined": {
2509
+ "name": "voteResolutionArgs";
2510
+ };
2511
+ };
2512
+ }
2513
+ ];
2514
+ }
2515
+ ];
2516
+ "accounts": [
2517
+ {
2518
+ "name": "allowedMint";
2519
+ "discriminator": [
2520
+ 173,
2521
+ 229,
2522
+ 179,
2523
+ 46,
2524
+ 121,
2525
+ 164,
2526
+ 247,
2527
+ 6
2528
+ ];
2529
+ },
2530
+ {
2531
+ "name": "globalConfig";
2532
+ "discriminator": [
2533
+ 149,
2534
+ 8,
2535
+ 156,
2536
+ 202,
2537
+ 160,
2538
+ 252,
2539
+ 176,
2540
+ 217
2541
+ ];
2542
+ },
2543
+ {
2544
+ "name": "market";
2545
+ "discriminator": [
2546
+ 219,
2547
+ 190,
2548
+ 213,
2549
+ 55,
2550
+ 0,
2551
+ 227,
2552
+ 198,
2553
+ 154
2554
+ ];
2555
+ },
2556
+ {
2557
+ "name": "marketCategory";
2558
+ "discriminator": [
2559
+ 167,
2560
+ 48,
2561
+ 213,
2562
+ 165,
2563
+ 89,
2564
+ 201,
2565
+ 35,
2566
+ 73
2567
+ ];
2568
+ },
2569
+ {
2570
+ "name": "outcomeTally";
2571
+ "discriminator": [
2572
+ 31,
2573
+ 29,
2574
+ 100,
2575
+ 65,
2576
+ 205,
2577
+ 92,
2578
+ 54,
2579
+ 136
2580
+ ];
2581
+ },
2582
+ {
2583
+ "name": "parimutuelPosition";
2584
+ "discriminator": [
2585
+ 10,
2586
+ 84,
2587
+ 157,
2588
+ 190,
2589
+ 166,
2590
+ 250,
2591
+ 7,
2592
+ 202
2593
+ ];
2594
+ },
2595
+ {
2596
+ "name": "parimutuelState";
2597
+ "discriminator": [
2598
+ 110,
2599
+ 252,
2600
+ 55,
2601
+ 224,
2602
+ 143,
2603
+ 64,
2604
+ 218,
2605
+ 185
2606
+ ];
2607
+ },
2608
+ {
2609
+ "name": "resolutionVote";
2610
+ "discriminator": [
2611
+ 162,
2612
+ 225,
2613
+ 212,
2614
+ 237,
2615
+ 209,
2616
+ 107,
2617
+ 108,
2618
+ 6
2619
+ ];
2620
+ },
2621
+ {
2622
+ "name": "resolver";
2623
+ "discriminator": [
2624
+ 108,
2625
+ 125,
2626
+ 211,
2627
+ 206,
2628
+ 52,
2629
+ 124,
2630
+ 132,
2631
+ 79
2632
+ ];
2633
+ },
2634
+ {
2635
+ "name": "userProfile";
2636
+ "discriminator": [
2637
+ 32,
2638
+ 37,
2639
+ 119,
2640
+ 205,
2641
+ 179,
2642
+ 180,
2643
+ 13,
2644
+ 194
2645
+ ];
2646
+ }
2647
+ ];
2648
+ "errors": [
2649
+ {
2650
+ "code": 6000;
2651
+ "name": "configUnauthorized";
2652
+ "msg": "Global config can only be updated by authority";
2653
+ },
2654
+ {
2655
+ "code": 6001;
2656
+ "name": "mintNotAllowed";
2657
+ "msg": "Collateral mint is not on the allowlist";
2658
+ },
2659
+ {
2660
+ "code": 6002;
2661
+ "name": "marketClosed";
2662
+ "msg": "Market is closed (early or past close_at)";
2663
+ },
2664
+ {
2665
+ "code": 6003;
2666
+ "name": "marketNotClosed";
2667
+ "msg": "Market is not closed yet";
2668
+ },
2669
+ {
2670
+ "code": 6004;
2671
+ "name": "marketAlreadyResolved";
2672
+ "msg": "Market is already resolved";
2673
+ },
2674
+ {
2675
+ "code": 6005;
2676
+ "name": "marketVoided";
2677
+ "msg": "Market is voided";
2678
+ },
2679
+ {
2680
+ "code": 6006;
2681
+ "name": "marketNotVoided";
2682
+ "msg": "Market is not voided";
2683
+ },
2684
+ {
2685
+ "code": 6007;
2686
+ "name": "marketNotResolved";
2687
+ "msg": "Market is not resolved";
2688
+ },
2689
+ {
2690
+ "code": 6008;
2691
+ "name": "cannotVoidResolvedMarket";
2692
+ "msg": "Cannot void an already resolved market";
2693
+ },
2694
+ {
2695
+ "code": 6009;
2696
+ "name": "invalidOutcomeIndex";
2697
+ "msg": "Invalid outcome index";
2698
+ },
2699
+ {
2700
+ "code": 6010;
2701
+ "name": "notResolver";
2702
+ "msg": "Signer is not a resolver for this market";
2703
+ },
2704
+ {
2705
+ "code": 6011;
2706
+ "name": "onlyCreatorOrGlobalAuthority";
2707
+ "msg": "Only market creator or global config authority can perform this action";
2708
+ },
2709
+ {
2710
+ "code": 6012;
2711
+ "name": "invalidFeeBps";
2712
+ "msg": "Platform fee + creator fee must not exceed 10000 bps";
2713
+ },
2714
+ {
2715
+ "code": 6013;
2716
+ "name": "closeAtMustBeInFuture";
2717
+ "msg": "Close time must be in the future";
2718
+ },
2719
+ {
2720
+ "code": 6014;
2721
+ "name": "zeroMintAmount";
2722
+ "msg": "Mint amount must be greater than zero";
2723
+ },
2724
+ {
2725
+ "code": 6015;
2726
+ "name": "invalidResolutionThreshold";
2727
+ "msg": "Invalid resolution threshold (M must be <= number of resolvers)";
2728
+ },
2729
+ {
2730
+ "code": 6016;
2731
+ "name": "invalidTreasuryAta";
2732
+ "msg": "Platform treasury token account mint or owner does not match global config";
2733
+ },
2734
+ {
2735
+ "code": 6017;
2736
+ "name": "alreadyVoted";
2737
+ "msg": "Resolver has already voted; call revoke_resolution_vote before voting again";
2738
+ },
2739
+ {
2740
+ "code": 6018;
2741
+ "name": "notVoted";
2742
+ "msg": "No active vote to revoke";
2743
+ },
2744
+ {
2745
+ "code": 6019;
2746
+ "name": "outcomeTallyOverflow";
2747
+ "msg": "Outcome tally counter would overflow";
2748
+ },
2749
+ {
2750
+ "code": 6020;
2751
+ "name": "outcomeTallyEmpty";
2752
+ "msg": "Outcome tally counter is zero";
2753
+ },
2754
+ {
2755
+ "code": 6021;
2756
+ "name": "invalidMintCompleteSetRemainingAccounts";
2757
+ "msg": "mint_complete_set: remaining accounts must be [outcome_mint_i, user_ata_i] pairs; len = 2 * outcome_count";
2758
+ },
2759
+ {
2760
+ "code": 6022;
2761
+ "name": "displayNameTooLong";
2762
+ "msg": "Display name exceeds 50 bytes";
2763
+ },
2764
+ {
2765
+ "code": 6023;
2766
+ "name": "urlTooLong";
2767
+ "msg": "URL exceeds 100 bytes";
2768
+ },
2769
+ {
2770
+ "code": 6024;
2771
+ "name": "emptyTitle";
2772
+ "msg": "Market title cannot be empty";
2773
+ },
2774
+ {
2775
+ "code": 6025;
2776
+ "name": "titleTooLong";
2777
+ "msg": "Market title exceeds 128 bytes";
2778
+ },
2779
+ {
2780
+ "code": 6026;
2781
+ "name": "marketCategoryInactive";
2782
+ "msg": "Market category is inactive";
2783
+ },
2784
+ {
2785
+ "code": 6027;
2786
+ "name": "marketCategoryNameEmpty";
2787
+ "msg": "Market category name cannot be empty";
2788
+ },
2789
+ {
2790
+ "code": 6028;
2791
+ "name": "marketCategoryNameTooLong";
2792
+ "msg": "Market category name exceeds max length";
2793
+ },
2794
+ {
2795
+ "code": 6029;
2796
+ "name": "invalidCategoryId";
2797
+ "msg": "category_id must match global_config.next_category_id";
2798
+ },
2799
+ {
2800
+ "code": 6030;
2801
+ "name": "wrongMarketType";
2802
+ "msg": "This instruction requires a different market type";
2803
+ },
2804
+ {
2805
+ "code": 6031;
2806
+ "name": "invalidParimutuelPenalty";
2807
+ "msg": "Parimutuel penalty or split parameters are invalid";
2808
+ },
2809
+ {
2810
+ "code": 6032;
2811
+ "name": "parimutuelNotInitialized";
2812
+ "msg": "Parimutuel state not initialized for this market";
2813
+ },
2814
+ {
2815
+ "code": 6033;
2816
+ "name": "parimutuelInsufficientStake";
2817
+ "msg": "Stake or withdrawal amount exceeds balance";
2818
+ },
2819
+ {
2820
+ "code": 6034;
2821
+ "name": "parimutuelEmptyWinningPool";
2822
+ "msg": "Winning outcome pool is empty — cannot claim";
2823
+ },
2824
+ {
2825
+ "code": 6035;
2826
+ "name": "parimutuelAlreadyClaimed";
2827
+ "msg": "Position already claimed";
2828
+ },
2829
+ {
2830
+ "code": 6036;
2831
+ "name": "onlyMarketCreator";
2832
+ "msg": "Only the market creator may initialize resolver accounts";
2833
+ }
2834
+ ];
2835
+ "types": [
2836
+ {
2837
+ "name": "allowedMint";
2838
+ "docs": [
2839
+ "Marker account: existence means this mint is allowed as collateral."
2840
+ ];
2841
+ "type": {
2842
+ "kind": "struct";
2843
+ "fields": [
2844
+ {
2845
+ "name": "mint";
2846
+ "type": "pubkey";
2847
+ },
2848
+ {
2849
+ "name": "padding";
2850
+ "type": {
2851
+ "array": [
2852
+ "u8",
2853
+ 64
2854
+ ];
2855
+ };
2856
+ }
2857
+ ];
2858
+ };
2859
+ },
2860
+ {
2861
+ "name": "closeMarketEarlyArgs";
2862
+ "docs": [
2863
+ "Close the market early. Allowed by market creator or global config primary/secondary authority."
2864
+ ];
2865
+ "type": {
2866
+ "kind": "struct";
2867
+ "fields": [
2868
+ {
2869
+ "name": "marketId";
2870
+ "type": "u64";
2871
+ }
2872
+ ];
2873
+ };
2874
+ },
2875
+ {
2876
+ "name": "createMarketArgs";
2877
+ "type": {
2878
+ "kind": "struct";
2879
+ "fields": [
2880
+ {
2881
+ "name": "marketId";
2882
+ "type": "u64";
2883
+ },
2884
+ {
2885
+ "name": "outcomeCount";
2886
+ "type": "u8";
2887
+ },
2888
+ {
2889
+ "name": "resolutionThreshold";
2890
+ "type": "u8";
2891
+ },
2892
+ {
2893
+ "name": "closeAt";
2894
+ "type": "i64";
2895
+ },
2896
+ {
2897
+ "name": "creatorFeeBps";
2898
+ "type": "u16";
2899
+ },
2900
+ {
2901
+ "name": "depositPlatformFeeBps";
2902
+ "docs": [
2903
+ "0 = use global default — platform fee on **mint complete set** (deposit collateral)."
2904
+ ];
2905
+ "type": "u16";
2906
+ },
2907
+ {
2908
+ "name": "numResolvers";
2909
+ "docs": [
2910
+ "How many resolver PDAs to initialize (slots 0..num_resolvers-1) via `initialize_market_resolver`."
2911
+ ];
2912
+ "type": "u8";
2913
+ },
2914
+ {
2915
+ "name": "title";
2916
+ "docs": [
2917
+ "UTF-8 market title (1–128 bytes after trim)."
2918
+ ];
2919
+ "type": "string";
2920
+ },
2921
+ {
2922
+ "name": "marketType";
2923
+ "docs": [
2924
+ "[`MarketType::CompleteSet`] (SPL outcomes) or [`MarketType::Parimutuel`] (ledger pool)."
2925
+ ];
2926
+ "type": {
2927
+ "defined": {
2928
+ "name": "marketType";
2929
+ };
2930
+ };
2931
+ }
2932
+ ];
2933
+ };
2934
+ },
2935
+ {
2936
+ "name": "finalizeResolutionArgs";
2937
+ "docs": [
2938
+ "Check M-of-N using per-outcome tally PDAs and mark the market resolved when threshold is met.",
2939
+ "Anyone can call. No-op if already resolved or threshold not met."
2940
+ ];
2941
+ "type": {
2942
+ "kind": "struct";
2943
+ "fields": [
2944
+ {
2945
+ "name": "marketId";
2946
+ "type": "u64";
2947
+ }
2948
+ ];
2949
+ };
2950
+ },
2951
+ {
2952
+ "name": "globalConfig";
2953
+ "type": {
2954
+ "kind": "struct";
2955
+ "fields": [
2956
+ {
2957
+ "name": "authority";
2958
+ "type": "pubkey";
2959
+ },
2960
+ {
2961
+ "name": "secondaryAuthority";
2962
+ "docs": [
2963
+ "Backup authority — same permissions as `authority`. `Pubkey::default()` disables."
2964
+ ];
2965
+ "type": "pubkey";
2966
+ },
2967
+ {
2968
+ "name": "depositPlatformFeeBps";
2969
+ "docs": [
2970
+ "Default platform fee on **complete-set mint** and **pari-mutuel stake** (deposit collateral):",
2971
+ "basis points of **net** collateral credited to the vault / pool (`amount` in those instructions).",
2972
+ "Per-market override: `Market::deposit_platform_fee_bps` or `0` to use this."
2973
+ ];
2974
+ "type": "u16";
2975
+ },
2976
+ {
2977
+ "name": "platformTreasury";
2978
+ "docs": [
2979
+ "Wallet that receives platform token fees (ATA derived per collateral mint)."
2980
+ ];
2981
+ "type": "pubkey";
2982
+ },
2983
+ {
2984
+ "name": "platformFeeLamports";
2985
+ "docs": [
2986
+ "Flat SOL fee (lamports) per user mint, redeem, pari stake, and pari withdraw."
2987
+ ];
2988
+ "type": "u64";
2989
+ },
2990
+ {
2991
+ "name": "nextCategoryId";
2992
+ "docs": [
2993
+ "Next id for `MarketCategory` PDAs (`[b\"market-category\", id.to_le_bytes()]`)."
2994
+ ];
2995
+ "type": "u64";
2996
+ },
2997
+ {
2998
+ "name": "parimutuelPenaltyProtocolShareBps";
2999
+ "docs": [
3000
+ "Default **protocol** share of the **penalty surplus** on pari-mutuel early withdraw (after the",
3001
+ "pool keeps its slice). The creator chooses the complementary share at `initialize_parimutuel_state`;",
3002
+ "the two must sum to 10000 bps. Stored in `ParimutuelState` at pool init."
3003
+ ];
3004
+ "type": "u16";
3005
+ },
3006
+ {
3007
+ "name": "parimutuelWithdrawPlatformFeeBps";
3008
+ "docs": [
3009
+ "Platform fee on **pari-mutuel early withdraw**: basis points of **gross** `amount` (withdrawal size).",
3010
+ "Taken from the post-penalty **refund** slice (capped so the user never receives less than zero)."
3011
+ ];
3012
+ "type": "u16";
3013
+ },
3014
+ {
3015
+ "name": "padding";
3016
+ "type": {
3017
+ "array": [
3018
+ "u8",
3019
+ 64
3020
+ ];
3021
+ };
3022
+ }
3023
+ ];
3024
+ };
3025
+ },
3026
+ {
3027
+ "name": "initializeMarketMintsArgs";
3028
+ "docs": [
3029
+ "Third step of market creation: initializes **8** outcome mint PDAs (protocol maximum).",
3030
+ "Trading uses only `market.outcome_count` mints; the rest remain empty but rent-funded.",
3031
+ "Decimals are inherited from `market.collateral_decimals` (stored during `create_market`),",
3032
+ "so 1 outcome token ≡ 1 collateral token."
3033
+ ];
3034
+ "type": {
3035
+ "kind": "struct";
3036
+ "fields": [
3037
+ {
3038
+ "name": "marketId";
3039
+ "type": "u64";
3040
+ }
3041
+ ];
3042
+ };
3043
+ },
3044
+ {
3045
+ "name": "initializeMarketResolverArgs";
3046
+ "docs": [
3047
+ "Initializes **one** resolver PDA at `resolver_index` (0..`market.num_resolvers`).",
3048
+ "Call once per slot; bundle multiple instructions in one transaction to save round-trips",
3049
+ "(including `initialize_parimutuel_state` for pari-mutuel markets — no ordering constraint).",
3050
+ "Only `market.creator` may sign as payer."
3051
+ ];
3052
+ "type": {
3053
+ "kind": "struct";
3054
+ "fields": [
3055
+ {
3056
+ "name": "marketId";
3057
+ "type": "u64";
3058
+ },
3059
+ {
3060
+ "name": "resolverIndex";
3061
+ "type": "u8";
3062
+ },
3063
+ {
3064
+ "name": "resolverPubkey";
3065
+ "type": "pubkey";
3066
+ }
3067
+ ];
3068
+ };
3069
+ },
3070
+ {
3071
+ "name": "initializeParimutuelStateArgs";
3072
+ "docs": [
3073
+ "Second step for pari-mutuel markets: creates [`ParimutuelState`] (pools + penalty params)."
3074
+ ];
3075
+ "type": {
3076
+ "kind": "struct";
3077
+ "fields": [
3078
+ {
3079
+ "name": "marketId";
3080
+ "type": "u64";
3081
+ },
3082
+ {
3083
+ "name": "earlyWithdrawPenaltyBps";
3084
+ "docs": [
3085
+ "Basis points of the withdrawn amount withheld as penalty."
3086
+ ];
3087
+ "type": "u16";
3088
+ },
3089
+ {
3090
+ "name": "penaltyKeptInPoolBps";
3091
+ "docs": [
3092
+ "Of the withheld penalty, bps that stay in the outcome pool; surplus is split protocol/creator."
3093
+ ];
3094
+ "type": "u16";
3095
+ },
3096
+ {
3097
+ "name": "penaltySurplusCreatorShareBps";
3098
+ "docs": [
3099
+ "Share of penalty surplus to creator — must sum with",
3100
+ "`global_config.parimutuel_penalty_protocol_share_bps` to 10000."
3101
+ ];
3102
+ "type": "u16";
3103
+ }
3104
+ ];
3105
+ };
3106
+ },
3107
+ {
3108
+ "name": "market";
3109
+ "type": {
3110
+ "kind": "struct";
3111
+ "fields": [
3112
+ {
3113
+ "name": "collateralMint";
3114
+ "type": "pubkey";
3115
+ },
3116
+ {
3117
+ "name": "collateralDecimals";
3118
+ "type": "u8";
3119
+ },
3120
+ {
3121
+ "name": "vault";
3122
+ "type": "pubkey";
3123
+ },
3124
+ {
3125
+ "name": "outcomeCount";
3126
+ "type": "u8";
3127
+ },
3128
+ {
3129
+ "name": "closeAt";
3130
+ "type": "i64";
3131
+ },
3132
+ {
3133
+ "name": "closed";
3134
+ "type": "bool";
3135
+ },
3136
+ {
3137
+ "name": "resolvedOutcomeIndex";
3138
+ "type": {
3139
+ "option": "u8";
3140
+ };
3141
+ },
3142
+ {
3143
+ "name": "voided";
3144
+ "type": "bool";
3145
+ },
3146
+ {
3147
+ "name": "resolutionThreshold";
3148
+ "type": "u8";
3149
+ },
3150
+ {
3151
+ "name": "numResolvers";
3152
+ "docs": [
3153
+ "Set at creation; this many resolver PDAs must be initialized (slots `0..num_resolvers-1`)."
3154
+ ];
3155
+ "type": "u8";
3156
+ },
3157
+ {
3158
+ "name": "creator";
3159
+ "type": "pubkey";
3160
+ },
3161
+ {
3162
+ "name": "creatorFeeBps";
3163
+ "type": "u16";
3164
+ },
3165
+ {
3166
+ "name": "creatorFeeAccount";
3167
+ "type": "pubkey";
3168
+ },
3169
+ {
3170
+ "name": "depositPlatformFeeBps";
3171
+ "docs": [
3172
+ "0 = use global `deposit_platform_fee_bps` — platform fee on **net** deposit for **mint complete set** and **pari stake**."
3173
+ ];
3174
+ "type": "u16";
3175
+ },
3176
+ {
3177
+ "name": "bump";
3178
+ "type": "u8";
3179
+ },
3180
+ {
3181
+ "name": "title";
3182
+ "docs": [
3183
+ "UTF-8 title shown in UIs (max 128 bytes)."
3184
+ ];
3185
+ "type": "string";
3186
+ },
3187
+ {
3188
+ "name": "category";
3189
+ "docs": [
3190
+ "`MarketCategory` PDA, or `Pubkey::default()` for uncategorized."
3191
+ ];
3192
+ "type": "pubkey";
3193
+ },
3194
+ {
3195
+ "name": "marketType";
3196
+ "type": {
3197
+ "defined": {
3198
+ "name": "marketType";
3199
+ };
3200
+ };
3201
+ },
3202
+ {
3203
+ "name": "padding";
3204
+ "type": {
3205
+ "array": [
3206
+ "u8",
3207
+ 64
3208
+ ];
3209
+ };
3210
+ }
3211
+ ];
3212
+ };
3213
+ },
3214
+ {
3215
+ "name": "marketCategory";
3216
+ "docs": [
3217
+ "On-chain category label; PDA seeds: `[\"market-category\", id.to_le_bytes()]`."
3218
+ ];
3219
+ "type": {
3220
+ "kind": "struct";
3221
+ "fields": [
3222
+ {
3223
+ "name": "id";
3224
+ "docs": [
3225
+ "Monotonic id (matches PDA seed)."
3226
+ ];
3227
+ "type": "u64";
3228
+ },
3229
+ {
3230
+ "name": "name";
3231
+ "type": "string";
3232
+ },
3233
+ {
3234
+ "name": "active";
3235
+ "type": "bool";
3236
+ },
3237
+ {
3238
+ "name": "bump";
3239
+ "type": "u8";
3240
+ },
3241
+ {
3242
+ "name": "padding";
3243
+ "type": {
3244
+ "array": [
3245
+ "u8",
3246
+ 96
3247
+ ];
3248
+ };
3249
+ }
3250
+ ];
3251
+ };
3252
+ },
3253
+ {
3254
+ "name": "marketType";
3255
+ "docs": [
3256
+ "How participation and settlement work for this market."
3257
+ ];
3258
+ "repr": {
3259
+ "kind": "rust";
3260
+ };
3261
+ "type": {
3262
+ "kind": "enum";
3263
+ "variants": [
3264
+ {
3265
+ "name": "completeSet";
3266
+ },
3267
+ {
3268
+ "name": "parimutuel";
3269
+ }
3270
+ ];
3271
+ };
3272
+ },
3273
+ {
3274
+ "name": "mintCompleteSetArgs";
3275
+ "type": {
3276
+ "kind": "struct";
3277
+ "fields": [
3278
+ {
3279
+ "name": "amount";
3280
+ "docs": [
3281
+ "Collateral base units **credited to the vault** and **minted per outcome token**. Fees are taken on top."
3282
+ ];
3283
+ "type": "u64";
3284
+ },
3285
+ {
3286
+ "name": "marketId";
3287
+ "type": "u64";
3288
+ }
3289
+ ];
3290
+ };
3291
+ },
3292
+ {
3293
+ "name": "outcomeTally";
3294
+ "docs": [
3295
+ "Per-outcome vote counter for resolution (M-of-N). PDA seeds:",
3296
+ "`[market, b\"outcome-tally\", outcome_index]`."
3297
+ ];
3298
+ "type": {
3299
+ "kind": "struct";
3300
+ "fields": [
3301
+ {
3302
+ "name": "count";
3303
+ "type": "u8";
3304
+ },
3305
+ {
3306
+ "name": "padding";
3307
+ "type": {
3308
+ "array": [
3309
+ "u8",
3310
+ 64
3311
+ ];
3312
+ };
3313
+ }
3314
+ ];
3315
+ };
3316
+ },
3317
+ {
3318
+ "name": "parimutuelClaimArgs";
3319
+ "type": {
3320
+ "kind": "struct";
3321
+ "fields": [
3322
+ {
3323
+ "name": "marketId";
3324
+ "type": "u64";
3325
+ },
3326
+ {
3327
+ "name": "outcomeIndex";
3328
+ "docs": [
3329
+ "Must equal the resolved winning outcome index."
3330
+ ];
3331
+ "type": "u8";
3332
+ }
3333
+ ];
3334
+ };
3335
+ },
3336
+ {
3337
+ "name": "parimutuelPosition";
3338
+ "docs": [
3339
+ "PDA seeds: `[b\"pari-pos\", market.key(), user.key(), &[outcome_index]]`."
3340
+ ];
3341
+ "type": {
3342
+ "kind": "struct";
3343
+ "fields": [
3344
+ {
3345
+ "name": "market";
3346
+ "type": "pubkey";
3347
+ },
3348
+ {
3349
+ "name": "user";
3350
+ "type": "pubkey";
3351
+ },
3352
+ {
3353
+ "name": "outcomeIndex";
3354
+ "type": "u8";
3355
+ },
3356
+ {
3357
+ "name": "activeStake";
3358
+ "type": "u64";
3359
+ },
3360
+ {
3361
+ "name": "totalDeposited";
3362
+ "type": "u64";
3363
+ },
3364
+ {
3365
+ "name": "totalWithdrawn";
3366
+ "type": "u64";
3367
+ },
3368
+ {
3369
+ "name": "claimed";
3370
+ "type": "bool";
3371
+ },
3372
+ {
3373
+ "name": "bump";
3374
+ "type": "u8";
3375
+ },
3376
+ {
3377
+ "name": "padding";
3378
+ "type": {
3379
+ "array": [
3380
+ "u8",
3381
+ 64
3382
+ ];
3383
+ };
3384
+ }
3385
+ ];
3386
+ };
3387
+ },
3388
+ {
3389
+ "name": "parimutuelStakeArgs";
3390
+ "type": {
3391
+ "kind": "struct";
3392
+ "fields": [
3393
+ {
3394
+ "name": "marketId";
3395
+ "type": "u64";
3396
+ },
3397
+ {
3398
+ "name": "outcomeIndex";
3399
+ "type": "u8";
3400
+ },
3401
+ {
3402
+ "name": "amount";
3403
+ "docs": [
3404
+ "Collateral base units **credited to the pari pool** (net stake). Platform and creator token fees",
3405
+ "are `floor(amount * bps / 10000)` each and debited **in addition** to this amount."
3406
+ ];
3407
+ "type": "u64";
3408
+ }
3409
+ ];
3410
+ };
3411
+ },
3412
+ {
3413
+ "name": "parimutuelState";
3414
+ "docs": [
3415
+ "PDA seeds: `[b\"pari\", market.key()]`."
3416
+ ];
3417
+ "type": {
3418
+ "kind": "struct";
3419
+ "fields": [
3420
+ {
3421
+ "name": "market";
3422
+ "type": "pubkey";
3423
+ },
3424
+ {
3425
+ "name": "totalPool";
3426
+ "docs": [
3427
+ "Sum of `outcome_pools` (must stay in sync)."
3428
+ ];
3429
+ "type": "u64";
3430
+ },
3431
+ {
3432
+ "name": "outcomePools";
3433
+ "docs": [
3434
+ "Collateral per outcome bucket; index `i < outcome_count` is used."
3435
+ ];
3436
+ "type": {
3437
+ "array": [
3438
+ "u64",
3439
+ 8
3440
+ ];
3441
+ };
3442
+ },
3443
+ {
3444
+ "name": "earlyWithdrawPenaltyBps";
3445
+ "docs": [
3446
+ "Basis points of the **withdrawn amount** withheld as penalty (before refund). Example: 500 = 5%."
3447
+ ];
3448
+ "type": "u16";
3449
+ },
3450
+ {
3451
+ "name": "penaltyKeptInPoolBps";
3452
+ "docs": [
3453
+ "Of that withheld penalty, basis points (of 10000) used to split the penalty into two slices",
3454
+ "(`pool_keep` vs **penalty surplus**) before each slice is sent to protocol/creator using",
3455
+ "`penalty_surplus_protocol_share_bps`. Neither slice remains in the outcome pool (keeps",
3456
+ "`outcome_pools[i]` aligned with the sum of `active_stake` on side `i`)."
3457
+ ];
3458
+ "type": "u16";
3459
+ },
3460
+ {
3461
+ "name": "penaltySurplusProtocolShareBps";
3462
+ "docs": [
3463
+ "Snapshot at pool init: protocol share (bps of 10000) of each penalty slice (`pool_keep` and surplus)."
3464
+ ];
3465
+ "type": "u16";
3466
+ },
3467
+ {
3468
+ "name": "penaltySurplusCreatorShareBps";
3469
+ "docs": [
3470
+ "Snapshot at pool init: creator share of each penalty slice (must sum to 10000 with protocol)."
3471
+ ];
3472
+ "type": "u16";
3473
+ },
3474
+ {
3475
+ "name": "bump";
3476
+ "type": "u8";
3477
+ },
3478
+ {
3479
+ "name": "resolvedTotalPool";
3480
+ "docs": [
3481
+ "Snapshot at first claim after resolution (lazy); frozen payout math."
3482
+ ];
3483
+ "type": {
3484
+ "option": "u64";
3485
+ };
3486
+ },
3487
+ {
3488
+ "name": "resolvedWinningOutcomePool";
3489
+ "type": {
3490
+ "option": "u64";
3491
+ };
3492
+ },
3493
+ {
3494
+ "name": "padding";
3495
+ "type": {
3496
+ "array": [
3497
+ "u8",
3498
+ 64
3499
+ ];
3500
+ };
3501
+ }
3502
+ ];
3503
+ };
3504
+ },
3505
+ {
3506
+ "name": "parimutuelWithdrawArgs";
3507
+ "type": {
3508
+ "kind": "struct";
3509
+ "fields": [
3510
+ {
3511
+ "name": "marketId";
3512
+ "type": "u64";
3513
+ },
3514
+ {
3515
+ "name": "outcomeIndex";
3516
+ "type": "u8";
3517
+ },
3518
+ {
3519
+ "name": "amount";
3520
+ "type": "u64";
3521
+ }
3522
+ ];
3523
+ };
3524
+ },
3525
+ {
3526
+ "name": "redeemCompleteSetArgs";
3527
+ "type": {
3528
+ "kind": "struct";
3529
+ "fields": [
3530
+ {
3531
+ "name": "marketId";
3532
+ "type": "u64";
3533
+ }
3534
+ ];
3535
+ };
3536
+ },
3537
+ {
3538
+ "name": "redeemWinningArgs";
3539
+ "type": {
3540
+ "kind": "struct";
3541
+ "fields": [
3542
+ {
3543
+ "name": "marketId";
3544
+ "type": "u64";
3545
+ },
3546
+ {
3547
+ "name": "amount";
3548
+ "type": "u64";
3549
+ }
3550
+ ];
3551
+ };
3552
+ },
3553
+ {
3554
+ "name": "resolutionVote";
3555
+ "docs": [
3556
+ "One PDA per resolver slot (`[market, b\"vote\", resolver_index]`).",
3557
+ "A resolver may only have one active vote at a time: vote sets `has_voted`,",
3558
+ "revoke clears it so they can vote again (1 → 0 → 1 when changing outcome)."
3559
+ ];
3560
+ "type": {
3561
+ "kind": "struct";
3562
+ "fields": [
3563
+ {
3564
+ "name": "hasVoted";
3565
+ "type": "bool";
3566
+ },
3567
+ {
3568
+ "name": "outcomeIndex";
3569
+ "type": "u8";
3570
+ },
3571
+ {
3572
+ "name": "padding";
3573
+ "type": {
3574
+ "array": [
3575
+ "u8",
3576
+ 64
3577
+ ];
3578
+ };
3579
+ }
3580
+ ];
3581
+ };
3582
+ },
3583
+ {
3584
+ "name": "resolver";
3585
+ "docs": [
3586
+ "Marker: this pubkey is a resolver for the market."
3587
+ ];
3588
+ "type": {
3589
+ "kind": "struct";
3590
+ "fields": [
3591
+ {
3592
+ "name": "resolverPubkey";
3593
+ "type": "pubkey";
3594
+ },
3595
+ {
3596
+ "name": "padding";
3597
+ "type": {
3598
+ "array": [
3599
+ "u8",
3600
+ 64
3601
+ ];
3602
+ };
3603
+ }
3604
+ ];
3605
+ };
3606
+ },
3607
+ {
3608
+ "name": "revokeResolutionVoteArgs";
3609
+ "docs": [
3610
+ "Clears a resolver's active vote (1 → 0): decrements the tally for `outcome_index` and",
3611
+ "sets `has_voted` false. `outcome_index` must match the stored vote."
3612
+ ];
3613
+ "type": {
3614
+ "kind": "struct";
3615
+ "fields": [
3616
+ {
3617
+ "name": "marketId";
3618
+ "type": "u64";
3619
+ },
3620
+ {
3621
+ "name": "resolverIndex";
3622
+ "type": "u8";
3623
+ },
3624
+ {
3625
+ "name": "outcomeIndex";
3626
+ "docs": [
3627
+ "Must equal the current `resolution_vote.outcome_index` while `has_voted` is true."
3628
+ ];
3629
+ "type": "u8";
3630
+ }
3631
+ ];
3632
+ };
3633
+ },
3634
+ {
3635
+ "name": "userProfile";
3636
+ "type": {
3637
+ "kind": "struct";
3638
+ "fields": [
3639
+ {
3640
+ "name": "displayName";
3641
+ "docs": [
3642
+ "Optional display name chosen by the wallet owner. Max 50 bytes UTF-8."
3643
+ ];
3644
+ "type": "string";
3645
+ },
3646
+ {
3647
+ "name": "url";
3648
+ "docs": [
3649
+ "Optional URL (website / social). Max 100 bytes UTF-8."
3650
+ ];
3651
+ "type": "string";
3652
+ },
3653
+ {
3654
+ "name": "verified";
3655
+ "docs": [
3656
+ "Set exclusively by the platform authority via `verify_user_profile`."
3657
+ ];
3658
+ "type": "bool";
3659
+ },
3660
+ {
3661
+ "name": "padding";
3662
+ "type": {
3663
+ "array": [
3664
+ "u8",
3665
+ 64
3666
+ ];
3667
+ };
3668
+ }
3669
+ ];
3670
+ };
3671
+ },
3672
+ {
3673
+ "name": "voidMarketArgs";
3674
+ "docs": [
3675
+ "Void the market. Allowed by market creator or global config primary/secondary authority.",
3676
+ "Rejected if already resolved."
3677
+ ];
3678
+ "type": {
3679
+ "kind": "struct";
3680
+ "fields": [
3681
+ {
3682
+ "name": "marketId";
3683
+ "type": "u64";
3684
+ }
3685
+ ];
3686
+ };
3687
+ },
3688
+ {
3689
+ "name": "voteResolutionArgs";
3690
+ "docs": [
3691
+ "A resolver casts a vote for an outcome. Requires `has_voted == false` on the vote PDA",
3692
+ "(first vote or after `revoke_resolution_vote`). Increments the per-outcome tally PDA."
3693
+ ];
3694
+ "type": {
3695
+ "kind": "struct";
3696
+ "fields": [
3697
+ {
3698
+ "name": "marketId";
3699
+ "type": "u64";
3700
+ },
3701
+ {
3702
+ "name": "outcomeIndex";
3703
+ "type": "u8";
3704
+ },
3705
+ {
3706
+ "name": "resolverIndex";
3707
+ "docs": [
3708
+ "Resolver slot index; must match `resolver` and be `< market.num_resolvers`."
3709
+ ];
3710
+ "type": "u8";
3711
+ }
3712
+ ];
3713
+ };
3714
+ }
3715
+ ];
3716
+ };
3717
+ //# sourceMappingURL=vercora.d.ts.map