@vercora-protocol/sdk 0.0.19 → 0.0.21
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/CHANGELOG.md +16 -0
- package/README.md +87 -30
- package/agents/skill.md +16 -5
- package/dist/client.d.ts +25 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +157 -9
- package/dist/client.js.map +1 -1
- package/dist/generated/vercora.d.ts +1388 -137
- package/dist/generated/vercora.d.ts.map +1 -1
- package/dist/idl/vercora.json +1389 -138
- package/dist/pda.d.ts +5 -1
- package/dist/pda.d.ts.map +1 -1
- package/dist/pda.js +8 -2
- package/dist/pda.js.map +1 -1
- package/dist/types.d.ts +61 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/idl/vercora.json
CHANGED
|
@@ -182,6 +182,149 @@
|
|
|
182
182
|
],
|
|
183
183
|
"args": []
|
|
184
184
|
},
|
|
185
|
+
{
|
|
186
|
+
"name": "claim_resolver_stake",
|
|
187
|
+
"discriminator": [
|
|
188
|
+
136,
|
|
189
|
+
254,
|
|
190
|
+
179,
|
|
191
|
+
82,
|
|
192
|
+
41,
|
|
193
|
+
9,
|
|
194
|
+
90,
|
|
195
|
+
191
|
|
196
|
+
],
|
|
197
|
+
"accounts": [
|
|
198
|
+
{
|
|
199
|
+
"name": "resolver_signer",
|
|
200
|
+
"writable": true,
|
|
201
|
+
"signer": true
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "market",
|
|
205
|
+
"writable": true,
|
|
206
|
+
"pda": {
|
|
207
|
+
"seeds": [
|
|
208
|
+
{
|
|
209
|
+
"kind": "const",
|
|
210
|
+
"value": [
|
|
211
|
+
109,
|
|
212
|
+
97,
|
|
213
|
+
114,
|
|
214
|
+
107,
|
|
215
|
+
101,
|
|
216
|
+
116
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"kind": "account",
|
|
221
|
+
"path": "market.creator",
|
|
222
|
+
"account": "Market"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"kind": "arg",
|
|
226
|
+
"path": "args.market_id"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "resolver_stake_vault",
|
|
233
|
+
"writable": true,
|
|
234
|
+
"pda": {
|
|
235
|
+
"seeds": [
|
|
236
|
+
{
|
|
237
|
+
"kind": "account",
|
|
238
|
+
"path": "market"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"kind": "const",
|
|
242
|
+
"value": [
|
|
243
|
+
114,
|
|
244
|
+
101,
|
|
245
|
+
115,
|
|
246
|
+
45,
|
|
247
|
+
115,
|
|
248
|
+
116,
|
|
249
|
+
97,
|
|
250
|
+
107,
|
|
251
|
+
101,
|
|
252
|
+
45,
|
|
253
|
+
118,
|
|
254
|
+
97,
|
|
255
|
+
117,
|
|
256
|
+
108,
|
|
257
|
+
116
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "collateral_mint"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "resolver_user_collateral",
|
|
268
|
+
"writable": true
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "resolver"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "resolution_vote",
|
|
275
|
+
"writable": true
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "global_config",
|
|
279
|
+
"pda": {
|
|
280
|
+
"seeds": [
|
|
281
|
+
{
|
|
282
|
+
"kind": "const",
|
|
283
|
+
"value": [
|
|
284
|
+
103,
|
|
285
|
+
108,
|
|
286
|
+
111,
|
|
287
|
+
98,
|
|
288
|
+
97,
|
|
289
|
+
108,
|
|
290
|
+
45,
|
|
291
|
+
99,
|
|
292
|
+
111,
|
|
293
|
+
110,
|
|
294
|
+
102,
|
|
295
|
+
105,
|
|
296
|
+
103
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "platform_treasury_wallet"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "platform_treasury_ata",
|
|
307
|
+
"writable": true
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "collateral_token_program"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "system_program",
|
|
314
|
+
"address": "11111111111111111111111111111111"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"args": [
|
|
318
|
+
{
|
|
319
|
+
"name": "args",
|
|
320
|
+
"type": {
|
|
321
|
+
"defined": {
|
|
322
|
+
"name": "ClaimResolverStakeArgs"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
185
328
|
{
|
|
186
329
|
"name": "claim_voided_parimutuel_surplus",
|
|
187
330
|
"discriminator": [
|
|
@@ -549,6 +692,150 @@
|
|
|
549
692
|
],
|
|
550
693
|
"args": []
|
|
551
694
|
},
|
|
695
|
+
{
|
|
696
|
+
"name": "confirm_resolution",
|
|
697
|
+
"discriminator": [
|
|
698
|
+
46,
|
|
699
|
+
204,
|
|
700
|
+
148,
|
|
701
|
+
68,
|
|
702
|
+
212,
|
|
703
|
+
147,
|
|
704
|
+
158,
|
|
705
|
+
84
|
|
706
|
+
],
|
|
707
|
+
"accounts": [
|
|
708
|
+
{
|
|
709
|
+
"name": "market",
|
|
710
|
+
"writable": true,
|
|
711
|
+
"pda": {
|
|
712
|
+
"seeds": [
|
|
713
|
+
{
|
|
714
|
+
"kind": "const",
|
|
715
|
+
"value": [
|
|
716
|
+
109,
|
|
717
|
+
97,
|
|
718
|
+
114,
|
|
719
|
+
107,
|
|
720
|
+
101,
|
|
721
|
+
116
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"kind": "account",
|
|
726
|
+
"path": "market.creator",
|
|
727
|
+
"account": "Market"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"kind": "arg",
|
|
731
|
+
"path": "args.market_id"
|
|
732
|
+
}
|
|
733
|
+
]
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "platform_profile",
|
|
738
|
+
"pda": {
|
|
739
|
+
"seeds": [
|
|
740
|
+
{
|
|
741
|
+
"kind": "const",
|
|
742
|
+
"value": [
|
|
743
|
+
112,
|
|
744
|
+
108,
|
|
745
|
+
97,
|
|
746
|
+
116,
|
|
747
|
+
102,
|
|
748
|
+
111,
|
|
749
|
+
114,
|
|
750
|
+
109,
|
|
751
|
+
45,
|
|
752
|
+
112,
|
|
753
|
+
114,
|
|
754
|
+
111,
|
|
755
|
+
102,
|
|
756
|
+
105,
|
|
757
|
+
108,
|
|
758
|
+
101
|
|
759
|
+
]
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"kind": "account",
|
|
763
|
+
"path": "market.platform_id",
|
|
764
|
+
"account": "Market"
|
|
765
|
+
}
|
|
766
|
+
]
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"name": "resolution_state",
|
|
771
|
+
"pda": {
|
|
772
|
+
"seeds": [
|
|
773
|
+
{
|
|
774
|
+
"kind": "account",
|
|
775
|
+
"path": "market"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"kind": "const",
|
|
779
|
+
"value": [
|
|
780
|
+
114,
|
|
781
|
+
101,
|
|
782
|
+
115,
|
|
783
|
+
111,
|
|
784
|
+
108,
|
|
785
|
+
117,
|
|
786
|
+
116,
|
|
787
|
+
105,
|
|
788
|
+
111,
|
|
789
|
+
110
|
|
790
|
+
]
|
|
791
|
+
}
|
|
792
|
+
]
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "market_outcome_0",
|
|
797
|
+
"optional": true
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"name": "market_outcome_1",
|
|
801
|
+
"optional": true
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"name": "market_outcome_2",
|
|
805
|
+
"optional": true
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"name": "market_outcome_3",
|
|
809
|
+
"optional": true
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "market_outcome_4",
|
|
813
|
+
"optional": true
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "market_outcome_5",
|
|
817
|
+
"optional": true
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"name": "market_outcome_6",
|
|
821
|
+
"optional": true
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"name": "market_outcome_7",
|
|
825
|
+
"optional": true
|
|
826
|
+
}
|
|
827
|
+
],
|
|
828
|
+
"args": [
|
|
829
|
+
{
|
|
830
|
+
"name": "args",
|
|
831
|
+
"type": {
|
|
832
|
+
"defined": {
|
|
833
|
+
"name": "ConfirmResolutionArgs"
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
]
|
|
838
|
+
},
|
|
552
839
|
{
|
|
553
840
|
"name": "create_market",
|
|
554
841
|
"discriminator": [
|
|
@@ -575,27 +862,81 @@
|
|
|
575
862
|
{
|
|
576
863
|
"kind": "const",
|
|
577
864
|
"value": [
|
|
578
|
-
109,
|
|
579
|
-
97,
|
|
865
|
+
109,
|
|
866
|
+
97,
|
|
867
|
+
114,
|
|
868
|
+
107,
|
|
869
|
+
101,
|
|
870
|
+
116
|
|
871
|
+
]
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"kind": "account",
|
|
875
|
+
"path": "creator"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"kind": "arg",
|
|
879
|
+
"path": "args.market_id"
|
|
880
|
+
}
|
|
881
|
+
]
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"name": "vault",
|
|
886
|
+
"writable": true,
|
|
887
|
+
"pda": {
|
|
888
|
+
"seeds": [
|
|
889
|
+
{
|
|
890
|
+
"kind": "account",
|
|
891
|
+
"path": "market"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"kind": "const",
|
|
895
|
+
"value": [
|
|
896
|
+
118,
|
|
897
|
+
97,
|
|
898
|
+
117,
|
|
899
|
+
108,
|
|
900
|
+
116
|
|
901
|
+
]
|
|
902
|
+
}
|
|
903
|
+
]
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"name": "resolver_stake_vault",
|
|
908
|
+
"writable": true,
|
|
909
|
+
"pda": {
|
|
910
|
+
"seeds": [
|
|
911
|
+
{
|
|
912
|
+
"kind": "account",
|
|
913
|
+
"path": "market"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"kind": "const",
|
|
917
|
+
"value": [
|
|
580
918
|
114,
|
|
919
|
+
101,
|
|
920
|
+
115,
|
|
921
|
+
45,
|
|
922
|
+
115,
|
|
923
|
+
116,
|
|
924
|
+
97,
|
|
581
925
|
107,
|
|
582
926
|
101,
|
|
927
|
+
45,
|
|
928
|
+
118,
|
|
929
|
+
97,
|
|
930
|
+
117,
|
|
931
|
+
108,
|
|
583
932
|
116
|
|
584
933
|
]
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
"kind": "account",
|
|
588
|
-
"path": "creator"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"kind": "arg",
|
|
592
|
-
"path": "args.market_id"
|
|
593
934
|
}
|
|
594
935
|
]
|
|
595
936
|
}
|
|
596
937
|
},
|
|
597
938
|
{
|
|
598
|
-
"name": "
|
|
939
|
+
"name": "resolution_state",
|
|
599
940
|
"writable": true,
|
|
600
941
|
"pda": {
|
|
601
942
|
"seeds": [
|
|
@@ -606,11 +947,16 @@
|
|
|
606
947
|
{
|
|
607
948
|
"kind": "const",
|
|
608
949
|
"value": [
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
950
|
+
114,
|
|
951
|
+
101,
|
|
952
|
+
115,
|
|
953
|
+
111,
|
|
612
954
|
108,
|
|
613
|
-
|
|
955
|
+
117,
|
|
956
|
+
116,
|
|
957
|
+
105,
|
|
958
|
+
111,
|
|
959
|
+
110
|
|
614
960
|
]
|
|
615
961
|
}
|
|
616
962
|
]
|
|
@@ -681,10 +1027,6 @@
|
|
|
681
1027
|
},
|
|
682
1028
|
{
|
|
683
1029
|
"name": "platform_registry",
|
|
684
|
-
"docs": [
|
|
685
|
-
"Pass when `args.platform_id > 0` (PDA `[\"platform\", platform_id]`)."
|
|
686
|
-
],
|
|
687
|
-
"optional": true,
|
|
688
1030
|
"pda": {
|
|
689
1031
|
"seeds": [
|
|
690
1032
|
{
|
|
@@ -707,6 +1049,38 @@
|
|
|
707
1049
|
]
|
|
708
1050
|
}
|
|
709
1051
|
},
|
|
1052
|
+
{
|
|
1053
|
+
"name": "platform_profile",
|
|
1054
|
+
"pda": {
|
|
1055
|
+
"seeds": [
|
|
1056
|
+
{
|
|
1057
|
+
"kind": "const",
|
|
1058
|
+
"value": [
|
|
1059
|
+
112,
|
|
1060
|
+
108,
|
|
1061
|
+
97,
|
|
1062
|
+
116,
|
|
1063
|
+
102,
|
|
1064
|
+
111,
|
|
1065
|
+
114,
|
|
1066
|
+
109,
|
|
1067
|
+
45,
|
|
1068
|
+
112,
|
|
1069
|
+
114,
|
|
1070
|
+
111,
|
|
1071
|
+
102,
|
|
1072
|
+
105,
|
|
1073
|
+
108,
|
|
1074
|
+
101
|
|
1075
|
+
]
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"kind": "arg",
|
|
1079
|
+
"path": "args.platform_id"
|
|
1080
|
+
}
|
|
1081
|
+
]
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
710
1084
|
{
|
|
711
1085
|
"name": "market_category",
|
|
712
1086
|
"docs": [
|
|
@@ -934,6 +1308,33 @@
|
|
|
934
1308
|
]
|
|
935
1309
|
}
|
|
936
1310
|
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "resolution_state",
|
|
1313
|
+
"writable": true,
|
|
1314
|
+
"pda": {
|
|
1315
|
+
"seeds": [
|
|
1316
|
+
{
|
|
1317
|
+
"kind": "account",
|
|
1318
|
+
"path": "market"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"kind": "const",
|
|
1322
|
+
"value": [
|
|
1323
|
+
114,
|
|
1324
|
+
101,
|
|
1325
|
+
115,
|
|
1326
|
+
111,
|
|
1327
|
+
108,
|
|
1328
|
+
117,
|
|
1329
|
+
116,
|
|
1330
|
+
105,
|
|
1331
|
+
111,
|
|
1332
|
+
110
|
|
1333
|
+
]
|
|
1334
|
+
}
|
|
1335
|
+
]
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
937
1338
|
{
|
|
938
1339
|
"name": "market_outcome_0",
|
|
939
1340
|
"optional": true
|
|
@@ -1057,6 +1458,10 @@
|
|
|
1057
1458
|
{
|
|
1058
1459
|
"name": "parimutuel_withdraw_platform_fee_bps",
|
|
1059
1460
|
"type": "u16"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"name": "dispute_resolution_authority",
|
|
1464
|
+
"type": "pubkey"
|
|
1060
1465
|
}
|
|
1061
1466
|
]
|
|
1062
1467
|
},
|
|
@@ -1542,14 +1947,174 @@
|
|
|
1542
1947
|
},
|
|
1543
1948
|
{
|
|
1544
1949
|
"name": "collateral_token_program"
|
|
1545
|
-
},
|
|
1546
|
-
{
|
|
1547
|
-
"name": "token_program",
|
|
1548
|
-
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
"name": "system_program",
|
|
1552
|
-
"address": "11111111111111111111111111111111"
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"name": "token_program",
|
|
1953
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
"name": "system_program",
|
|
1957
|
+
"address": "11111111111111111111111111111111"
|
|
1958
|
+
}
|
|
1959
|
+
],
|
|
1960
|
+
"args": [
|
|
1961
|
+
{
|
|
1962
|
+
"name": "args",
|
|
1963
|
+
"type": {
|
|
1964
|
+
"defined": {
|
|
1965
|
+
"name": "MintCompleteSetArgs"
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
]
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
"name": "open_refute",
|
|
1973
|
+
"discriminator": [
|
|
1974
|
+
88,
|
|
1975
|
+
212,
|
|
1976
|
+
101,
|
|
1977
|
+
41,
|
|
1978
|
+
154,
|
|
1979
|
+
214,
|
|
1980
|
+
64,
|
|
1981
|
+
246
|
|
1982
|
+
],
|
|
1983
|
+
"accounts": [
|
|
1984
|
+
{
|
|
1985
|
+
"name": "refuter",
|
|
1986
|
+
"writable": true,
|
|
1987
|
+
"signer": true
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"name": "market",
|
|
1991
|
+
"writable": true,
|
|
1992
|
+
"pda": {
|
|
1993
|
+
"seeds": [
|
|
1994
|
+
{
|
|
1995
|
+
"kind": "const",
|
|
1996
|
+
"value": [
|
|
1997
|
+
109,
|
|
1998
|
+
97,
|
|
1999
|
+
114,
|
|
2000
|
+
107,
|
|
2001
|
+
101,
|
|
2002
|
+
116
|
|
2003
|
+
]
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"kind": "account",
|
|
2007
|
+
"path": "market.creator",
|
|
2008
|
+
"account": "Market"
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
"kind": "arg",
|
|
2012
|
+
"path": "args.market_id"
|
|
2013
|
+
}
|
|
2014
|
+
]
|
|
2015
|
+
}
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"name": "resolution_state",
|
|
2019
|
+
"writable": true,
|
|
2020
|
+
"pda": {
|
|
2021
|
+
"seeds": [
|
|
2022
|
+
{
|
|
2023
|
+
"kind": "account",
|
|
2024
|
+
"path": "market"
|
|
2025
|
+
},
|
|
2026
|
+
{
|
|
2027
|
+
"kind": "const",
|
|
2028
|
+
"value": [
|
|
2029
|
+
114,
|
|
2030
|
+
101,
|
|
2031
|
+
115,
|
|
2032
|
+
111,
|
|
2033
|
+
108,
|
|
2034
|
+
117,
|
|
2035
|
+
116,
|
|
2036
|
+
105,
|
|
2037
|
+
111,
|
|
2038
|
+
110
|
|
2039
|
+
]
|
|
2040
|
+
}
|
|
2041
|
+
]
|
|
2042
|
+
}
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
"name": "resolver_stake_vault",
|
|
2046
|
+
"writable": true,
|
|
2047
|
+
"pda": {
|
|
2048
|
+
"seeds": [
|
|
2049
|
+
{
|
|
2050
|
+
"kind": "account",
|
|
2051
|
+
"path": "market"
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"kind": "const",
|
|
2055
|
+
"value": [
|
|
2056
|
+
114,
|
|
2057
|
+
101,
|
|
2058
|
+
115,
|
|
2059
|
+
45,
|
|
2060
|
+
115,
|
|
2061
|
+
116,
|
|
2062
|
+
97,
|
|
2063
|
+
107,
|
|
2064
|
+
101,
|
|
2065
|
+
45,
|
|
2066
|
+
118,
|
|
2067
|
+
97,
|
|
2068
|
+
117,
|
|
2069
|
+
108,
|
|
2070
|
+
116
|
|
2071
|
+
]
|
|
2072
|
+
}
|
|
2073
|
+
]
|
|
2074
|
+
}
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
"name": "collateral_mint"
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
"name": "refuter_collateral",
|
|
2081
|
+
"writable": true
|
|
2082
|
+
},
|
|
2083
|
+
{
|
|
2084
|
+
"name": "platform_profile",
|
|
2085
|
+
"pda": {
|
|
2086
|
+
"seeds": [
|
|
2087
|
+
{
|
|
2088
|
+
"kind": "const",
|
|
2089
|
+
"value": [
|
|
2090
|
+
112,
|
|
2091
|
+
108,
|
|
2092
|
+
97,
|
|
2093
|
+
116,
|
|
2094
|
+
102,
|
|
2095
|
+
111,
|
|
2096
|
+
114,
|
|
2097
|
+
109,
|
|
2098
|
+
45,
|
|
2099
|
+
112,
|
|
2100
|
+
114,
|
|
2101
|
+
111,
|
|
2102
|
+
102,
|
|
2103
|
+
105,
|
|
2104
|
+
108,
|
|
2105
|
+
101
|
|
2106
|
+
]
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"kind": "account",
|
|
2110
|
+
"path": "market.platform_id",
|
|
2111
|
+
"account": "Market"
|
|
2112
|
+
}
|
|
2113
|
+
]
|
|
2114
|
+
}
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
"name": "collateral_token_program"
|
|
1553
2118
|
}
|
|
1554
2119
|
],
|
|
1555
2120
|
"args": [
|
|
@@ -1557,7 +2122,7 @@
|
|
|
1557
2122
|
"name": "args",
|
|
1558
2123
|
"type": {
|
|
1559
2124
|
"defined": {
|
|
1560
|
-
"name": "
|
|
2125
|
+
"name": "OpenRefuteArgs"
|
|
1561
2126
|
}
|
|
1562
2127
|
}
|
|
1563
2128
|
}
|
|
@@ -2369,7 +2934,261 @@
|
|
|
2369
2934
|
"accounts": [
|
|
2370
2935
|
{
|
|
2371
2936
|
"name": "global_config",
|
|
2372
|
-
"writable": true,
|
|
2937
|
+
"writable": true,
|
|
2938
|
+
"pda": {
|
|
2939
|
+
"seeds": [
|
|
2940
|
+
{
|
|
2941
|
+
"kind": "const",
|
|
2942
|
+
"value": [
|
|
2943
|
+
103,
|
|
2944
|
+
108,
|
|
2945
|
+
111,
|
|
2946
|
+
98,
|
|
2947
|
+
97,
|
|
2948
|
+
108,
|
|
2949
|
+
45,
|
|
2950
|
+
99,
|
|
2951
|
+
111,
|
|
2952
|
+
110,
|
|
2953
|
+
102,
|
|
2954
|
+
105,
|
|
2955
|
+
103
|
|
2956
|
+
]
|
|
2957
|
+
}
|
|
2958
|
+
]
|
|
2959
|
+
}
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
"name": "platform_registry",
|
|
2963
|
+
"writable": true,
|
|
2964
|
+
"pda": {
|
|
2965
|
+
"seeds": [
|
|
2966
|
+
{
|
|
2967
|
+
"kind": "const",
|
|
2968
|
+
"value": [
|
|
2969
|
+
112,
|
|
2970
|
+
108,
|
|
2971
|
+
97,
|
|
2972
|
+
116,
|
|
2973
|
+
102,
|
|
2974
|
+
111,
|
|
2975
|
+
114,
|
|
2976
|
+
109
|
|
2977
|
+
]
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"kind": "account",
|
|
2981
|
+
"path": "global_config.next_platform_id",
|
|
2982
|
+
"account": "GlobalConfig"
|
|
2983
|
+
}
|
|
2984
|
+
]
|
|
2985
|
+
}
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"name": "authority",
|
|
2989
|
+
"writable": true,
|
|
2990
|
+
"signer": true
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"name": "system_program",
|
|
2994
|
+
"address": "11111111111111111111111111111111"
|
|
2995
|
+
}
|
|
2996
|
+
],
|
|
2997
|
+
"args": [
|
|
2998
|
+
{
|
|
2999
|
+
"name": "profile_authority",
|
|
3000
|
+
"type": "pubkey"
|
|
3001
|
+
}
|
|
3002
|
+
]
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
"name": "remove_allowed_collateral_mint",
|
|
3006
|
+
"discriminator": [
|
|
3007
|
+
74,
|
|
3008
|
+
156,
|
|
3009
|
+
218,
|
|
3010
|
+
211,
|
|
3011
|
+
102,
|
|
3012
|
+
182,
|
|
3013
|
+
68,
|
|
3014
|
+
197
|
|
3015
|
+
],
|
|
3016
|
+
"accounts": [
|
|
3017
|
+
{
|
|
3018
|
+
"name": "allowed_mint",
|
|
3019
|
+
"writable": true,
|
|
3020
|
+
"pda": {
|
|
3021
|
+
"seeds": [
|
|
3022
|
+
{
|
|
3023
|
+
"kind": "const",
|
|
3024
|
+
"value": [
|
|
3025
|
+
97,
|
|
3026
|
+
108,
|
|
3027
|
+
108,
|
|
3028
|
+
111,
|
|
3029
|
+
119,
|
|
3030
|
+
101,
|
|
3031
|
+
100,
|
|
3032
|
+
45,
|
|
3033
|
+
109,
|
|
3034
|
+
105,
|
|
3035
|
+
110,
|
|
3036
|
+
116
|
|
3037
|
+
]
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
"kind": "account",
|
|
3041
|
+
"path": "mint"
|
|
3042
|
+
}
|
|
3043
|
+
]
|
|
3044
|
+
}
|
|
3045
|
+
},
|
|
3046
|
+
{
|
|
3047
|
+
"name": "global_config",
|
|
3048
|
+
"pda": {
|
|
3049
|
+
"seeds": [
|
|
3050
|
+
{
|
|
3051
|
+
"kind": "const",
|
|
3052
|
+
"value": [
|
|
3053
|
+
103,
|
|
3054
|
+
108,
|
|
3055
|
+
111,
|
|
3056
|
+
98,
|
|
3057
|
+
97,
|
|
3058
|
+
108,
|
|
3059
|
+
45,
|
|
3060
|
+
99,
|
|
3061
|
+
111,
|
|
3062
|
+
110,
|
|
3063
|
+
102,
|
|
3064
|
+
105,
|
|
3065
|
+
103
|
|
3066
|
+
]
|
|
3067
|
+
}
|
|
3068
|
+
]
|
|
3069
|
+
}
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
"name": "authority",
|
|
3073
|
+
"writable": true,
|
|
3074
|
+
"signer": true
|
|
3075
|
+
},
|
|
3076
|
+
{
|
|
3077
|
+
"name": "mint"
|
|
3078
|
+
}
|
|
3079
|
+
],
|
|
3080
|
+
"args": []
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
"name": "resolve_refute",
|
|
3084
|
+
"discriminator": [
|
|
3085
|
+
239,
|
|
3086
|
+
109,
|
|
3087
|
+
229,
|
|
3088
|
+
193,
|
|
3089
|
+
192,
|
|
3090
|
+
164,
|
|
3091
|
+
8,
|
|
3092
|
+
171
|
|
3093
|
+
],
|
|
3094
|
+
"accounts": [
|
|
3095
|
+
{
|
|
3096
|
+
"name": "authority",
|
|
3097
|
+
"writable": true,
|
|
3098
|
+
"signer": true
|
|
3099
|
+
},
|
|
3100
|
+
{
|
|
3101
|
+
"name": "market",
|
|
3102
|
+
"writable": true,
|
|
3103
|
+
"pda": {
|
|
3104
|
+
"seeds": [
|
|
3105
|
+
{
|
|
3106
|
+
"kind": "const",
|
|
3107
|
+
"value": [
|
|
3108
|
+
109,
|
|
3109
|
+
97,
|
|
3110
|
+
114,
|
|
3111
|
+
107,
|
|
3112
|
+
101,
|
|
3113
|
+
116
|
|
3114
|
+
]
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
"kind": "account",
|
|
3118
|
+
"path": "market.creator",
|
|
3119
|
+
"account": "Market"
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
"kind": "arg",
|
|
3123
|
+
"path": "args.market_id"
|
|
3124
|
+
}
|
|
3125
|
+
]
|
|
3126
|
+
}
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
"name": "resolution_state",
|
|
3130
|
+
"writable": true,
|
|
3131
|
+
"pda": {
|
|
3132
|
+
"seeds": [
|
|
3133
|
+
{
|
|
3134
|
+
"kind": "account",
|
|
3135
|
+
"path": "market"
|
|
3136
|
+
},
|
|
3137
|
+
{
|
|
3138
|
+
"kind": "const",
|
|
3139
|
+
"value": [
|
|
3140
|
+
114,
|
|
3141
|
+
101,
|
|
3142
|
+
115,
|
|
3143
|
+
111,
|
|
3144
|
+
108,
|
|
3145
|
+
117,
|
|
3146
|
+
116,
|
|
3147
|
+
105,
|
|
3148
|
+
111,
|
|
3149
|
+
110
|
|
3150
|
+
]
|
|
3151
|
+
}
|
|
3152
|
+
]
|
|
3153
|
+
}
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
"name": "resolver_stake_vault",
|
|
3157
|
+
"writable": true,
|
|
3158
|
+
"pda": {
|
|
3159
|
+
"seeds": [
|
|
3160
|
+
{
|
|
3161
|
+
"kind": "account",
|
|
3162
|
+
"path": "market"
|
|
3163
|
+
},
|
|
3164
|
+
{
|
|
3165
|
+
"kind": "const",
|
|
3166
|
+
"value": [
|
|
3167
|
+
114,
|
|
3168
|
+
101,
|
|
3169
|
+
115,
|
|
3170
|
+
45,
|
|
3171
|
+
115,
|
|
3172
|
+
116,
|
|
3173
|
+
97,
|
|
3174
|
+
107,
|
|
3175
|
+
101,
|
|
3176
|
+
45,
|
|
3177
|
+
118,
|
|
3178
|
+
97,
|
|
3179
|
+
117,
|
|
3180
|
+
108,
|
|
3181
|
+
116
|
|
3182
|
+
]
|
|
3183
|
+
}
|
|
3184
|
+
]
|
|
3185
|
+
}
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
"name": "collateral_mint"
|
|
3189
|
+
},
|
|
3190
|
+
{
|
|
3191
|
+
"name": "global_config",
|
|
2373
3192
|
"pda": {
|
|
2374
3193
|
"seeds": [
|
|
2375
3194
|
{
|
|
@@ -2395,7 +3214,6 @@
|
|
|
2395
3214
|
},
|
|
2396
3215
|
{
|
|
2397
3216
|
"name": "platform_registry",
|
|
2398
|
-
"writable": true,
|
|
2399
3217
|
"pda": {
|
|
2400
3218
|
"seeds": [
|
|
2401
3219
|
{
|
|
@@ -2413,16 +3231,21 @@
|
|
|
2413
3231
|
},
|
|
2414
3232
|
{
|
|
2415
3233
|
"kind": "account",
|
|
2416
|
-
"path": "
|
|
2417
|
-
"account": "
|
|
3234
|
+
"path": "market.platform_id",
|
|
3235
|
+
"account": "Market"
|
|
2418
3236
|
}
|
|
2419
3237
|
]
|
|
2420
3238
|
}
|
|
2421
3239
|
},
|
|
2422
3240
|
{
|
|
2423
|
-
"name": "
|
|
2424
|
-
|
|
2425
|
-
|
|
3241
|
+
"name": "platform_treasury_wallet"
|
|
3242
|
+
},
|
|
3243
|
+
{
|
|
3244
|
+
"name": "platform_treasury_ata",
|
|
3245
|
+
"writable": true
|
|
3246
|
+
},
|
|
3247
|
+
{
|
|
3248
|
+
"name": "collateral_token_program"
|
|
2426
3249
|
},
|
|
2427
3250
|
{
|
|
2428
3251
|
"name": "system_program",
|
|
@@ -2431,135 +3254,127 @@
|
|
|
2431
3254
|
],
|
|
2432
3255
|
"args": [
|
|
2433
3256
|
{
|
|
2434
|
-
"name": "
|
|
2435
|
-
"type":
|
|
3257
|
+
"name": "args",
|
|
3258
|
+
"type": {
|
|
3259
|
+
"defined": {
|
|
3260
|
+
"name": "ResolveRefuteArgs"
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
2436
3263
|
}
|
|
2437
3264
|
]
|
|
2438
3265
|
},
|
|
2439
3266
|
{
|
|
2440
|
-
"name": "
|
|
3267
|
+
"name": "revoke_resolution_vote",
|
|
2441
3268
|
"discriminator": [
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
3269
|
+
128,
|
|
3270
|
+
185,
|
|
3271
|
+
253,
|
|
3272
|
+
225,
|
|
3273
|
+
238,
|
|
3274
|
+
21,
|
|
3275
|
+
110,
|
|
3276
|
+
20
|
|
2450
3277
|
],
|
|
2451
3278
|
"accounts": [
|
|
2452
3279
|
{
|
|
2453
|
-
"name": "
|
|
3280
|
+
"name": "resolver_signer",
|
|
3281
|
+
"writable": true,
|
|
3282
|
+
"signer": true
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
"name": "market",
|
|
2454
3286
|
"writable": true,
|
|
2455
3287
|
"pda": {
|
|
2456
3288
|
"seeds": [
|
|
2457
3289
|
{
|
|
2458
3290
|
"kind": "const",
|
|
2459
3291
|
"value": [
|
|
3292
|
+
109,
|
|
2460
3293
|
97,
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
111,
|
|
2464
|
-
119,
|
|
3294
|
+
114,
|
|
3295
|
+
107,
|
|
2465
3296
|
101,
|
|
2466
|
-
100,
|
|
2467
|
-
45,
|
|
2468
|
-
109,
|
|
2469
|
-
105,
|
|
2470
|
-
110,
|
|
2471
3297
|
116
|
|
2472
3298
|
]
|
|
2473
3299
|
},
|
|
2474
3300
|
{
|
|
2475
3301
|
"kind": "account",
|
|
2476
|
-
"path": "
|
|
3302
|
+
"path": "market.creator",
|
|
3303
|
+
"account": "Market"
|
|
3304
|
+
},
|
|
3305
|
+
{
|
|
3306
|
+
"kind": "arg",
|
|
3307
|
+
"path": "args.market_id"
|
|
2477
3308
|
}
|
|
2478
3309
|
]
|
|
2479
3310
|
}
|
|
2480
3311
|
},
|
|
2481
3312
|
{
|
|
2482
|
-
"name": "
|
|
3313
|
+
"name": "resolution_state",
|
|
3314
|
+
"writable": true,
|
|
2483
3315
|
"pda": {
|
|
2484
3316
|
"seeds": [
|
|
3317
|
+
{
|
|
3318
|
+
"kind": "account",
|
|
3319
|
+
"path": "market"
|
|
3320
|
+
},
|
|
2485
3321
|
{
|
|
2486
3322
|
"kind": "const",
|
|
2487
3323
|
"value": [
|
|
2488
|
-
|
|
2489
|
-
|
|
3324
|
+
114,
|
|
3325
|
+
101,
|
|
3326
|
+
115,
|
|
2490
3327
|
111,
|
|
2491
|
-
98,
|
|
2492
|
-
97,
|
|
2493
3328
|
108,
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
111,
|
|
2497
|
-
110,
|
|
2498
|
-
102,
|
|
3329
|
+
117,
|
|
3330
|
+
116,
|
|
2499
3331
|
105,
|
|
2500
|
-
|
|
3332
|
+
111,
|
|
3333
|
+
110
|
|
2501
3334
|
]
|
|
2502
3335
|
}
|
|
2503
3336
|
]
|
|
2504
3337
|
}
|
|
2505
3338
|
},
|
|
2506
3339
|
{
|
|
2507
|
-
"name": "
|
|
2508
|
-
"writable": true,
|
|
2509
|
-
"signer": true
|
|
2510
|
-
},
|
|
2511
|
-
{
|
|
2512
|
-
"name": "mint"
|
|
2513
|
-
}
|
|
2514
|
-
],
|
|
2515
|
-
"args": []
|
|
2516
|
-
},
|
|
2517
|
-
{
|
|
2518
|
-
"name": "revoke_resolution_vote",
|
|
2519
|
-
"discriminator": [
|
|
2520
|
-
128,
|
|
2521
|
-
185,
|
|
2522
|
-
253,
|
|
2523
|
-
225,
|
|
2524
|
-
238,
|
|
2525
|
-
21,
|
|
2526
|
-
110,
|
|
2527
|
-
20
|
|
2528
|
-
],
|
|
2529
|
-
"accounts": [
|
|
2530
|
-
{
|
|
2531
|
-
"name": "resolver_signer",
|
|
2532
|
-
"writable": true,
|
|
2533
|
-
"signer": true
|
|
2534
|
-
},
|
|
2535
|
-
{
|
|
2536
|
-
"name": "market",
|
|
3340
|
+
"name": "resolver_stake_vault",
|
|
2537
3341
|
"writable": true,
|
|
2538
3342
|
"pda": {
|
|
2539
3343
|
"seeds": [
|
|
3344
|
+
{
|
|
3345
|
+
"kind": "account",
|
|
3346
|
+
"path": "market"
|
|
3347
|
+
},
|
|
2540
3348
|
{
|
|
2541
3349
|
"kind": "const",
|
|
2542
3350
|
"value": [
|
|
2543
|
-
109,
|
|
2544
|
-
97,
|
|
2545
3351
|
114,
|
|
3352
|
+
101,
|
|
3353
|
+
115,
|
|
3354
|
+
45,
|
|
3355
|
+
115,
|
|
3356
|
+
116,
|
|
3357
|
+
97,
|
|
2546
3358
|
107,
|
|
2547
3359
|
101,
|
|
3360
|
+
45,
|
|
3361
|
+
118,
|
|
3362
|
+
97,
|
|
3363
|
+
117,
|
|
3364
|
+
108,
|
|
2548
3365
|
116
|
|
2549
3366
|
]
|
|
2550
|
-
},
|
|
2551
|
-
{
|
|
2552
|
-
"kind": "account",
|
|
2553
|
-
"path": "market.creator",
|
|
2554
|
-
"account": "Market"
|
|
2555
|
-
},
|
|
2556
|
-
{
|
|
2557
|
-
"kind": "arg",
|
|
2558
|
-
"path": "args.market_id"
|
|
2559
3367
|
}
|
|
2560
3368
|
]
|
|
2561
3369
|
}
|
|
2562
3370
|
},
|
|
3371
|
+
{
|
|
3372
|
+
"name": "collateral_mint"
|
|
3373
|
+
},
|
|
3374
|
+
{
|
|
3375
|
+
"name": "resolver_user_collateral",
|
|
3376
|
+
"writable": true
|
|
3377
|
+
},
|
|
2563
3378
|
{
|
|
2564
3379
|
"name": "resolver"
|
|
2565
3380
|
},
|
|
@@ -2570,6 +3385,9 @@
|
|
|
2570
3385
|
{
|
|
2571
3386
|
"name": "market_outcome",
|
|
2572
3387
|
"writable": true
|
|
3388
|
+
},
|
|
3389
|
+
{
|
|
3390
|
+
"name": "collateral_token_program"
|
|
2573
3391
|
}
|
|
2574
3392
|
],
|
|
2575
3393
|
"args": [
|
|
@@ -2657,6 +3475,10 @@
|
|
|
2657
3475
|
{
|
|
2658
3476
|
"name": "parimutuel_withdraw_platform_fee_bps",
|
|
2659
3477
|
"type": "u16"
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
"name": "dispute_resolution_authority",
|
|
3481
|
+
"type": "pubkey"
|
|
2660
3482
|
}
|
|
2661
3483
|
]
|
|
2662
3484
|
},
|
|
@@ -2935,6 +3757,14 @@
|
|
|
2935
3757
|
{
|
|
2936
3758
|
"name": "url",
|
|
2937
3759
|
"type": "string"
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
"name": "policy",
|
|
3763
|
+
"type": {
|
|
3764
|
+
"defined": {
|
|
3765
|
+
"name": "PlatformResolutionPolicyInput"
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
2938
3768
|
}
|
|
2939
3769
|
]
|
|
2940
3770
|
},
|
|
@@ -3324,19 +4154,118 @@
|
|
|
3324
4154
|
101,
|
|
3325
4155
|
116
|
|
3326
4156
|
]
|
|
3327
|
-
},
|
|
3328
|
-
{
|
|
3329
|
-
"kind": "account",
|
|
3330
|
-
"path": "market.creator",
|
|
3331
|
-
"account": "Market"
|
|
3332
|
-
},
|
|
3333
|
-
{
|
|
3334
|
-
"kind": "arg",
|
|
3335
|
-
"path": "args.market_id"
|
|
4157
|
+
},
|
|
4158
|
+
{
|
|
4159
|
+
"kind": "account",
|
|
4160
|
+
"path": "market.creator",
|
|
4161
|
+
"account": "Market"
|
|
4162
|
+
},
|
|
4163
|
+
{
|
|
4164
|
+
"kind": "arg",
|
|
4165
|
+
"path": "args.market_id"
|
|
4166
|
+
}
|
|
4167
|
+
]
|
|
4168
|
+
}
|
|
4169
|
+
},
|
|
4170
|
+
{
|
|
4171
|
+
"name": "platform_profile",
|
|
4172
|
+
"pda": {
|
|
4173
|
+
"seeds": [
|
|
4174
|
+
{
|
|
4175
|
+
"kind": "const",
|
|
4176
|
+
"value": [
|
|
4177
|
+
112,
|
|
4178
|
+
108,
|
|
4179
|
+
97,
|
|
4180
|
+
116,
|
|
4181
|
+
102,
|
|
4182
|
+
111,
|
|
4183
|
+
114,
|
|
4184
|
+
109,
|
|
4185
|
+
45,
|
|
4186
|
+
112,
|
|
4187
|
+
114,
|
|
4188
|
+
111,
|
|
4189
|
+
102,
|
|
4190
|
+
105,
|
|
4191
|
+
108,
|
|
4192
|
+
101
|
|
4193
|
+
]
|
|
4194
|
+
},
|
|
4195
|
+
{
|
|
4196
|
+
"kind": "account",
|
|
4197
|
+
"path": "market.platform_id",
|
|
4198
|
+
"account": "Market"
|
|
4199
|
+
}
|
|
4200
|
+
]
|
|
4201
|
+
}
|
|
4202
|
+
},
|
|
4203
|
+
{
|
|
4204
|
+
"name": "resolution_state",
|
|
4205
|
+
"writable": true,
|
|
4206
|
+
"pda": {
|
|
4207
|
+
"seeds": [
|
|
4208
|
+
{
|
|
4209
|
+
"kind": "account",
|
|
4210
|
+
"path": "market"
|
|
4211
|
+
},
|
|
4212
|
+
{
|
|
4213
|
+
"kind": "const",
|
|
4214
|
+
"value": [
|
|
4215
|
+
114,
|
|
4216
|
+
101,
|
|
4217
|
+
115,
|
|
4218
|
+
111,
|
|
4219
|
+
108,
|
|
4220
|
+
117,
|
|
4221
|
+
116,
|
|
4222
|
+
105,
|
|
4223
|
+
111,
|
|
4224
|
+
110
|
|
4225
|
+
]
|
|
4226
|
+
}
|
|
4227
|
+
]
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4230
|
+
{
|
|
4231
|
+
"name": "resolver_stake_vault",
|
|
4232
|
+
"writable": true,
|
|
4233
|
+
"pda": {
|
|
4234
|
+
"seeds": [
|
|
4235
|
+
{
|
|
4236
|
+
"kind": "account",
|
|
4237
|
+
"path": "market"
|
|
4238
|
+
},
|
|
4239
|
+
{
|
|
4240
|
+
"kind": "const",
|
|
4241
|
+
"value": [
|
|
4242
|
+
114,
|
|
4243
|
+
101,
|
|
4244
|
+
115,
|
|
4245
|
+
45,
|
|
4246
|
+
115,
|
|
4247
|
+
116,
|
|
4248
|
+
97,
|
|
4249
|
+
107,
|
|
4250
|
+
101,
|
|
4251
|
+
45,
|
|
4252
|
+
118,
|
|
4253
|
+
97,
|
|
4254
|
+
117,
|
|
4255
|
+
108,
|
|
4256
|
+
116
|
|
4257
|
+
]
|
|
3336
4258
|
}
|
|
3337
4259
|
]
|
|
3338
4260
|
}
|
|
3339
4261
|
},
|
|
4262
|
+
{
|
|
4263
|
+
"name": "collateral_mint"
|
|
4264
|
+
},
|
|
4265
|
+
{
|
|
4266
|
+
"name": "resolver_user_collateral",
|
|
4267
|
+
"writable": true
|
|
4268
|
+
},
|
|
3340
4269
|
{
|
|
3341
4270
|
"name": "resolver"
|
|
3342
4271
|
},
|
|
@@ -3351,6 +4280,9 @@
|
|
|
3351
4280
|
],
|
|
3352
4281
|
"writable": true
|
|
3353
4282
|
},
|
|
4283
|
+
{
|
|
4284
|
+
"name": "collateral_token_program"
|
|
4285
|
+
},
|
|
3354
4286
|
{
|
|
3355
4287
|
"name": "system_program",
|
|
3356
4288
|
"address": "11111111111111111111111111111111"
|
|
@@ -3486,6 +4418,19 @@
|
|
|
3486
4418
|
174
|
|
3487
4419
|
]
|
|
3488
4420
|
},
|
|
4421
|
+
{
|
|
4422
|
+
"name": "ResolutionState",
|
|
4423
|
+
"discriminator": [
|
|
4424
|
+
79,
|
|
4425
|
+
128,
|
|
4426
|
+
50,
|
|
4427
|
+
21,
|
|
4428
|
+
72,
|
|
4429
|
+
199,
|
|
4430
|
+
254,
|
|
4431
|
+
128
|
|
4432
|
+
]
|
|
4433
|
+
},
|
|
3489
4434
|
{
|
|
3490
4435
|
"name": "ResolutionVote",
|
|
3491
4436
|
"discriminator": [
|
|
@@ -3776,6 +4721,86 @@
|
|
|
3776
4721
|
"code": 6049,
|
|
3777
4722
|
"name": "VoidedSurplusOutcomePoolsNotZero",
|
|
3778
4723
|
"msg": "Cannot claim voided surplus while pari outcome pools are non-zero"
|
|
4724
|
+
},
|
|
4725
|
+
{
|
|
4726
|
+
"code": 6050,
|
|
4727
|
+
"name": "WalletOutcomeInvestmentCapExceeded",
|
|
4728
|
+
"msg": "Stake would exceed max_wallet_outcome_investment for this wallet on this outcome"
|
|
4729
|
+
},
|
|
4730
|
+
{
|
|
4731
|
+
"code": 6051,
|
|
4732
|
+
"name": "InvalidWalletOutcomeStakeExactConfig",
|
|
4733
|
+
"msg": "is_wallet_outcome_stake_exact requires parimutuel market and max_wallet_outcome_investment > 0"
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
"code": 6052,
|
|
4737
|
+
"name": "WalletOutcomeExactStakeMismatch",
|
|
4738
|
+
"msg": "Stake net must bring active_stake to exactly max_wallet_outcome_investment when exact mode is enabled"
|
|
4739
|
+
},
|
|
4740
|
+
{
|
|
4741
|
+
"code": 6053,
|
|
4742
|
+
"name": "PlatformRequired",
|
|
4743
|
+
"msg": "A registered platform is required — platform_id must be non-zero"
|
|
4744
|
+
},
|
|
4745
|
+
{
|
|
4746
|
+
"code": 6054,
|
|
4747
|
+
"name": "ResolutionPolicyOutOfBounds",
|
|
4748
|
+
"msg": "Resolution policy values are outside the platform profile bounds"
|
|
4749
|
+
},
|
|
4750
|
+
{
|
|
4751
|
+
"code": 6055,
|
|
4752
|
+
"name": "CannotRevokeAfterProposal",
|
|
4753
|
+
"msg": "Cannot revoke a resolution vote after a proposal exists"
|
|
4754
|
+
},
|
|
4755
|
+
{
|
|
4756
|
+
"code": 6056,
|
|
4757
|
+
"name": "CannotVoteAfterProposal",
|
|
4758
|
+
"msg": "Cannot vote after a proposal exists"
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
"code": 6057,
|
|
4762
|
+
"name": "NoProposalToRefute",
|
|
4763
|
+
"msg": "No proposed resolution to refute"
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
"code": 6058,
|
|
4767
|
+
"name": "RefuteWindowClosed",
|
|
4768
|
+
"msg": "Refute window has closed"
|
|
4769
|
+
},
|
|
4770
|
+
{
|
|
4771
|
+
"code": 6059,
|
|
4772
|
+
"name": "DisputeAlreadyOpen",
|
|
4773
|
+
"msg": "A dispute is already open for this market"
|
|
4774
|
+
},
|
|
4775
|
+
{
|
|
4776
|
+
"code": 6060,
|
|
4777
|
+
"name": "NoOpenDispute",
|
|
4778
|
+
"msg": "No open dispute"
|
|
4779
|
+
},
|
|
4780
|
+
{
|
|
4781
|
+
"code": 6061,
|
|
4782
|
+
"name": "NotDisputeResolver",
|
|
4783
|
+
"msg": "Signer cannot resolve this dispute"
|
|
4784
|
+
},
|
|
4785
|
+
{
|
|
4786
|
+
"code": 6062,
|
|
4787
|
+
"name": "ChallengeWindowNotElapsed",
|
|
4788
|
+
"msg": "Challenge window has not elapsed"
|
|
4789
|
+
},
|
|
4790
|
+
{
|
|
4791
|
+
"code": 6063,
|
|
4792
|
+
"name": "ResolverStakeAlreadyClaimed",
|
|
4793
|
+
"msg": "Resolver stake has already been claimed"
|
|
4794
|
+
},
|
|
4795
|
+
{
|
|
4796
|
+
"code": 6064,
|
|
4797
|
+
"name": "ResolverStakeZero",
|
|
4798
|
+
"msg": "Resolver stake amount must be non-zero for this market"
|
|
4799
|
+
},
|
|
4800
|
+
{
|
|
4801
|
+
"code": 6065,
|
|
4802
|
+
"name": "ResolveDisputeFirst",
|
|
4803
|
+
"msg": "Cannot confirm resolution while a dispute is open"
|
|
3779
4804
|
}
|
|
3780
4805
|
],
|
|
3781
4806
|
"types": [
|
|
@@ -3825,6 +4850,22 @@
|
|
|
3825
4850
|
]
|
|
3826
4851
|
}
|
|
3827
4852
|
},
|
|
4853
|
+
{
|
|
4854
|
+
"name": "ClaimResolverStakeArgs",
|
|
4855
|
+
"type": {
|
|
4856
|
+
"kind": "struct",
|
|
4857
|
+
"fields": [
|
|
4858
|
+
{
|
|
4859
|
+
"name": "market_id",
|
|
4860
|
+
"type": "u64"
|
|
4861
|
+
},
|
|
4862
|
+
{
|
|
4863
|
+
"name": "resolver_index",
|
|
4864
|
+
"type": "u8"
|
|
4865
|
+
}
|
|
4866
|
+
]
|
|
4867
|
+
}
|
|
4868
|
+
},
|
|
3828
4869
|
{
|
|
3829
4870
|
"name": "ClaimVoidedParimutuelSurplusArgs",
|
|
3830
4871
|
"docs": [
|
|
@@ -3859,6 +4900,21 @@
|
|
|
3859
4900
|
]
|
|
3860
4901
|
}
|
|
3861
4902
|
},
|
|
4903
|
+
{
|
|
4904
|
+
"name": "ConfirmResolutionArgs",
|
|
4905
|
+
"docs": [
|
|
4906
|
+
"Finalize the proposed outcome after the challenge window and when no dispute is open."
|
|
4907
|
+
],
|
|
4908
|
+
"type": {
|
|
4909
|
+
"kind": "struct",
|
|
4910
|
+
"fields": [
|
|
4911
|
+
{
|
|
4912
|
+
"name": "market_id",
|
|
4913
|
+
"type": "u64"
|
|
4914
|
+
}
|
|
4915
|
+
]
|
|
4916
|
+
}
|
|
4917
|
+
},
|
|
3862
4918
|
{
|
|
3863
4919
|
"name": "CreateMarketArgs",
|
|
3864
4920
|
"type": {
|
|
@@ -3905,6 +4961,13 @@
|
|
|
3905
4961
|
],
|
|
3906
4962
|
"type": "u64"
|
|
3907
4963
|
},
|
|
4964
|
+
{
|
|
4965
|
+
"name": "max_wallet_outcome_investment",
|
|
4966
|
+
"docs": [
|
|
4967
|
+
"Pari-mutuel: max net stake per wallet per outcome (`0` = unlimited). Ignored for complete-set."
|
|
4968
|
+
],
|
|
4969
|
+
"type": "u64"
|
|
4970
|
+
},
|
|
3908
4971
|
{
|
|
3909
4972
|
"name": "title",
|
|
3910
4973
|
"docs": [
|
|
@@ -3926,7 +4989,7 @@
|
|
|
3926
4989
|
{
|
|
3927
4990
|
"name": "platform_id",
|
|
3928
4991
|
"docs": [
|
|
3929
|
-
"
|
|
4992
|
+
"Must be a registered platform (`> 0`)."
|
|
3930
4993
|
],
|
|
3931
4994
|
"type": "u32"
|
|
3932
4995
|
},
|
|
@@ -3943,6 +5006,13 @@
|
|
|
3943
5006
|
"When `false`, pari-mutuel early `parimutuel_withdraw` is disabled. Ignored for complete-set markets."
|
|
3944
5007
|
],
|
|
3945
5008
|
"type": "bool"
|
|
5009
|
+
},
|
|
5010
|
+
{
|
|
5011
|
+
"name": "is_wallet_outcome_stake_exact",
|
|
5012
|
+
"docs": [
|
|
5013
|
+
"Pari-mutuel: when `true`, `max_wallet_outcome_investment` is the exact net stake per wallet per outcome."
|
|
5014
|
+
],
|
|
5015
|
+
"type": "bool"
|
|
3946
5016
|
}
|
|
3947
5017
|
]
|
|
3948
5018
|
}
|
|
@@ -3950,8 +5020,8 @@
|
|
|
3950
5020
|
{
|
|
3951
5021
|
"name": "FinalizeResolutionArgs",
|
|
3952
5022
|
"docs": [
|
|
3953
|
-
"
|
|
3954
|
-
"Anyone can call. No-op if already resolved or threshold not met."
|
|
5023
|
+
"When M-of-N tallies meet threshold, record a **proposal** on `ResolutionState` (not final payout).",
|
|
5024
|
+
"Anyone can call. No-op if already resolved, proposal already set, or threshold not met."
|
|
3955
5025
|
],
|
|
3956
5026
|
"type": {
|
|
3957
5027
|
"kind": "struct",
|
|
@@ -4022,12 +5092,19 @@
|
|
|
4022
5092
|
],
|
|
4023
5093
|
"type": "u16"
|
|
4024
5094
|
},
|
|
5095
|
+
{
|
|
5096
|
+
"name": "dispute_resolution_authority",
|
|
5097
|
+
"docs": [
|
|
5098
|
+
"May **`resolve_refute`** with global scope. `Pubkey::default()` = use primary/secondary authority only."
|
|
5099
|
+
],
|
|
5100
|
+
"type": "pubkey"
|
|
5101
|
+
},
|
|
4025
5102
|
{
|
|
4026
5103
|
"name": "_padding",
|
|
4027
5104
|
"type": {
|
|
4028
5105
|
"array": [
|
|
4029
5106
|
"u8",
|
|
4030
|
-
|
|
5107
|
+
8
|
|
4031
5108
|
]
|
|
4032
5109
|
}
|
|
4033
5110
|
}
|
|
@@ -4255,6 +5332,15 @@
|
|
|
4255
5332
|
],
|
|
4256
5333
|
"type": "u64"
|
|
4257
5334
|
},
|
|
5335
|
+
{
|
|
5336
|
+
"name": "max_wallet_outcome_investment",
|
|
5337
|
+
"docs": [
|
|
5338
|
+
"Pari-mutuel only: per-wallet per-outcome **net** stake limit (base units), see `is_wallet_outcome_stake_exact`.",
|
|
5339
|
+
"`0` = unlimited. Enforced against `ParimutuelPosition.active_stake` for `(market, user, outcome)`.",
|
|
5340
|
+
"Ignored for complete-set markets."
|
|
5341
|
+
],
|
|
5342
|
+
"type": "u64"
|
|
5343
|
+
},
|
|
4258
5344
|
{
|
|
4259
5345
|
"name": "complete_set_per_outcome_outstanding",
|
|
4260
5346
|
"docs": [
|
|
@@ -4277,6 +5363,15 @@
|
|
|
4277
5363
|
],
|
|
4278
5364
|
"type": "bool"
|
|
4279
5365
|
},
|
|
5366
|
+
{
|
|
5367
|
+
"name": "is_wallet_outcome_stake_exact",
|
|
5368
|
+
"docs": [
|
|
5369
|
+
"Pari-mutuel only: when `true`, `max_wallet_outcome_investment` is the **exact** net `active_stake` each wallet",
|
|
5370
|
+
"must reach on an outcome (each stake must make `active_stake == max_wallet_outcome_investment`; no partial progress).",
|
|
5371
|
+
"When `false`, that field is a **maximum** (`active_stake <= max_wallet_outcome_investment`). Ignored if wallet cap is `0`."
|
|
5372
|
+
],
|
|
5373
|
+
"type": "bool"
|
|
5374
|
+
},
|
|
4280
5375
|
{
|
|
4281
5376
|
"name": "_padding",
|
|
4282
5377
|
"type": {
|
|
@@ -4415,6 +5510,29 @@
|
|
|
4415
5510
|
]
|
|
4416
5511
|
}
|
|
4417
5512
|
},
|
|
5513
|
+
{
|
|
5514
|
+
"name": "OpenRefuteArgs",
|
|
5515
|
+
"type": {
|
|
5516
|
+
"kind": "struct",
|
|
5517
|
+
"fields": [
|
|
5518
|
+
{
|
|
5519
|
+
"name": "market_id",
|
|
5520
|
+
"type": "u64"
|
|
5521
|
+
},
|
|
5522
|
+
{
|
|
5523
|
+
"name": "refute_bond_amount",
|
|
5524
|
+
"type": "u64"
|
|
5525
|
+
},
|
|
5526
|
+
{
|
|
5527
|
+
"name": "disputed_outcome",
|
|
5528
|
+
"docs": [
|
|
5529
|
+
"Outcome the refuter claims should win instead (must differ from the proposal)."
|
|
5530
|
+
],
|
|
5531
|
+
"type": "u8"
|
|
5532
|
+
}
|
|
5533
|
+
]
|
|
5534
|
+
}
|
|
5535
|
+
},
|
|
4418
5536
|
{
|
|
4419
5537
|
"name": "ParimutuelClaimArgs",
|
|
4420
5538
|
"type": {
|
|
@@ -4618,7 +5736,10 @@
|
|
|
4618
5736
|
"docs": [
|
|
4619
5737
|
"Site / partner metadata for a registered `platform_id` (from `register_platform`).",
|
|
4620
5738
|
"PDA seeds: `[b\"platform-profile\", platform_id.to_le_bytes()]`.",
|
|
4621
|
-
"Upserted/closed by `profile_authority` on [`PlatformRegistry`](super::platform_registry::PlatformRegistry); `verified` set by global authority in `verify_platform_profile`."
|
|
5739
|
+
"Upserted/closed by `profile_authority` on [`PlatformRegistry`](super::platform_registry::PlatformRegistry); `verified` set by global authority in `verify_platform_profile`.",
|
|
5740
|
+
"",
|
|
5741
|
+
"**Resolution policy** (single values; collateral base units; challenge window in seconds):",
|
|
5742
|
+
"Used by all markets on this platform — no per-market overrides."
|
|
4622
5743
|
],
|
|
4623
5744
|
"type": {
|
|
4624
5745
|
"kind": "struct",
|
|
@@ -4639,13 +5760,25 @@
|
|
|
4639
5760
|
"type": "bool"
|
|
4640
5761
|
},
|
|
4641
5762
|
{
|
|
4642
|
-
"name": "
|
|
4643
|
-
"
|
|
4644
|
-
"
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
5763
|
+
"name": "resolver_stake",
|
|
5764
|
+
"docs": [
|
|
5765
|
+
"Resolver collateral escrowed per `vote_resolution` (base units)."
|
|
5766
|
+
],
|
|
5767
|
+
"type": "u64"
|
|
5768
|
+
},
|
|
5769
|
+
{
|
|
5770
|
+
"name": "challenge_window_secs",
|
|
5771
|
+
"docs": [
|
|
5772
|
+
"Seconds after `finalize_resolution` before `confirm_resolution` is allowed (if no dispute)."
|
|
5773
|
+
],
|
|
5774
|
+
"type": "u32"
|
|
5775
|
+
},
|
|
5776
|
+
{
|
|
5777
|
+
"name": "refute_bond",
|
|
5778
|
+
"docs": [
|
|
5779
|
+
"Exact bond amount required for `open_refute` (base units)."
|
|
5780
|
+
],
|
|
5781
|
+
"type": "u64"
|
|
4649
5782
|
}
|
|
4650
5783
|
]
|
|
4651
5784
|
}
|
|
@@ -4697,6 +5830,26 @@
|
|
|
4697
5830
|
]
|
|
4698
5831
|
}
|
|
4699
5832
|
},
|
|
5833
|
+
{
|
|
5834
|
+
"name": "PlatformResolutionPolicyInput",
|
|
5835
|
+
"type": {
|
|
5836
|
+
"kind": "struct",
|
|
5837
|
+
"fields": [
|
|
5838
|
+
{
|
|
5839
|
+
"name": "resolver_stake",
|
|
5840
|
+
"type": "u64"
|
|
5841
|
+
},
|
|
5842
|
+
{
|
|
5843
|
+
"name": "challenge_window_secs",
|
|
5844
|
+
"type": "u32"
|
|
5845
|
+
},
|
|
5846
|
+
{
|
|
5847
|
+
"name": "refute_bond",
|
|
5848
|
+
"type": "u64"
|
|
5849
|
+
}
|
|
5850
|
+
]
|
|
5851
|
+
}
|
|
5852
|
+
},
|
|
4700
5853
|
{
|
|
4701
5854
|
"name": "RedeemCompleteSetArgs",
|
|
4702
5855
|
"type": {
|
|
@@ -4725,6 +5878,63 @@
|
|
|
4725
5878
|
]
|
|
4726
5879
|
}
|
|
4727
5880
|
},
|
|
5881
|
+
{
|
|
5882
|
+
"name": "ResolutionState",
|
|
5883
|
+
"docs": [
|
|
5884
|
+
"Per-market resolution lifecycle: proposal, optional dispute, timing.",
|
|
5885
|
+
"PDA seeds: `[market.key(), b\"resolution\"]`.",
|
|
5886
|
+
"Resolver stake amount and challenge window duration live on [`PlatformProfile`](super::platform_profile::PlatformProfile)."
|
|
5887
|
+
],
|
|
5888
|
+
"type": {
|
|
5889
|
+
"kind": "struct",
|
|
5890
|
+
"fields": [
|
|
5891
|
+
{
|
|
5892
|
+
"name": "proposed_outcome",
|
|
5893
|
+
"type": {
|
|
5894
|
+
"option": "u8"
|
|
5895
|
+
}
|
|
5896
|
+
},
|
|
5897
|
+
{
|
|
5898
|
+
"name": "proposal_ts",
|
|
5899
|
+
"type": "i64"
|
|
5900
|
+
},
|
|
5901
|
+
{
|
|
5902
|
+
"name": "dispute_active",
|
|
5903
|
+
"type": "bool"
|
|
5904
|
+
},
|
|
5905
|
+
{
|
|
5906
|
+
"name": "disputer",
|
|
5907
|
+
"type": "pubkey"
|
|
5908
|
+
},
|
|
5909
|
+
{
|
|
5910
|
+
"name": "disputed_outcome",
|
|
5911
|
+
"type": {
|
|
5912
|
+
"option": "u8"
|
|
5913
|
+
}
|
|
5914
|
+
},
|
|
5915
|
+
{
|
|
5916
|
+
"name": "refute_bond_amount",
|
|
5917
|
+
"docs": [
|
|
5918
|
+
"Collateral locked by `open_refute` (base units)."
|
|
5919
|
+
],
|
|
5920
|
+
"type": "u64"
|
|
5921
|
+
},
|
|
5922
|
+
{
|
|
5923
|
+
"name": "bump",
|
|
5924
|
+
"type": "u8"
|
|
5925
|
+
},
|
|
5926
|
+
{
|
|
5927
|
+
"name": "_padding",
|
|
5928
|
+
"type": {
|
|
5929
|
+
"array": [
|
|
5930
|
+
"u8",
|
|
5931
|
+
32
|
|
5932
|
+
]
|
|
5933
|
+
}
|
|
5934
|
+
}
|
|
5935
|
+
]
|
|
5936
|
+
}
|
|
5937
|
+
},
|
|
4728
5938
|
{
|
|
4729
5939
|
"name": "ResolutionVote",
|
|
4730
5940
|
"docs": [
|
|
@@ -4743,18 +5953,47 @@
|
|
|
4743
5953
|
"name": "outcome_index",
|
|
4744
5954
|
"type": "u8"
|
|
4745
5955
|
},
|
|
5956
|
+
{
|
|
5957
|
+
"name": "stake_amount",
|
|
5958
|
+
"docs": [
|
|
5959
|
+
"Collateral staked with this vote (base units); set on vote, cleared on revoke."
|
|
5960
|
+
],
|
|
5961
|
+
"type": "u64"
|
|
5962
|
+
},
|
|
5963
|
+
{
|
|
5964
|
+
"name": "claimed",
|
|
5965
|
+
"docs": [
|
|
5966
|
+
"After final resolution, set by `claim_resolver_stake`."
|
|
5967
|
+
],
|
|
5968
|
+
"type": "bool"
|
|
5969
|
+
},
|
|
4746
5970
|
{
|
|
4747
5971
|
"name": "_padding",
|
|
4748
5972
|
"type": {
|
|
4749
5973
|
"array": [
|
|
4750
5974
|
"u8",
|
|
4751
|
-
|
|
5975
|
+
31
|
|
4752
5976
|
]
|
|
4753
5977
|
}
|
|
4754
5978
|
}
|
|
4755
5979
|
]
|
|
4756
5980
|
}
|
|
4757
5981
|
},
|
|
5982
|
+
{
|
|
5983
|
+
"name": "ResolveRefuteArgs",
|
|
5984
|
+
"docs": [
|
|
5985
|
+
"Dismiss an open refute: slash the refuter's bond to the platform treasury token account."
|
|
5986
|
+
],
|
|
5987
|
+
"type": {
|
|
5988
|
+
"kind": "struct",
|
|
5989
|
+
"fields": [
|
|
5990
|
+
{
|
|
5991
|
+
"name": "market_id",
|
|
5992
|
+
"type": "u64"
|
|
5993
|
+
}
|
|
5994
|
+
]
|
|
5995
|
+
}
|
|
5996
|
+
},
|
|
4758
5997
|
{
|
|
4759
5998
|
"name": "Resolver",
|
|
4760
5999
|
"docs": [
|
|
@@ -4784,8 +6023,7 @@
|
|
|
4784
6023
|
{
|
|
4785
6024
|
"name": "RevokeResolutionVoteArgs",
|
|
4786
6025
|
"docs": [
|
|
4787
|
-
"Clears a resolver's active vote
|
|
4788
|
-
"sets `has_voted` false. `outcome_index` must match the stored vote."
|
|
6026
|
+
"Clears a resolver's active vote and refunds the staked collateral."
|
|
4789
6027
|
],
|
|
4790
6028
|
"type": {
|
|
4791
6029
|
"kind": "struct",
|
|
@@ -4811,8 +6049,8 @@
|
|
|
4811
6049
|
{
|
|
4812
6050
|
"name": "UpdateParimutuelStateArgs",
|
|
4813
6051
|
"docs": [
|
|
4814
|
-
"Update the penalty parameters of a pari-mutuel pool
|
|
4815
|
-
"is allowed. Only the market creator can call this.",
|
|
6052
|
+
"Update the penalty parameters of a pari-mutuel pool, whether early `parimutuel_withdraw`",
|
|
6053
|
+
"is allowed, and per-wallet per-outcome stake rules (`Market`). Only the market creator can call this.",
|
|
4816
6054
|
"The market must not be resolved or voided (post-resolution withdrawals are impossible anyway,",
|
|
4817
6055
|
"but we guard here to keep state changes predictable)."
|
|
4818
6056
|
],
|
|
@@ -4844,6 +6082,20 @@
|
|
|
4844
6082
|
"When `false`, `parimutuel_withdraw` is rejected until close or resolution."
|
|
4845
6083
|
],
|
|
4846
6084
|
"type": "bool"
|
|
6085
|
+
},
|
|
6086
|
+
{
|
|
6087
|
+
"name": "max_wallet_outcome_investment",
|
|
6088
|
+
"docs": [
|
|
6089
|
+
"Pari-mutuel: per-wallet per-outcome net stake cap / exact target (base units); `0` = no cap."
|
|
6090
|
+
],
|
|
6091
|
+
"type": "u64"
|
|
6092
|
+
},
|
|
6093
|
+
{
|
|
6094
|
+
"name": "is_wallet_outcome_stake_exact",
|
|
6095
|
+
"docs": [
|
|
6096
|
+
"Pari-mutuel: when `true`, `max_wallet_outcome_investment` is the exact required net stake per wallet per outcome."
|
|
6097
|
+
],
|
|
6098
|
+
"type": "bool"
|
|
4847
6099
|
}
|
|
4848
6100
|
]
|
|
4849
6101
|
}
|
|
@@ -4920,9 +6172,8 @@
|
|
|
4920
6172
|
{
|
|
4921
6173
|
"name": "VoteResolutionArgs",
|
|
4922
6174
|
"docs": [
|
|
4923
|
-
"A resolver casts a vote for an outcome.
|
|
4924
|
-
"
|
|
4925
|
-
"The `MarketOutcome` PDA must exist (`initialize_market_outcome`)."
|
|
6175
|
+
"A resolver casts a vote for an outcome. Transfers `platform_profile.resolver_stake`",
|
|
6176
|
+
"collateral into `resolver_stake_vault`. Requires `has_voted == false`."
|
|
4926
6177
|
],
|
|
4927
6178
|
"type": {
|
|
4928
6179
|
"kind": "struct",
|