@ottochain/sdk 2.2.5 → 2.3.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 (82) hide show
  1. package/dist/cjs/apps/contracts/state-machines/contract-agreement.js +54 -6
  2. package/dist/cjs/apps/contracts/state-machines/contract-escrow.js +72 -8
  3. package/dist/cjs/apps/contracts/state-machines/contract-universal.js +36 -4
  4. package/dist/cjs/apps/governance/state-machines/dao-multisig.js +27 -3
  5. package/dist/cjs/apps/governance/state-machines/dao-reputation.js +27 -3
  6. package/dist/cjs/apps/governance/state-machines/dao-single.js +27 -3
  7. package/dist/cjs/apps/governance/state-machines/dao-token.js +36 -4
  8. package/dist/cjs/apps/governance/state-machines/governance-simple.js +36 -4
  9. package/dist/cjs/apps/governance/state-machines/governance-universal.js +27 -3
  10. package/dist/cjs/apps/identity/state-machines/identity-agent.js +54 -6
  11. package/dist/cjs/apps/identity/state-machines/identity-oracle.js +45 -5
  12. package/dist/cjs/apps/identity/state-machines/identity-universal.js +27 -3
  13. package/dist/cjs/apps/markets/state-machines/market-auction.js +30 -6
  14. package/dist/cjs/apps/markets/state-machines/market-crowdfund.js +25 -5
  15. package/dist/cjs/apps/markets/state-machines/market-group-buy.js +29 -5
  16. package/dist/cjs/apps/markets/state-machines/market-prediction.js +40 -8
  17. package/dist/cjs/apps/markets/state-machines/market-universal.js +45 -5
  18. package/dist/cjs/generated/ottochain/v1/common.js +1722 -1
  19. package/dist/cjs/generated/ottochain/v1/fiber.js +352 -2
  20. package/dist/cjs/generated/ottochain/v1/messages.js +775 -3
  21. package/dist/cjs/generated/ottochain/v1/records.js +350 -3
  22. package/dist/cjs/index.js +5 -1
  23. package/dist/cjs/ottochain/genesis-manifest.js +193 -0
  24. package/dist/cjs/ottochain/index.js +5 -1
  25. package/dist/cjs/ottochain/types.js +4 -0
  26. package/dist/esm/apps/contracts/state-machines/contract-agreement.js +54 -6
  27. package/dist/esm/apps/contracts/state-machines/contract-escrow.js +72 -8
  28. package/dist/esm/apps/contracts/state-machines/contract-universal.js +36 -4
  29. package/dist/esm/apps/governance/state-machines/dao-multisig.js +27 -3
  30. package/dist/esm/apps/governance/state-machines/dao-reputation.js +27 -3
  31. package/dist/esm/apps/governance/state-machines/dao-single.js +27 -3
  32. package/dist/esm/apps/governance/state-machines/dao-token.js +36 -4
  33. package/dist/esm/apps/governance/state-machines/governance-simple.js +36 -4
  34. package/dist/esm/apps/governance/state-machines/governance-universal.js +27 -3
  35. package/dist/esm/apps/identity/state-machines/identity-agent.js +54 -6
  36. package/dist/esm/apps/identity/state-machines/identity-oracle.js +45 -5
  37. package/dist/esm/apps/identity/state-machines/identity-universal.js +27 -3
  38. package/dist/esm/apps/markets/state-machines/market-auction.js +30 -6
  39. package/dist/esm/apps/markets/state-machines/market-crowdfund.js +25 -5
  40. package/dist/esm/apps/markets/state-machines/market-group-buy.js +29 -5
  41. package/dist/esm/apps/markets/state-machines/market-prediction.js +40 -8
  42. package/dist/esm/apps/markets/state-machines/market-universal.js +45 -5
  43. package/dist/esm/generated/ottochain/v1/common.js +1718 -0
  44. package/dist/esm/generated/ottochain/v1/fiber.js +351 -1
  45. package/dist/esm/generated/ottochain/v1/messages.js +774 -2
  46. package/dist/esm/generated/ottochain/v1/records.js +349 -2
  47. package/dist/esm/index.js +2 -0
  48. package/dist/esm/ottochain/genesis-manifest.js +189 -0
  49. package/dist/esm/ottochain/index.js +2 -0
  50. package/dist/esm/ottochain/types.js +4 -0
  51. package/dist/types/apps/contracts/index.d.ts +90 -18
  52. package/dist/types/apps/contracts/state-machines/contract-agreement.d.ts +30 -6
  53. package/dist/types/apps/contracts/state-machines/contract-escrow.d.ts +40 -8
  54. package/dist/types/apps/contracts/state-machines/contract-universal.d.ts +20 -4
  55. package/dist/types/apps/governance/index.d.ts +114 -33
  56. package/dist/types/apps/governance/state-machines/dao-multisig.d.ts +15 -3
  57. package/dist/types/apps/governance/state-machines/dao-reputation.d.ts +15 -3
  58. package/dist/types/apps/governance/state-machines/dao-single.d.ts +15 -3
  59. package/dist/types/apps/governance/state-machines/dao-token.d.ts +20 -4
  60. package/dist/types/apps/governance/state-machines/governance-simple.d.ts +20 -4
  61. package/dist/types/apps/governance/state-machines/governance-universal.d.ts +15 -3
  62. package/dist/types/apps/identity/index.d.ts +71 -6
  63. package/dist/types/apps/identity/state-machines/identity-agent.d.ts +30 -0
  64. package/dist/types/apps/identity/state-machines/identity-oracle.d.ts +25 -0
  65. package/dist/types/apps/identity/state-machines/identity-universal.d.ts +15 -0
  66. package/dist/types/apps/markets/index.d.ts +80 -5
  67. package/dist/types/apps/markets/state-machines/market-auction.d.ts +12 -0
  68. package/dist/types/apps/markets/state-machines/market-crowdfund.d.ts +10 -0
  69. package/dist/types/apps/markets/state-machines/market-group-buy.d.ts +14 -0
  70. package/dist/types/apps/markets/state-machines/market-prediction.d.ts +16 -0
  71. package/dist/types/apps/markets/state-machines/market-universal.d.ts +25 -5
  72. package/dist/types/generated/ottochain/v1/common.d.ts +228 -0
  73. package/dist/types/generated/ottochain/v1/fiber.d.ts +32 -1
  74. package/dist/types/generated/ottochain/v1/messages.d.ts +84 -0
  75. package/dist/types/generated/ottochain/v1/records.d.ts +34 -0
  76. package/dist/types/index.d.ts +3 -1
  77. package/dist/types/ottochain/genesis-manifest.d.ts +130 -0
  78. package/dist/types/ottochain/index.d.ts +3 -1
  79. package/dist/types/ottochain/types.d.ts +288 -2
  80. package/dist/types/schema/fiber-app.d.ts +40 -1
  81. package/dist/types/validation.d.ts +17 -17
  82. package/package.json +30 -27
@@ -74,27 +74,50 @@ export declare const MARKETS_DEFINITIONS: {
74
74
  readonly PROPOSED: {
75
75
  readonly id: "PROPOSED";
76
76
  readonly isFinal: false;
77
- readonly metadata: null;
77
+ readonly metadata: {
78
+ readonly label: "Proposed";
79
+ readonly description: "Market created but not yet open";
80
+ readonly category: "initial";
81
+ };
78
82
  };
79
83
  readonly OPEN: {
80
84
  readonly id: "OPEN";
81
85
  readonly isFinal: false;
82
- readonly metadata: null;
86
+ readonly metadata: {
87
+ readonly label: "Open";
88
+ readonly description: "Market is open for participation";
89
+ readonly category: "active";
90
+ };
83
91
  };
84
92
  readonly CLOSED: {
85
93
  readonly id: "CLOSED";
86
94
  readonly isFinal: false;
87
- readonly metadata: null;
95
+ readonly metadata: {
96
+ readonly label: "Closed";
97
+ readonly description: "Participation closed; awaiting settlement";
98
+ readonly category: "pending";
99
+ };
88
100
  };
89
101
  readonly SETTLED: {
90
102
  readonly id: "SETTLED";
91
103
  readonly isFinal: true;
92
- readonly metadata: null;
104
+ readonly metadata: {
105
+ readonly label: "Settled";
106
+ readonly description: "Market settled and payouts available (terminal)"; /**
107
+ * Get a market state machine definition by type.
108
+ * @param type - 'universal' | 'prediction' | 'auction' | 'crowdfund' | 'groupBuy' (default: 'universal')
109
+ */
110
+ readonly category: "terminal";
111
+ };
93
112
  };
94
113
  readonly CANCELLED: {
95
114
  readonly id: "CANCELLED";
96
115
  readonly isFinal: true;
97
- readonly metadata: null;
116
+ readonly metadata: {
117
+ readonly label: "Cancelled";
118
+ readonly description: "Market cancelled before settlement (terminal)";
119
+ readonly category: "terminal";
120
+ };
98
121
  };
99
122
  };
100
123
  readonly initialState: "PROPOSED";
@@ -393,56 +416,72 @@ export declare const MARKETS_DEFINITIONS: {
393
416
  readonly id: "PROPOSED";
394
417
  readonly isFinal: false;
395
418
  readonly metadata: {
419
+ readonly label: "Proposed";
396
420
  readonly description: "Market created but not yet open for trading";
421
+ readonly category: "initial";
397
422
  };
398
423
  };
399
424
  readonly OPEN: {
400
425
  readonly id: "OPEN";
401
426
  readonly isFinal: false;
402
427
  readonly metadata: {
428
+ readonly label: "Open";
403
429
  readonly description: "Accepting positions on outcomes";
430
+ readonly category: "active";
404
431
  };
405
432
  };
406
433
  readonly CLOSED: {
407
434
  readonly id: "CLOSED";
408
435
  readonly isFinal: false;
409
436
  readonly metadata: {
437
+ readonly label: "Closed";
410
438
  readonly description: "No more positions, awaiting resolution";
439
+ readonly category: "pending";
411
440
  };
412
441
  };
413
442
  readonly RESOLVING: {
414
443
  readonly id: "RESOLVING";
415
444
  readonly isFinal: false;
416
445
  readonly metadata: {
446
+ readonly label: "Resolving";
417
447
  readonly description: "Oracle(s) submitting resolution";
448
+ readonly category: "pending";
418
449
  };
419
450
  };
420
451
  readonly DISPUTED: {
421
452
  readonly id: "DISPUTED";
422
453
  readonly isFinal: false;
423
454
  readonly metadata: {
455
+ readonly label: "Disputed";
424
456
  readonly description: "Resolution challenged, awaiting arbitration";
457
+ readonly category: "pending";
425
458
  };
426
459
  };
427
460
  readonly SETTLED: {
428
461
  readonly id: "SETTLED";
429
462
  readonly isFinal: true;
430
463
  readonly metadata: {
464
+ readonly label: "Settled";
431
465
  readonly description: "Outcome finalized, payouts available";
466
+ readonly category: "terminal";
432
467
  };
433
468
  };
434
469
  readonly REFUNDED: {
435
470
  readonly id: "REFUNDED";
436
471
  readonly isFinal: true;
437
472
  readonly metadata: {
473
+ readonly label: "Refunded";
438
474
  readonly description: "Market invalidated, all positions refunded";
475
+ readonly category: "terminal";
439
476
  };
440
477
  };
441
478
  readonly CANCELLED: {
442
479
  readonly id: "CANCELLED";
443
480
  readonly isFinal: true;
444
481
  readonly metadata: {
482
+ readonly label: "Cancelled";
445
483
  readonly description: "Market cancelled before opening";
484
+ readonly category: "terminal";
446
485
  };
447
486
  };
448
487
  };
@@ -976,42 +1015,54 @@ export declare const MARKETS_DEFINITIONS: {
976
1015
  readonly id: "PROPOSED";
977
1016
  readonly isFinal: false;
978
1017
  readonly metadata: {
1018
+ readonly label: "Proposed";
979
1019
  readonly description: "Auction created but not yet open";
1020
+ readonly category: "initial";
980
1021
  };
981
1022
  };
982
1023
  readonly OPEN: {
983
1024
  readonly id: "OPEN";
984
1025
  readonly isFinal: false;
985
1026
  readonly metadata: {
1027
+ readonly label: "Open";
986
1028
  readonly description: "Accepting bids";
1029
+ readonly category: "active";
987
1030
  };
988
1031
  };
989
1032
  readonly CLOSING: {
990
1033
  readonly id: "CLOSING";
991
1034
  readonly isFinal: false;
992
1035
  readonly metadata: {
1036
+ readonly label: "Closing";
993
1037
  readonly description: "Bid period ended, determining winner";
1038
+ readonly category: "pending";
994
1039
  };
995
1040
  };
996
1041
  readonly SETTLED: {
997
1042
  readonly id: "SETTLED";
998
1043
  readonly isFinal: true;
999
1044
  readonly metadata: {
1045
+ readonly label: "Settled";
1000
1046
  readonly description: "Winner determined, transfer complete";
1047
+ readonly category: "terminal";
1001
1048
  };
1002
1049
  };
1003
1050
  readonly NO_SALE: {
1004
1051
  readonly id: "NO_SALE";
1005
1052
  readonly isFinal: true;
1006
1053
  readonly metadata: {
1054
+ readonly label: "No sale";
1007
1055
  readonly description: "Reserve not met or no valid bids";
1056
+ readonly category: "terminal";
1008
1057
  };
1009
1058
  };
1010
1059
  readonly CANCELLED: {
1011
1060
  readonly id: "CANCELLED";
1012
1061
  readonly isFinal: true;
1013
1062
  readonly metadata: {
1063
+ readonly label: "Cancelled";
1014
1064
  readonly description: "Auction cancelled by seller";
1065
+ readonly category: "terminal";
1015
1066
  };
1016
1067
  };
1017
1068
  };
@@ -1380,35 +1431,45 @@ export declare const MARKETS_DEFINITIONS: {
1380
1431
  readonly id: "PROPOSED";
1381
1432
  readonly isFinal: false;
1382
1433
  readonly metadata: {
1434
+ readonly label: "Proposed";
1383
1435
  readonly description: "Campaign created but not yet open";
1436
+ readonly category: "initial";
1384
1437
  };
1385
1438
  };
1386
1439
  readonly OPEN: {
1387
1440
  readonly id: "OPEN";
1388
1441
  readonly isFinal: false;
1389
1442
  readonly metadata: {
1443
+ readonly label: "Open";
1390
1444
  readonly description: "Accepting pledges";
1445
+ readonly category: "active";
1391
1446
  };
1392
1447
  };
1393
1448
  readonly FUNDED: {
1394
1449
  readonly id: "FUNDED";
1395
1450
  readonly isFinal: true;
1396
1451
  readonly metadata: {
1452
+ readonly label: "Funded";
1397
1453
  readonly description: "Threshold met, funds released to creator";
1454
+ readonly category: "terminal";
1398
1455
  };
1399
1456
  };
1400
1457
  readonly REFUNDED: {
1401
1458
  readonly id: "REFUNDED";
1402
1459
  readonly isFinal: true;
1403
1460
  readonly metadata: {
1461
+ readonly label: "Refunded";
1404
1462
  readonly description: "Threshold not met, all pledges refunded";
1463
+ readonly category: "terminal";
1405
1464
  };
1406
1465
  };
1407
1466
  readonly CANCELLED: {
1408
1467
  readonly id: "CANCELLED";
1409
1468
  readonly isFinal: true;
1410
1469
  readonly metadata: {
1470
+ readonly label: "Cancelled";
1411
1471
  readonly description: "Campaign cancelled by creator";
1472
+ readonly category: "terminal";
1412
1473
  };
1413
1474
  };
1414
1475
  };
@@ -1823,49 +1884,63 @@ export declare const MARKETS_DEFINITIONS: {
1823
1884
  readonly id: "PROPOSED";
1824
1885
  readonly isFinal: false;
1825
1886
  readonly metadata: {
1887
+ readonly label: "Proposed";
1826
1888
  readonly description: "Group buy created but not yet open";
1889
+ readonly category: "initial";
1827
1890
  };
1828
1891
  };
1829
1892
  readonly OPEN: {
1830
1893
  readonly id: "OPEN";
1831
1894
  readonly isFinal: false;
1832
1895
  readonly metadata: {
1896
+ readonly label: "Open";
1833
1897
  readonly description: "Accepting orders";
1898
+ readonly category: "active";
1834
1899
  };
1835
1900
  };
1836
1901
  readonly THRESHOLD_MET: {
1837
1902
  readonly id: "THRESHOLD_MET";
1838
1903
  readonly isFinal: false;
1839
1904
  readonly metadata: {
1905
+ readonly label: "Threshold met";
1840
1906
  readonly description: "Minimum quantity reached, continuing for better tier";
1907
+ readonly category: "active";
1841
1908
  };
1842
1909
  };
1843
1910
  readonly PROCESSING: {
1844
1911
  readonly id: "PROCESSING";
1845
1912
  readonly isFinal: false;
1846
1913
  readonly metadata: {
1914
+ readonly label: "Processing";
1847
1915
  readonly description: "Order placed with vendor, awaiting fulfillment";
1916
+ readonly category: "pending";
1848
1917
  };
1849
1918
  };
1850
1919
  readonly FULFILLED: {
1851
1920
  readonly id: "FULFILLED";
1852
1921
  readonly isFinal: true;
1853
1922
  readonly metadata: {
1923
+ readonly label: "Fulfilled";
1854
1924
  readonly description: "All items delivered to buyers";
1925
+ readonly category: "terminal";
1855
1926
  };
1856
1927
  };
1857
1928
  readonly REFUNDED: {
1858
1929
  readonly id: "REFUNDED";
1859
1930
  readonly isFinal: true;
1860
1931
  readonly metadata: {
1932
+ readonly label: "Refunded";
1861
1933
  readonly description: "Threshold not met, all orders refunded";
1934
+ readonly category: "terminal";
1862
1935
  };
1863
1936
  };
1864
1937
  readonly CANCELLED: {
1865
1938
  readonly id: "CANCELLED";
1866
1939
  readonly isFinal: true;
1867
1940
  readonly metadata: {
1941
+ readonly label: "Cancelled";
1868
1942
  readonly description: "Group buy cancelled";
1943
+ readonly category: "terminal";
1869
1944
  };
1870
1945
  };
1871
1946
  };
@@ -112,42 +112,54 @@ export declare const marketAuctionDef: {
112
112
  readonly id: "PROPOSED";
113
113
  readonly isFinal: false;
114
114
  readonly metadata: {
115
+ readonly label: "Proposed";
115
116
  readonly description: "Auction created but not yet open";
117
+ readonly category: "initial";
116
118
  };
117
119
  };
118
120
  readonly OPEN: {
119
121
  readonly id: "OPEN";
120
122
  readonly isFinal: false;
121
123
  readonly metadata: {
124
+ readonly label: "Open";
122
125
  readonly description: "Accepting bids";
126
+ readonly category: "active";
123
127
  };
124
128
  };
125
129
  readonly CLOSING: {
126
130
  readonly id: "CLOSING";
127
131
  readonly isFinal: false;
128
132
  readonly metadata: {
133
+ readonly label: "Closing";
129
134
  readonly description: "Bid period ended, determining winner";
135
+ readonly category: "pending";
130
136
  };
131
137
  };
132
138
  readonly SETTLED: {
133
139
  readonly id: "SETTLED";
134
140
  readonly isFinal: true;
135
141
  readonly metadata: {
142
+ readonly label: "Settled";
136
143
  readonly description: "Winner determined, transfer complete";
144
+ readonly category: "terminal";
137
145
  };
138
146
  };
139
147
  readonly NO_SALE: {
140
148
  readonly id: "NO_SALE";
141
149
  readonly isFinal: true;
142
150
  readonly metadata: {
151
+ readonly label: "No sale";
143
152
  readonly description: "Reserve not met or no valid bids";
153
+ readonly category: "terminal";
144
154
  };
145
155
  };
146
156
  readonly CANCELLED: {
147
157
  readonly id: "CANCELLED";
148
158
  readonly isFinal: true;
149
159
  readonly metadata: {
160
+ readonly label: "Cancelled";
150
161
  readonly description: "Auction cancelled by seller";
162
+ readonly category: "terminal";
151
163
  };
152
164
  };
153
165
  };
@@ -127,35 +127,45 @@ export declare const marketCrowdfundDef: {
127
127
  readonly id: "PROPOSED";
128
128
  readonly isFinal: false;
129
129
  readonly metadata: {
130
+ readonly label: "Proposed";
130
131
  readonly description: "Campaign created but not yet open";
132
+ readonly category: "initial";
131
133
  };
132
134
  };
133
135
  readonly OPEN: {
134
136
  readonly id: "OPEN";
135
137
  readonly isFinal: false;
136
138
  readonly metadata: {
139
+ readonly label: "Open";
137
140
  readonly description: "Accepting pledges";
141
+ readonly category: "active";
138
142
  };
139
143
  };
140
144
  readonly FUNDED: {
141
145
  readonly id: "FUNDED";
142
146
  readonly isFinal: true;
143
147
  readonly metadata: {
148
+ readonly label: "Funded";
144
149
  readonly description: "Threshold met, funds released to creator";
150
+ readonly category: "terminal";
145
151
  };
146
152
  };
147
153
  readonly REFUNDED: {
148
154
  readonly id: "REFUNDED";
149
155
  readonly isFinal: true;
150
156
  readonly metadata: {
157
+ readonly label: "Refunded";
151
158
  readonly description: "Threshold not met, all pledges refunded";
159
+ readonly category: "terminal";
152
160
  };
153
161
  };
154
162
  readonly CANCELLED: {
155
163
  readonly id: "CANCELLED";
156
164
  readonly isFinal: true;
157
165
  readonly metadata: {
166
+ readonly label: "Cancelled";
158
167
  readonly description: "Campaign cancelled by creator";
168
+ readonly category: "terminal";
159
169
  };
160
170
  };
161
171
  };
@@ -130,49 +130,63 @@ export declare const marketGroupBuyDef: {
130
130
  readonly id: "PROPOSED";
131
131
  readonly isFinal: false;
132
132
  readonly metadata: {
133
+ readonly label: "Proposed";
133
134
  readonly description: "Group buy created but not yet open";
135
+ readonly category: "initial";
134
136
  };
135
137
  };
136
138
  readonly OPEN: {
137
139
  readonly id: "OPEN";
138
140
  readonly isFinal: false;
139
141
  readonly metadata: {
142
+ readonly label: "Open";
140
143
  readonly description: "Accepting orders";
144
+ readonly category: "active";
141
145
  };
142
146
  };
143
147
  readonly THRESHOLD_MET: {
144
148
  readonly id: "THRESHOLD_MET";
145
149
  readonly isFinal: false;
146
150
  readonly metadata: {
151
+ readonly label: "Threshold met";
147
152
  readonly description: "Minimum quantity reached, continuing for better tier";
153
+ readonly category: "active";
148
154
  };
149
155
  };
150
156
  readonly PROCESSING: {
151
157
  readonly id: "PROCESSING";
152
158
  readonly isFinal: false;
153
159
  readonly metadata: {
160
+ readonly label: "Processing";
154
161
  readonly description: "Order placed with vendor, awaiting fulfillment";
162
+ readonly category: "pending";
155
163
  };
156
164
  };
157
165
  readonly FULFILLED: {
158
166
  readonly id: "FULFILLED";
159
167
  readonly isFinal: true;
160
168
  readonly metadata: {
169
+ readonly label: "Fulfilled";
161
170
  readonly description: "All items delivered to buyers";
171
+ readonly category: "terminal";
162
172
  };
163
173
  };
164
174
  readonly REFUNDED: {
165
175
  readonly id: "REFUNDED";
166
176
  readonly isFinal: true;
167
177
  readonly metadata: {
178
+ readonly label: "Refunded";
168
179
  readonly description: "Threshold not met, all orders refunded";
180
+ readonly category: "terminal";
169
181
  };
170
182
  };
171
183
  readonly CANCELLED: {
172
184
  readonly id: "CANCELLED";
173
185
  readonly isFinal: true;
174
186
  readonly metadata: {
187
+ readonly label: "Cancelled";
175
188
  readonly description: "Group buy cancelled";
189
+ readonly category: "terminal";
176
190
  };
177
191
  };
178
192
  };
@@ -181,56 +181,72 @@ export declare const marketPredictionDef: {
181
181
  readonly id: "PROPOSED";
182
182
  readonly isFinal: false;
183
183
  readonly metadata: {
184
+ readonly label: "Proposed";
184
185
  readonly description: "Market created but not yet open for trading";
186
+ readonly category: "initial";
185
187
  };
186
188
  };
187
189
  readonly OPEN: {
188
190
  readonly id: "OPEN";
189
191
  readonly isFinal: false;
190
192
  readonly metadata: {
193
+ readonly label: "Open";
191
194
  readonly description: "Accepting positions on outcomes";
195
+ readonly category: "active";
192
196
  };
193
197
  };
194
198
  readonly CLOSED: {
195
199
  readonly id: "CLOSED";
196
200
  readonly isFinal: false;
197
201
  readonly metadata: {
202
+ readonly label: "Closed";
198
203
  readonly description: "No more positions, awaiting resolution";
204
+ readonly category: "pending";
199
205
  };
200
206
  };
201
207
  readonly RESOLVING: {
202
208
  readonly id: "RESOLVING";
203
209
  readonly isFinal: false;
204
210
  readonly metadata: {
211
+ readonly label: "Resolving";
205
212
  readonly description: "Oracle(s) submitting resolution";
213
+ readonly category: "pending";
206
214
  };
207
215
  };
208
216
  readonly DISPUTED: {
209
217
  readonly id: "DISPUTED";
210
218
  readonly isFinal: false;
211
219
  readonly metadata: {
220
+ readonly label: "Disputed";
212
221
  readonly description: "Resolution challenged, awaiting arbitration";
222
+ readonly category: "pending";
213
223
  };
214
224
  };
215
225
  readonly SETTLED: {
216
226
  readonly id: "SETTLED";
217
227
  readonly isFinal: true;
218
228
  readonly metadata: {
229
+ readonly label: "Settled";
219
230
  readonly description: "Outcome finalized, payouts available";
231
+ readonly category: "terminal";
220
232
  };
221
233
  };
222
234
  readonly REFUNDED: {
223
235
  readonly id: "REFUNDED";
224
236
  readonly isFinal: true;
225
237
  readonly metadata: {
238
+ readonly label: "Refunded";
226
239
  readonly description: "Market invalidated, all positions refunded";
240
+ readonly category: "terminal";
227
241
  };
228
242
  };
229
243
  readonly CANCELLED: {
230
244
  readonly id: "CANCELLED";
231
245
  readonly isFinal: true;
232
246
  readonly metadata: {
247
+ readonly label: "Cancelled";
233
248
  readonly description: "Market cancelled before opening";
249
+ readonly category: "terminal";
234
250
  };
235
251
  };
236
252
  };
@@ -50,27 +50,47 @@ export declare const marketUniversalDef: {
50
50
  readonly PROPOSED: {
51
51
  readonly id: "PROPOSED";
52
52
  readonly isFinal: false;
53
- readonly metadata: null;
53
+ readonly metadata: {
54
+ readonly label: "Proposed";
55
+ readonly description: "Market created but not yet open";
56
+ readonly category: "initial";
57
+ };
54
58
  };
55
59
  readonly OPEN: {
56
60
  readonly id: "OPEN";
57
61
  readonly isFinal: false;
58
- readonly metadata: null;
62
+ readonly metadata: {
63
+ readonly label: "Open";
64
+ readonly description: "Market is open for participation";
65
+ readonly category: "active";
66
+ };
59
67
  };
60
68
  readonly CLOSED: {
61
69
  readonly id: "CLOSED";
62
70
  readonly isFinal: false;
63
- readonly metadata: null;
71
+ readonly metadata: {
72
+ readonly label: "Closed";
73
+ readonly description: "Participation closed; awaiting settlement";
74
+ readonly category: "pending";
75
+ };
64
76
  };
65
77
  readonly SETTLED: {
66
78
  readonly id: "SETTLED";
67
79
  readonly isFinal: true;
68
- readonly metadata: null;
80
+ readonly metadata: {
81
+ readonly label: "Settled";
82
+ readonly description: "Market settled and payouts available (terminal)";
83
+ readonly category: "terminal";
84
+ };
69
85
  };
70
86
  readonly CANCELLED: {
71
87
  readonly id: "CANCELLED";
72
88
  readonly isFinal: true;
73
- readonly metadata: null;
89
+ readonly metadata: {
90
+ readonly label: "Cancelled";
91
+ readonly description: "Market cancelled before settlement (terminal)";
92
+ readonly category: "terminal";
93
+ };
74
94
  };
75
95
  };
76
96
  readonly initialState: "PROPOSED";