@triadxyz/triad-protocol 1.7.3-beta → 1.7.4-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.
@@ -70,6 +70,193 @@ export type TriadProtocol = {
70
70
  ];
71
71
  args: [];
72
72
  },
73
+ {
74
+ name: 'cancelAskOrder';
75
+ discriminator: [211, 157, 113, 122, 34, 180, 162, 178];
76
+ accounts: [
77
+ {
78
+ name: 'signer';
79
+ writable: true;
80
+ signer: true;
81
+ },
82
+ {
83
+ name: 'userTrade';
84
+ writable: true;
85
+ },
86
+ {
87
+ name: 'market';
88
+ writable: true;
89
+ },
90
+ {
91
+ name: 'bidUserTrade';
92
+ writable: true;
93
+ },
94
+ {
95
+ name: 'systemProgram';
96
+ address: '11111111111111111111111111111111';
97
+ }
98
+ ];
99
+ args: [
100
+ {
101
+ name: 'orderId';
102
+ type: 'u64';
103
+ }
104
+ ];
105
+ },
106
+ {
107
+ name: 'cancelBidOrder';
108
+ discriminator: [198, 70, 164, 166, 232, 131, 55, 165];
109
+ accounts: [
110
+ {
111
+ name: 'signer';
112
+ writable: true;
113
+ signer: true;
114
+ },
115
+ {
116
+ name: 'userTrade';
117
+ writable: true;
118
+ },
119
+ {
120
+ name: 'market';
121
+ writable: true;
122
+ },
123
+ {
124
+ name: 'mint';
125
+ writable: true;
126
+ },
127
+ {
128
+ name: 'userAta';
129
+ writable: true;
130
+ pda: {
131
+ seeds: [
132
+ {
133
+ kind: 'account';
134
+ path: 'signer';
135
+ },
136
+ {
137
+ kind: 'account';
138
+ path: 'tokenProgram';
139
+ },
140
+ {
141
+ kind: 'account';
142
+ path: 'mint';
143
+ }
144
+ ];
145
+ program: {
146
+ kind: 'const';
147
+ value: [
148
+ 140,
149
+ 151,
150
+ 37,
151
+ 143,
152
+ 78,
153
+ 36,
154
+ 137,
155
+ 241,
156
+ 187,
157
+ 61,
158
+ 16,
159
+ 41,
160
+ 20,
161
+ 142,
162
+ 13,
163
+ 131,
164
+ 11,
165
+ 90,
166
+ 19,
167
+ 153,
168
+ 218,
169
+ 255,
170
+ 16,
171
+ 132,
172
+ 4,
173
+ 142,
174
+ 123,
175
+ 216,
176
+ 219,
177
+ 233,
178
+ 248,
179
+ 89
180
+ ];
181
+ };
182
+ };
183
+ },
184
+ {
185
+ name: 'marketVault';
186
+ writable: true;
187
+ pda: {
188
+ seeds: [
189
+ {
190
+ kind: 'account';
191
+ path: 'market';
192
+ },
193
+ {
194
+ kind: 'account';
195
+ path: 'tokenProgram';
196
+ },
197
+ {
198
+ kind: 'account';
199
+ path: 'mint';
200
+ }
201
+ ];
202
+ program: {
203
+ kind: 'const';
204
+ value: [
205
+ 140,
206
+ 151,
207
+ 37,
208
+ 143,
209
+ 78,
210
+ 36,
211
+ 137,
212
+ 241,
213
+ 187,
214
+ 61,
215
+ 16,
216
+ 41,
217
+ 20,
218
+ 142,
219
+ 13,
220
+ 131,
221
+ 11,
222
+ 90,
223
+ 19,
224
+ 153,
225
+ 218,
226
+ 255,
227
+ 16,
228
+ 132,
229
+ 4,
230
+ 142,
231
+ 123,
232
+ 216,
233
+ 219,
234
+ 233,
235
+ 248,
236
+ 89
237
+ ];
238
+ };
239
+ };
240
+ },
241
+ {
242
+ name: 'tokenProgram';
243
+ },
244
+ {
245
+ name: 'associatedTokenProgram';
246
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
247
+ },
248
+ {
249
+ name: 'systemProgram';
250
+ address: '11111111111111111111111111111111';
251
+ }
252
+ ];
253
+ args: [
254
+ {
255
+ name: 'orderId';
256
+ type: 'u64';
257
+ }
258
+ ];
259
+ },
73
260
  {
74
261
  name: 'claimStakeRewards';
75
262
  discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
@@ -817,8 +1004,8 @@ export type TriadProtocol = {
817
1004
  args: [];
818
1005
  },
819
1006
  {
820
- name: 'openOrder';
821
- discriminator: [206, 88, 88, 143, 38, 136, 50, 224];
1007
+ name: 'marketBidOrder';
1008
+ discriminator: [145, 89, 7, 166, 85, 59, 48, 149];
822
1009
  accounts: [
823
1010
  {
824
1011
  name: 'signer';
@@ -831,7 +1018,11 @@ export type TriadProtocol = {
831
1018
  address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
832
1019
  },
833
1020
  {
834
- name: 'userTrade';
1021
+ name: 'buyerTrade';
1022
+ writable: true;
1023
+ },
1024
+ {
1025
+ name: 'sellerTrade';
835
1026
  writable: true;
836
1027
  },
837
1028
  {
@@ -957,12 +1148,377 @@ export type TriadProtocol = {
957
1148
  };
958
1149
  },
959
1150
  {
960
- name: 'tokenProgram';
961
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1151
+ name: 'tokenProgram';
1152
+ },
1153
+ {
1154
+ name: 'associatedTokenProgram';
1155
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1156
+ },
1157
+ {
1158
+ name: 'systemProgram';
1159
+ address: '11111111111111111111111111111111';
1160
+ }
1161
+ ];
1162
+ args: [
1163
+ {
1164
+ name: 'args';
1165
+ type: {
1166
+ defined: {
1167
+ name: 'marketBidOrderArgs';
1168
+ };
1169
+ };
1170
+ }
1171
+ ];
1172
+ },
1173
+ {
1174
+ name: 'openOrder';
1175
+ discriminator: [206, 88, 88, 143, 38, 136, 50, 224];
1176
+ accounts: [
1177
+ {
1178
+ name: 'signer';
1179
+ writable: true;
1180
+ signer: true;
1181
+ },
1182
+ {
1183
+ name: 'squads';
1184
+ writable: true;
1185
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1186
+ },
1187
+ {
1188
+ name: 'userTrade';
1189
+ writable: true;
1190
+ },
1191
+ {
1192
+ name: 'market';
1193
+ writable: true;
1194
+ },
1195
+ {
1196
+ name: 'mint';
1197
+ writable: true;
1198
+ },
1199
+ {
1200
+ name: 'userFromAta';
1201
+ writable: true;
1202
+ pda: {
1203
+ seeds: [
1204
+ {
1205
+ kind: 'account';
1206
+ path: 'signer';
1207
+ },
1208
+ {
1209
+ kind: 'account';
1210
+ path: 'tokenProgram';
1211
+ },
1212
+ {
1213
+ kind: 'account';
1214
+ path: 'mint';
1215
+ }
1216
+ ];
1217
+ program: {
1218
+ kind: 'const';
1219
+ value: [
1220
+ 140,
1221
+ 151,
1222
+ 37,
1223
+ 143,
1224
+ 78,
1225
+ 36,
1226
+ 137,
1227
+ 241,
1228
+ 187,
1229
+ 61,
1230
+ 16,
1231
+ 41,
1232
+ 20,
1233
+ 142,
1234
+ 13,
1235
+ 131,
1236
+ 11,
1237
+ 90,
1238
+ 19,
1239
+ 153,
1240
+ 218,
1241
+ 255,
1242
+ 16,
1243
+ 132,
1244
+ 4,
1245
+ 142,
1246
+ 123,
1247
+ 216,
1248
+ 219,
1249
+ 233,
1250
+ 248,
1251
+ 89
1252
+ ];
1253
+ };
1254
+ };
1255
+ },
1256
+ {
1257
+ name: 'marketToAta';
1258
+ writable: true;
1259
+ pda: {
1260
+ seeds: [
1261
+ {
1262
+ kind: 'account';
1263
+ path: 'market';
1264
+ },
1265
+ {
1266
+ kind: 'account';
1267
+ path: 'tokenProgram';
1268
+ },
1269
+ {
1270
+ kind: 'account';
1271
+ path: 'mint';
1272
+ }
1273
+ ];
1274
+ program: {
1275
+ kind: 'const';
1276
+ value: [
1277
+ 140,
1278
+ 151,
1279
+ 37,
1280
+ 143,
1281
+ 78,
1282
+ 36,
1283
+ 137,
1284
+ 241,
1285
+ 187,
1286
+ 61,
1287
+ 16,
1288
+ 41,
1289
+ 20,
1290
+ 142,
1291
+ 13,
1292
+ 131,
1293
+ 11,
1294
+ 90,
1295
+ 19,
1296
+ 153,
1297
+ 218,
1298
+ 255,
1299
+ 16,
1300
+ 132,
1301
+ 4,
1302
+ 142,
1303
+ 123,
1304
+ 216,
1305
+ 219,
1306
+ 233,
1307
+ 248,
1308
+ 89
1309
+ ];
1310
+ };
1311
+ };
1312
+ },
1313
+ {
1314
+ name: 'tokenProgram';
1315
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1316
+ },
1317
+ {
1318
+ name: 'associatedTokenProgram';
1319
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1320
+ },
1321
+ {
1322
+ name: 'systemProgram';
1323
+ address: '11111111111111111111111111111111';
1324
+ }
1325
+ ];
1326
+ args: [
1327
+ {
1328
+ name: 'args';
1329
+ type: {
1330
+ defined: {
1331
+ name: 'openOrderArgs';
1332
+ };
1333
+ };
1334
+ }
1335
+ ];
1336
+ },
1337
+ {
1338
+ name: 'payoutOrder';
1339
+ discriminator: [247, 233, 158, 228, 63, 32, 236, 113];
1340
+ accounts: [
1341
+ {
1342
+ name: 'signer';
1343
+ writable: true;
1344
+ signer: true;
1345
+ },
1346
+ {
1347
+ name: 'squads';
1348
+ writable: true;
1349
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1350
+ },
1351
+ {
1352
+ name: 'userTrade';
1353
+ writable: true;
1354
+ },
1355
+ {
1356
+ name: 'market';
1357
+ writable: true;
1358
+ },
1359
+ {
1360
+ name: 'mint';
1361
+ writable: true;
1362
+ },
1363
+ {
1364
+ name: 'userAta';
1365
+ writable: true;
1366
+ pda: {
1367
+ seeds: [
1368
+ {
1369
+ kind: 'account';
1370
+ path: 'signer';
1371
+ },
1372
+ {
1373
+ kind: 'account';
1374
+ path: 'tokenProgram';
1375
+ },
1376
+ {
1377
+ kind: 'account';
1378
+ path: 'mint';
1379
+ }
1380
+ ];
1381
+ program: {
1382
+ kind: 'const';
1383
+ value: [
1384
+ 140,
1385
+ 151,
1386
+ 37,
1387
+ 143,
1388
+ 78,
1389
+ 36,
1390
+ 137,
1391
+ 241,
1392
+ 187,
1393
+ 61,
1394
+ 16,
1395
+ 41,
1396
+ 20,
1397
+ 142,
1398
+ 13,
1399
+ 131,
1400
+ 11,
1401
+ 90,
1402
+ 19,
1403
+ 153,
1404
+ 218,
1405
+ 255,
1406
+ 16,
1407
+ 132,
1408
+ 4,
1409
+ 142,
1410
+ 123,
1411
+ 216,
1412
+ 219,
1413
+ 233,
1414
+ 248,
1415
+ 89
1416
+ ];
1417
+ };
1418
+ };
1419
+ },
1420
+ {
1421
+ name: 'marketVault';
1422
+ writable: true;
1423
+ pda: {
1424
+ seeds: [
1425
+ {
1426
+ kind: 'account';
1427
+ path: 'market';
1428
+ },
1429
+ {
1430
+ kind: 'account';
1431
+ path: 'tokenProgram';
1432
+ },
1433
+ {
1434
+ kind: 'account';
1435
+ path: 'mint';
1436
+ }
1437
+ ];
1438
+ program: {
1439
+ kind: 'const';
1440
+ value: [
1441
+ 140,
1442
+ 151,
1443
+ 37,
1444
+ 143,
1445
+ 78,
1446
+ 36,
1447
+ 137,
1448
+ 241,
1449
+ 187,
1450
+ 61,
1451
+ 16,
1452
+ 41,
1453
+ 20,
1454
+ 142,
1455
+ 13,
1456
+ 131,
1457
+ 11,
1458
+ 90,
1459
+ 19,
1460
+ 153,
1461
+ 218,
1462
+ 255,
1463
+ 16,
1464
+ 132,
1465
+ 4,
1466
+ 142,
1467
+ 123,
1468
+ 216,
1469
+ 219,
1470
+ 233,
1471
+ 248,
1472
+ 89
1473
+ ];
1474
+ };
1475
+ };
1476
+ },
1477
+ {
1478
+ name: 'tokenProgram';
1479
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1480
+ },
1481
+ {
1482
+ name: 'associatedTokenProgram';
1483
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1484
+ },
1485
+ {
1486
+ name: 'systemProgram';
1487
+ address: '11111111111111111111111111111111';
1488
+ }
1489
+ ];
1490
+ args: [
1491
+ {
1492
+ name: 'orderId';
1493
+ type: 'u64';
1494
+ }
1495
+ ];
1496
+ },
1497
+ {
1498
+ name: 'placeAskOrder';
1499
+ discriminator: [181, 105, 176, 231, 131, 19, 59, 229];
1500
+ accounts: [
1501
+ {
1502
+ name: 'signer';
1503
+ writable: true;
1504
+ signer: true;
1505
+ },
1506
+ {
1507
+ name: 'squads';
1508
+ writable: true;
1509
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
962
1510
  },
963
1511
  {
964
- name: 'associatedTokenProgram';
965
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1512
+ name: 'userTrade';
1513
+ writable: true;
1514
+ },
1515
+ {
1516
+ name: 'bidUserTrade';
1517
+ writable: true;
1518
+ },
1519
+ {
1520
+ name: 'market';
1521
+ writable: true;
966
1522
  },
967
1523
  {
968
1524
  name: 'systemProgram';
@@ -974,15 +1530,15 @@ export type TriadProtocol = {
974
1530
  name: 'args';
975
1531
  type: {
976
1532
  defined: {
977
- name: 'openOrderArgs';
1533
+ name: 'placeAskOrderArgs';
978
1534
  };
979
1535
  };
980
1536
  }
981
1537
  ];
982
1538
  },
983
1539
  {
984
- name: 'payoutOrder';
985
- discriminator: [247, 233, 158, 228, 63, 32, 236, 113];
1540
+ name: 'placeBidOrder';
1541
+ discriminator: [154, 143, 199, 233, 97, 23, 223, 255];
986
1542
  accounts: [
987
1543
  {
988
1544
  name: 'signer';
@@ -1007,7 +1563,7 @@ export type TriadProtocol = {
1007
1563
  writable: true;
1008
1564
  },
1009
1565
  {
1010
- name: 'userAta';
1566
+ name: 'userFromAta';
1011
1567
  writable: true;
1012
1568
  pda: {
1013
1569
  seeds: [
@@ -1064,7 +1620,7 @@ export type TriadProtocol = {
1064
1620
  };
1065
1621
  },
1066
1622
  {
1067
- name: 'marketVault';
1623
+ name: 'marketToAta';
1068
1624
  writable: true;
1069
1625
  pda: {
1070
1626
  seeds: [
@@ -1122,7 +1678,6 @@ export type TriadProtocol = {
1122
1678
  },
1123
1679
  {
1124
1680
  name: 'tokenProgram';
1125
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1126
1681
  },
1127
1682
  {
1128
1683
  name: 'associatedTokenProgram';
@@ -1135,8 +1690,12 @@ export type TriadProtocol = {
1135
1690
  ];
1136
1691
  args: [
1137
1692
  {
1138
- name: 'orderId';
1139
- type: 'u64';
1693
+ name: 'args';
1694
+ type: {
1695
+ defined: {
1696
+ name: 'placeBidOrderArgs';
1697
+ };
1698
+ };
1140
1699
  }
1141
1700
  ];
1142
1701
  },
@@ -1474,6 +2033,47 @@ export type TriadProtocol = {
1474
2033
  ];
1475
2034
  args: [];
1476
2035
  },
2036
+ {
2037
+ name: 'updateCustomerFee';
2038
+ discriminator: [218, 240, 1, 38, 34, 166, 40, 25];
2039
+ accounts: [
2040
+ {
2041
+ name: 'signer';
2042
+ writable: true;
2043
+ signer: true;
2044
+ },
2045
+ {
2046
+ name: 'customer';
2047
+ writable: true;
2048
+ pda: {
2049
+ seeds: [
2050
+ {
2051
+ kind: 'const';
2052
+ value: [99, 117, 115, 116, 111, 109, 101, 114];
2053
+ },
2054
+ {
2055
+ kind: 'arg';
2056
+ path: 'args.id';
2057
+ }
2058
+ ];
2059
+ };
2060
+ },
2061
+ {
2062
+ name: 'systemProgram';
2063
+ address: '11111111111111111111111111111111';
2064
+ }
2065
+ ];
2066
+ args: [
2067
+ {
2068
+ name: 'args';
2069
+ type: {
2070
+ defined: {
2071
+ name: 'updateCustomerFeeArgs';
2072
+ };
2073
+ };
2074
+ }
2075
+ ];
2076
+ },
1477
2077
  {
1478
2078
  name: 'updateMarket';
1479
2079
  discriminator: [153, 39, 2, 197, 179, 50, 199, 217];
@@ -2028,6 +2628,21 @@ export type TriadProtocol = {
2028
2628
  code: 6022;
2029
2629
  name: 'invalidMint';
2030
2630
  msg: 'Invalid mint';
2631
+ },
2632
+ {
2633
+ code: 6023;
2634
+ name: 'invalidShares';
2635
+ msg: 'Invalid shares';
2636
+ },
2637
+ {
2638
+ code: 6024;
2639
+ name: 'unauthorizedToOrderBook';
2640
+ msg: 'Unauthorized to order book';
2641
+ },
2642
+ {
2643
+ code: 6025;
2644
+ name: 'orderIsFullFilled';
2645
+ msg: 'Order is full filled';
2031
2646
  }
2032
2647
  ];
2033
2648
  types: [
@@ -2175,6 +2790,10 @@ export type TriadProtocol = {
2175
2790
  {
2176
2791
  name: 'id';
2177
2792
  type: 'u16';
2793
+ },
2794
+ {
2795
+ name: 'feeRecipient';
2796
+ type: 'pubkey';
2178
2797
  }
2179
2798
  ];
2180
2799
  };
@@ -2205,6 +2824,10 @@ export type TriadProtocol = {
2205
2824
  {
2206
2825
  name: 'feeBps';
2207
2826
  type: 'u8';
2827
+ },
2828
+ {
2829
+ name: 'payoutFee';
2830
+ type: 'u16';
2208
2831
  }
2209
2832
  ];
2210
2833
  };
@@ -2230,10 +2853,14 @@ export type TriadProtocol = {
2230
2853
  name: 'name';
2231
2854
  type: 'string';
2232
2855
  },
2856
+ {
2857
+ name: 'feeRecipient';
2858
+ type: 'pubkey';
2859
+ },
2233
2860
  {
2234
2861
  name: 'padding';
2235
2862
  type: {
2236
- array: ['u8', 64];
2863
+ array: ['u8', 32];
2237
2864
  };
2238
2865
  }
2239
2866
  ];
@@ -2265,6 +2892,26 @@ export type TriadProtocol = {
2265
2892
  ];
2266
2893
  };
2267
2894
  },
2895
+ {
2896
+ name: 'marketBidOrderArgs';
2897
+ type: {
2898
+ kind: 'struct';
2899
+ fields: [
2900
+ {
2901
+ name: 'amount';
2902
+ type: 'u64';
2903
+ },
2904
+ {
2905
+ name: 'direction';
2906
+ type: {
2907
+ defined: {
2908
+ name: 'orderDirection';
2909
+ };
2910
+ };
2911
+ }
2912
+ ];
2913
+ };
2914
+ },
2268
2915
  {
2269
2916
  name: 'marketEvent';
2270
2917
  type: {
@@ -2326,6 +2973,14 @@ export type TriadProtocol = {
2326
2973
  name: 'feeBps';
2327
2974
  type: 'u16';
2328
2975
  },
2976
+ {
2977
+ name: 'marketFeeAvailable';
2978
+ type: 'u64';
2979
+ },
2980
+ {
2981
+ name: 'marketFeeClaimed';
2982
+ type: 'u64';
2983
+ },
2329
2984
  {
2330
2985
  name: 'isAllowedToPayout';
2331
2986
  type: 'bool';
@@ -2357,20 +3012,12 @@ export type TriadProtocol = {
2357
3012
  type: 'u64';
2358
3013
  },
2359
3014
  {
2360
- name: 'creatorFeeAvailable';
2361
- type: 'u64';
2362
- },
2363
- {
2364
- name: 'creatorFeeClaimed';
2365
- type: 'u64';
2366
- },
2367
- {
2368
- name: 'marketFeeAvailable';
2369
- type: 'u64';
3015
+ name: 'customerId';
3016
+ type: 'u16';
2370
3017
  },
2371
3018
  {
2372
- name: 'marketFeeClaimed';
2373
- type: 'u64';
3019
+ name: 'payoutFee';
3020
+ type: 'u16';
2374
3021
  }
2375
3022
  ];
2376
3023
  };
@@ -2490,10 +3137,14 @@ export type TriadProtocol = {
2490
3137
  name: 'customerId';
2491
3138
  type: 'u16';
2492
3139
  },
3140
+ {
3141
+ name: 'payoutFee';
3142
+ type: 'u16';
3143
+ },
2493
3144
  {
2494
3145
  name: 'padding';
2495
3146
  type: {
2496
- array: ['u8', 90];
3147
+ array: ['u8', 88];
2497
3148
  };
2498
3149
  }
2499
3150
  ];
@@ -2540,7 +3191,8 @@ export type TriadProtocol = {
2540
3191
  type: 'u64';
2541
3192
  },
2542
3193
  {
2543
- name: 'questionId';
3194
+ name: 'filledShares';
3195
+ docs: ['The number of shares that have been filled'];
2544
3196
  type: 'u64';
2545
3197
  },
2546
3198
  {
@@ -2548,7 +3200,7 @@ export type TriadProtocol = {
2548
3200
  type: 'u64';
2549
3201
  },
2550
3202
  {
2551
- name: 'status';
3203
+ name: 'orderStatus';
2552
3204
  type: {
2553
3205
  defined: {
2554
3206
  name: 'orderStatus';
@@ -2557,7 +3209,7 @@ export type TriadProtocol = {
2557
3209
  },
2558
3210
  {
2559
3211
  name: 'price';
2560
- docs: ['The price of the order (in TRD)'];
3212
+ docs: ['The price of the order'];
2561
3213
  type: 'u64';
2562
3214
  },
2563
3215
  {
@@ -2579,7 +3231,7 @@ export type TriadProtocol = {
2579
3231
  };
2580
3232
  },
2581
3233
  {
2582
- name: 'direction';
3234
+ name: 'orderDirection';
2583
3235
  type: {
2584
3236
  defined: {
2585
3237
  name: 'orderDirection';
@@ -2590,10 +3242,26 @@ export type TriadProtocol = {
2590
3242
  name: 'userNonce';
2591
3243
  type: 'u32';
2592
3244
  },
3245
+ {
3246
+ name: 'orderSide';
3247
+ type: {
3248
+ defined: {
3249
+ name: 'orderSide';
3250
+ };
3251
+ };
3252
+ },
3253
+ {
3254
+ name: 'linkedOrderId';
3255
+ type: 'u64';
3256
+ },
3257
+ {
3258
+ name: 'createdAt';
3259
+ type: 'i64';
3260
+ },
2593
3261
  {
2594
3262
  name: 'padding';
2595
3263
  type: {
2596
- array: ['u8', 28];
3264
+ array: ['u8', 11];
2597
3265
  };
2598
3266
  }
2599
3267
  ];
@@ -2619,29 +3287,33 @@ export type TriadProtocol = {
2619
3287
  kind: 'struct';
2620
3288
  fields: [
2621
3289
  {
2622
- name: 'user';
3290
+ name: 'authority';
2623
3291
  type: 'pubkey';
2624
3292
  },
2625
3293
  {
2626
3294
  name: 'marketId';
2627
3295
  type: 'u64';
2628
3296
  },
2629
- {
2630
- name: 'questionId';
2631
- type: 'u64';
2632
- },
2633
3297
  {
2634
3298
  name: 'orderId';
2635
3299
  type: 'u64';
2636
3300
  },
2637
3301
  {
2638
- name: 'direction';
3302
+ name: 'orderDirection';
2639
3303
  type: {
2640
3304
  defined: {
2641
3305
  name: 'orderDirection';
2642
3306
  };
2643
3307
  };
2644
3308
  },
3309
+ {
3310
+ name: 'orderSide';
3311
+ type: {
3312
+ defined: {
3313
+ name: 'orderSide';
3314
+ };
3315
+ };
3316
+ },
2645
3317
  {
2646
3318
  name: 'orderType';
2647
3319
  type: {
@@ -2672,27 +3344,45 @@ export type TriadProtocol = {
2672
3344
  },
2673
3345
  {
2674
3346
  name: 'refundAmount';
2675
- type: {
2676
- option: 'u64';
2677
- };
3347
+ type: 'u64';
2678
3348
  },
2679
3349
  {
2680
3350
  name: 'pnl';
2681
3351
  type: 'i64';
2682
3352
  },
2683
3353
  {
2684
- name: 'timestamp';
3354
+ name: 'userNonce';
3355
+ type: 'u32';
3356
+ },
3357
+ {
3358
+ name: 'ts';
2685
3359
  type: 'i64';
2686
3360
  },
2687
3361
  {
2688
- name: 'isQuestionWinner';
2689
- type: {
2690
- option: 'bool';
2691
- };
3362
+ name: 'filledShares';
3363
+ type: 'u64';
2692
3364
  },
2693
3365
  {
2694
- name: 'userNonce';
2695
- type: 'u32';
3366
+ name: 'linkedOrderId';
3367
+ type: 'u64';
3368
+ },
3369
+ {
3370
+ name: 'createdAt';
3371
+ type: 'i64';
3372
+ }
3373
+ ];
3374
+ };
3375
+ },
3376
+ {
3377
+ name: 'orderSide';
3378
+ type: {
3379
+ kind: 'enum';
3380
+ variants: [
3381
+ {
3382
+ name: 'bid';
3383
+ },
3384
+ {
3385
+ name: 'ask';
2696
3386
  }
2697
3387
  ];
2698
3388
  };
@@ -2716,6 +3406,9 @@ export type TriadProtocol = {
2716
3406
  },
2717
3407
  {
2718
3408
  name: 'liquidated';
3409
+ },
3410
+ {
3411
+ name: 'waiting';
2719
3412
  }
2720
3413
  ];
2721
3414
  };
@@ -2734,6 +3427,58 @@ export type TriadProtocol = {
2734
3427
  ];
2735
3428
  };
2736
3429
  },
3430
+ {
3431
+ name: 'placeAskOrderArgs';
3432
+ type: {
3433
+ kind: 'struct';
3434
+ fields: [
3435
+ {
3436
+ name: 'shares';
3437
+ type: 'u64';
3438
+ },
3439
+ {
3440
+ name: 'price';
3441
+ type: 'u64';
3442
+ },
3443
+ {
3444
+ name: 'bidOrderId';
3445
+ type: 'u64';
3446
+ },
3447
+ {
3448
+ name: 'orderDirection';
3449
+ type: {
3450
+ defined: {
3451
+ name: 'orderDirection';
3452
+ };
3453
+ };
3454
+ }
3455
+ ];
3456
+ };
3457
+ },
3458
+ {
3459
+ name: 'placeBidOrderArgs';
3460
+ type: {
3461
+ kind: 'struct';
3462
+ fields: [
3463
+ {
3464
+ name: 'amount';
3465
+ type: 'u64';
3466
+ },
3467
+ {
3468
+ name: 'price';
3469
+ type: 'u64';
3470
+ },
3471
+ {
3472
+ name: 'orderDirection';
3473
+ type: {
3474
+ defined: {
3475
+ name: 'orderDirection';
3476
+ };
3477
+ };
3478
+ }
3479
+ ];
3480
+ };
3481
+ },
2737
3482
  {
2738
3483
  name: 'priceEvent';
2739
3484
  type: {
@@ -2967,6 +3712,22 @@ export type TriadProtocol = {
2967
3712
  ];
2968
3713
  };
2969
3714
  },
3715
+ {
3716
+ name: 'updateCustomerFeeArgs';
3717
+ type: {
3718
+ kind: 'struct';
3719
+ fields: [
3720
+ {
3721
+ name: 'id';
3722
+ type: 'u16';
3723
+ },
3724
+ {
3725
+ name: 'feeRecipient';
3726
+ type: 'pubkey';
3727
+ }
3728
+ ];
3729
+ };
3730
+ },
2970
3731
  {
2971
3732
  name: 'updateStakeVaultArgs';
2972
3733
  type: {