@bench.games/conviction-markets 0.1.0

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