@triadxyz/triad-protocol 1.6.8-beta-dev → 1.6.9-beta

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.
@@ -5,7 +5,7 @@
5
5
  * IDL can be found at `target/idl/triad_protocol.json`.
6
6
  */
7
7
  export type TriadProtocol = {
8
- address: '9acY2YXu8oyHETTuDPWie4eB7WoSw9YxNnWUUVHktgs1';
8
+ address: 'TRDwq3BN4mP3m9KsuNUWSN6QDff93VKGSwE95Jbr9Ss';
9
9
  metadata: {
10
10
  name: 'triadProtocol';
11
11
  version: '0.1.4';
@@ -14,8 +14,8 @@ export type TriadProtocol = {
14
14
  };
15
15
  instructions: [
16
16
  {
17
- name: 'allowMarketToPayout';
18
- discriminator: [193, 227, 109, 171, 110, 177, 47, 251];
17
+ name: 'addDefaultPoseidon';
18
+ discriminator: [121, 129, 69, 151, 102, 241, 191, 34];
19
19
  accounts: [
20
20
  {
21
21
  name: 'signer';
@@ -23,7 +23,7 @@ export type TriadProtocol = {
23
23
  signer: true;
24
24
  },
25
25
  {
26
- name: 'market';
26
+ name: 'userTrade';
27
27
  writable: true;
28
28
  },
29
29
  {
@@ -34,158 +34,61 @@ export type TriadProtocol = {
34
34
  args: [];
35
35
  },
36
36
  {
37
- name: 'cancelOrder';
38
- discriminator: [95, 129, 237, 240, 8, 49, 223, 132];
37
+ name: 'addTraderPoseidon';
38
+ discriminator: [34, 241, 88, 67, 66, 83, 83, 134];
39
39
  accounts: [
40
40
  {
41
- name: 'signer';
41
+ name: 'owner';
42
42
  writable: true;
43
43
  signer: true;
44
+ relations: ['poseidonAsset'];
44
45
  },
45
46
  {
46
47
  name: 'userTrade';
47
48
  writable: true;
48
49
  },
49
50
  {
50
- name: 'market';
51
+ name: 'poseidonAsset';
51
52
  writable: true;
52
53
  },
53
54
  {
54
- name: 'mint';
55
+ name: 'corePoseidonCollection';
55
56
  writable: true;
56
57
  },
57
58
  {
58
- name: 'userAta';
59
+ name: 'poseidonCollection';
59
60
  writable: true;
60
- pda: {
61
- seeds: [
62
- {
63
- kind: 'account';
64
- path: 'signer';
65
- },
66
- {
67
- kind: 'account';
68
- path: 'tokenProgram';
69
- },
70
- {
71
- kind: 'account';
72
- path: 'mint';
73
- }
74
- ];
75
- program: {
76
- kind: 'const';
77
- value: [
78
- 140,
79
- 151,
80
- 37,
81
- 143,
82
- 78,
83
- 36,
84
- 137,
85
- 241,
86
- 187,
87
- 61,
88
- 16,
89
- 41,
90
- 20,
91
- 142,
92
- 13,
93
- 131,
94
- 11,
95
- 90,
96
- 19,
97
- 153,
98
- 218,
99
- 255,
100
- 16,
101
- 132,
102
- 4,
103
- 142,
104
- 123,
105
- 216,
106
- 219,
107
- 233,
108
- 248,
109
- 89
110
- ];
111
- };
112
- };
113
61
  },
114
62
  {
115
- name: 'marketVault';
116
- writable: true;
117
- pda: {
118
- seeds: [
119
- {
120
- kind: 'account';
121
- path: 'market';
122
- },
123
- {
124
- kind: 'account';
125
- path: 'tokenProgram';
126
- },
127
- {
128
- kind: 'account';
129
- path: 'mint';
130
- }
131
- ];
132
- program: {
133
- kind: 'const';
134
- value: [
135
- 140,
136
- 151,
137
- 37,
138
- 143,
139
- 78,
140
- 36,
141
- 137,
142
- 241,
143
- 187,
144
- 61,
145
- 16,
146
- 41,
147
- 20,
148
- 142,
149
- 13,
150
- 131,
151
- 11,
152
- 90,
153
- 19,
154
- 153,
155
- 218,
156
- 255,
157
- 16,
158
- 132,
159
- 4,
160
- 142,
161
- 123,
162
- 216,
163
- 219,
164
- 233,
165
- 248,
166
- 89
167
- ];
168
- };
169
- };
63
+ name: 'metaplexProgram';
64
+ address: 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d';
170
65
  },
171
66
  {
172
- name: 'tokenProgram';
67
+ name: 'systemProgram';
68
+ address: '11111111111111111111111111111111';
69
+ }
70
+ ];
71
+ args: [];
72
+ },
73
+ {
74
+ name: 'allowMarketToPayout';
75
+ discriminator: [193, 227, 109, 171, 110, 177, 47, 251];
76
+ accounts: [
77
+ {
78
+ name: 'signer';
79
+ writable: true;
80
+ signer: true;
173
81
  },
174
82
  {
175
- name: 'associatedTokenProgram';
176
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
83
+ name: 'market';
84
+ writable: true;
177
85
  },
178
86
  {
179
87
  name: 'systemProgram';
180
88
  address: '11111111111111111111111111111111';
181
89
  }
182
90
  ];
183
- args: [
184
- {
185
- name: 'orderId';
186
- type: 'u64';
187
- }
188
- ];
91
+ args: [];
189
92
  },
190
93
  {
191
94
  name: 'claimStakeRewards';
@@ -196,6 +99,11 @@ export type TriadProtocol = {
196
99
  writable: true;
197
100
  signer: true;
198
101
  },
102
+ {
103
+ name: 'verifier';
104
+ writable: true;
105
+ signer: true;
106
+ },
199
107
  {
200
108
  name: 'stakeVault';
201
109
  writable: true;
@@ -335,7 +243,16 @@ export type TriadProtocol = {
335
243
  address: '11111111111111111111111111111111';
336
244
  }
337
245
  ];
338
- args: [];
246
+ args: [
247
+ {
248
+ name: 'args';
249
+ type: {
250
+ defined: {
251
+ name: 'claimStakeRewardsArgs';
252
+ };
253
+ };
254
+ }
255
+ ];
339
256
  returns: 'u64';
340
257
  },
341
258
  {
@@ -1167,204 +1084,7 @@ export type TriadProtocol = {
1167
1084
  };
1168
1085
  },
1169
1086
  {
1170
- name: 'marketVault';
1171
- writable: true;
1172
- pda: {
1173
- seeds: [
1174
- {
1175
- kind: 'account';
1176
- path: 'market';
1177
- },
1178
- {
1179
- kind: 'account';
1180
- path: 'tokenProgram';
1181
- },
1182
- {
1183
- kind: 'account';
1184
- path: 'mint';
1185
- }
1186
- ];
1187
- program: {
1188
- kind: 'const';
1189
- value: [
1190
- 140,
1191
- 151,
1192
- 37,
1193
- 143,
1194
- 78,
1195
- 36,
1196
- 137,
1197
- 241,
1198
- 187,
1199
- 61,
1200
- 16,
1201
- 41,
1202
- 20,
1203
- 142,
1204
- 13,
1205
- 131,
1206
- 11,
1207
- 90,
1208
- 19,
1209
- 153,
1210
- 218,
1211
- 255,
1212
- 16,
1213
- 132,
1214
- 4,
1215
- 142,
1216
- 123,
1217
- 216,
1218
- 219,
1219
- 233,
1220
- 248,
1221
- 89
1222
- ];
1223
- };
1224
- };
1225
- },
1226
- {
1227
- name: 'tokenProgram';
1228
- },
1229
- {
1230
- name: 'associatedTokenProgram';
1231
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1232
- },
1233
- {
1234
- name: 'systemProgram';
1235
- address: '11111111111111111111111111111111';
1236
- }
1237
- ];
1238
- args: [
1239
- {
1240
- name: 'orderId';
1241
- type: 'u64';
1242
- }
1243
- ];
1244
- },
1245
- {
1246
- name: 'placeAskOrder';
1247
- discriminator: [181, 105, 176, 231, 131, 19, 59, 229];
1248
- accounts: [
1249
- {
1250
- name: 'signer';
1251
- writable: true;
1252
- signer: true;
1253
- },
1254
- {
1255
- name: 'squads';
1256
- writable: true;
1257
- address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1258
- },
1259
- {
1260
- name: 'userTrade';
1261
- writable: true;
1262
- },
1263
- {
1264
- name: 'market';
1265
- writable: true;
1266
- },
1267
- {
1268
- name: 'systemProgram';
1269
- address: '11111111111111111111111111111111';
1270
- }
1271
- ];
1272
- args: [
1273
- {
1274
- name: 'args';
1275
- type: {
1276
- defined: {
1277
- name: 'placeAskOrderArgs';
1278
- };
1279
- };
1280
- }
1281
- ];
1282
- },
1283
- {
1284
- name: 'placeBidOrder';
1285
- discriminator: [154, 143, 199, 233, 97, 23, 223, 255];
1286
- accounts: [
1287
- {
1288
- name: 'signer';
1289
- writable: true;
1290
- signer: true;
1291
- },
1292
- {
1293
- name: 'squads';
1294
- writable: true;
1295
- address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1296
- },
1297
- {
1298
- name: 'userTrade';
1299
- writable: true;
1300
- },
1301
- {
1302
- name: 'market';
1303
- writable: true;
1304
- },
1305
- {
1306
- name: 'mint';
1307
- writable: true;
1308
- },
1309
- {
1310
- name: 'userFromAta';
1311
- writable: true;
1312
- pda: {
1313
- seeds: [
1314
- {
1315
- kind: 'account';
1316
- path: 'signer';
1317
- },
1318
- {
1319
- kind: 'account';
1320
- path: 'tokenProgram';
1321
- },
1322
- {
1323
- kind: 'account';
1324
- path: 'mint';
1325
- }
1326
- ];
1327
- program: {
1328
- kind: 'const';
1329
- value: [
1330
- 140,
1331
- 151,
1332
- 37,
1333
- 143,
1334
- 78,
1335
- 36,
1336
- 137,
1337
- 241,
1338
- 187,
1339
- 61,
1340
- 16,
1341
- 41,
1342
- 20,
1343
- 142,
1344
- 13,
1345
- 131,
1346
- 11,
1347
- 90,
1348
- 19,
1349
- 153,
1350
- 218,
1351
- 255,
1352
- 16,
1353
- 132,
1354
- 4,
1355
- 142,
1356
- 123,
1357
- 216,
1358
- 219,
1359
- 233,
1360
- 248,
1361
- 89
1362
- ];
1363
- };
1364
- };
1365
- },
1366
- {
1367
- name: 'marketToAta';
1087
+ name: 'marketVault';
1368
1088
  writable: true;
1369
1089
  pda: {
1370
1090
  seeds: [
@@ -1422,6 +1142,7 @@ export type TriadProtocol = {
1422
1142
  },
1423
1143
  {
1424
1144
  name: 'tokenProgram';
1145
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1425
1146
  },
1426
1147
  {
1427
1148
  name: 'associatedTokenProgram';
@@ -1434,14 +1155,47 @@ export type TriadProtocol = {
1434
1155
  ];
1435
1156
  args: [
1436
1157
  {
1437
- name: 'args';
1438
- type: {
1439
- defined: {
1440
- name: 'placeBidOrderArgs';
1441
- };
1442
- };
1158
+ name: 'orderId';
1159
+ type: 'u64';
1160
+ }
1161
+ ];
1162
+ },
1163
+ {
1164
+ name: 'removeTraderPoseidon';
1165
+ discriminator: [150, 5, 46, 188, 189, 13, 246, 11];
1166
+ accounts: [
1167
+ {
1168
+ name: 'owner';
1169
+ writable: true;
1170
+ signer: true;
1171
+ relations: ['poseidonAsset'];
1172
+ },
1173
+ {
1174
+ name: 'userTrade';
1175
+ writable: true;
1176
+ },
1177
+ {
1178
+ name: 'poseidonAsset';
1179
+ writable: true;
1180
+ },
1181
+ {
1182
+ name: 'corePoseidonCollection';
1183
+ writable: true;
1184
+ },
1185
+ {
1186
+ name: 'poseidonCollection';
1187
+ writable: true;
1188
+ },
1189
+ {
1190
+ name: 'metaplexProgram';
1191
+ address: 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d';
1192
+ },
1193
+ {
1194
+ name: 'systemProgram';
1195
+ address: '11111111111111111111111111111111';
1443
1196
  }
1444
1197
  ];
1198
+ args: [];
1445
1199
  },
1446
1200
  {
1447
1201
  name: 'requestWithdrawStake';
@@ -1471,6 +1225,35 @@ export type TriadProtocol = {
1471
1225
  ];
1472
1226
  args: [];
1473
1227
  },
1228
+ {
1229
+ name: 'resolveMarket';
1230
+ discriminator: [155, 23, 80, 173, 46, 74, 23, 239];
1231
+ accounts: [
1232
+ {
1233
+ name: 'signer';
1234
+ writable: true;
1235
+ signer: true;
1236
+ },
1237
+ {
1238
+ name: 'market';
1239
+ writable: true;
1240
+ },
1241
+ {
1242
+ name: 'systemProgram';
1243
+ address: '11111111111111111111111111111111';
1244
+ }
1245
+ ];
1246
+ args: [
1247
+ {
1248
+ name: 'winningDirection';
1249
+ type: {
1250
+ defined: {
1251
+ name: 'winningDirection';
1252
+ };
1253
+ };
1254
+ }
1255
+ ];
1256
+ },
1474
1257
  {
1475
1258
  name: 'stakeToken';
1476
1259
  discriminator: [191, 127, 193, 101, 37, 96, 87, 211];
@@ -1731,12 +1514,8 @@ export type TriadProtocol = {
1731
1514
  ];
1732
1515
  args: [
1733
1516
  {
1734
- name: 'args';
1735
- type: {
1736
- defined: {
1737
- name: 'updateMarketArgs';
1738
- };
1739
- };
1517
+ name: 'marketEnd';
1518
+ type: 'i64';
1740
1519
  }
1741
1520
  ];
1742
1521
  },
@@ -2252,18 +2031,23 @@ export type TriadProtocol = {
2252
2031
  },
2253
2032
  {
2254
2033
  code: 6019;
2255
- name: 'invalidCustomer';
2256
- msg: 'Invalid customer';
2034
+ name: 'alreadyLinked';
2035
+ msg: 'Already linked';
2257
2036
  },
2258
2037
  {
2259
2038
  code: 6020;
2260
- name: 'invalidMint';
2261
- msg: 'Invalid mint. Only TRD, USDC or USDC Devnet are allowed';
2039
+ name: 'notLinked';
2040
+ msg: 'Not linked';
2262
2041
  },
2263
2042
  {
2264
2043
  code: 6021;
2265
- name: 'invalidFillAmount';
2266
- msg: 'Invalid fill amount';
2044
+ name: 'invalidCustomer';
2045
+ msg: 'Invalid customer';
2046
+ },
2047
+ {
2048
+ code: 6022;
2049
+ name: 'invalidMint';
2050
+ msg: 'Invalid mint';
2267
2051
  }
2268
2052
  ];
2269
2053
  types: [
@@ -2345,6 +2129,22 @@ export type TriadProtocol = {
2345
2129
  ];
2346
2130
  };
2347
2131
  },
2132
+ {
2133
+ name: 'claimStakeRewardsArgs';
2134
+ type: {
2135
+ kind: 'struct';
2136
+ fields: [
2137
+ {
2138
+ name: 'rank';
2139
+ type: 'u16';
2140
+ },
2141
+ {
2142
+ name: 'collections';
2143
+ type: 'u8';
2144
+ }
2145
+ ];
2146
+ };
2147
+ },
2348
2148
  {
2349
2149
  name: 'collection';
2350
2150
  type: {
@@ -2392,10 +2192,6 @@ export type TriadProtocol = {
2392
2192
  name: 'authority';
2393
2193
  type: 'pubkey';
2394
2194
  },
2395
- {
2396
- name: 'shadowStorage';
2397
- type: 'pubkey';
2398
- },
2399
2195
  {
2400
2196
  name: 'id';
2401
2197
  type: 'u16';
@@ -2454,10 +2250,6 @@ export type TriadProtocol = {
2454
2250
  name: 'name';
2455
2251
  type: 'string';
2456
2252
  },
2457
- {
2458
- name: 'shadowStorage';
2459
- type: 'pubkey';
2460
- },
2461
2253
  {
2462
2254
  name: 'padding';
2463
2255
  type: {
@@ -2498,10 +2290,6 @@ export type TriadProtocol = {
2498
2290
  type: {
2499
2291
  kind: 'struct';
2500
2292
  fields: [
2501
- {
2502
- name: 'authority';
2503
- type: 'pubkey';
2504
- },
2505
2293
  {
2506
2294
  name: 'marketId';
2507
2295
  type: 'u64';
@@ -2534,10 +2322,6 @@ export type TriadProtocol = {
2534
2322
  name: 'volume';
2535
2323
  type: 'u64';
2536
2324
  },
2537
- {
2538
- name: 'mint';
2539
- type: 'pubkey';
2540
- },
2541
2325
  {
2542
2326
  name: 'updateTs';
2543
2327
  type: 'i64';
@@ -2550,28 +2334,6 @@ export type TriadProtocol = {
2550
2334
  name: 'nextOrderId';
2551
2335
  type: 'u64';
2552
2336
  },
2553
- {
2554
- name: 'feeBps';
2555
- type: 'u8';
2556
- },
2557
- {
2558
- name: 'isAllowedToPayout';
2559
- type: 'bool';
2560
- },
2561
- {
2562
- name: 'marketStart';
2563
- type: 'i64';
2564
- },
2565
- {
2566
- name: 'marketEnd';
2567
- type: 'i64';
2568
- },
2569
- {
2570
- name: 'question';
2571
- type: {
2572
- array: ['u8', 80];
2573
- };
2574
- },
2575
2337
  {
2576
2338
  name: 'winningDirection';
2577
2339
  type: {
@@ -2581,23 +2343,19 @@ export type TriadProtocol = {
2581
2343
  };
2582
2344
  },
2583
2345
  {
2584
- name: 'marketLiquidityAtStart';
2585
- type: 'u64';
2586
- },
2587
- {
2588
- name: 'creatorFeeAvailable';
2589
- type: 'u64';
2346
+ name: 'marketStart';
2347
+ type: 'i64';
2590
2348
  },
2591
2349
  {
2592
- name: 'creatorFeeClaimed';
2593
- type: 'u64';
2350
+ name: 'marketEnd';
2351
+ type: 'i64';
2594
2352
  },
2595
2353
  {
2596
- name: 'marketFeeAvailable';
2597
- type: 'u64';
2354
+ name: 'isAllowedToPayout';
2355
+ type: 'bool';
2598
2356
  },
2599
2357
  {
2600
- name: 'marketFeeClaimed';
2358
+ name: 'marketLiquidityAtStart';
2601
2359
  type: 'u64';
2602
2360
  }
2603
2361
  ];
@@ -2666,14 +2424,14 @@ export type TriadProtocol = {
2666
2424
  },
2667
2425
  {
2668
2426
  name: 'feeBps';
2669
- type: 'u8';
2427
+ type: 'u16';
2670
2428
  },
2671
2429
  {
2672
- name: 'creatorFeeAvailable';
2430
+ name: 'nftHoldersFeeAvailable';
2673
2431
  type: 'u64';
2674
2432
  },
2675
2433
  {
2676
- name: 'creatorFeeClaimed';
2434
+ name: 'nftHoldersFeeClaimed';
2677
2435
  type: 'u64';
2678
2436
  },
2679
2437
  {
@@ -2716,14 +2474,12 @@ export type TriadProtocol = {
2716
2474
  },
2717
2475
  {
2718
2476
  name: 'customerId';
2719
- type: {
2720
- option: 'u16';
2721
- };
2477
+ type: 'u16';
2722
2478
  },
2723
2479
  {
2724
2480
  name: 'padding';
2725
2481
  type: {
2726
- array: ['u8', 89];
2482
+ array: ['u8', 90];
2727
2483
  };
2728
2484
  }
2729
2485
  ];
@@ -2770,7 +2526,7 @@ export type TriadProtocol = {
2770
2526
  type: 'u64';
2771
2527
  },
2772
2528
  {
2773
- name: 'filledShares';
2529
+ name: 'questionId';
2774
2530
  type: 'u64';
2775
2531
  },
2776
2532
  {
@@ -2787,14 +2543,17 @@ export type TriadProtocol = {
2787
2543
  },
2788
2544
  {
2789
2545
  name: 'price';
2546
+ docs: ['The price of the order (in TRD)'];
2790
2547
  type: 'u64';
2791
2548
  },
2792
2549
  {
2793
- name: 'amount';
2550
+ name: 'totalAmount';
2551
+ docs: ['The total amount of TRD committed to this order'];
2794
2552
  type: 'u64';
2795
2553
  },
2796
2554
  {
2797
- name: 'shares';
2555
+ name: 'totalShares';
2556
+ docs: ['The total number of shares to be purchased'];
2798
2557
  type: 'u64';
2799
2558
  },
2800
2559
  {
@@ -2806,7 +2565,7 @@ export type TriadProtocol = {
2806
2565
  };
2807
2566
  },
2808
2567
  {
2809
- name: 'orderDirection';
2568
+ name: 'direction';
2810
2569
  type: {
2811
2570
  defined: {
2812
2571
  name: 'orderDirection';
@@ -2817,22 +2576,10 @@ export type TriadProtocol = {
2817
2576
  name: 'userNonce';
2818
2577
  type: 'u32';
2819
2578
  },
2820
- {
2821
- name: 'orderSide';
2822
- type: {
2823
- defined: {
2824
- name: 'orderSide';
2825
- };
2826
- };
2827
- },
2828
- {
2829
- name: 'linkedOrderId';
2830
- type: 'u64';
2831
- },
2832
2579
  {
2833
2580
  name: 'padding';
2834
2581
  type: {
2835
- array: ['u8', 19];
2582
+ array: ['u8', 28];
2836
2583
  };
2837
2584
  }
2838
2585
  ];
@@ -2866,7 +2613,7 @@ export type TriadProtocol = {
2866
2613
  type: 'u64';
2867
2614
  },
2868
2615
  {
2869
- name: 'filledShares';
2616
+ name: 'questionId';
2870
2617
  type: 'u64';
2871
2618
  },
2872
2619
  {
@@ -2874,21 +2621,13 @@ export type TriadProtocol = {
2874
2621
  type: 'u64';
2875
2622
  },
2876
2623
  {
2877
- name: 'orderDirection';
2624
+ name: 'direction';
2878
2625
  type: {
2879
2626
  defined: {
2880
2627
  name: 'orderDirection';
2881
2628
  };
2882
2629
  };
2883
2630
  },
2884
- {
2885
- name: 'orderSide';
2886
- type: {
2887
- defined: {
2888
- name: 'orderSide';
2889
- };
2890
- };
2891
- },
2892
2631
  {
2893
2632
  name: 'orderType';
2894
2633
  type: {
@@ -2910,24 +2649,32 @@ export type TriadProtocol = {
2910
2649
  type: 'u64';
2911
2650
  },
2912
2651
  {
2913
- name: 'shares';
2652
+ name: 'totalShares';
2914
2653
  type: 'u64';
2915
2654
  },
2916
2655
  {
2917
- name: 'amount';
2656
+ name: 'totalAmount';
2918
2657
  type: 'u64';
2919
2658
  },
2920
2659
  {
2921
2660
  name: 'refundAmount';
2661
+ type: {
2662
+ option: 'u64';
2663
+ };
2664
+ },
2665
+ {
2666
+ name: 'pnl';
2922
2667
  type: 'i64';
2923
2668
  },
2924
2669
  {
2925
- name: 'ts';
2670
+ name: 'timestamp';
2926
2671
  type: 'i64';
2927
2672
  },
2928
2673
  {
2929
- name: 'linkedOrderId';
2930
- type: 'u64';
2674
+ name: 'isQuestionWinner';
2675
+ type: {
2676
+ option: 'bool';
2677
+ };
2931
2678
  },
2932
2679
  {
2933
2680
  name: 'userNonce';
@@ -2936,20 +2683,6 @@ export type TriadProtocol = {
2936
2683
  ];
2937
2684
  };
2938
2685
  },
2939
- {
2940
- name: 'orderSide';
2941
- type: {
2942
- kind: 'enum';
2943
- variants: [
2944
- {
2945
- name: 'bid';
2946
- },
2947
- {
2948
- name: 'ask';
2949
- }
2950
- ];
2951
- };
2952
- },
2953
2686
  {
2954
2687
  name: 'orderStatus';
2955
2688
  type: {
@@ -2969,9 +2702,6 @@ export type TriadProtocol = {
2969
2702
  },
2970
2703
  {
2971
2704
  name: 'liquidated';
2972
- },
2973
- {
2974
- name: 'waiting';
2975
2705
  }
2976
2706
  ];
2977
2707
  };
@@ -2990,54 +2720,6 @@ export type TriadProtocol = {
2990
2720
  ];
2991
2721
  };
2992
2722
  },
2993
- {
2994
- name: 'placeAskOrderArgs';
2995
- type: {
2996
- kind: 'struct';
2997
- fields: [
2998
- {
2999
- name: 'shares';
3000
- type: 'u64';
3001
- },
3002
- {
3003
- name: 'price';
3004
- type: 'u64';
3005
- },
3006
- {
3007
- name: 'orderDirection';
3008
- type: {
3009
- defined: {
3010
- name: 'orderDirection';
3011
- };
3012
- };
3013
- }
3014
- ];
3015
- };
3016
- },
3017
- {
3018
- name: 'placeBidOrderArgs';
3019
- type: {
3020
- kind: 'struct';
3021
- fields: [
3022
- {
3023
- name: 'amount';
3024
- type: 'u64';
3025
- },
3026
- {
3027
- name: 'price';
3028
- type: 'u64';
3029
- },
3030
- {
3031
- name: 'orderDirection';
3032
- type: {
3033
- defined: {
3034
- name: 'orderDirection';
3035
- };
3036
- };
3037
- }
3038
- ];
3039
- };
3040
- },
3041
2723
  {
3042
2724
  name: 'priceEvent';
3043
2725
  type: {
@@ -3271,30 +2953,6 @@ export type TriadProtocol = {
3271
2953
  ];
3272
2954
  };
3273
2955
  },
3274
- {
3275
- name: 'updateMarketArgs';
3276
- type: {
3277
- kind: 'struct';
3278
- fields: [
3279
- {
3280
- name: 'marketEnd';
3281
- type: {
3282
- option: 'i64';
3283
- };
3284
- },
3285
- {
3286
- name: 'winningDirection';
3287
- type: {
3288
- option: {
3289
- defined: {
3290
- name: 'winningDirection';
3291
- };
3292
- };
3293
- };
3294
- }
3295
- ];
3296
- };
3297
- },
3298
2956
  {
3299
2957
  name: 'updateStakeVaultArgs';
3300
2958
  type: {