@cypher-zk/sdk 0.4.0 → 0.5.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.
package/src/idl/cypher.ts CHANGED
@@ -15,6 +15,9 @@ export type Cypher = {
15
15
  "instructions": [
16
16
  {
17
17
  "name": "adminClaimRemaining",
18
+ "docs": [
19
+ "Admin claims remaining unclaimed funds once the claim and refund deadlines have passed."
20
+ ],
18
21
  "discriminator": [
19
22
  226,
20
23
  176,
@@ -113,14 +116,92 @@ export type Cypher = {
113
116
  "writable": true
114
117
  },
115
118
  {
116
- "name": "tokenProgram",
117
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
119
+ "name": "tokenProgram"
118
120
  }
119
121
  ],
120
122
  "args": []
121
123
  },
124
+ {
125
+ "name": "adminOverrideResolution",
126
+ "docs": [
127
+ "Admin override of a disputed resolution with a corrected outcome and recomputed payout ratio."
128
+ ],
129
+ "discriminator": [
130
+ 47,
131
+ 117,
132
+ 40,
133
+ 129,
134
+ 108,
135
+ 28,
136
+ 219,
137
+ 96
138
+ ],
139
+ "accounts": [
140
+ {
141
+ "name": "admin",
142
+ "signer": true
143
+ },
144
+ {
145
+ "name": "globalState",
146
+ "pda": {
147
+ "seeds": [
148
+ {
149
+ "kind": "const",
150
+ "value": [
151
+ 103,
152
+ 108,
153
+ 111,
154
+ 98,
155
+ 97,
156
+ 108,
157
+ 95,
158
+ 115,
159
+ 116,
160
+ 97,
161
+ 116,
162
+ 101
163
+ ]
164
+ }
165
+ ]
166
+ }
167
+ },
168
+ {
169
+ "name": "market",
170
+ "writable": true,
171
+ "pda": {
172
+ "seeds": [
173
+ {
174
+ "kind": "const",
175
+ "value": [
176
+ 109,
177
+ 97,
178
+ 114,
179
+ 107,
180
+ 101,
181
+ 116
182
+ ]
183
+ },
184
+ {
185
+ "kind": "account",
186
+ "path": "market.market_id",
187
+ "account": "market"
188
+ }
189
+ ]
190
+ }
191
+ }
192
+ ],
193
+ "args": [
194
+ {
195
+ "name": "outcomeValue",
196
+ "type": "u8"
197
+ }
198
+ ]
199
+ },
122
200
  {
123
201
  "name": "cancelMarket",
202
+ "docs": [
203
+ "Cancel a market and return bond to creator (only if no bets placed)."
204
+ ],
124
205
  "discriminator": [
125
206
  205,
126
207
  121,
@@ -227,14 +308,16 @@ export type Cypher = {
227
308
  "writable": true
228
309
  },
229
310
  {
230
- "name": "tokenProgram",
231
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
311
+ "name": "tokenProgram"
232
312
  }
233
313
  ],
234
314
  "args": []
235
315
  },
236
316
  {
237
317
  "name": "claimPayoutMulti",
318
+ "docs": [
319
+ "Queue MPC computation to verify and pay out a winning MultiOutcome position."
320
+ ],
238
321
  "discriminator": [
239
322
  183,
240
323
  30,
@@ -413,8 +496,7 @@ export type Cypher = {
413
496
  "writable": true
414
497
  },
415
498
  {
416
- "name": "tokenProgram",
417
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
499
+ "name": "tokenProgram"
418
500
  }
419
501
  ],
420
502
  "args": [
@@ -426,6 +508,9 @@ export type Cypher = {
426
508
  },
427
509
  {
428
510
  "name": "claimPayoutYesno",
511
+ "docs": [
512
+ "Queue MPC computation to verify and pay out a winning YesNo position."
513
+ ],
429
514
  "discriminator": [
430
515
  224,
431
516
  84,
@@ -604,8 +689,7 @@ export type Cypher = {
604
689
  "writable": true
605
690
  },
606
691
  {
607
- "name": "tokenProgram",
608
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
692
+ "name": "tokenProgram"
609
693
  }
610
694
  ],
611
695
  "args": [
@@ -617,6 +701,9 @@ export type Cypher = {
617
701
  },
618
702
  {
619
703
  "name": "claimRefundMulti",
704
+ "docs": [
705
+ "Queue MPC computation to refund a bet on an unresolved MultiOutcome market."
706
+ ],
620
707
  "discriminator": [
621
708
  186,
622
709
  255,
@@ -795,8 +882,7 @@ export type Cypher = {
795
882
  "writable": true
796
883
  },
797
884
  {
798
- "name": "tokenProgram",
799
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
885
+ "name": "tokenProgram"
800
886
  }
801
887
  ],
802
888
  "args": [
@@ -808,6 +894,9 @@ export type Cypher = {
808
894
  },
809
895
  {
810
896
  "name": "claimRefundYesno",
897
+ "docs": [
898
+ "Queue MPC computation to refund a bet on an unresolved YesNo market."
899
+ ],
811
900
  "discriminator": [
812
901
  250,
813
902
  69,
@@ -986,8 +1075,7 @@ export type Cypher = {
986
1075
  "writable": true
987
1076
  },
988
1077
  {
989
- "name": "tokenProgram",
990
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1078
+ "name": "tokenProgram"
991
1079
  }
992
1080
  ],
993
1081
  "args": [
@@ -999,6 +1087,9 @@ export type Cypher = {
999
1087
  },
1000
1088
  {
1001
1089
  "name": "computeMultiPayoutCallback",
1090
+ "docs": [
1091
+ "Callback that transfers the computed payout to the winning bettor."
1092
+ ],
1002
1093
  "discriminator": [
1003
1094
  242,
1004
1095
  12,
@@ -1050,8 +1141,7 @@ export type Cypher = {
1050
1141
  "writable": true
1051
1142
  },
1052
1143
  {
1053
- "name": "tokenProgram",
1054
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1144
+ "name": "tokenProgram"
1055
1145
  },
1056
1146
  {
1057
1147
  "name": "systemProgram",
@@ -1081,6 +1171,9 @@ export type Cypher = {
1081
1171
  },
1082
1172
  {
1083
1173
  "name": "computeMultiRefundCallback",
1174
+ "docs": [
1175
+ "Callback that transfers the computed refund to the bettor."
1176
+ ],
1084
1177
  "discriminator": [
1085
1178
  164,
1086
1179
  49,
@@ -1132,8 +1225,7 @@ export type Cypher = {
1132
1225
  "writable": true
1133
1226
  },
1134
1227
  {
1135
- "name": "tokenProgram",
1136
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1228
+ "name": "tokenProgram"
1137
1229
  },
1138
1230
  {
1139
1231
  "name": "systemProgram",
@@ -1163,6 +1255,9 @@ export type Cypher = {
1163
1255
  },
1164
1256
  {
1165
1257
  "name": "computeYesnoPayoutCallback",
1258
+ "docs": [
1259
+ "Callback that transfers the computed payout to the winning bettor."
1260
+ ],
1166
1261
  "discriminator": [
1167
1262
  154,
1168
1263
  174,
@@ -1214,8 +1309,7 @@ export type Cypher = {
1214
1309
  "writable": true
1215
1310
  },
1216
1311
  {
1217
- "name": "tokenProgram",
1218
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1312
+ "name": "tokenProgram"
1219
1313
  },
1220
1314
  {
1221
1315
  "name": "systemProgram",
@@ -1245,6 +1339,9 @@ export type Cypher = {
1245
1339
  },
1246
1340
  {
1247
1341
  "name": "computeYesnoRefundCallback",
1342
+ "docs": [
1343
+ "Callback that transfers the computed refund to the bettor."
1344
+ ],
1248
1345
  "discriminator": [
1249
1346
  87,
1250
1347
  6,
@@ -1296,8 +1393,7 @@ export type Cypher = {
1296
1393
  "writable": true
1297
1394
  },
1298
1395
  {
1299
- "name": "tokenProgram",
1300
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1396
+ "name": "tokenProgram"
1301
1397
  },
1302
1398
  {
1303
1399
  "name": "systemProgram",
@@ -1327,6 +1423,9 @@ export type Cypher = {
1327
1423
  },
1328
1424
  {
1329
1425
  "name": "createMarket",
1426
+ "docs": [
1427
+ "Create a new YesNo prediction market (creator pays the bond, sets close time and challenge period)."
1428
+ ],
1330
1429
  "discriminator": [
1331
1430
  103,
1332
1431
  226,
@@ -1461,8 +1560,7 @@ export type Cypher = {
1461
1560
  "name": "acceptedMint"
1462
1561
  },
1463
1562
  {
1464
- "name": "tokenProgram",
1465
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1563
+ "name": "tokenProgram"
1466
1564
  },
1467
1565
  {
1468
1566
  "name": "systemProgram",
@@ -1481,11 +1579,18 @@ export type Cypher = {
1481
1579
  {
1482
1580
  "name": "category",
1483
1581
  "type": "u8"
1582
+ },
1583
+ {
1584
+ "name": "challengePeriod",
1585
+ "type": "i64"
1484
1586
  }
1485
1587
  ]
1486
1588
  },
1487
1589
  {
1488
1590
  "name": "createMarketMulti",
1591
+ "docs": [
1592
+ "Create a new MultiOutcome prediction market with 2-4 outcomes."
1593
+ ],
1489
1594
  "discriminator": [
1490
1595
  35,
1491
1596
  185,
@@ -1620,8 +1725,7 @@ export type Cypher = {
1620
1725
  "name": "acceptedMint"
1621
1726
  },
1622
1727
  {
1623
- "name": "tokenProgram",
1624
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1728
+ "name": "tokenProgram"
1625
1729
  },
1626
1730
  {
1627
1731
  "name": "systemProgram",
@@ -1644,11 +1748,112 @@ export type Cypher = {
1644
1748
  {
1645
1749
  "name": "numOutcomes",
1646
1750
  "type": "u8"
1751
+ },
1752
+ {
1753
+ "name": "challengePeriod",
1754
+ "type": "i64"
1647
1755
  }
1648
1756
  ]
1649
1757
  },
1758
+ {
1759
+ "name": "finalizeResolution",
1760
+ "docs": [
1761
+ "Finalize a pending resolution once the challenge window has passed undisputed."
1762
+ ],
1763
+ "discriminator": [
1764
+ 191,
1765
+ 74,
1766
+ 94,
1767
+ 214,
1768
+ 45,
1769
+ 150,
1770
+ 152,
1771
+ 125
1772
+ ],
1773
+ "accounts": [
1774
+ {
1775
+ "name": "caller",
1776
+ "signer": true
1777
+ },
1778
+ {
1779
+ "name": "market",
1780
+ "writable": true,
1781
+ "pda": {
1782
+ "seeds": [
1783
+ {
1784
+ "kind": "const",
1785
+ "value": [
1786
+ 109,
1787
+ 97,
1788
+ 114,
1789
+ 107,
1790
+ 101,
1791
+ 116
1792
+ ]
1793
+ },
1794
+ {
1795
+ "kind": "account",
1796
+ "path": "market.market_id",
1797
+ "account": "market"
1798
+ }
1799
+ ]
1800
+ }
1801
+ }
1802
+ ],
1803
+ "args": []
1804
+ },
1805
+ {
1806
+ "name": "flagResolution",
1807
+ "docs": [
1808
+ "Flag a pending resolution as disputed during the challenge window."
1809
+ ],
1810
+ "discriminator": [
1811
+ 144,
1812
+ 21,
1813
+ 165,
1814
+ 219,
1815
+ 56,
1816
+ 125,
1817
+ 121,
1818
+ 138
1819
+ ],
1820
+ "accounts": [
1821
+ {
1822
+ "name": "flagger",
1823
+ "signer": true
1824
+ },
1825
+ {
1826
+ "name": "market",
1827
+ "writable": true,
1828
+ "pda": {
1829
+ "seeds": [
1830
+ {
1831
+ "kind": "const",
1832
+ "value": [
1833
+ 109,
1834
+ 97,
1835
+ 114,
1836
+ 107,
1837
+ 101,
1838
+ 116
1839
+ ]
1840
+ },
1841
+ {
1842
+ "kind": "account",
1843
+ "path": "market.market_id",
1844
+ "account": "market"
1845
+ }
1846
+ ]
1847
+ }
1848
+ }
1849
+ ],
1850
+ "args": []
1851
+ },
1650
1852
  {
1651
1853
  "name": "initPayoutMultiCompDef",
1854
+ "docs": [
1855
+ "Register the compute_multi_payout Arcium computation definition."
1856
+ ],
1652
1857
  "discriminator": [
1653
1858
  155,
1654
1859
  138,
@@ -1694,6 +1899,9 @@ export type Cypher = {
1694
1899
  },
1695
1900
  {
1696
1901
  "name": "initPayoutYesnoCompDef",
1902
+ "docs": [
1903
+ "Register the compute_yesno_payout Arcium computation definition."
1904
+ ],
1697
1905
  "discriminator": [
1698
1906
  104,
1699
1907
  87,
@@ -1739,6 +1947,9 @@ export type Cypher = {
1739
1947
  },
1740
1948
  {
1741
1949
  "name": "initPlaceBetMultiCompDef",
1950
+ "docs": [
1951
+ "Register the place_private_bet_multi Arcium computation definition."
1952
+ ],
1742
1953
  "discriminator": [
1743
1954
  2,
1744
1955
  251,
@@ -1784,6 +1995,9 @@ export type Cypher = {
1784
1995
  },
1785
1996
  {
1786
1997
  "name": "initPlaceBetYesnoCompDef",
1998
+ "docs": [
1999
+ "Register the place_private_bet_yesno Arcium computation definition."
2000
+ ],
1787
2001
  "discriminator": [
1788
2002
  160,
1789
2003
  105,
@@ -1829,6 +2043,9 @@ export type Cypher = {
1829
2043
  },
1830
2044
  {
1831
2045
  "name": "initRefundMultiCompDef",
2046
+ "docs": [
2047
+ "Register the compute_multi_refund Arcium computation definition."
2048
+ ],
1832
2049
  "discriminator": [
1833
2050
  166,
1834
2051
  248,
@@ -1874,6 +2091,9 @@ export type Cypher = {
1874
2091
  },
1875
2092
  {
1876
2093
  "name": "initRefundYesnoCompDef",
2094
+ "docs": [
2095
+ "Register the compute_yesno_refund Arcium computation definition."
2096
+ ],
1877
2097
  "discriminator": [
1878
2098
  114,
1879
2099
  168,
@@ -1919,6 +2139,9 @@ export type Cypher = {
1919
2139
  },
1920
2140
  {
1921
2141
  "name": "initRevealMultiCompDef",
2142
+ "docs": [
2143
+ "Register the reveal_market_outcome_multi Arcium computation definition."
2144
+ ],
1922
2145
  "discriminator": [
1923
2146
  174,
1924
2147
  143,
@@ -1964,6 +2187,9 @@ export type Cypher = {
1964
2187
  },
1965
2188
  {
1966
2189
  "name": "initRevealYesnoCompDef",
2190
+ "docs": [
2191
+ "Register the reveal_market_outcome_yesno Arcium computation definition."
2192
+ ],
1967
2193
  "discriminator": [
1968
2194
  185,
1969
2195
  221,
@@ -2009,6 +2235,9 @@ export type Cypher = {
2009
2235
  },
2010
2236
  {
2011
2237
  "name": "initialize",
2238
+ "docs": [
2239
+ "Initialize the global protocol state: fee rates, treasury, accepted mint, and admin."
2240
+ ],
2012
2241
  "discriminator": [
2013
2242
  175,
2014
2243
  175,
@@ -2075,6 +2304,9 @@ export type Cypher = {
2075
2304
  },
2076
2305
  {
2077
2306
  "name": "placePrivateBetMulti",
2307
+ "docs": [
2308
+ "Queue an encrypted multi-outcome bet for MPC processing."
2309
+ ],
2078
2310
  "discriminator": [
2079
2311
  43,
2080
2312
  95,
@@ -2282,8 +2514,7 @@ export type Cypher = {
2282
2514
  }
2283
2515
  },
2284
2516
  {
2285
- "name": "tokenProgram",
2286
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2517
+ "name": "tokenProgram"
2287
2518
  }
2288
2519
  ],
2289
2520
  "args": [
@@ -2330,6 +2561,9 @@ export type Cypher = {
2330
2561
  },
2331
2562
  {
2332
2563
  "name": "placePrivateBetMultiCallback",
2564
+ "docs": [
2565
+ "Callback that applies the MPC-computed pool totals and entry odds for a MultiOutcome bet."
2566
+ ],
2333
2567
  "discriminator": [
2334
2568
  81,
2335
2569
  0,
@@ -2393,6 +2627,9 @@ export type Cypher = {
2393
2627
  },
2394
2628
  {
2395
2629
  "name": "placePrivateBetYesno",
2630
+ "docs": [
2631
+ "Queue an encrypted YES/NO bet for MPC processing."
2632
+ ],
2396
2633
  "discriminator": [
2397
2634
  14,
2398
2635
  226,
@@ -2600,8 +2837,7 @@ export type Cypher = {
2600
2837
  }
2601
2838
  },
2602
2839
  {
2603
- "name": "tokenProgram",
2604
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2840
+ "name": "tokenProgram"
2605
2841
  }
2606
2842
  ],
2607
2843
  "args": [
@@ -2648,6 +2884,9 @@ export type Cypher = {
2648
2884
  },
2649
2885
  {
2650
2886
  "name": "placePrivateBetYesnoCallback",
2887
+ "docs": [
2888
+ "Callback that applies the MPC-computed pool totals and entry odds for a YesNo bet."
2889
+ ],
2651
2890
  "discriminator": [
2652
2891
  1,
2653
2892
  193,
@@ -2711,6 +2950,9 @@ export type Cypher = {
2711
2950
  },
2712
2951
  {
2713
2952
  "name": "resolveMarketMulti",
2953
+ "docs": [
2954
+ "Queue MPC computation to reveal the multi-outcome winner and pools."
2955
+ ],
2714
2956
  "discriminator": [
2715
2957
  237,
2716
2958
  84,
@@ -2841,6 +3083,9 @@ export type Cypher = {
2841
3083
  },
2842
3084
  {
2843
3085
  "name": "resolveMarketYesno",
3086
+ "docs": [
3087
+ "Queue MPC computation to reveal the YES/NO outcome and pools."
3088
+ ],
2844
3089
  "discriminator": [
2845
3090
  191,
2846
3091
  1,
@@ -2971,6 +3216,9 @@ export type Cypher = {
2971
3216
  },
2972
3217
  {
2973
3218
  "name": "revealMarketOutcomeMultiCallback",
3219
+ "docs": [
3220
+ "Callback that writes the revealed outcome, pools, and payout ratio; market enters the challenge window."
3221
+ ],
2974
3222
  "discriminator": [
2975
3223
  114,
2976
3224
  103,
@@ -3030,6 +3278,9 @@ export type Cypher = {
3030
3278
  },
3031
3279
  {
3032
3280
  "name": "revealMarketOutcomeYesnoCallback",
3281
+ "docs": [
3282
+ "Callback that writes the revealed outcome, pools, and payout ratio; market enters the challenge window."
3283
+ ],
3033
3284
  "discriminator": [
3034
3285
  92,
3035
3286
  112,
@@ -3089,6 +3340,9 @@ export type Cypher = {
3089
3340
  },
3090
3341
  {
3091
3342
  "name": "updateAcceptedMint",
3343
+ "docs": [
3344
+ "Update the protocol's accepted mint and treasury (admin only)."
3345
+ ],
3092
3346
  "discriminator": [
3093
3347
  6,
3094
3348
  166,
@@ -3145,6 +3399,9 @@ export type Cypher = {
3145
3399
  },
3146
3400
  {
3147
3401
  "name": "withdrawCreatorFunds",
3402
+ "docs": [
3403
+ "Withdraw creator bond and accumulated LP fees after the market is resolved."
3404
+ ],
3148
3405
  "discriminator": [
3149
3406
  135,
3150
3407
  166,
@@ -3251,8 +3508,7 @@ export type Cypher = {
3251
3508
  "writable": true
3252
3509
  },
3253
3510
  {
3254
- "name": "tokenProgram",
3255
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
3511
+ "name": "tokenProgram"
3256
3512
  }
3257
3513
  ],
3258
3514
  "args": []
@@ -3378,6 +3634,19 @@ export type Cypher = {
3378
3634
  124
3379
3635
  ]
3380
3636
  },
3637
+ {
3638
+ "name": "marketFinalizedEvent",
3639
+ "discriminator": [
3640
+ 141,
3641
+ 216,
3642
+ 158,
3643
+ 192,
3644
+ 60,
3645
+ 222,
3646
+ 155,
3647
+ 232
3648
+ ]
3649
+ },
3381
3650
  {
3382
3651
  "name": "marketResolvedEvent",
3383
3652
  "discriminator": [
@@ -3416,6 +3685,32 @@ export type Cypher = {
3416
3685
  154,
3417
3686
  233
3418
3687
  ]
3688
+ },
3689
+ {
3690
+ "name": "resolutionFlaggedEvent",
3691
+ "discriminator": [
3692
+ 159,
3693
+ 214,
3694
+ 98,
3695
+ 62,
3696
+ 158,
3697
+ 28,
3698
+ 21,
3699
+ 84
3700
+ ]
3701
+ },
3702
+ {
3703
+ "name": "resolutionOverriddenEvent",
3704
+ "discriminator": [
3705
+ 133,
3706
+ 175,
3707
+ 170,
3708
+ 160,
3709
+ 47,
3710
+ 76,
3711
+ 128,
3712
+ 87
3713
+ ]
3419
3714
  }
3420
3715
  ],
3421
3716
  "errors": [
@@ -3598,6 +3893,36 @@ export type Cypher = {
3598
3893
  "code": 6035,
3599
3894
  "name": "invalidCategory",
3600
3895
  "msg": "Invalid category — must be 0-6"
3896
+ },
3897
+ {
3898
+ "code": 6036,
3899
+ "name": "invalidChallengePeriod",
3900
+ "msg": "Challenge period must be between 24 and 48 hours"
3901
+ },
3902
+ {
3903
+ "code": 6037,
3904
+ "name": "notPendingResolution",
3905
+ "msg": "Market is not pending resolution"
3906
+ },
3907
+ {
3908
+ "code": 6038,
3909
+ "name": "challengePeriodNotElapsed",
3910
+ "msg": "Challenge period has not elapsed yet"
3911
+ },
3912
+ {
3913
+ "code": 6039,
3914
+ "name": "challengePeriodElapsed",
3915
+ "msg": "Challenge period has already elapsed"
3916
+ },
3917
+ {
3918
+ "code": 6040,
3919
+ "name": "marketDisputed",
3920
+ "msg": "Market resolution is disputed — admin must override"
3921
+ },
3922
+ {
3923
+ "code": 6041,
3924
+ "name": "marketNotDisputed",
3925
+ "msg": "Market resolution is not disputed"
3601
3926
  }
3602
3927
  ],
3603
3928
  "types": [
@@ -4600,6 +4925,27 @@ export type Cypher = {
4600
4925
  "name": "refundDeadline",
4601
4926
  "type": "i64"
4602
4927
  },
4928
+ {
4929
+ "name": "challengePeriod",
4930
+ "docs": [
4931
+ "Configurable dispute window (24-48h), set at creation"
4932
+ ],
4933
+ "type": "i64"
4934
+ },
4935
+ {
4936
+ "name": "challengeDeadline",
4937
+ "docs": [
4938
+ "resolution_time + challenge_period — set by the reveal callback"
4939
+ ],
4940
+ "type": "i64"
4941
+ },
4942
+ {
4943
+ "name": "disputed",
4944
+ "docs": [
4945
+ "Set true by flag_resolution; blocks finalize_resolution until admin overrides"
4946
+ ],
4947
+ "type": "bool"
4948
+ },
4603
4949
  {
4604
4950
  "name": "bump",
4605
4951
  "type": "u8"
@@ -4663,6 +5009,26 @@ export type Cypher = {
4663
5009
  ]
4664
5010
  }
4665
5011
  },
5012
+ {
5013
+ "name": "marketFinalizedEvent",
5014
+ "type": {
5015
+ "kind": "struct",
5016
+ "fields": [
5017
+ {
5018
+ "name": "market",
5019
+ "type": "pubkey"
5020
+ },
5021
+ {
5022
+ "name": "outcome",
5023
+ "type": "u8"
5024
+ },
5025
+ {
5026
+ "name": "payoutRatio",
5027
+ "type": "u64"
5028
+ }
5029
+ ]
5030
+ }
5031
+ },
4666
5032
  {
4667
5033
  "name": "marketResolvedEvent",
4668
5034
  "type": {
@@ -5061,6 +5427,50 @@ export type Cypher = {
5061
5427
  ]
5062
5428
  }
5063
5429
  },
5430
+ {
5431
+ "name": "resolutionFlaggedEvent",
5432
+ "type": {
5433
+ "kind": "struct",
5434
+ "fields": [
5435
+ {
5436
+ "name": "market",
5437
+ "type": "pubkey"
5438
+ },
5439
+ {
5440
+ "name": "flaggedBy",
5441
+ "type": "pubkey"
5442
+ }
5443
+ ]
5444
+ }
5445
+ },
5446
+ {
5447
+ "name": "resolutionOverriddenEvent",
5448
+ "type": {
5449
+ "kind": "struct",
5450
+ "fields": [
5451
+ {
5452
+ "name": "market",
5453
+ "type": "pubkey"
5454
+ },
5455
+ {
5456
+ "name": "oldOutcome",
5457
+ "type": "u8"
5458
+ },
5459
+ {
5460
+ "name": "newOutcome",
5461
+ "type": "u8"
5462
+ },
5463
+ {
5464
+ "name": "newPayoutRatio",
5465
+ "type": "u64"
5466
+ },
5467
+ {
5468
+ "name": "admin",
5469
+ "type": "pubkey"
5470
+ }
5471
+ ]
5472
+ }
5473
+ },
5064
5474
  {
5065
5475
  "name": "revealMarketOutcomeMultiOutput",
5066
5476
  "docs": [