@vercora-protocol/sdk 0.0.6 → 0.0.8
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/README.md +18 -1
- package/dist/client.d.ts +25 -7
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +151 -13
- package/dist/client.js.map +1 -1
- package/dist/generated/vercora.d.ts +684 -66
- package/dist/generated/vercora.d.ts.map +1 -1
- package/dist/pda.d.ts +12 -2
- package/dist/pda.d.ts.map +1 -1
- package/dist/pda.js +19 -3
- package/dist/pda.js.map +1 -1
- package/dist/types.d.ts +54 -16
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -270,6 +270,89 @@ export type Vercora = {
|
|
|
270
270
|
}
|
|
271
271
|
];
|
|
272
272
|
},
|
|
273
|
+
{
|
|
274
|
+
"name": "closePlatformProfile";
|
|
275
|
+
"discriminator": [
|
|
276
|
+
5,
|
|
277
|
+
89,
|
|
278
|
+
122,
|
|
279
|
+
131,
|
|
280
|
+
64,
|
|
281
|
+
162,
|
|
282
|
+
136,
|
|
283
|
+
186
|
|
284
|
+
];
|
|
285
|
+
"accounts": [
|
|
286
|
+
{
|
|
287
|
+
"name": "platformRegistry";
|
|
288
|
+
"pda": {
|
|
289
|
+
"seeds": [
|
|
290
|
+
{
|
|
291
|
+
"kind": "const";
|
|
292
|
+
"value": [
|
|
293
|
+
112,
|
|
294
|
+
108,
|
|
295
|
+
97,
|
|
296
|
+
116,
|
|
297
|
+
102,
|
|
298
|
+
111,
|
|
299
|
+
114,
|
|
300
|
+
109
|
|
301
|
+
];
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"kind": "arg";
|
|
305
|
+
"path": "platformId";
|
|
306
|
+
}
|
|
307
|
+
];
|
|
308
|
+
};
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "platformProfile";
|
|
312
|
+
"writable": true;
|
|
313
|
+
"pda": {
|
|
314
|
+
"seeds": [
|
|
315
|
+
{
|
|
316
|
+
"kind": "const";
|
|
317
|
+
"value": [
|
|
318
|
+
112,
|
|
319
|
+
108,
|
|
320
|
+
97,
|
|
321
|
+
116,
|
|
322
|
+
102,
|
|
323
|
+
111,
|
|
324
|
+
114,
|
|
325
|
+
109,
|
|
326
|
+
45,
|
|
327
|
+
112,
|
|
328
|
+
114,
|
|
329
|
+
111,
|
|
330
|
+
102,
|
|
331
|
+
105,
|
|
332
|
+
108,
|
|
333
|
+
101
|
|
334
|
+
];
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"kind": "arg";
|
|
338
|
+
"path": "platformId";
|
|
339
|
+
}
|
|
340
|
+
];
|
|
341
|
+
};
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "profileAuthority";
|
|
345
|
+
"writable": true;
|
|
346
|
+
"signer": true;
|
|
347
|
+
}
|
|
348
|
+
];
|
|
349
|
+
"args": [
|
|
350
|
+
{
|
|
351
|
+
"name": "platformId";
|
|
352
|
+
"type": "u64";
|
|
353
|
+
}
|
|
354
|
+
];
|
|
355
|
+
},
|
|
273
356
|
{
|
|
274
357
|
"name": "closeUserProfile";
|
|
275
358
|
"discriminator": [
|
|
@@ -453,12 +536,72 @@ export type Vercora = {
|
|
|
453
536
|
];
|
|
454
537
|
};
|
|
455
538
|
},
|
|
539
|
+
{
|
|
540
|
+
"name": "platformRegistry";
|
|
541
|
+
"docs": [
|
|
542
|
+
"Pass when `args.platform_id > 0` (PDA `[\"platform\", platform_id]`)."
|
|
543
|
+
];
|
|
544
|
+
"optional": true;
|
|
545
|
+
"pda": {
|
|
546
|
+
"seeds": [
|
|
547
|
+
{
|
|
548
|
+
"kind": "const";
|
|
549
|
+
"value": [
|
|
550
|
+
112,
|
|
551
|
+
108,
|
|
552
|
+
97,
|
|
553
|
+
116,
|
|
554
|
+
102,
|
|
555
|
+
111,
|
|
556
|
+
114,
|
|
557
|
+
109
|
|
558
|
+
];
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"kind": "arg";
|
|
562
|
+
"path": "args.platform_id";
|
|
563
|
+
}
|
|
564
|
+
];
|
|
565
|
+
};
|
|
566
|
+
},
|
|
456
567
|
{
|
|
457
568
|
"name": "marketCategory";
|
|
458
569
|
"docs": [
|
|
459
|
-
"
|
|
570
|
+
"Pass when `args.category_id > 0` (PDA `[\"market-category\", platform_id, category_id]`)."
|
|
460
571
|
];
|
|
461
572
|
"optional": true;
|
|
573
|
+
"pda": {
|
|
574
|
+
"seeds": [
|
|
575
|
+
{
|
|
576
|
+
"kind": "const";
|
|
577
|
+
"value": [
|
|
578
|
+
109,
|
|
579
|
+
97,
|
|
580
|
+
114,
|
|
581
|
+
107,
|
|
582
|
+
101,
|
|
583
|
+
116,
|
|
584
|
+
45,
|
|
585
|
+
99,
|
|
586
|
+
97,
|
|
587
|
+
116,
|
|
588
|
+
101,
|
|
589
|
+
103,
|
|
590
|
+
111,
|
|
591
|
+
114,
|
|
592
|
+
121
|
|
593
|
+
];
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"kind": "arg";
|
|
597
|
+
"path": "args.platform_id";
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"kind": "arg";
|
|
601
|
+
"path": "args.category_id";
|
|
602
|
+
}
|
|
603
|
+
];
|
|
604
|
+
};
|
|
462
605
|
},
|
|
463
606
|
{
|
|
464
607
|
"name": "collateralTokenProgram";
|
|
@@ -498,7 +641,6 @@ export type Vercora = {
|
|
|
498
641
|
"accounts": [
|
|
499
642
|
{
|
|
500
643
|
"name": "globalConfig";
|
|
501
|
-
"writable": true;
|
|
502
644
|
"pda": {
|
|
503
645
|
"seeds": [
|
|
504
646
|
{
|
|
@@ -522,6 +664,31 @@ export type Vercora = {
|
|
|
522
664
|
];
|
|
523
665
|
};
|
|
524
666
|
},
|
|
667
|
+
{
|
|
668
|
+
"name": "platformRegistry";
|
|
669
|
+
"writable": true;
|
|
670
|
+
"pda": {
|
|
671
|
+
"seeds": [
|
|
672
|
+
{
|
|
673
|
+
"kind": "const";
|
|
674
|
+
"value": [
|
|
675
|
+
112,
|
|
676
|
+
108,
|
|
677
|
+
97,
|
|
678
|
+
116,
|
|
679
|
+
102,
|
|
680
|
+
111,
|
|
681
|
+
114,
|
|
682
|
+
109
|
|
683
|
+
];
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"kind": "arg";
|
|
687
|
+
"path": "platformId";
|
|
688
|
+
}
|
|
689
|
+
];
|
|
690
|
+
};
|
|
691
|
+
},
|
|
525
692
|
{
|
|
526
693
|
"name": "marketCategory";
|
|
527
694
|
"writable": true;
|
|
@@ -549,7 +716,12 @@ export type Vercora = {
|
|
|
549
716
|
},
|
|
550
717
|
{
|
|
551
718
|
"kind": "arg";
|
|
552
|
-
"path": "
|
|
719
|
+
"path": "platformId";
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"kind": "account";
|
|
723
|
+
"path": "platform_registry.next_category_id";
|
|
724
|
+
"account": "platformRegistry";
|
|
553
725
|
}
|
|
554
726
|
];
|
|
555
727
|
};
|
|
@@ -566,7 +738,7 @@ export type Vercora = {
|
|
|
566
738
|
];
|
|
567
739
|
"args": [
|
|
568
740
|
{
|
|
569
|
-
"name": "
|
|
741
|
+
"name": "platformId";
|
|
570
742
|
"type": "u64";
|
|
571
743
|
},
|
|
572
744
|
{
|
|
@@ -2036,6 +2208,88 @@ export type Vercora = {
|
|
|
2036
2208
|
}
|
|
2037
2209
|
];
|
|
2038
2210
|
},
|
|
2211
|
+
{
|
|
2212
|
+
"name": "registerPlatform";
|
|
2213
|
+
"discriminator": [
|
|
2214
|
+
115,
|
|
2215
|
+
120,
|
|
2216
|
+
8,
|
|
2217
|
+
254,
|
|
2218
|
+
177,
|
|
2219
|
+
20,
|
|
2220
|
+
8,
|
|
2221
|
+
168
|
|
2222
|
+
];
|
|
2223
|
+
"accounts": [
|
|
2224
|
+
{
|
|
2225
|
+
"name": "globalConfig";
|
|
2226
|
+
"writable": true;
|
|
2227
|
+
"pda": {
|
|
2228
|
+
"seeds": [
|
|
2229
|
+
{
|
|
2230
|
+
"kind": "const";
|
|
2231
|
+
"value": [
|
|
2232
|
+
103,
|
|
2233
|
+
108,
|
|
2234
|
+
111,
|
|
2235
|
+
98,
|
|
2236
|
+
97,
|
|
2237
|
+
108,
|
|
2238
|
+
45,
|
|
2239
|
+
99,
|
|
2240
|
+
111,
|
|
2241
|
+
110,
|
|
2242
|
+
102,
|
|
2243
|
+
105,
|
|
2244
|
+
103
|
|
2245
|
+
];
|
|
2246
|
+
}
|
|
2247
|
+
];
|
|
2248
|
+
};
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
"name": "platformRegistry";
|
|
2252
|
+
"writable": true;
|
|
2253
|
+
"pda": {
|
|
2254
|
+
"seeds": [
|
|
2255
|
+
{
|
|
2256
|
+
"kind": "const";
|
|
2257
|
+
"value": [
|
|
2258
|
+
112,
|
|
2259
|
+
108,
|
|
2260
|
+
97,
|
|
2261
|
+
116,
|
|
2262
|
+
102,
|
|
2263
|
+
111,
|
|
2264
|
+
114,
|
|
2265
|
+
109
|
|
2266
|
+
];
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
"kind": "account";
|
|
2270
|
+
"path": "global_config.next_platform_id";
|
|
2271
|
+
"account": "globalConfig";
|
|
2272
|
+
}
|
|
2273
|
+
];
|
|
2274
|
+
};
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"name": "authority";
|
|
2278
|
+
"writable": true;
|
|
2279
|
+
"signer": true;
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"name": "systemProgram";
|
|
2283
|
+
"address": "11111111111111111111111111111111";
|
|
2284
|
+
}
|
|
2285
|
+
];
|
|
2286
|
+
"args": [
|
|
2287
|
+
{
|
|
2288
|
+
"name": "profileAuthority";
|
|
2289
|
+
"type": "pubkey";
|
|
2290
|
+
}
|
|
2291
|
+
];
|
|
2292
|
+
},
|
|
2039
2293
|
{
|
|
2040
2294
|
"name": "removeAllowedCollateralMint";
|
|
2041
2295
|
"discriminator": [
|
|
@@ -2325,7 +2579,12 @@ export type Vercora = {
|
|
|
2325
2579
|
},
|
|
2326
2580
|
{
|
|
2327
2581
|
"kind": "account";
|
|
2328
|
-
"path": "market_category.
|
|
2582
|
+
"path": "market_category.platform_id";
|
|
2583
|
+
"account": "marketCategory";
|
|
2584
|
+
},
|
|
2585
|
+
{
|
|
2586
|
+
"kind": "account";
|
|
2587
|
+
"path": "market_category.category_id";
|
|
2329
2588
|
"account": "marketCategory";
|
|
2330
2589
|
}
|
|
2331
2590
|
];
|
|
@@ -2438,42 +2697,137 @@ export type Vercora = {
|
|
|
2438
2697
|
];
|
|
2439
2698
|
},
|
|
2440
2699
|
{
|
|
2441
|
-
"name": "
|
|
2700
|
+
"name": "upsertPlatformProfile";
|
|
2442
2701
|
"discriminator": [
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2702
|
+
119,
|
|
2703
|
+
148,
|
|
2704
|
+
66,
|
|
2705
|
+
252,
|
|
2706
|
+
16,
|
|
2707
|
+
251,
|
|
2708
|
+
53,
|
|
2709
|
+
8
|
|
2451
2710
|
];
|
|
2452
2711
|
"accounts": [
|
|
2453
2712
|
{
|
|
2454
|
-
"name": "
|
|
2455
|
-
"writable": true;
|
|
2713
|
+
"name": "platformRegistry";
|
|
2456
2714
|
"pda": {
|
|
2457
2715
|
"seeds": [
|
|
2458
2716
|
{
|
|
2459
2717
|
"kind": "const";
|
|
2460
2718
|
"value": [
|
|
2461
|
-
117,
|
|
2462
|
-
115,
|
|
2463
|
-
101,
|
|
2464
|
-
114,
|
|
2465
|
-
45,
|
|
2466
2719
|
112,
|
|
2467
|
-
114,
|
|
2468
|
-
111,
|
|
2469
|
-
102,
|
|
2470
|
-
105,
|
|
2471
2720
|
108,
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2721
|
+
97,
|
|
2722
|
+
116,
|
|
2723
|
+
102,
|
|
2724
|
+
111,
|
|
2725
|
+
114,
|
|
2726
|
+
109
|
|
2727
|
+
];
|
|
2728
|
+
},
|
|
2729
|
+
{
|
|
2730
|
+
"kind": "arg";
|
|
2731
|
+
"path": "platformId";
|
|
2732
|
+
}
|
|
2733
|
+
];
|
|
2734
|
+
};
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"name": "platformProfile";
|
|
2738
|
+
"writable": true;
|
|
2739
|
+
"pda": {
|
|
2740
|
+
"seeds": [
|
|
2741
|
+
{
|
|
2742
|
+
"kind": "const";
|
|
2743
|
+
"value": [
|
|
2744
|
+
112,
|
|
2745
|
+
108,
|
|
2746
|
+
97,
|
|
2747
|
+
116,
|
|
2748
|
+
102,
|
|
2749
|
+
111,
|
|
2750
|
+
114,
|
|
2751
|
+
109,
|
|
2752
|
+
45,
|
|
2753
|
+
112,
|
|
2754
|
+
114,
|
|
2755
|
+
111,
|
|
2756
|
+
102,
|
|
2757
|
+
105,
|
|
2758
|
+
108,
|
|
2759
|
+
101
|
|
2760
|
+
];
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
"kind": "arg";
|
|
2764
|
+
"path": "platformId";
|
|
2765
|
+
}
|
|
2766
|
+
];
|
|
2767
|
+
};
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
"name": "profileAuthority";
|
|
2771
|
+
"writable": true;
|
|
2772
|
+
"signer": true;
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"name": "systemProgram";
|
|
2776
|
+
"address": "11111111111111111111111111111111";
|
|
2777
|
+
}
|
|
2778
|
+
];
|
|
2779
|
+
"args": [
|
|
2780
|
+
{
|
|
2781
|
+
"name": "platformId";
|
|
2782
|
+
"type": "u64";
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
"name": "displayName";
|
|
2786
|
+
"type": "string";
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"name": "url";
|
|
2790
|
+
"type": "string";
|
|
2791
|
+
}
|
|
2792
|
+
];
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
"name": "upsertUserProfile";
|
|
2796
|
+
"discriminator": [
|
|
2797
|
+
28,
|
|
2798
|
+
23,
|
|
2799
|
+
233,
|
|
2800
|
+
225,
|
|
2801
|
+
9,
|
|
2802
|
+
108,
|
|
2803
|
+
138,
|
|
2804
|
+
54
|
|
2805
|
+
];
|
|
2806
|
+
"accounts": [
|
|
2807
|
+
{
|
|
2808
|
+
"name": "userProfile";
|
|
2809
|
+
"writable": true;
|
|
2810
|
+
"pda": {
|
|
2811
|
+
"seeds": [
|
|
2812
|
+
{
|
|
2813
|
+
"kind": "const";
|
|
2814
|
+
"value": [
|
|
2815
|
+
117,
|
|
2816
|
+
115,
|
|
2817
|
+
101,
|
|
2818
|
+
114,
|
|
2819
|
+
45,
|
|
2820
|
+
112,
|
|
2821
|
+
114,
|
|
2822
|
+
111,
|
|
2823
|
+
102,
|
|
2824
|
+
105,
|
|
2825
|
+
108,
|
|
2826
|
+
101
|
|
2827
|
+
];
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
"kind": "account";
|
|
2477
2831
|
"path": "wallet";
|
|
2478
2832
|
}
|
|
2479
2833
|
];
|
|
@@ -2503,6 +2857,93 @@ export type Vercora = {
|
|
|
2503
2857
|
}
|
|
2504
2858
|
];
|
|
2505
2859
|
},
|
|
2860
|
+
{
|
|
2861
|
+
"name": "verifyPlatformProfile";
|
|
2862
|
+
"discriminator": [
|
|
2863
|
+
6,
|
|
2864
|
+
217,
|
|
2865
|
+
93,
|
|
2866
|
+
232,
|
|
2867
|
+
216,
|
|
2868
|
+
31,
|
|
2869
|
+
64,
|
|
2870
|
+
255
|
|
2871
|
+
];
|
|
2872
|
+
"accounts": [
|
|
2873
|
+
{
|
|
2874
|
+
"name": "platformProfile";
|
|
2875
|
+
"writable": true;
|
|
2876
|
+
"pda": {
|
|
2877
|
+
"seeds": [
|
|
2878
|
+
{
|
|
2879
|
+
"kind": "const";
|
|
2880
|
+
"value": [
|
|
2881
|
+
112,
|
|
2882
|
+
108,
|
|
2883
|
+
97,
|
|
2884
|
+
116,
|
|
2885
|
+
102,
|
|
2886
|
+
111,
|
|
2887
|
+
114,
|
|
2888
|
+
109,
|
|
2889
|
+
45,
|
|
2890
|
+
112,
|
|
2891
|
+
114,
|
|
2892
|
+
111,
|
|
2893
|
+
102,
|
|
2894
|
+
105,
|
|
2895
|
+
108,
|
|
2896
|
+
101
|
|
2897
|
+
];
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
"kind": "arg";
|
|
2901
|
+
"path": "platformId";
|
|
2902
|
+
}
|
|
2903
|
+
];
|
|
2904
|
+
};
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
"name": "authority";
|
|
2908
|
+
"signer": true;
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
"name": "globalConfig";
|
|
2912
|
+
"pda": {
|
|
2913
|
+
"seeds": [
|
|
2914
|
+
{
|
|
2915
|
+
"kind": "const";
|
|
2916
|
+
"value": [
|
|
2917
|
+
103,
|
|
2918
|
+
108,
|
|
2919
|
+
111,
|
|
2920
|
+
98,
|
|
2921
|
+
97,
|
|
2922
|
+
108,
|
|
2923
|
+
45,
|
|
2924
|
+
99,
|
|
2925
|
+
111,
|
|
2926
|
+
110,
|
|
2927
|
+
102,
|
|
2928
|
+
105,
|
|
2929
|
+
103
|
|
2930
|
+
];
|
|
2931
|
+
}
|
|
2932
|
+
];
|
|
2933
|
+
};
|
|
2934
|
+
}
|
|
2935
|
+
];
|
|
2936
|
+
"args": [
|
|
2937
|
+
{
|
|
2938
|
+
"name": "platformId";
|
|
2939
|
+
"type": "u64";
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
"name": "verified";
|
|
2943
|
+
"type": "bool";
|
|
2944
|
+
}
|
|
2945
|
+
];
|
|
2946
|
+
},
|
|
2506
2947
|
{
|
|
2507
2948
|
"name": "verifyUserProfile";
|
|
2508
2949
|
"discriminator": [
|
|
@@ -2847,6 +3288,32 @@ export type Vercora = {
|
|
|
2847
3288
|
185
|
|
2848
3289
|
];
|
|
2849
3290
|
},
|
|
3291
|
+
{
|
|
3292
|
+
"name": "platformProfile";
|
|
3293
|
+
"discriminator": [
|
|
3294
|
+
86,
|
|
3295
|
+
18,
|
|
3296
|
+
120,
|
|
3297
|
+
181,
|
|
3298
|
+
59,
|
|
3299
|
+
28,
|
|
3300
|
+
203,
|
|
3301
|
+
28
|
|
3302
|
+
];
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"name": "platformRegistry";
|
|
3306
|
+
"discriminator": [
|
|
3307
|
+
131,
|
|
3308
|
+
232,
|
|
3309
|
+
113,
|
|
3310
|
+
28,
|
|
3311
|
+
210,
|
|
3312
|
+
200,
|
|
3313
|
+
28,
|
|
3314
|
+
174
|
|
3315
|
+
];
|
|
3316
|
+
},
|
|
2850
3317
|
{
|
|
2851
3318
|
"name": "resolutionVote";
|
|
2852
3319
|
"discriminator": [
|
|
@@ -3056,45 +3523,60 @@ export type Vercora = {
|
|
|
3056
3523
|
{
|
|
3057
3524
|
"code": 6033;
|
|
3058
3525
|
"name": "invalidCategoryId";
|
|
3059
|
-
"msg": "category_id must match
|
|
3526
|
+
"msg": "category_id must match platform_registry.next_category_id for this platform";
|
|
3060
3527
|
},
|
|
3061
3528
|
{
|
|
3062
3529
|
"code": 6034;
|
|
3530
|
+
"name": "invalidMarketPlatformCategory";
|
|
3531
|
+
"msg": "platform_id must be non-zero when category_id is non-zero";
|
|
3532
|
+
},
|
|
3533
|
+
{
|
|
3534
|
+
"code": 6035;
|
|
3535
|
+
"name": "invalidPlatformId";
|
|
3536
|
+
"msg": "Invalid or unregistered platform_id";
|
|
3537
|
+
},
|
|
3538
|
+
{
|
|
3539
|
+
"code": 6036;
|
|
3540
|
+
"name": "invalidProfileAuthority";
|
|
3541
|
+
"msg": "profile_authority cannot be default pubkey";
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
"code": 6037;
|
|
3063
3545
|
"name": "wrongMarketType";
|
|
3064
3546
|
"msg": "This instruction requires a different market type";
|
|
3065
3547
|
},
|
|
3066
3548
|
{
|
|
3067
|
-
"code":
|
|
3549
|
+
"code": 6038;
|
|
3068
3550
|
"name": "invalidParimutuelPenalty";
|
|
3069
3551
|
"msg": "Parimutuel penalty or split parameters are invalid";
|
|
3070
3552
|
},
|
|
3071
3553
|
{
|
|
3072
|
-
"code":
|
|
3554
|
+
"code": 6039;
|
|
3073
3555
|
"name": "parimutuelNotInitialized";
|
|
3074
3556
|
"msg": "Parimutuel state not initialized for this market";
|
|
3075
3557
|
},
|
|
3076
3558
|
{
|
|
3077
|
-
"code":
|
|
3559
|
+
"code": 6040;
|
|
3078
3560
|
"name": "parimutuelInsufficientStake";
|
|
3079
3561
|
"msg": "Stake or withdrawal amount exceeds balance";
|
|
3080
3562
|
},
|
|
3081
3563
|
{
|
|
3082
|
-
"code":
|
|
3564
|
+
"code": 6041;
|
|
3083
3565
|
"name": "parimutuelEmptyWinningPool";
|
|
3084
3566
|
"msg": "Winning outcome pool is empty — cannot claim";
|
|
3085
3567
|
},
|
|
3086
3568
|
{
|
|
3087
|
-
"code":
|
|
3569
|
+
"code": 6042;
|
|
3088
3570
|
"name": "parimutuelAlreadyClaimed";
|
|
3089
3571
|
"msg": "Position already claimed";
|
|
3090
3572
|
},
|
|
3091
3573
|
{
|
|
3092
|
-
"code":
|
|
3574
|
+
"code": 6043;
|
|
3093
3575
|
"name": "onlyMarketCreator";
|
|
3094
3576
|
"msg": "Only the market creator may initialize resolver accounts";
|
|
3095
3577
|
},
|
|
3096
3578
|
{
|
|
3097
|
-
"code":
|
|
3579
|
+
"code": 6044;
|
|
3098
3580
|
"name": "vaultNotEmpty";
|
|
3099
3581
|
"msg": "Vault must be empty before abandoning the market";
|
|
3100
3582
|
}
|
|
@@ -3123,7 +3605,9 @@ export type Vercora = {
|
|
|
3123
3605
|
{
|
|
3124
3606
|
"name": "allowedMint";
|
|
3125
3607
|
"docs": [
|
|
3126
|
-
"
|
|
3608
|
+
"Allowlist entry: this SPL mint may be used as `Market.collateral_mint`.",
|
|
3609
|
+
"PDA seeds: `[b\"allowed-mint\", mint.key()]`.",
|
|
3610
|
+
"Created by global authority via `add_allowed_collateral_mint`; removed via `remove_allowed_collateral_mint`."
|
|
3127
3611
|
];
|
|
3128
3612
|
"type": {
|
|
3129
3613
|
"kind": "struct";
|
|
@@ -3137,7 +3621,7 @@ export type Vercora = {
|
|
|
3137
3621
|
"type": {
|
|
3138
3622
|
"array": [
|
|
3139
3623
|
"u8",
|
|
3140
|
-
|
|
3624
|
+
30
|
|
3141
3625
|
];
|
|
3142
3626
|
};
|
|
3143
3627
|
}
|
|
@@ -3222,6 +3706,20 @@ export type Vercora = {
|
|
|
3222
3706
|
"name": "marketType";
|
|
3223
3707
|
};
|
|
3224
3708
|
};
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
"name": "platformId";
|
|
3712
|
+
"docs": [
|
|
3713
|
+
"`0` = not scoped to a registered platform. Otherwise must match `platform_registry`."
|
|
3714
|
+
];
|
|
3715
|
+
"type": "u64";
|
|
3716
|
+
},
|
|
3717
|
+
{
|
|
3718
|
+
"name": "categoryId";
|
|
3719
|
+
"docs": [
|
|
3720
|
+
"`0` = uncategorized. Otherwise must match a `MarketCategory` for this `platform_id`."
|
|
3721
|
+
];
|
|
3722
|
+
"type": "u64";
|
|
3225
3723
|
}
|
|
3226
3724
|
];
|
|
3227
3725
|
};
|
|
@@ -3244,6 +3742,11 @@ export type Vercora = {
|
|
|
3244
3742
|
},
|
|
3245
3743
|
{
|
|
3246
3744
|
"name": "globalConfig";
|
|
3745
|
+
"docs": [
|
|
3746
|
+
"Singleton program config: fees, treasury, platform id counter, authorities.",
|
|
3747
|
+
"PDA seeds: `[b\"global-config\"]` (exactly one account).",
|
|
3748
|
+
"Initialized in `initialize_config`; updated in `update_config` by primary or secondary authority."
|
|
3749
|
+
];
|
|
3247
3750
|
"type": {
|
|
3248
3751
|
"kind": "struct";
|
|
3249
3752
|
"fields": [
|
|
@@ -3282,9 +3785,9 @@ export type Vercora = {
|
|
|
3282
3785
|
"type": "u64";
|
|
3283
3786
|
},
|
|
3284
3787
|
{
|
|
3285
|
-
"name": "
|
|
3788
|
+
"name": "nextPlatformId";
|
|
3286
3789
|
"docs": [
|
|
3287
|
-
"Next
|
|
3790
|
+
"Next `platform_id` to assign in `register_platform` (starts at 1; `0` = none)."
|
|
3288
3791
|
];
|
|
3289
3792
|
"type": "u64";
|
|
3290
3793
|
},
|
|
@@ -3301,7 +3804,7 @@ export type Vercora = {
|
|
|
3301
3804
|
"type": {
|
|
3302
3805
|
"array": [
|
|
3303
3806
|
"u8",
|
|
3304
|
-
|
|
3807
|
+
40
|
|
3305
3808
|
];
|
|
3306
3809
|
};
|
|
3307
3810
|
}
|
|
@@ -3408,6 +3911,11 @@ export type Vercora = {
|
|
|
3408
3911
|
},
|
|
3409
3912
|
{
|
|
3410
3913
|
"name": "market";
|
|
3914
|
+
"docs": [
|
|
3915
|
+
"Core market state: collateral, outcomes, fees, resolution, optional platform/category ids.",
|
|
3916
|
+
"PDA seeds: `[b\"market\", creator.key(), market_id.to_le_bytes()]` (u64 little-endian).",
|
|
3917
|
+
"Collateral vault is a separate PDA: `[market.key(), b\"vault\"]`. Created in `create_market` by the creator."
|
|
3918
|
+
];
|
|
3411
3919
|
"type": {
|
|
3412
3920
|
"kind": "struct";
|
|
3413
3921
|
"fields": [
|
|
@@ -3487,11 +3995,11 @@ export type Vercora = {
|
|
|
3487
3995
|
"type": "string";
|
|
3488
3996
|
},
|
|
3489
3997
|
{
|
|
3490
|
-
"name": "
|
|
3998
|
+
"name": "categoryId";
|
|
3491
3999
|
"docs": [
|
|
3492
|
-
"`
|
|
4000
|
+
"`0` = uncategorized. Otherwise pairs with `platform_id` for category PDA derivation."
|
|
3493
4001
|
];
|
|
3494
|
-
"type": "
|
|
4002
|
+
"type": "u64";
|
|
3495
4003
|
},
|
|
3496
4004
|
{
|
|
3497
4005
|
"name": "marketType";
|
|
@@ -3526,6 +4034,13 @@ export type Vercora = {
|
|
|
3526
4034
|
];
|
|
3527
4035
|
"type": "u64";
|
|
3528
4036
|
},
|
|
4037
|
+
{
|
|
4038
|
+
"name": "platformId";
|
|
4039
|
+
"docs": [
|
|
4040
|
+
"Site / partner id for discovery filtering and category scope. `0` = not scoped to a platform."
|
|
4041
|
+
];
|
|
4042
|
+
"type": "u64";
|
|
4043
|
+
},
|
|
3529
4044
|
{
|
|
3530
4045
|
"name": "padding";
|
|
3531
4046
|
"type": {
|
|
@@ -3541,15 +4056,21 @@ export type Vercora = {
|
|
|
3541
4056
|
{
|
|
3542
4057
|
"name": "marketCategory";
|
|
3543
4058
|
"docs": [
|
|
3544
|
-
"
|
|
4059
|
+
"Display name for a category under one platform (`platform_id`, `category_id`).",
|
|
4060
|
+
"PDA seeds: `[b\"market-category\", platform_id.to_le_bytes(), category_id.to_le_bytes()]`.",
|
|
4061
|
+
"Created in `create_market_category` (global authority); updated in `update_market_category`."
|
|
3545
4062
|
];
|
|
3546
4063
|
"type": {
|
|
3547
4064
|
"kind": "struct";
|
|
3548
4065
|
"fields": [
|
|
3549
4066
|
{
|
|
3550
|
-
"name": "
|
|
4067
|
+
"name": "platformId";
|
|
4068
|
+
"type": "u64";
|
|
4069
|
+
},
|
|
4070
|
+
{
|
|
4071
|
+
"name": "categoryId";
|
|
3551
4072
|
"docs": [
|
|
3552
|
-
"Monotonic id (matches PDA seed)."
|
|
4073
|
+
"Monotonic per-platform id (matches PDA seed)."
|
|
3553
4074
|
];
|
|
3554
4075
|
"type": "u64";
|
|
3555
4076
|
},
|
|
@@ -3570,7 +4091,7 @@ export type Vercora = {
|
|
|
3570
4091
|
"type": {
|
|
3571
4092
|
"array": [
|
|
3572
4093
|
"u8",
|
|
3573
|
-
|
|
4094
|
+
40
|
|
3574
4095
|
];
|
|
3575
4096
|
};
|
|
3576
4097
|
}
|
|
@@ -3580,8 +4101,9 @@ export type Vercora = {
|
|
|
3580
4101
|
{
|
|
3581
4102
|
"name": "marketOutcome";
|
|
3582
4103
|
"docs": [
|
|
3583
|
-
"Per-outcome
|
|
3584
|
-
"`[market, b\"outcome\", outcome_index]
|
|
4104
|
+
"Per-outcome label and resolution vote tally for that outcome.",
|
|
4105
|
+
"PDA seeds: `[market.key(), b\"outcome\", outcome_index]` (single-byte index).",
|
|
4106
|
+
"Initialized by market creator in `initialize_market_outcome` (once per outcome index)."
|
|
3585
4107
|
];
|
|
3586
4108
|
"type": {
|
|
3587
4109
|
"kind": "struct";
|
|
@@ -3619,7 +4141,8 @@ export type Vercora = {
|
|
|
3619
4141
|
{
|
|
3620
4142
|
"name": "marketType";
|
|
3621
4143
|
"docs": [
|
|
3622
|
-
"
|
|
4144
|
+
"Market mechanics variant stored in [`Market::market_type`](super::market::Market) (not a separate account).",
|
|
4145
|
+
"Serialized as `u8` (`repr(u8)`); set at `create_market` and immutable thereafter."
|
|
3623
4146
|
];
|
|
3624
4147
|
"repr": {
|
|
3625
4148
|
"kind": "rust";
|
|
@@ -3677,7 +4200,9 @@ export type Vercora = {
|
|
|
3677
4200
|
{
|
|
3678
4201
|
"name": "parimutuelPosition";
|
|
3679
4202
|
"docs": [
|
|
3680
|
-
"
|
|
4203
|
+
"User’s pari-mutuel stake ledger for one outcome on one market.",
|
|
4204
|
+
"PDA seeds: `[b\"pari-pos\", market.key(), user.key(), outcome_index]` (single-byte last seed).",
|
|
4205
|
+
"Created/updated by `parimutuel_stake`, `parimutuel_withdraw`, `parimutuel_claim`."
|
|
3681
4206
|
];
|
|
3682
4207
|
"type": {
|
|
3683
4208
|
"kind": "struct";
|
|
@@ -3719,7 +4244,7 @@ export type Vercora = {
|
|
|
3719
4244
|
"type": {
|
|
3720
4245
|
"array": [
|
|
3721
4246
|
"u8",
|
|
3722
|
-
|
|
4247
|
+
40
|
|
3723
4248
|
];
|
|
3724
4249
|
};
|
|
3725
4250
|
}
|
|
@@ -3753,7 +4278,9 @@ export type Vercora = {
|
|
|
3753
4278
|
{
|
|
3754
4279
|
"name": "parimutuelState";
|
|
3755
4280
|
"docs": [
|
|
3756
|
-
"
|
|
4281
|
+
"Pari-mutuel pool totals, penalties, and post-resolution snapshots for one market.",
|
|
4282
|
+
"PDA seeds: `[b\"pari\", market.key()]`.",
|
|
4283
|
+
"Initialized in `initialize_parimutuel_state` (creator); pool params updated in `update_parimutuel_state`."
|
|
3757
4284
|
];
|
|
3758
4285
|
"type": {
|
|
3759
4286
|
"kind": "struct";
|
|
@@ -3822,7 +4349,7 @@ export type Vercora = {
|
|
|
3822
4349
|
"type": {
|
|
3823
4350
|
"array": [
|
|
3824
4351
|
"u8",
|
|
3825
|
-
|
|
4352
|
+
40
|
|
3826
4353
|
];
|
|
3827
4354
|
};
|
|
3828
4355
|
}
|
|
@@ -3849,6 +4376,90 @@ export type Vercora = {
|
|
|
3849
4376
|
];
|
|
3850
4377
|
};
|
|
3851
4378
|
},
|
|
4379
|
+
{
|
|
4380
|
+
"name": "platformProfile";
|
|
4381
|
+
"docs": [
|
|
4382
|
+
"Site / partner metadata for a registered `platform_id` (from `register_platform`).",
|
|
4383
|
+
"PDA seeds: `[b\"platform-profile\", platform_id.to_le_bytes()]`.",
|
|
4384
|
+
"Upserted/closed by `profile_authority` on [`PlatformRegistry`](super::platform_registry::PlatformRegistry); `verified` set by global authority in `verify_platform_profile`."
|
|
4385
|
+
];
|
|
4386
|
+
"type": {
|
|
4387
|
+
"kind": "struct";
|
|
4388
|
+
"fields": [
|
|
4389
|
+
{
|
|
4390
|
+
"name": "displayName";
|
|
4391
|
+
"type": "string";
|
|
4392
|
+
},
|
|
4393
|
+
{
|
|
4394
|
+
"name": "url";
|
|
4395
|
+
"type": "string";
|
|
4396
|
+
},
|
|
4397
|
+
{
|
|
4398
|
+
"name": "verified";
|
|
4399
|
+
"docs": [
|
|
4400
|
+
"Set exclusively by the platform authority via `verify_platform_profile`."
|
|
4401
|
+
];
|
|
4402
|
+
"type": "bool";
|
|
4403
|
+
},
|
|
4404
|
+
{
|
|
4405
|
+
"name": "padding";
|
|
4406
|
+
"type": {
|
|
4407
|
+
"array": [
|
|
4408
|
+
"u8",
|
|
4409
|
+
40
|
|
4410
|
+
];
|
|
4411
|
+
};
|
|
4412
|
+
}
|
|
4413
|
+
];
|
|
4414
|
+
};
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
"name": "platformRegistry";
|
|
4418
|
+
"docs": [
|
|
4419
|
+
"Per-platform registry: next category id and who may edit [`PlatformProfile`](super::platform_profile::PlatformProfile).",
|
|
4420
|
+
"PDA seeds: `[b\"platform\", platform_id.to_le_bytes()]`.",
|
|
4421
|
+
"Created in `register_platform` (global authority assigns `platform_id` from `GlobalConfig.next_platform_id`)."
|
|
4422
|
+
];
|
|
4423
|
+
"type": {
|
|
4424
|
+
"kind": "struct";
|
|
4425
|
+
"fields": [
|
|
4426
|
+
{
|
|
4427
|
+
"name": "platformId";
|
|
4428
|
+
"docs": [
|
|
4429
|
+
"Matches PDA seed (assigned at `register_platform`)."
|
|
4430
|
+
];
|
|
4431
|
+
"type": "u64";
|
|
4432
|
+
},
|
|
4433
|
+
{
|
|
4434
|
+
"name": "nextCategoryId";
|
|
4435
|
+
"docs": [
|
|
4436
|
+
"Next `category_id` for [`MarketCategory`] under this platform."
|
|
4437
|
+
];
|
|
4438
|
+
"type": "u64";
|
|
4439
|
+
},
|
|
4440
|
+
{
|
|
4441
|
+
"name": "profileAuthority";
|
|
4442
|
+
"docs": [
|
|
4443
|
+
"Signs `upsert_platform_profile` / `close_platform_profile` for this `platform_id`."
|
|
4444
|
+
];
|
|
4445
|
+
"type": "pubkey";
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
"name": "bump";
|
|
4449
|
+
"type": "u8";
|
|
4450
|
+
},
|
|
4451
|
+
{
|
|
4452
|
+
"name": "padding";
|
|
4453
|
+
"type": {
|
|
4454
|
+
"array": [
|
|
4455
|
+
"u8",
|
|
4456
|
+
64
|
|
4457
|
+
];
|
|
4458
|
+
};
|
|
4459
|
+
}
|
|
4460
|
+
];
|
|
4461
|
+
};
|
|
4462
|
+
},
|
|
3852
4463
|
{
|
|
3853
4464
|
"name": "redeemCompleteSetArgs";
|
|
3854
4465
|
"type": {
|
|
@@ -3880,9 +4491,9 @@ export type Vercora = {
|
|
|
3880
4491
|
{
|
|
3881
4492
|
"name": "resolutionVote";
|
|
3882
4493
|
"docs": [
|
|
3883
|
-
"
|
|
3884
|
-
"
|
|
3885
|
-
"
|
|
4494
|
+
"Resolver vote state for one slot: whether they voted and which outcome they chose.",
|
|
4495
|
+
"PDA seeds: `[market.key(), b\"vote\", resolver_index]` (single-byte index).",
|
|
4496
|
+
"Written by `vote_resolution` / `revoke_resolution_vote`; `has_voted` gates re-votes until revoke."
|
|
3886
4497
|
];
|
|
3887
4498
|
"type": {
|
|
3888
4499
|
"kind": "struct";
|
|
@@ -3900,7 +4511,7 @@ export type Vercora = {
|
|
|
3900
4511
|
"type": {
|
|
3901
4512
|
"array": [
|
|
3902
4513
|
"u8",
|
|
3903
|
-
|
|
4514
|
+
40
|
|
3904
4515
|
];
|
|
3905
4516
|
};
|
|
3906
4517
|
}
|
|
@@ -3910,7 +4521,9 @@ export type Vercora = {
|
|
|
3910
4521
|
{
|
|
3911
4522
|
"name": "resolver";
|
|
3912
4523
|
"docs": [
|
|
3913
|
-
"
|
|
4524
|
+
"Authorized resolver wallet for one slot on a market.",
|
|
4525
|
+
"PDA seeds: `[market.key(), b\"resolver\", resolver_index]` (single-byte index).",
|
|
4526
|
+
"Set by market creator in `initialize_market_resolver`; `vote_resolution` requires `resolver_signer == resolver_pubkey`."
|
|
3914
4527
|
];
|
|
3915
4528
|
"type": {
|
|
3916
4529
|
"kind": "struct";
|
|
@@ -3924,7 +4537,7 @@ export type Vercora = {
|
|
|
3924
4537
|
"type": {
|
|
3925
4538
|
"array": [
|
|
3926
4539
|
"u8",
|
|
3927
|
-
|
|
4540
|
+
40
|
|
3928
4541
|
];
|
|
3929
4542
|
};
|
|
3930
4543
|
}
|
|
@@ -3992,20 +4605,25 @@ export type Vercora = {
|
|
|
3992
4605
|
},
|
|
3993
4606
|
{
|
|
3994
4607
|
"name": "userProfile";
|
|
4608
|
+
"docs": [
|
|
4609
|
+
"Public profile for a user wallet (display name, URL, verification flag).",
|
|
4610
|
+
"PDA seeds: `[b\"user-profile\", wallet.key()]`.",
|
|
4611
|
+
"Upserted/closed by the wallet in `upsert_user_profile` / `close_user_profile`; `verified` set by global authority in `verify_user_profile`."
|
|
4612
|
+
];
|
|
3995
4613
|
"type": {
|
|
3996
4614
|
"kind": "struct";
|
|
3997
4615
|
"fields": [
|
|
3998
4616
|
{
|
|
3999
4617
|
"name": "displayName";
|
|
4000
4618
|
"docs": [
|
|
4001
|
-
"Optional display name chosen by the wallet owner. Max
|
|
4619
|
+
"Optional display name chosen by the wallet owner. Max `MAX_DISPLAY_NAME_LEN` UTF-8 bytes."
|
|
4002
4620
|
];
|
|
4003
4621
|
"type": "string";
|
|
4004
4622
|
},
|
|
4005
4623
|
{
|
|
4006
4624
|
"name": "url";
|
|
4007
4625
|
"docs": [
|
|
4008
|
-
"Optional URL (website / social). Max
|
|
4626
|
+
"Optional URL (website / social). Max `MAX_URL_LEN` UTF-8 bytes."
|
|
4009
4627
|
];
|
|
4010
4628
|
"type": "string";
|
|
4011
4629
|
},
|
|
@@ -4021,7 +4639,7 @@ export type Vercora = {
|
|
|
4021
4639
|
"type": {
|
|
4022
4640
|
"array": [
|
|
4023
4641
|
"u8",
|
|
4024
|
-
|
|
4642
|
+
40
|
|
4025
4643
|
];
|
|
4026
4644
|
};
|
|
4027
4645
|
}
|