@cypher-zk/sdk 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-BECBXFEY.d.ts → client-C6xXOySs.d.ts} +840 -452
- package/dist/cypher-3HKPZR2F.json +6053 -0
- package/dist/index.d.ts +66 -58
- package/dist/index.js +193 -114
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +6 -2
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/src/idl/cypher.json +780 -438
- package/src/idl/cypher.ts +780 -438
- package/src/idl/cypher.ts.bak +5717 -0
- /package/{dist/cypher-G57ZWFM3.json → src/idl/cypher.json.bak} +0 -0
package/src/idl/cypher.ts
CHANGED
|
@@ -242,6 +242,30 @@ export type Cypher = {
|
|
|
242
242
|
]
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
|
+
{
|
|
246
|
+
"name": "globalState",
|
|
247
|
+
"pda": {
|
|
248
|
+
"seeds": [
|
|
249
|
+
{
|
|
250
|
+
"kind": "const",
|
|
251
|
+
"value": [
|
|
252
|
+
103,
|
|
253
|
+
108,
|
|
254
|
+
111,
|
|
255
|
+
98,
|
|
256
|
+
97,
|
|
257
|
+
108,
|
|
258
|
+
95,
|
|
259
|
+
115,
|
|
260
|
+
116,
|
|
261
|
+
97,
|
|
262
|
+
116,
|
|
263
|
+
101
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
},
|
|
245
269
|
{
|
|
246
270
|
"name": "marketVault",
|
|
247
271
|
"writable": true,
|
|
@@ -336,35 +360,7 @@ export type Cypher = {
|
|
|
336
360
|
},
|
|
337
361
|
{
|
|
338
362
|
"name": "signPdaAccount",
|
|
339
|
-
"writable": true
|
|
340
|
-
"pda": {
|
|
341
|
-
"seeds": [
|
|
342
|
-
{
|
|
343
|
-
"kind": "const",
|
|
344
|
-
"value": [
|
|
345
|
-
65,
|
|
346
|
-
114,
|
|
347
|
-
99,
|
|
348
|
-
105,
|
|
349
|
-
117,
|
|
350
|
-
109,
|
|
351
|
-
83,
|
|
352
|
-
105,
|
|
353
|
-
103,
|
|
354
|
-
110,
|
|
355
|
-
101,
|
|
356
|
-
114,
|
|
357
|
-
65,
|
|
358
|
-
99,
|
|
359
|
-
99,
|
|
360
|
-
111,
|
|
361
|
-
117,
|
|
362
|
-
110,
|
|
363
|
-
116
|
|
364
|
-
]
|
|
365
|
-
}
|
|
366
|
-
]
|
|
367
|
-
}
|
|
363
|
+
"writable": true
|
|
368
364
|
},
|
|
369
365
|
{
|
|
370
366
|
"name": "mxeAccount"
|
|
@@ -462,6 +458,30 @@ export type Cypher = {
|
|
|
462
458
|
]
|
|
463
459
|
}
|
|
464
460
|
},
|
|
461
|
+
{
|
|
462
|
+
"name": "globalState",
|
|
463
|
+
"pda": {
|
|
464
|
+
"seeds": [
|
|
465
|
+
{
|
|
466
|
+
"kind": "const",
|
|
467
|
+
"value": [
|
|
468
|
+
103,
|
|
469
|
+
108,
|
|
470
|
+
111,
|
|
471
|
+
98,
|
|
472
|
+
97,
|
|
473
|
+
108,
|
|
474
|
+
95,
|
|
475
|
+
115,
|
|
476
|
+
116,
|
|
477
|
+
97,
|
|
478
|
+
116,
|
|
479
|
+
101
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
},
|
|
465
485
|
{
|
|
466
486
|
"name": "marketVault",
|
|
467
487
|
"writable": true,
|
|
@@ -529,35 +549,7 @@ export type Cypher = {
|
|
|
529
549
|
},
|
|
530
550
|
{
|
|
531
551
|
"name": "signPdaAccount",
|
|
532
|
-
"writable": true
|
|
533
|
-
"pda": {
|
|
534
|
-
"seeds": [
|
|
535
|
-
{
|
|
536
|
-
"kind": "const",
|
|
537
|
-
"value": [
|
|
538
|
-
65,
|
|
539
|
-
114,
|
|
540
|
-
99,
|
|
541
|
-
105,
|
|
542
|
-
117,
|
|
543
|
-
109,
|
|
544
|
-
83,
|
|
545
|
-
105,
|
|
546
|
-
103,
|
|
547
|
-
110,
|
|
548
|
-
101,
|
|
549
|
-
114,
|
|
550
|
-
65,
|
|
551
|
-
99,
|
|
552
|
-
99,
|
|
553
|
-
111,
|
|
554
|
-
117,
|
|
555
|
-
110,
|
|
556
|
-
116
|
|
557
|
-
]
|
|
558
|
-
}
|
|
559
|
-
]
|
|
560
|
-
}
|
|
552
|
+
"writable": true
|
|
561
553
|
},
|
|
562
554
|
{
|
|
563
555
|
"name": "mxeAccount"
|
|
@@ -655,6 +647,30 @@ export type Cypher = {
|
|
|
655
647
|
]
|
|
656
648
|
}
|
|
657
649
|
},
|
|
650
|
+
{
|
|
651
|
+
"name": "globalState",
|
|
652
|
+
"pda": {
|
|
653
|
+
"seeds": [
|
|
654
|
+
{
|
|
655
|
+
"kind": "const",
|
|
656
|
+
"value": [
|
|
657
|
+
103,
|
|
658
|
+
108,
|
|
659
|
+
111,
|
|
660
|
+
98,
|
|
661
|
+
97,
|
|
662
|
+
108,
|
|
663
|
+
95,
|
|
664
|
+
115,
|
|
665
|
+
116,
|
|
666
|
+
97,
|
|
667
|
+
116,
|
|
668
|
+
101
|
|
669
|
+
]
|
|
670
|
+
}
|
|
671
|
+
]
|
|
672
|
+
}
|
|
673
|
+
},
|
|
658
674
|
{
|
|
659
675
|
"name": "marketVault",
|
|
660
676
|
"writable": true,
|
|
@@ -722,35 +738,7 @@ export type Cypher = {
|
|
|
722
738
|
},
|
|
723
739
|
{
|
|
724
740
|
"name": "signPdaAccount",
|
|
725
|
-
"writable": true
|
|
726
|
-
"pda": {
|
|
727
|
-
"seeds": [
|
|
728
|
-
{
|
|
729
|
-
"kind": "const",
|
|
730
|
-
"value": [
|
|
731
|
-
65,
|
|
732
|
-
114,
|
|
733
|
-
99,
|
|
734
|
-
105,
|
|
735
|
-
117,
|
|
736
|
-
109,
|
|
737
|
-
83,
|
|
738
|
-
105,
|
|
739
|
-
103,
|
|
740
|
-
110,
|
|
741
|
-
101,
|
|
742
|
-
114,
|
|
743
|
-
65,
|
|
744
|
-
99,
|
|
745
|
-
99,
|
|
746
|
-
111,
|
|
747
|
-
117,
|
|
748
|
-
110,
|
|
749
|
-
116
|
|
750
|
-
]
|
|
751
|
-
}
|
|
752
|
-
]
|
|
753
|
-
}
|
|
741
|
+
"writable": true
|
|
754
742
|
},
|
|
755
743
|
{
|
|
756
744
|
"name": "mxeAccount"
|
|
@@ -848,6 +836,30 @@ export type Cypher = {
|
|
|
848
836
|
]
|
|
849
837
|
}
|
|
850
838
|
},
|
|
839
|
+
{
|
|
840
|
+
"name": "globalState",
|
|
841
|
+
"pda": {
|
|
842
|
+
"seeds": [
|
|
843
|
+
{
|
|
844
|
+
"kind": "const",
|
|
845
|
+
"value": [
|
|
846
|
+
103,
|
|
847
|
+
108,
|
|
848
|
+
111,
|
|
849
|
+
98,
|
|
850
|
+
97,
|
|
851
|
+
108,
|
|
852
|
+
95,
|
|
853
|
+
115,
|
|
854
|
+
116,
|
|
855
|
+
97,
|
|
856
|
+
116,
|
|
857
|
+
101
|
|
858
|
+
]
|
|
859
|
+
}
|
|
860
|
+
]
|
|
861
|
+
}
|
|
862
|
+
},
|
|
851
863
|
{
|
|
852
864
|
"name": "marketVault",
|
|
853
865
|
"writable": true,
|
|
@@ -915,35 +927,7 @@ export type Cypher = {
|
|
|
915
927
|
},
|
|
916
928
|
{
|
|
917
929
|
"name": "signPdaAccount",
|
|
918
|
-
"writable": true
|
|
919
|
-
"pda": {
|
|
920
|
-
"seeds": [
|
|
921
|
-
{
|
|
922
|
-
"kind": "const",
|
|
923
|
-
"value": [
|
|
924
|
-
65,
|
|
925
|
-
114,
|
|
926
|
-
99,
|
|
927
|
-
105,
|
|
928
|
-
117,
|
|
929
|
-
109,
|
|
930
|
-
83,
|
|
931
|
-
105,
|
|
932
|
-
103,
|
|
933
|
-
110,
|
|
934
|
-
101,
|
|
935
|
-
114,
|
|
936
|
-
65,
|
|
937
|
-
99,
|
|
938
|
-
99,
|
|
939
|
-
111,
|
|
940
|
-
117,
|
|
941
|
-
110,
|
|
942
|
-
116
|
|
943
|
-
]
|
|
944
|
-
}
|
|
945
|
-
]
|
|
946
|
-
}
|
|
930
|
+
"writable": true
|
|
947
931
|
},
|
|
948
932
|
{
|
|
949
933
|
"name": "mxeAccount"
|
|
@@ -1041,6 +1025,30 @@ export type Cypher = {
|
|
|
1041
1025
|
]
|
|
1042
1026
|
}
|
|
1043
1027
|
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "globalState",
|
|
1030
|
+
"pda": {
|
|
1031
|
+
"seeds": [
|
|
1032
|
+
{
|
|
1033
|
+
"kind": "const",
|
|
1034
|
+
"value": [
|
|
1035
|
+
103,
|
|
1036
|
+
108,
|
|
1037
|
+
111,
|
|
1038
|
+
98,
|
|
1039
|
+
97,
|
|
1040
|
+
108,
|
|
1041
|
+
95,
|
|
1042
|
+
115,
|
|
1043
|
+
116,
|
|
1044
|
+
97,
|
|
1045
|
+
116,
|
|
1046
|
+
101
|
|
1047
|
+
]
|
|
1048
|
+
}
|
|
1049
|
+
]
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1044
1052
|
{
|
|
1045
1053
|
"name": "marketVault",
|
|
1046
1054
|
"writable": true,
|
|
@@ -1133,22 +1141,46 @@ export type Cypher = {
|
|
|
1133
1141
|
"writable": true
|
|
1134
1142
|
},
|
|
1135
1143
|
{
|
|
1136
|
-
"name": "
|
|
1137
|
-
"
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1144
|
+
"name": "globalState",
|
|
1145
|
+
"pda": {
|
|
1146
|
+
"seeds": [
|
|
1147
|
+
{
|
|
1148
|
+
"kind": "const",
|
|
1149
|
+
"value": [
|
|
1150
|
+
103,
|
|
1151
|
+
108,
|
|
1152
|
+
111,
|
|
1153
|
+
98,
|
|
1154
|
+
97,
|
|
1155
|
+
108,
|
|
1156
|
+
95,
|
|
1157
|
+
115,
|
|
1158
|
+
116,
|
|
1159
|
+
97,
|
|
1160
|
+
116,
|
|
1161
|
+
101
|
|
1162
|
+
]
|
|
1163
|
+
}
|
|
1164
|
+
]
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"name": "marketVault",
|
|
1169
|
+
"writable": true
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"name": "userTokenAccount",
|
|
1173
|
+
"writable": true
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"name": "tokenProgram"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"name": "systemProgram",
|
|
1180
|
+
"address": "11111111111111111111111111111111"
|
|
1181
|
+
}
|
|
1182
|
+
],
|
|
1183
|
+
"args": [
|
|
1152
1184
|
{
|
|
1153
1185
|
"name": "output",
|
|
1154
1186
|
"type": {
|
|
@@ -1216,6 +1248,30 @@ export type Cypher = {
|
|
|
1216
1248
|
"name": "market",
|
|
1217
1249
|
"writable": true
|
|
1218
1250
|
},
|
|
1251
|
+
{
|
|
1252
|
+
"name": "globalState",
|
|
1253
|
+
"pda": {
|
|
1254
|
+
"seeds": [
|
|
1255
|
+
{
|
|
1256
|
+
"kind": "const",
|
|
1257
|
+
"value": [
|
|
1258
|
+
103,
|
|
1259
|
+
108,
|
|
1260
|
+
111,
|
|
1261
|
+
98,
|
|
1262
|
+
97,
|
|
1263
|
+
108,
|
|
1264
|
+
95,
|
|
1265
|
+
115,
|
|
1266
|
+
116,
|
|
1267
|
+
97,
|
|
1268
|
+
116,
|
|
1269
|
+
101
|
|
1270
|
+
]
|
|
1271
|
+
}
|
|
1272
|
+
]
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1219
1275
|
{
|
|
1220
1276
|
"name": "marketVault",
|
|
1221
1277
|
"writable": true
|
|
@@ -1300,6 +1356,30 @@ export type Cypher = {
|
|
|
1300
1356
|
"name": "market",
|
|
1301
1357
|
"writable": true
|
|
1302
1358
|
},
|
|
1359
|
+
{
|
|
1360
|
+
"name": "globalState",
|
|
1361
|
+
"pda": {
|
|
1362
|
+
"seeds": [
|
|
1363
|
+
{
|
|
1364
|
+
"kind": "const",
|
|
1365
|
+
"value": [
|
|
1366
|
+
103,
|
|
1367
|
+
108,
|
|
1368
|
+
111,
|
|
1369
|
+
98,
|
|
1370
|
+
97,
|
|
1371
|
+
108,
|
|
1372
|
+
95,
|
|
1373
|
+
115,
|
|
1374
|
+
116,
|
|
1375
|
+
97,
|
|
1376
|
+
116,
|
|
1377
|
+
101
|
|
1378
|
+
]
|
|
1379
|
+
}
|
|
1380
|
+
]
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1303
1383
|
{
|
|
1304
1384
|
"name": "marketVault",
|
|
1305
1385
|
"writable": true
|
|
@@ -1384,6 +1464,30 @@ export type Cypher = {
|
|
|
1384
1464
|
"name": "market",
|
|
1385
1465
|
"writable": true
|
|
1386
1466
|
},
|
|
1467
|
+
{
|
|
1468
|
+
"name": "globalState",
|
|
1469
|
+
"pda": {
|
|
1470
|
+
"seeds": [
|
|
1471
|
+
{
|
|
1472
|
+
"kind": "const",
|
|
1473
|
+
"value": [
|
|
1474
|
+
103,
|
|
1475
|
+
108,
|
|
1476
|
+
111,
|
|
1477
|
+
98,
|
|
1478
|
+
97,
|
|
1479
|
+
108,
|
|
1480
|
+
95,
|
|
1481
|
+
115,
|
|
1482
|
+
116,
|
|
1483
|
+
97,
|
|
1484
|
+
116,
|
|
1485
|
+
101
|
|
1486
|
+
]
|
|
1487
|
+
}
|
|
1488
|
+
]
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1387
1491
|
{
|
|
1388
1492
|
"name": "marketVault",
|
|
1389
1493
|
"writable": true
|
|
@@ -1491,6 +1595,38 @@ export type Cypher = {
|
|
|
1491
1595
|
]
|
|
1492
1596
|
}
|
|
1493
1597
|
},
|
|
1598
|
+
{
|
|
1599
|
+
"name": "marketQuestion",
|
|
1600
|
+
"writable": true,
|
|
1601
|
+
"pda": {
|
|
1602
|
+
"seeds": [
|
|
1603
|
+
{
|
|
1604
|
+
"kind": "const",
|
|
1605
|
+
"value": [
|
|
1606
|
+
109,
|
|
1607
|
+
97,
|
|
1608
|
+
114,
|
|
1609
|
+
107,
|
|
1610
|
+
101,
|
|
1611
|
+
116,
|
|
1612
|
+
95,
|
|
1613
|
+
113,
|
|
1614
|
+
117,
|
|
1615
|
+
101,
|
|
1616
|
+
115,
|
|
1617
|
+
116,
|
|
1618
|
+
105,
|
|
1619
|
+
111,
|
|
1620
|
+
110
|
|
1621
|
+
]
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"kind": "account",
|
|
1625
|
+
"path": "market"
|
|
1626
|
+
}
|
|
1627
|
+
]
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1494
1630
|
{
|
|
1495
1631
|
"name": "lpPosition",
|
|
1496
1632
|
"writable": true,
|
|
@@ -1660,6 +1796,38 @@ export type Cypher = {
|
|
|
1660
1796
|
]
|
|
1661
1797
|
}
|
|
1662
1798
|
},
|
|
1799
|
+
{
|
|
1800
|
+
"name": "marketQuestion",
|
|
1801
|
+
"writable": true,
|
|
1802
|
+
"pda": {
|
|
1803
|
+
"seeds": [
|
|
1804
|
+
{
|
|
1805
|
+
"kind": "const",
|
|
1806
|
+
"value": [
|
|
1807
|
+
109,
|
|
1808
|
+
97,
|
|
1809
|
+
114,
|
|
1810
|
+
107,
|
|
1811
|
+
101,
|
|
1812
|
+
116,
|
|
1813
|
+
95,
|
|
1814
|
+
113,
|
|
1815
|
+
117,
|
|
1816
|
+
101,
|
|
1817
|
+
115,
|
|
1818
|
+
116,
|
|
1819
|
+
105,
|
|
1820
|
+
111,
|
|
1821
|
+
110
|
|
1822
|
+
]
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
"kind": "account",
|
|
1826
|
+
"path": "market"
|
|
1827
|
+
}
|
|
1828
|
+
]
|
|
1829
|
+
}
|
|
1830
|
+
},
|
|
1663
1831
|
{
|
|
1664
1832
|
"name": "lpPosition",
|
|
1665
1833
|
"writable": true,
|
|
@@ -1859,9 +2027,6 @@ export type Cypher = {
|
|
|
1859
2027
|
},
|
|
1860
2028
|
{
|
|
1861
2029
|
"name": "initPayoutMultiCompDef",
|
|
1862
|
-
"docs": [
|
|
1863
|
-
"Register the compute_multi_payout Arcium computation definition."
|
|
1864
|
-
],
|
|
1865
2030
|
"discriminator": [
|
|
1866
2031
|
155,
|
|
1867
2032
|
138,
|
|
@@ -1907,9 +2072,6 @@ export type Cypher = {
|
|
|
1907
2072
|
},
|
|
1908
2073
|
{
|
|
1909
2074
|
"name": "initPayoutYesnoCompDef",
|
|
1910
|
-
"docs": [
|
|
1911
|
-
"Register the compute_yesno_payout Arcium computation definition."
|
|
1912
|
-
],
|
|
1913
2075
|
"discriminator": [
|
|
1914
2076
|
104,
|
|
1915
2077
|
87,
|
|
@@ -1955,9 +2117,6 @@ export type Cypher = {
|
|
|
1955
2117
|
},
|
|
1956
2118
|
{
|
|
1957
2119
|
"name": "initPlaceBetMultiCompDef",
|
|
1958
|
-
"docs": [
|
|
1959
|
-
"Register the place_private_bet_multi Arcium computation definition."
|
|
1960
|
-
],
|
|
1961
2120
|
"discriminator": [
|
|
1962
2121
|
2,
|
|
1963
2122
|
251,
|
|
@@ -2003,9 +2162,6 @@ export type Cypher = {
|
|
|
2003
2162
|
},
|
|
2004
2163
|
{
|
|
2005
2164
|
"name": "initPlaceBetYesnoCompDef",
|
|
2006
|
-
"docs": [
|
|
2007
|
-
"Register the place_private_bet_yesno Arcium computation definition."
|
|
2008
|
-
],
|
|
2009
2165
|
"discriminator": [
|
|
2010
2166
|
160,
|
|
2011
2167
|
105,
|
|
@@ -2051,9 +2207,6 @@ export type Cypher = {
|
|
|
2051
2207
|
},
|
|
2052
2208
|
{
|
|
2053
2209
|
"name": "initRefundMultiCompDef",
|
|
2054
|
-
"docs": [
|
|
2055
|
-
"Register the compute_multi_refund Arcium computation definition."
|
|
2056
|
-
],
|
|
2057
2210
|
"discriminator": [
|
|
2058
2211
|
166,
|
|
2059
2212
|
248,
|
|
@@ -2099,9 +2252,6 @@ export type Cypher = {
|
|
|
2099
2252
|
},
|
|
2100
2253
|
{
|
|
2101
2254
|
"name": "initRefundYesnoCompDef",
|
|
2102
|
-
"docs": [
|
|
2103
|
-
"Register the compute_yesno_refund Arcium computation definition."
|
|
2104
|
-
],
|
|
2105
2255
|
"discriminator": [
|
|
2106
2256
|
114,
|
|
2107
2257
|
168,
|
|
@@ -2147,9 +2297,6 @@ export type Cypher = {
|
|
|
2147
2297
|
},
|
|
2148
2298
|
{
|
|
2149
2299
|
"name": "initRevealMultiCompDef",
|
|
2150
|
-
"docs": [
|
|
2151
|
-
"Register the reveal_market_outcome_multi Arcium computation definition."
|
|
2152
|
-
],
|
|
2153
2300
|
"discriminator": [
|
|
2154
2301
|
174,
|
|
2155
2302
|
143,
|
|
@@ -2195,9 +2342,6 @@ export type Cypher = {
|
|
|
2195
2342
|
},
|
|
2196
2343
|
{
|
|
2197
2344
|
"name": "initRevealYesnoCompDef",
|
|
2198
|
-
"docs": [
|
|
2199
|
-
"Register the reveal_market_outcome_yesno Arcium computation definition."
|
|
2200
|
-
],
|
|
2201
2345
|
"discriminator": [
|
|
2202
2346
|
185,
|
|
2203
2347
|
221,
|
|
@@ -2241,6 +2385,67 @@ export type Cypher = {
|
|
|
2241
2385
|
],
|
|
2242
2386
|
"args": []
|
|
2243
2387
|
},
|
|
2388
|
+
{
|
|
2389
|
+
"name": "initSignPda",
|
|
2390
|
+
"docs": [
|
|
2391
|
+
"Create the singleton Arcium signer PDA exactly once.",
|
|
2392
|
+
"All queue_computation instructions require this PDA to exist."
|
|
2393
|
+
],
|
|
2394
|
+
"discriminator": [
|
|
2395
|
+
102,
|
|
2396
|
+
179,
|
|
2397
|
+
4,
|
|
2398
|
+
195,
|
|
2399
|
+
198,
|
|
2400
|
+
41,
|
|
2401
|
+
211,
|
|
2402
|
+
183
|
|
2403
|
+
],
|
|
2404
|
+
"accounts": [
|
|
2405
|
+
{
|
|
2406
|
+
"name": "payer",
|
|
2407
|
+
"writable": true,
|
|
2408
|
+
"signer": true
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
"name": "signPdaAccount",
|
|
2412
|
+
"writable": true,
|
|
2413
|
+
"pda": {
|
|
2414
|
+
"seeds": [
|
|
2415
|
+
{
|
|
2416
|
+
"kind": "const",
|
|
2417
|
+
"value": [
|
|
2418
|
+
65,
|
|
2419
|
+
114,
|
|
2420
|
+
99,
|
|
2421
|
+
105,
|
|
2422
|
+
117,
|
|
2423
|
+
109,
|
|
2424
|
+
83,
|
|
2425
|
+
105,
|
|
2426
|
+
103,
|
|
2427
|
+
110,
|
|
2428
|
+
101,
|
|
2429
|
+
114,
|
|
2430
|
+
65,
|
|
2431
|
+
99,
|
|
2432
|
+
99,
|
|
2433
|
+
111,
|
|
2434
|
+
117,
|
|
2435
|
+
110,
|
|
2436
|
+
116
|
|
2437
|
+
]
|
|
2438
|
+
}
|
|
2439
|
+
]
|
|
2440
|
+
}
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
"name": "systemProgram",
|
|
2444
|
+
"address": "11111111111111111111111111111111"
|
|
2445
|
+
}
|
|
2446
|
+
],
|
|
2447
|
+
"args": []
|
|
2448
|
+
},
|
|
2244
2449
|
{
|
|
2245
2450
|
"name": "initialize",
|
|
2246
2451
|
"docs": [
|
|
@@ -2291,8 +2496,10 @@ export type Cypher = {
|
|
|
2291
2496
|
"name": "protocolTreasury"
|
|
2292
2497
|
},
|
|
2293
2498
|
{
|
|
2294
|
-
"name": "acceptedMint"
|
|
2295
|
-
|
|
2499
|
+
"name": "acceptedMint"
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"name": "tokenProgram"
|
|
2296
2503
|
},
|
|
2297
2504
|
{
|
|
2298
2505
|
"name": "systemProgram",
|
|
@@ -2313,7 +2520,8 @@ export type Cypher = {
|
|
|
2313
2520
|
{
|
|
2314
2521
|
"name": "placePrivateBetMulti",
|
|
2315
2522
|
"docs": [
|
|
2316
|
-
"
|
|
2523
|
+
"Step 1 of 2: deposit funds, collect fees, and initialise the position PDA.",
|
|
2524
|
+
"Call submit_bet_multi in the same transaction to queue the MPC computation."
|
|
2317
2525
|
],
|
|
2318
2526
|
"discriminator": [
|
|
2319
2527
|
43,
|
|
@@ -2332,83 +2540,11 @@ export type Cypher = {
|
|
|
2332
2540
|
"signer": true
|
|
2333
2541
|
},
|
|
2334
2542
|
{
|
|
2335
|
-
"name": "
|
|
2336
|
-
"
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
"kind": "const",
|
|
2341
|
-
"value": [
|
|
2342
|
-
65,
|
|
2343
|
-
114,
|
|
2344
|
-
99,
|
|
2345
|
-
105,
|
|
2346
|
-
117,
|
|
2347
|
-
109,
|
|
2348
|
-
83,
|
|
2349
|
-
105,
|
|
2350
|
-
103,
|
|
2351
|
-
110,
|
|
2352
|
-
101,
|
|
2353
|
-
114,
|
|
2354
|
-
65,
|
|
2355
|
-
99,
|
|
2356
|
-
99,
|
|
2357
|
-
111,
|
|
2358
|
-
117,
|
|
2359
|
-
110,
|
|
2360
|
-
116
|
|
2361
|
-
]
|
|
2362
|
-
}
|
|
2363
|
-
]
|
|
2364
|
-
}
|
|
2365
|
-
},
|
|
2366
|
-
{
|
|
2367
|
-
"name": "mxeAccount"
|
|
2368
|
-
},
|
|
2369
|
-
{
|
|
2370
|
-
"name": "mempoolAccount",
|
|
2371
|
-
"writable": true
|
|
2372
|
-
},
|
|
2373
|
-
{
|
|
2374
|
-
"name": "executingPool",
|
|
2375
|
-
"writable": true
|
|
2376
|
-
},
|
|
2377
|
-
{
|
|
2378
|
-
"name": "computationAccount",
|
|
2379
|
-
"writable": true
|
|
2380
|
-
},
|
|
2381
|
-
{
|
|
2382
|
-
"name": "compDefAccount"
|
|
2383
|
-
},
|
|
2384
|
-
{
|
|
2385
|
-
"name": "clusterAccount",
|
|
2386
|
-
"writable": true
|
|
2387
|
-
},
|
|
2388
|
-
{
|
|
2389
|
-
"name": "poolAccount",
|
|
2390
|
-
"writable": true,
|
|
2391
|
-
"address": "G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC"
|
|
2392
|
-
},
|
|
2393
|
-
{
|
|
2394
|
-
"name": "clockAccount",
|
|
2395
|
-
"writable": true,
|
|
2396
|
-
"address": "7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot"
|
|
2397
|
-
},
|
|
2398
|
-
{
|
|
2399
|
-
"name": "systemProgram",
|
|
2400
|
-
"address": "11111111111111111111111111111111"
|
|
2401
|
-
},
|
|
2402
|
-
{
|
|
2403
|
-
"name": "arciumProgram",
|
|
2404
|
-
"address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ"
|
|
2405
|
-
},
|
|
2406
|
-
{
|
|
2407
|
-
"name": "user",
|
|
2408
|
-
"signer": true
|
|
2409
|
-
},
|
|
2410
|
-
{
|
|
2411
|
-
"name": "globalState",
|
|
2543
|
+
"name": "user",
|
|
2544
|
+
"signer": true
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
"name": "globalState",
|
|
2412
2548
|
"pda": {
|
|
2413
2549
|
"seeds": [
|
|
2414
2550
|
{
|
|
@@ -2523,13 +2659,13 @@ export type Cypher = {
|
|
|
2523
2659
|
},
|
|
2524
2660
|
{
|
|
2525
2661
|
"name": "tokenProgram"
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"name": "systemProgram",
|
|
2665
|
+
"address": "11111111111111111111111111111111"
|
|
2526
2666
|
}
|
|
2527
2667
|
],
|
|
2528
2668
|
"args": [
|
|
2529
|
-
{
|
|
2530
|
-
"name": "computationOffset",
|
|
2531
|
-
"type": "u64"
|
|
2532
|
-
},
|
|
2533
2669
|
{
|
|
2534
2670
|
"name": "betAmountUsdc",
|
|
2535
2671
|
"type": "u64"
|
|
@@ -2636,7 +2772,8 @@ export type Cypher = {
|
|
|
2636
2772
|
{
|
|
2637
2773
|
"name": "placePrivateBetYesno",
|
|
2638
2774
|
"docs": [
|
|
2639
|
-
"
|
|
2775
|
+
"Step 1 of 2: deposit funds, collect fees, and initialise the position PDA.",
|
|
2776
|
+
"Call submit_bet_yesno in the same transaction to queue the MPC computation."
|
|
2640
2777
|
],
|
|
2641
2778
|
"discriminator": [
|
|
2642
2779
|
14,
|
|
@@ -2654,78 +2791,6 @@ export type Cypher = {
|
|
|
2654
2791
|
"writable": true,
|
|
2655
2792
|
"signer": true
|
|
2656
2793
|
},
|
|
2657
|
-
{
|
|
2658
|
-
"name": "signPdaAccount",
|
|
2659
|
-
"writable": true,
|
|
2660
|
-
"pda": {
|
|
2661
|
-
"seeds": [
|
|
2662
|
-
{
|
|
2663
|
-
"kind": "const",
|
|
2664
|
-
"value": [
|
|
2665
|
-
65,
|
|
2666
|
-
114,
|
|
2667
|
-
99,
|
|
2668
|
-
105,
|
|
2669
|
-
117,
|
|
2670
|
-
109,
|
|
2671
|
-
83,
|
|
2672
|
-
105,
|
|
2673
|
-
103,
|
|
2674
|
-
110,
|
|
2675
|
-
101,
|
|
2676
|
-
114,
|
|
2677
|
-
65,
|
|
2678
|
-
99,
|
|
2679
|
-
99,
|
|
2680
|
-
111,
|
|
2681
|
-
117,
|
|
2682
|
-
110,
|
|
2683
|
-
116
|
|
2684
|
-
]
|
|
2685
|
-
}
|
|
2686
|
-
]
|
|
2687
|
-
}
|
|
2688
|
-
},
|
|
2689
|
-
{
|
|
2690
|
-
"name": "mxeAccount"
|
|
2691
|
-
},
|
|
2692
|
-
{
|
|
2693
|
-
"name": "mempoolAccount",
|
|
2694
|
-
"writable": true
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
"name": "executingPool",
|
|
2698
|
-
"writable": true
|
|
2699
|
-
},
|
|
2700
|
-
{
|
|
2701
|
-
"name": "computationAccount",
|
|
2702
|
-
"writable": true
|
|
2703
|
-
},
|
|
2704
|
-
{
|
|
2705
|
-
"name": "compDefAccount"
|
|
2706
|
-
},
|
|
2707
|
-
{
|
|
2708
|
-
"name": "clusterAccount",
|
|
2709
|
-
"writable": true
|
|
2710
|
-
},
|
|
2711
|
-
{
|
|
2712
|
-
"name": "poolAccount",
|
|
2713
|
-
"writable": true,
|
|
2714
|
-
"address": "G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC"
|
|
2715
|
-
},
|
|
2716
|
-
{
|
|
2717
|
-
"name": "clockAccount",
|
|
2718
|
-
"writable": true,
|
|
2719
|
-
"address": "7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot"
|
|
2720
|
-
},
|
|
2721
|
-
{
|
|
2722
|
-
"name": "systemProgram",
|
|
2723
|
-
"address": "11111111111111111111111111111111"
|
|
2724
|
-
},
|
|
2725
|
-
{
|
|
2726
|
-
"name": "arciumProgram",
|
|
2727
|
-
"address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ"
|
|
2728
|
-
},
|
|
2729
2794
|
{
|
|
2730
2795
|
"name": "user",
|
|
2731
2796
|
"signer": true
|
|
@@ -2846,13 +2911,13 @@ export type Cypher = {
|
|
|
2846
2911
|
},
|
|
2847
2912
|
{
|
|
2848
2913
|
"name": "tokenProgram"
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
"name": "systemProgram",
|
|
2917
|
+
"address": "11111111111111111111111111111111"
|
|
2849
2918
|
}
|
|
2850
2919
|
],
|
|
2851
2920
|
"args": [
|
|
2852
|
-
{
|
|
2853
|
-
"name": "computationOffset",
|
|
2854
|
-
"type": "u64"
|
|
2855
|
-
},
|
|
2856
2921
|
{
|
|
2857
2922
|
"name": "betAmountUsdc",
|
|
2858
2923
|
"type": "u64"
|
|
@@ -2979,35 +3044,7 @@ export type Cypher = {
|
|
|
2979
3044
|
},
|
|
2980
3045
|
{
|
|
2981
3046
|
"name": "signPdaAccount",
|
|
2982
|
-
"writable": true
|
|
2983
|
-
"pda": {
|
|
2984
|
-
"seeds": [
|
|
2985
|
-
{
|
|
2986
|
-
"kind": "const",
|
|
2987
|
-
"value": [
|
|
2988
|
-
65,
|
|
2989
|
-
114,
|
|
2990
|
-
99,
|
|
2991
|
-
105,
|
|
2992
|
-
117,
|
|
2993
|
-
109,
|
|
2994
|
-
83,
|
|
2995
|
-
105,
|
|
2996
|
-
103,
|
|
2997
|
-
110,
|
|
2998
|
-
101,
|
|
2999
|
-
114,
|
|
3000
|
-
65,
|
|
3001
|
-
99,
|
|
3002
|
-
99,
|
|
3003
|
-
111,
|
|
3004
|
-
117,
|
|
3005
|
-
110,
|
|
3006
|
-
116
|
|
3007
|
-
]
|
|
3008
|
-
}
|
|
3009
|
-
]
|
|
3010
|
-
}
|
|
3047
|
+
"writable": true
|
|
3011
3048
|
},
|
|
3012
3049
|
{
|
|
3013
3050
|
"name": "mxeAccount"
|
|
@@ -3112,35 +3149,7 @@ export type Cypher = {
|
|
|
3112
3149
|
},
|
|
3113
3150
|
{
|
|
3114
3151
|
"name": "signPdaAccount",
|
|
3115
|
-
"writable": true
|
|
3116
|
-
"pda": {
|
|
3117
|
-
"seeds": [
|
|
3118
|
-
{
|
|
3119
|
-
"kind": "const",
|
|
3120
|
-
"value": [
|
|
3121
|
-
65,
|
|
3122
|
-
114,
|
|
3123
|
-
99,
|
|
3124
|
-
105,
|
|
3125
|
-
117,
|
|
3126
|
-
109,
|
|
3127
|
-
83,
|
|
3128
|
-
105,
|
|
3129
|
-
103,
|
|
3130
|
-
110,
|
|
3131
|
-
101,
|
|
3132
|
-
114,
|
|
3133
|
-
65,
|
|
3134
|
-
99,
|
|
3135
|
-
99,
|
|
3136
|
-
111,
|
|
3137
|
-
117,
|
|
3138
|
-
110,
|
|
3139
|
-
116
|
|
3140
|
-
]
|
|
3141
|
-
}
|
|
3142
|
-
]
|
|
3143
|
-
}
|
|
3152
|
+
"writable": true
|
|
3144
3153
|
},
|
|
3145
3154
|
{
|
|
3146
3155
|
"name": "mxeAccount"
|
|
@@ -3285,64 +3294,324 @@ export type Cypher = {
|
|
|
3285
3294
|
]
|
|
3286
3295
|
},
|
|
3287
3296
|
{
|
|
3288
|
-
"name": "revealMarketOutcomeYesnoCallback",
|
|
3297
|
+
"name": "revealMarketOutcomeYesnoCallback",
|
|
3298
|
+
"docs": [
|
|
3299
|
+
"Callback that writes the revealed outcome, pools, and payout ratio; market enters the challenge window."
|
|
3300
|
+
],
|
|
3301
|
+
"discriminator": [
|
|
3302
|
+
92,
|
|
3303
|
+
112,
|
|
3304
|
+
40,
|
|
3305
|
+
70,
|
|
3306
|
+
177,
|
|
3307
|
+
8,
|
|
3308
|
+
162,
|
|
3309
|
+
128
|
|
3310
|
+
],
|
|
3311
|
+
"accounts": [
|
|
3312
|
+
{
|
|
3313
|
+
"name": "arciumProgram",
|
|
3314
|
+
"address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ"
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
"name": "compDefAccount"
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"name": "mxeAccount"
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
"name": "computationAccount"
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
"name": "clusterAccount"
|
|
3327
|
+
},
|
|
3328
|
+
{
|
|
3329
|
+
"name": "instructionsSysvar",
|
|
3330
|
+
"address": "Sysvar1nstructions1111111111111111111111111"
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
"name": "market",
|
|
3334
|
+
"writable": true
|
|
3335
|
+
}
|
|
3336
|
+
],
|
|
3337
|
+
"args": [
|
|
3338
|
+
{
|
|
3339
|
+
"name": "output",
|
|
3340
|
+
"type": {
|
|
3341
|
+
"defined": {
|
|
3342
|
+
"name": "signedComputationOutputs",
|
|
3343
|
+
"generics": [
|
|
3344
|
+
{
|
|
3345
|
+
"kind": "type",
|
|
3346
|
+
"type": {
|
|
3347
|
+
"defined": {
|
|
3348
|
+
"name": "revealMarketOutcomeYesnoOutput"
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
]
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
]
|
|
3357
|
+
},
|
|
3358
|
+
{
|
|
3359
|
+
"name": "submitBetMulti",
|
|
3360
|
+
"docs": [
|
|
3361
|
+
"Step 2 of 2: queue the Arcium MPC computation for a Multi-Outcome bet.",
|
|
3362
|
+
"Must be called in the same transaction as place_private_bet_multi."
|
|
3363
|
+
],
|
|
3364
|
+
"discriminator": [
|
|
3365
|
+
129,
|
|
3366
|
+
124,
|
|
3367
|
+
42,
|
|
3368
|
+
142,
|
|
3369
|
+
109,
|
|
3370
|
+
160,
|
|
3371
|
+
234,
|
|
3372
|
+
222
|
|
3373
|
+
],
|
|
3374
|
+
"accounts": [
|
|
3375
|
+
{
|
|
3376
|
+
"name": "payer",
|
|
3377
|
+
"writable": true,
|
|
3378
|
+
"signer": true
|
|
3379
|
+
},
|
|
3380
|
+
{
|
|
3381
|
+
"name": "signPdaAccount",
|
|
3382
|
+
"writable": true
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
"name": "mxeAccount"
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
"name": "mempoolAccount",
|
|
3389
|
+
"writable": true
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
"name": "executingPool",
|
|
3393
|
+
"writable": true
|
|
3394
|
+
},
|
|
3395
|
+
{
|
|
3396
|
+
"name": "computationAccount",
|
|
3397
|
+
"writable": true
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
"name": "compDefAccount"
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
"name": "clusterAccount",
|
|
3404
|
+
"writable": true
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"name": "poolAccount",
|
|
3408
|
+
"writable": true,
|
|
3409
|
+
"address": "G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC"
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
"name": "clockAccount",
|
|
3413
|
+
"writable": true,
|
|
3414
|
+
"address": "7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot"
|
|
3415
|
+
},
|
|
3416
|
+
{
|
|
3417
|
+
"name": "systemProgram",
|
|
3418
|
+
"address": "11111111111111111111111111111111"
|
|
3419
|
+
},
|
|
3420
|
+
{
|
|
3421
|
+
"name": "arciumProgram",
|
|
3422
|
+
"address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ"
|
|
3423
|
+
},
|
|
3424
|
+
{
|
|
3425
|
+
"name": "user",
|
|
3426
|
+
"signer": true
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
"name": "market",
|
|
3430
|
+
"pda": {
|
|
3431
|
+
"seeds": [
|
|
3432
|
+
{
|
|
3433
|
+
"kind": "const",
|
|
3434
|
+
"value": [
|
|
3435
|
+
109,
|
|
3436
|
+
97,
|
|
3437
|
+
114,
|
|
3438
|
+
107,
|
|
3439
|
+
101,
|
|
3440
|
+
116
|
|
3441
|
+
]
|
|
3442
|
+
},
|
|
3443
|
+
{
|
|
3444
|
+
"kind": "account",
|
|
3445
|
+
"path": "market.market_id",
|
|
3446
|
+
"account": "market"
|
|
3447
|
+
}
|
|
3448
|
+
]
|
|
3449
|
+
}
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
"name": "position",
|
|
3453
|
+
"writable": true,
|
|
3454
|
+
"pda": {
|
|
3455
|
+
"seeds": [
|
|
3456
|
+
{
|
|
3457
|
+
"kind": "const",
|
|
3458
|
+
"value": [
|
|
3459
|
+
112,
|
|
3460
|
+
111,
|
|
3461
|
+
115,
|
|
3462
|
+
105,
|
|
3463
|
+
116,
|
|
3464
|
+
105,
|
|
3465
|
+
111,
|
|
3466
|
+
110
|
|
3467
|
+
]
|
|
3468
|
+
},
|
|
3469
|
+
{
|
|
3470
|
+
"kind": "account",
|
|
3471
|
+
"path": "market"
|
|
3472
|
+
},
|
|
3473
|
+
{
|
|
3474
|
+
"kind": "account",
|
|
3475
|
+
"path": "user"
|
|
3476
|
+
}
|
|
3477
|
+
]
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
],
|
|
3481
|
+
"args": [
|
|
3482
|
+
{
|
|
3483
|
+
"name": "computationOffset",
|
|
3484
|
+
"type": "u64"
|
|
3485
|
+
}
|
|
3486
|
+
]
|
|
3487
|
+
},
|
|
3488
|
+
{
|
|
3489
|
+
"name": "submitBetYesno",
|
|
3289
3490
|
"docs": [
|
|
3290
|
-
"
|
|
3491
|
+
"Step 2 of 2: queue the Arcium MPC computation for a YesNo bet.",
|
|
3492
|
+
"Must be called in the same transaction as place_private_bet_yesno."
|
|
3291
3493
|
],
|
|
3292
3494
|
"discriminator": [
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3495
|
+
93,
|
|
3496
|
+
47,
|
|
3497
|
+
148,
|
|
3498
|
+
213,
|
|
3499
|
+
120,
|
|
3500
|
+
184,
|
|
3501
|
+
242,
|
|
3502
|
+
105
|
|
3301
3503
|
],
|
|
3302
3504
|
"accounts": [
|
|
3303
3505
|
{
|
|
3304
|
-
"name": "
|
|
3305
|
-
"
|
|
3506
|
+
"name": "payer",
|
|
3507
|
+
"writable": true,
|
|
3508
|
+
"signer": true
|
|
3306
3509
|
},
|
|
3307
3510
|
{
|
|
3308
|
-
"name": "
|
|
3511
|
+
"name": "signPdaAccount",
|
|
3512
|
+
"writable": true
|
|
3309
3513
|
},
|
|
3310
3514
|
{
|
|
3311
3515
|
"name": "mxeAccount"
|
|
3312
3516
|
},
|
|
3313
3517
|
{
|
|
3314
|
-
"name": "
|
|
3518
|
+
"name": "mempoolAccount",
|
|
3519
|
+
"writable": true
|
|
3315
3520
|
},
|
|
3316
3521
|
{
|
|
3317
|
-
"name": "
|
|
3522
|
+
"name": "executingPool",
|
|
3523
|
+
"writable": true
|
|
3318
3524
|
},
|
|
3319
3525
|
{
|
|
3320
|
-
"name": "
|
|
3321
|
-
"
|
|
3526
|
+
"name": "computationAccount",
|
|
3527
|
+
"writable": true
|
|
3322
3528
|
},
|
|
3323
3529
|
{
|
|
3324
|
-
"name": "
|
|
3530
|
+
"name": "compDefAccount"
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"name": "clusterAccount",
|
|
3325
3534
|
"writable": true
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"name": "poolAccount",
|
|
3538
|
+
"writable": true,
|
|
3539
|
+
"address": "G2sRWJvi3xoyh5k2gY49eG9L8YhAEWQPtNb1zb1GXTtC"
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
"name": "clockAccount",
|
|
3543
|
+
"writable": true,
|
|
3544
|
+
"address": "7EbMUTLo5DjdzbN7s8BXeZwXzEwNQb1hScfRvWg8a6ot"
|
|
3545
|
+
},
|
|
3546
|
+
{
|
|
3547
|
+
"name": "systemProgram",
|
|
3548
|
+
"address": "11111111111111111111111111111111"
|
|
3549
|
+
},
|
|
3550
|
+
{
|
|
3551
|
+
"name": "arciumProgram",
|
|
3552
|
+
"address": "Arcj82pX7HxYKLR92qvgZUAd7vGS1k4hQvAFcPATFdEQ"
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"name": "user",
|
|
3556
|
+
"signer": true
|
|
3557
|
+
},
|
|
3558
|
+
{
|
|
3559
|
+
"name": "market",
|
|
3560
|
+
"pda": {
|
|
3561
|
+
"seeds": [
|
|
3562
|
+
{
|
|
3563
|
+
"kind": "const",
|
|
3564
|
+
"value": [
|
|
3565
|
+
109,
|
|
3566
|
+
97,
|
|
3567
|
+
114,
|
|
3568
|
+
107,
|
|
3569
|
+
101,
|
|
3570
|
+
116
|
|
3571
|
+
]
|
|
3572
|
+
},
|
|
3573
|
+
{
|
|
3574
|
+
"kind": "account",
|
|
3575
|
+
"path": "market.market_id",
|
|
3576
|
+
"account": "market"
|
|
3577
|
+
}
|
|
3578
|
+
]
|
|
3579
|
+
}
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
"name": "position",
|
|
3583
|
+
"writable": true,
|
|
3584
|
+
"pda": {
|
|
3585
|
+
"seeds": [
|
|
3586
|
+
{
|
|
3587
|
+
"kind": "const",
|
|
3588
|
+
"value": [
|
|
3589
|
+
112,
|
|
3590
|
+
111,
|
|
3591
|
+
115,
|
|
3592
|
+
105,
|
|
3593
|
+
116,
|
|
3594
|
+
105,
|
|
3595
|
+
111,
|
|
3596
|
+
110
|
|
3597
|
+
]
|
|
3598
|
+
},
|
|
3599
|
+
{
|
|
3600
|
+
"kind": "account",
|
|
3601
|
+
"path": "market"
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
"kind": "account",
|
|
3605
|
+
"path": "user"
|
|
3606
|
+
}
|
|
3607
|
+
]
|
|
3608
|
+
}
|
|
3326
3609
|
}
|
|
3327
3610
|
],
|
|
3328
3611
|
"args": [
|
|
3329
3612
|
{
|
|
3330
|
-
"name": "
|
|
3331
|
-
"type":
|
|
3332
|
-
"defined": {
|
|
3333
|
-
"name": "signedComputationOutputs",
|
|
3334
|
-
"generics": [
|
|
3335
|
-
{
|
|
3336
|
-
"kind": "type",
|
|
3337
|
-
"type": {
|
|
3338
|
-
"defined": {
|
|
3339
|
-
"name": "revealMarketOutcomeYesnoOutput"
|
|
3340
|
-
}
|
|
3341
|
-
}
|
|
3342
|
-
}
|
|
3343
|
-
]
|
|
3344
|
-
}
|
|
3345
|
-
}
|
|
3613
|
+
"name": "computationOffset",
|
|
3614
|
+
"type": "u64"
|
|
3346
3615
|
}
|
|
3347
3616
|
]
|
|
3348
3617
|
},
|
|
@@ -3396,11 +3665,13 @@ export type Cypher = {
|
|
|
3396
3665
|
}
|
|
3397
3666
|
},
|
|
3398
3667
|
{
|
|
3399
|
-
"name": "newMint"
|
|
3400
|
-
"address": "8AF9BABNWwEhipRxtXPYoWSZW24SKjUn6YqbKd9ZqhwB"
|
|
3668
|
+
"name": "newMint"
|
|
3401
3669
|
},
|
|
3402
3670
|
{
|
|
3403
3671
|
"name": "newTreasury"
|
|
3672
|
+
},
|
|
3673
|
+
{
|
|
3674
|
+
"name": "tokenProgram"
|
|
3404
3675
|
}
|
|
3405
3676
|
],
|
|
3406
3677
|
"args": []
|
|
@@ -3482,6 +3753,30 @@ export type Cypher = {
|
|
|
3482
3753
|
]
|
|
3483
3754
|
}
|
|
3484
3755
|
},
|
|
3756
|
+
{
|
|
3757
|
+
"name": "globalState",
|
|
3758
|
+
"pda": {
|
|
3759
|
+
"seeds": [
|
|
3760
|
+
{
|
|
3761
|
+
"kind": "const",
|
|
3762
|
+
"value": [
|
|
3763
|
+
103,
|
|
3764
|
+
108,
|
|
3765
|
+
111,
|
|
3766
|
+
98,
|
|
3767
|
+
97,
|
|
3768
|
+
108,
|
|
3769
|
+
95,
|
|
3770
|
+
115,
|
|
3771
|
+
116,
|
|
3772
|
+
97,
|
|
3773
|
+
116,
|
|
3774
|
+
101
|
|
3775
|
+
]
|
|
3776
|
+
}
|
|
3777
|
+
]
|
|
3778
|
+
}
|
|
3779
|
+
},
|
|
3485
3780
|
{
|
|
3486
3781
|
"name": "marketVault",
|
|
3487
3782
|
"writable": true,
|
|
@@ -3587,6 +3882,19 @@ export type Cypher = {
|
|
|
3587
3882
|
198,
|
|
3588
3883
|
154
|
|
3589
3884
|
]
|
|
3885
|
+
},
|
|
3886
|
+
{
|
|
3887
|
+
"name": "marketQuestion",
|
|
3888
|
+
"discriminator": [
|
|
3889
|
+
219,
|
|
3890
|
+
157,
|
|
3891
|
+
242,
|
|
3892
|
+
187,
|
|
3893
|
+
242,
|
|
3894
|
+
173,
|
|
3895
|
+
54,
|
|
3896
|
+
128
|
|
3897
|
+
]
|
|
3590
3898
|
}
|
|
3591
3899
|
],
|
|
3592
3900
|
"events": [
|
|
@@ -3864,78 +4172,88 @@ export type Cypher = {
|
|
|
3864
4172
|
},
|
|
3865
4173
|
{
|
|
3866
4174
|
"code": 6028,
|
|
4175
|
+
"name": "computationAlreadyQueued",
|
|
4176
|
+
"msg": "Computation already queued for this position"
|
|
4177
|
+
},
|
|
4178
|
+
{
|
|
4179
|
+
"code": 6029,
|
|
3867
4180
|
"name": "abortedComputation",
|
|
3868
4181
|
"msg": "MPC computation was aborted"
|
|
3869
4182
|
},
|
|
3870
4183
|
{
|
|
3871
|
-
"code":
|
|
4184
|
+
"code": 6030,
|
|
3872
4185
|
"name": "computationVerificationFailed",
|
|
3873
4186
|
"msg": "Computation output verification failed"
|
|
3874
4187
|
},
|
|
3875
4188
|
{
|
|
3876
|
-
"code":
|
|
4189
|
+
"code": 6031,
|
|
3877
4190
|
"name": "cannotWithdrawFromUnresolved",
|
|
3878
4191
|
"msg": "Cannot withdraw from unresolved market — bond forfeited"
|
|
3879
4192
|
},
|
|
3880
4193
|
{
|
|
3881
|
-
"code":
|
|
4194
|
+
"code": 6032,
|
|
3882
4195
|
"name": "adminAlreadyClaimed",
|
|
3883
4196
|
"msg": "Admin already claimed remaining funds"
|
|
3884
4197
|
},
|
|
3885
4198
|
{
|
|
3886
|
-
"code":
|
|
4199
|
+
"code": 6033,
|
|
3887
4200
|
"name": "wrongMarketType",
|
|
3888
4201
|
"msg": "Wrong market type for this instruction"
|
|
3889
4202
|
},
|
|
3890
4203
|
{
|
|
3891
|
-
"code":
|
|
4204
|
+
"code": 6034,
|
|
3892
4205
|
"name": "wrongMint",
|
|
3893
4206
|
"msg": "Mint does not match accepted mint"
|
|
3894
4207
|
},
|
|
3895
4208
|
{
|
|
3896
|
-
"code":
|
|
4209
|
+
"code": 6035,
|
|
3897
4210
|
"name": "notAcceptedMint",
|
|
3898
4211
|
"msg": "Mint is not the protocol-accepted mint for this cluster"
|
|
3899
4212
|
},
|
|
3900
4213
|
{
|
|
3901
|
-
"code":
|
|
4214
|
+
"code": 6036,
|
|
3902
4215
|
"name": "invalidCategory",
|
|
3903
4216
|
"msg": "Invalid category — must be 0-6"
|
|
3904
4217
|
},
|
|
3905
4218
|
{
|
|
3906
|
-
"code":
|
|
4219
|
+
"code": 6037,
|
|
3907
4220
|
"name": "invalidChallengePeriod",
|
|
3908
4221
|
"msg": "Challenge period must be between 24 and 48 hours"
|
|
3909
4222
|
},
|
|
3910
4223
|
{
|
|
3911
|
-
"code":
|
|
4224
|
+
"code": 6038,
|
|
3912
4225
|
"name": "bondTooSmall",
|
|
3913
4226
|
"msg": "Creator bond is below the protocol minimum"
|
|
3914
4227
|
},
|
|
3915
4228
|
{
|
|
3916
|
-
"code":
|
|
4229
|
+
"code": 6039,
|
|
3917
4230
|
"name": "notPendingResolution",
|
|
3918
4231
|
"msg": "Market is not pending resolution"
|
|
3919
4232
|
},
|
|
3920
4233
|
{
|
|
3921
|
-
"code":
|
|
4234
|
+
"code": 6040,
|
|
3922
4235
|
"name": "challengePeriodNotElapsed",
|
|
3923
4236
|
"msg": "Challenge period has not elapsed yet"
|
|
3924
4237
|
},
|
|
3925
4238
|
{
|
|
3926
|
-
"code":
|
|
4239
|
+
"code": 6041,
|
|
3927
4240
|
"name": "challengePeriodElapsed",
|
|
3928
4241
|
"msg": "Challenge period has already elapsed"
|
|
3929
4242
|
},
|
|
3930
4243
|
{
|
|
3931
|
-
"code":
|
|
4244
|
+
"code": 6042,
|
|
3932
4245
|
"name": "marketDisputed",
|
|
3933
4246
|
"msg": "Market resolution is disputed — admin must override"
|
|
3934
4247
|
},
|
|
3935
4248
|
{
|
|
3936
|
-
"code":
|
|
4249
|
+
"code": 6043,
|
|
3937
4250
|
"name": "marketNotDisputed",
|
|
3938
4251
|
"msg": "Market resolution is not disputed"
|
|
4252
|
+
},
|
|
4253
|
+
{
|
|
4254
|
+
"code": 6044,
|
|
4255
|
+
"name": "unauthorizedUser",
|
|
4256
|
+
"msg": "User does not match position owner"
|
|
3939
4257
|
}
|
|
3940
4258
|
],
|
|
3941
4259
|
"types": [
|
|
@@ -4520,6 +4838,13 @@ export type Cypher = {
|
|
|
4520
4838
|
"name": "claimed",
|
|
4521
4839
|
"type": "bool"
|
|
4522
4840
|
},
|
|
4841
|
+
{
|
|
4842
|
+
"name": "computationQueued",
|
|
4843
|
+
"docs": [
|
|
4844
|
+
"Set to true by submit_bet_* to prevent double-queuing the computation."
|
|
4845
|
+
],
|
|
4846
|
+
"type": "bool"
|
|
4847
|
+
},
|
|
4523
4848
|
{
|
|
4524
4849
|
"name": "bump",
|
|
4525
4850
|
"type": "u8"
|
|
@@ -4756,19 +5081,6 @@ export type Cypher = {
|
|
|
4756
5081
|
"name": "marketId",
|
|
4757
5082
|
"type": "u64"
|
|
4758
5083
|
},
|
|
4759
|
-
{
|
|
4760
|
-
"name": "question",
|
|
4761
|
-
"type": {
|
|
4762
|
-
"array": [
|
|
4763
|
-
"u8",
|
|
4764
|
-
200
|
|
4765
|
-
]
|
|
4766
|
-
}
|
|
4767
|
-
},
|
|
4768
|
-
{
|
|
4769
|
-
"name": "questionLen",
|
|
4770
|
-
"type": "u8"
|
|
4771
|
-
},
|
|
4772
5084
|
{
|
|
4773
5085
|
"name": "marketType",
|
|
4774
5086
|
"docs": [
|
|
@@ -5042,6 +5354,36 @@ export type Cypher = {
|
|
|
5042
5354
|
]
|
|
5043
5355
|
}
|
|
5044
5356
|
},
|
|
5357
|
+
{
|
|
5358
|
+
"name": "marketQuestion",
|
|
5359
|
+
"docs": [
|
|
5360
|
+
"Question text for a market — split out of Market to free 201 bytes from",
|
|
5361
|
+
"every instruction that loads Market (bet, resolve, payout, refund, etc.).",
|
|
5362
|
+
"Seeds: [\"market_question\", market.key()]"
|
|
5363
|
+
],
|
|
5364
|
+
"type": {
|
|
5365
|
+
"kind": "struct",
|
|
5366
|
+
"fields": [
|
|
5367
|
+
{
|
|
5368
|
+
"name": "question",
|
|
5369
|
+
"type": {
|
|
5370
|
+
"array": [
|
|
5371
|
+
"u8",
|
|
5372
|
+
200
|
|
5373
|
+
]
|
|
5374
|
+
}
|
|
5375
|
+
},
|
|
5376
|
+
{
|
|
5377
|
+
"name": "questionLen",
|
|
5378
|
+
"type": "u8"
|
|
5379
|
+
},
|
|
5380
|
+
{
|
|
5381
|
+
"name": "bump",
|
|
5382
|
+
"type": "u8"
|
|
5383
|
+
}
|
|
5384
|
+
]
|
|
5385
|
+
}
|
|
5386
|
+
},
|
|
5045
5387
|
{
|
|
5046
5388
|
"name": "marketResolvedEvent",
|
|
5047
5389
|
"type": {
|