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