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

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: 'TRDwq3BN4mP3m9KsuNUWSN6QDff93VKGSwE95Jbr9Ss';
8
+ address: '9acY2YXu8oyHETTuDPWie4eB7WoSw9YxNnWUUVHktgs1';
9
9
  metadata: {
10
10
  name: 'triadProtocol';
11
11
  version: '0.1.4';
@@ -13,47 +13,6 @@ export type TriadProtocol = {
13
13
  description: 'Triad protocol, trade solana projects';
14
14
  };
15
15
  instructions: [
16
- {
17
- name: 'addWheelPrize';
18
- discriminator: [171, 239, 227, 40, 5, 150, 213, 239];
19
- accounts: [
20
- {
21
- name: 'signer';
22
- writable: true;
23
- signer: true;
24
- },
25
- {
26
- name: 'wheel';
27
- writable: true;
28
- pda: {
29
- seeds: [
30
- {
31
- kind: 'const';
32
- value: [119, 104, 101, 108, 108];
33
- },
34
- {
35
- kind: 'arg';
36
- path: 'args.name';
37
- }
38
- ];
39
- };
40
- },
41
- {
42
- name: 'systemProgram';
43
- address: '11111111111111111111111111111111';
44
- }
45
- ];
46
- args: [
47
- {
48
- name: 'args';
49
- type: {
50
- defined: {
51
- name: 'addWheelPrizeArgs';
52
- };
53
- };
54
- }
55
- ];
56
- },
57
16
  {
58
17
  name: 'allowMarketToPayout';
59
18
  discriminator: [193, 227, 109, 171, 110, 177, 47, 251];
@@ -75,8 +34,8 @@ export type TriadProtocol = {
75
34
  args: [];
76
35
  },
77
36
  {
78
- name: 'claimStakeRewards';
79
- discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
37
+ name: 'cancelOrder';
38
+ discriminator: [95, 129, 237, 240, 8, 49, 223, 132];
80
39
  accounts: [
81
40
  {
82
41
  name: 'signer';
@@ -84,16 +43,11 @@ export type TriadProtocol = {
84
43
  signer: true;
85
44
  },
86
45
  {
87
- name: 'verifier';
88
- writable: true;
89
- signer: true;
90
- },
91
- {
92
- name: 'stakeVault';
46
+ name: 'userTrade';
93
47
  writable: true;
94
48
  },
95
49
  {
96
- name: 'stake';
50
+ name: 'market';
97
51
  writable: true;
98
52
  },
99
53
  {
@@ -101,13 +55,13 @@ export type TriadProtocol = {
101
55
  writable: true;
102
56
  },
103
57
  {
104
- name: 'fromAta';
58
+ name: 'userAta';
105
59
  writable: true;
106
60
  pda: {
107
61
  seeds: [
108
62
  {
109
63
  kind: 'account';
110
- path: 'stakeVault';
64
+ path: 'signer';
111
65
  },
112
66
  {
113
67
  kind: 'account';
@@ -158,13 +112,13 @@ export type TriadProtocol = {
158
112
  };
159
113
  },
160
114
  {
161
- name: 'toAta';
115
+ name: 'marketVault';
162
116
  writable: true;
163
117
  pda: {
164
118
  seeds: [
165
119
  {
166
120
  kind: 'account';
167
- path: 'signer';
121
+ path: 'market';
168
122
  },
169
123
  {
170
124
  kind: 'account';
@@ -216,7 +170,6 @@ export type TriadProtocol = {
216
170
  },
217
171
  {
218
172
  name: 'tokenProgram';
219
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
220
173
  },
221
174
  {
222
175
  name: 'associatedTokenProgram';
@@ -229,19 +182,14 @@ export type TriadProtocol = {
229
182
  ];
230
183
  args: [
231
184
  {
232
- name: 'args';
233
- type: {
234
- defined: {
235
- name: 'claimStakeRewardsArgs';
236
- };
237
- };
185
+ name: 'orderId';
186
+ type: 'u64';
238
187
  }
239
188
  ];
240
- returns: 'u64';
241
189
  },
242
190
  {
243
- name: 'claimWheelToken';
244
- discriminator: [34, 238, 160, 232, 58, 155, 177, 168];
191
+ name: 'claimStakeRewards';
192
+ discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
245
193
  accounts: [
246
194
  {
247
195
  name: 'signer';
@@ -249,25 +197,12 @@ export type TriadProtocol = {
249
197
  signer: true;
250
198
  },
251
199
  {
252
- name: 'verifier';
200
+ name: 'stakeVault';
253
201
  writable: true;
254
- signer: true;
255
202
  },
256
203
  {
257
- name: 'wheel';
204
+ name: 'stake';
258
205
  writable: true;
259
- pda: {
260
- seeds: [
261
- {
262
- kind: 'const';
263
- value: [119, 104, 101, 108, 108];
264
- },
265
- {
266
- kind: 'arg';
267
- path: 'args.name';
268
- }
269
- ];
270
- };
271
206
  },
272
207
  {
273
208
  name: 'mint';
@@ -280,7 +215,7 @@ export type TriadProtocol = {
280
215
  seeds: [
281
216
  {
282
217
  kind: 'account';
283
- path: 'wheel';
218
+ path: 'stakeVault';
284
219
  },
285
220
  {
286
221
  kind: 'account';
@@ -400,16 +335,8 @@ export type TriadProtocol = {
400
335
  address: '11111111111111111111111111111111';
401
336
  }
402
337
  ];
403
- args: [
404
- {
405
- name: 'args';
406
- type: {
407
- defined: {
408
- name: 'claimWheelTokenArgs';
409
- };
410
- };
411
- }
412
- ];
338
+ args: [];
339
+ returns: 'u64';
413
340
  },
414
341
  {
415
342
  name: 'closeOrder';
@@ -748,8 +675,8 @@ export type TriadProtocol = {
748
675
  args: [];
749
676
  },
750
677
  {
751
- name: 'createSubUserTrade';
752
- discriminator: [77, 201, 111, 73, 47, 229, 244, 161];
678
+ name: 'createCustomer';
679
+ discriminator: [120, 122, 113, 216, 95, 207, 252, 147];
753
680
  accounts: [
754
681
  {
755
682
  name: 'signer';
@@ -757,33 +684,17 @@ export type TriadProtocol = {
757
684
  signer: true;
758
685
  },
759
686
  {
760
- name: 'userTrade';
761
- writable: true;
762
- pda: {
763
- seeds: [
764
- {
765
- kind: 'const';
766
- value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
767
- },
768
- {
769
- kind: 'account';
770
- path: 'signer';
771
- }
772
- ];
773
- };
774
- },
775
- {
776
- name: 'subUserTrade';
687
+ name: 'customer';
777
688
  writable: true;
778
689
  pda: {
779
690
  seeds: [
780
691
  {
781
692
  kind: 'const';
782
- value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
693
+ value: [99, 117, 115, 116, 111, 109, 101, 114];
783
694
  },
784
695
  {
785
696
  kind: 'arg';
786
- path: 'subUserKey';
697
+ path: 'args.id';
787
698
  }
788
699
  ];
789
700
  };
@@ -795,14 +706,18 @@ export type TriadProtocol = {
795
706
  ];
796
707
  args: [
797
708
  {
798
- name: 'subUserKey';
799
- type: 'pubkey';
709
+ name: 'args';
710
+ type: {
711
+ defined: {
712
+ name: 'createCustomerArgs';
713
+ };
714
+ };
800
715
  }
801
716
  ];
802
717
  },
803
718
  {
804
- name: 'createUserTrade';
805
- discriminator: [232, 235, 58, 194, 135, 248, 153, 1];
719
+ name: 'createMarket';
720
+ discriminator: [103, 226, 97, 235, 200, 188, 251, 254];
806
721
  accounts: [
807
722
  {
808
723
  name: 'signer';
@@ -810,36 +725,14 @@ export type TriadProtocol = {
810
725
  signer: true;
811
726
  },
812
727
  {
813
- name: 'userTrade';
728
+ name: 'squads';
814
729
  writable: true;
815
- pda: {
816
- seeds: [
817
- {
818
- kind: 'const';
819
- value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
820
- },
821
- {
822
- kind: 'account';
823
- path: 'signer';
824
- }
825
- ];
826
- };
730
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
827
731
  },
828
732
  {
829
- name: 'systemProgram';
830
- address: '11111111111111111111111111111111';
831
- }
832
- ];
833
- args: [];
834
- },
835
- {
836
- name: 'initializeMarket';
837
- discriminator: [35, 35, 189, 193, 155, 48, 170, 203];
838
- accounts: [
839
- {
840
- name: 'signer';
733
+ name: 'customer';
841
734
  writable: true;
842
- signer: true;
735
+ optional: true;
843
736
  },
844
737
  {
845
738
  name: 'market';
@@ -862,7 +755,7 @@ export type TriadProtocol = {
862
755
  writable: true;
863
756
  },
864
757
  {
865
- name: 'marketAta';
758
+ name: 'marketToAta';
866
759
  writable: true;
867
760
  pda: {
868
761
  seeds: [
@@ -920,7 +813,6 @@ export type TriadProtocol = {
920
813
  },
921
814
  {
922
815
  name: 'tokenProgram';
923
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
924
816
  },
925
817
  {
926
818
  name: 'associatedTokenProgram';
@@ -936,12 +828,97 @@ export type TriadProtocol = {
936
828
  name: 'args';
937
829
  type: {
938
830
  defined: {
939
- name: 'initializeMarketArgs';
831
+ name: 'createMarketArgs';
940
832
  };
941
833
  };
942
834
  }
943
835
  ];
944
836
  },
837
+ {
838
+ name: 'createSubUserTrade';
839
+ discriminator: [77, 201, 111, 73, 47, 229, 244, 161];
840
+ accounts: [
841
+ {
842
+ name: 'signer';
843
+ writable: true;
844
+ signer: true;
845
+ },
846
+ {
847
+ name: 'userTrade';
848
+ writable: true;
849
+ pda: {
850
+ seeds: [
851
+ {
852
+ kind: 'const';
853
+ value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
854
+ },
855
+ {
856
+ kind: 'account';
857
+ path: 'signer';
858
+ }
859
+ ];
860
+ };
861
+ },
862
+ {
863
+ name: 'subUserTrade';
864
+ writable: true;
865
+ pda: {
866
+ seeds: [
867
+ {
868
+ kind: 'const';
869
+ value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
870
+ },
871
+ {
872
+ kind: 'arg';
873
+ path: 'subUserKey';
874
+ }
875
+ ];
876
+ };
877
+ },
878
+ {
879
+ name: 'systemProgram';
880
+ address: '11111111111111111111111111111111';
881
+ }
882
+ ];
883
+ args: [
884
+ {
885
+ name: 'subUserKey';
886
+ type: 'pubkey';
887
+ }
888
+ ];
889
+ },
890
+ {
891
+ name: 'createUserTrade';
892
+ discriminator: [232, 235, 58, 194, 135, 248, 153, 1];
893
+ accounts: [
894
+ {
895
+ name: 'signer';
896
+ writable: true;
897
+ signer: true;
898
+ },
899
+ {
900
+ name: 'userTrade';
901
+ writable: true;
902
+ pda: {
903
+ seeds: [
904
+ {
905
+ kind: 'const';
906
+ value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
907
+ },
908
+ {
909
+ kind: 'account';
910
+ path: 'signer';
911
+ }
912
+ ];
913
+ };
914
+ },
915
+ {
916
+ name: 'systemProgram';
917
+ address: '11111111111111111111111111111111';
918
+ }
919
+ ];
920
+ args: [];
921
+ },
945
922
  {
946
923
  name: 'openOrder';
947
924
  discriminator: [206, 88, 88, 143, 38, 136, 50, 224];
@@ -1248,7 +1225,6 @@ export type TriadProtocol = {
1248
1225
  },
1249
1226
  {
1250
1227
  name: 'tokenProgram';
1251
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1252
1228
  },
1253
1229
  {
1254
1230
  name: 'associatedTokenProgram';
@@ -1267,8 +1243,8 @@ export type TriadProtocol = {
1267
1243
  ];
1268
1244
  },
1269
1245
  {
1270
- name: 'requestWithdrawStake';
1271
- discriminator: [175, 9, 77, 31, 145, 136, 30, 207];
1246
+ name: 'placeAskOrder';
1247
+ discriminator: [181, 105, 176, 231, 131, 19, 59, 229];
1272
1248
  accounts: [
1273
1249
  {
1274
1250
  name: 'signer';
@@ -1276,56 +1252,37 @@ export type TriadProtocol = {
1276
1252
  signer: true;
1277
1253
  },
1278
1254
  {
1279
- name: 'stake';
1255
+ name: 'squads';
1280
1256
  writable: true;
1257
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1281
1258
  },
1282
1259
  {
1283
- name: 'mint';
1260
+ name: 'userTrade';
1284
1261
  writable: true;
1285
1262
  },
1286
1263
  {
1287
- name: 'tokenProgram';
1288
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1264
+ name: 'market';
1265
+ writable: true;
1289
1266
  },
1290
1267
  {
1291
1268
  name: 'systemProgram';
1292
1269
  address: '11111111111111111111111111111111';
1293
1270
  }
1294
1271
  ];
1295
- args: [];
1296
- },
1297
- {
1298
- name: 'resolveMarket';
1299
- discriminator: [155, 23, 80, 173, 46, 74, 23, 239];
1300
- accounts: [
1272
+ args: [
1301
1273
  {
1302
- name: 'signer';
1303
- writable: true;
1304
- signer: true;
1305
- },
1306
- {
1307
- name: 'market';
1308
- writable: true;
1309
- },
1310
- {
1311
- name: 'systemProgram';
1312
- address: '11111111111111111111111111111111';
1313
- }
1314
- ];
1315
- args: [
1316
- {
1317
- name: 'winningDirection';
1274
+ name: 'args';
1318
1275
  type: {
1319
1276
  defined: {
1320
- name: 'winningDirection';
1277
+ name: 'placeAskOrderArgs';
1321
1278
  };
1322
1279
  };
1323
1280
  }
1324
1281
  ];
1325
1282
  },
1326
1283
  {
1327
- name: 'spinWheel';
1328
- discriminator: [25, 214, 214, 83, 131, 150, 190, 91];
1284
+ name: 'placeBidOrder';
1285
+ discriminator: [154, 143, 199, 233, 97, 23, 223, 255];
1329
1286
  accounts: [
1330
1287
  {
1331
1288
  name: 'signer';
@@ -1333,17 +1290,16 @@ export type TriadProtocol = {
1333
1290
  signer: true;
1334
1291
  },
1335
1292
  {
1336
- name: 'verifier';
1293
+ name: 'squads';
1337
1294
  writable: true;
1338
- signer: true;
1295
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1339
1296
  },
1340
1297
  {
1341
- name: 'squads';
1298
+ name: 'userTrade';
1342
1299
  writable: true;
1343
- address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1344
1300
  },
1345
1301
  {
1346
- name: 'wheel';
1302
+ name: 'market';
1347
1303
  writable: true;
1348
1304
  },
1349
1305
  {
@@ -1351,7 +1307,7 @@ export type TriadProtocol = {
1351
1307
  writable: true;
1352
1308
  },
1353
1309
  {
1354
- name: 'fromAta';
1310
+ name: 'userFromAta';
1355
1311
  writable: true;
1356
1312
  pda: {
1357
1313
  seeds: [
@@ -1408,13 +1364,13 @@ export type TriadProtocol = {
1408
1364
  };
1409
1365
  },
1410
1366
  {
1411
- name: 'toAta';
1367
+ name: 'marketToAta';
1412
1368
  writable: true;
1413
1369
  pda: {
1414
1370
  seeds: [
1415
1371
  {
1416
1372
  kind: 'account';
1417
- path: 'wheel';
1373
+ path: 'market';
1418
1374
  },
1419
1375
  {
1420
1376
  kind: 'account';
@@ -1466,7 +1422,6 @@ export type TriadProtocol = {
1466
1422
  },
1467
1423
  {
1468
1424
  name: 'tokenProgram';
1469
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1470
1425
  },
1471
1426
  {
1472
1427
  name: 'associatedTokenProgram';
@@ -1482,203 +1437,43 @@ export type TriadProtocol = {
1482
1437
  name: 'args';
1483
1438
  type: {
1484
1439
  defined: {
1485
- name: 'spinWheelArgs';
1440
+ name: 'placeBidOrderArgs';
1486
1441
  };
1487
1442
  };
1488
1443
  }
1489
1444
  ];
1490
- returns: 'u64';
1491
1445
  },
1492
1446
  {
1493
- name: 'stakeToken';
1494
- discriminator: [191, 127, 193, 101, 37, 96, 87, 211];
1447
+ name: 'requestWithdrawStake';
1448
+ discriminator: [175, 9, 77, 31, 145, 136, 30, 207];
1495
1449
  accounts: [
1496
1450
  {
1497
1451
  name: 'signer';
1498
1452
  writable: true;
1499
1453
  signer: true;
1500
1454
  },
1501
- {
1502
- name: 'stakeVault';
1503
- writable: true;
1504
- pda: {
1505
- seeds: [
1506
- {
1507
- kind: 'const';
1508
- value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
1509
- },
1510
- {
1511
- kind: 'arg';
1512
- path: 'args.stake_vault';
1513
- }
1514
- ];
1515
- };
1516
- },
1517
1455
  {
1518
1456
  name: 'stake';
1519
1457
  writable: true;
1520
- pda: {
1521
- seeds: [
1522
- {
1523
- kind: 'const';
1524
- value: [115, 116, 97, 107, 101];
1525
- },
1526
- {
1527
- kind: 'account';
1528
- path: 'signer';
1529
- },
1530
- {
1531
- kind: 'arg';
1532
- path: 'args.name';
1533
- }
1534
- ];
1535
- };
1536
1458
  },
1537
1459
  {
1538
1460
  name: 'mint';
1539
1461
  writable: true;
1540
1462
  },
1541
- {
1542
- name: 'fromAta';
1543
- writable: true;
1544
- pda: {
1545
- seeds: [
1546
- {
1547
- kind: 'account';
1548
- path: 'signer';
1549
- },
1550
- {
1551
- kind: 'account';
1552
- path: 'tokenProgram';
1553
- },
1554
- {
1555
- kind: 'account';
1556
- path: 'mint';
1557
- }
1558
- ];
1559
- program: {
1560
- kind: 'const';
1561
- value: [
1562
- 140,
1563
- 151,
1564
- 37,
1565
- 143,
1566
- 78,
1567
- 36,
1568
- 137,
1569
- 241,
1570
- 187,
1571
- 61,
1572
- 16,
1573
- 41,
1574
- 20,
1575
- 142,
1576
- 13,
1577
- 131,
1578
- 11,
1579
- 90,
1580
- 19,
1581
- 153,
1582
- 218,
1583
- 255,
1584
- 16,
1585
- 132,
1586
- 4,
1587
- 142,
1588
- 123,
1589
- 216,
1590
- 219,
1591
- 233,
1592
- 248,
1593
- 89
1594
- ];
1595
- };
1596
- };
1597
- },
1598
- {
1599
- name: 'toAta';
1600
- writable: true;
1601
- pda: {
1602
- seeds: [
1603
- {
1604
- kind: 'account';
1605
- path: 'stakeVault';
1606
- },
1607
- {
1608
- kind: 'account';
1609
- path: 'tokenProgram';
1610
- },
1611
- {
1612
- kind: 'account';
1613
- path: 'mint';
1614
- }
1615
- ];
1616
- program: {
1617
- kind: 'const';
1618
- value: [
1619
- 140,
1620
- 151,
1621
- 37,
1622
- 143,
1623
- 78,
1624
- 36,
1625
- 137,
1626
- 241,
1627
- 187,
1628
- 61,
1629
- 16,
1630
- 41,
1631
- 20,
1632
- 142,
1633
- 13,
1634
- 131,
1635
- 11,
1636
- 90,
1637
- 19,
1638
- 153,
1639
- 218,
1640
- 255,
1641
- 16,
1642
- 132,
1643
- 4,
1644
- 142,
1645
- 123,
1646
- 216,
1647
- 219,
1648
- 233,
1649
- 248,
1650
- 89
1651
- ];
1652
- };
1653
- };
1654
- },
1655
1463
  {
1656
1464
  name: 'tokenProgram';
1657
1465
  address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1658
1466
  },
1659
- {
1660
- name: 'associatedTokenProgram';
1661
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1662
- },
1663
1467
  {
1664
1468
  name: 'systemProgram';
1665
1469
  address: '11111111111111111111111111111111';
1666
1470
  }
1667
1471
  ];
1668
- args: [
1669
- {
1670
- name: 'args';
1671
- type: {
1672
- defined: {
1673
- name: 'stakeTokenArgs';
1674
- };
1675
- };
1676
- }
1677
- ];
1472
+ args: [];
1678
1473
  },
1679
1474
  {
1680
- name: 'swapWheelToken';
1681
- discriminator: [244, 73, 81, 163, 12, 112, 93, 57];
1475
+ name: 'stakeToken';
1476
+ discriminator: [191, 127, 193, 101, 37, 96, 87, 211];
1682
1477
  accounts: [
1683
1478
  {
1684
1479
  name: 'signer';
@@ -1686,25 +1481,40 @@ export type TriadProtocol = {
1686
1481
  signer: true;
1687
1482
  },
1688
1483
  {
1689
- name: 'wheel';
1484
+ name: 'stakeVault';
1690
1485
  writable: true;
1691
1486
  pda: {
1692
1487
  seeds: [
1693
1488
  {
1694
1489
  kind: 'const';
1695
- value: [119, 104, 101, 108, 108];
1490
+ value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
1696
1491
  },
1697
1492
  {
1698
1493
  kind: 'arg';
1699
- path: 'args.name';
1494
+ path: 'args.stake_vault';
1700
1495
  }
1701
1496
  ];
1702
1497
  };
1703
1498
  },
1704
1499
  {
1705
- name: 'squads';
1500
+ name: 'stake';
1706
1501
  writable: true;
1707
- address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1502
+ pda: {
1503
+ seeds: [
1504
+ {
1505
+ kind: 'const';
1506
+ value: [115, 116, 97, 107, 101];
1507
+ },
1508
+ {
1509
+ kind: 'account';
1510
+ path: 'signer';
1511
+ },
1512
+ {
1513
+ kind: 'arg';
1514
+ path: 'args.name';
1515
+ }
1516
+ ];
1517
+ };
1708
1518
  },
1709
1519
  {
1710
1520
  name: 'mint';
@@ -1717,7 +1527,7 @@ export type TriadProtocol = {
1717
1527
  seeds: [
1718
1528
  {
1719
1529
  kind: 'account';
1720
- path: 'wheel';
1530
+ path: 'signer';
1721
1531
  },
1722
1532
  {
1723
1533
  kind: 'account';
@@ -1774,7 +1584,7 @@ export type TriadProtocol = {
1774
1584
  seeds: [
1775
1585
  {
1776
1586
  kind: 'account';
1777
- path: 'signer';
1587
+ path: 'stakeVault';
1778
1588
  },
1779
1589
  {
1780
1590
  kind: 'account';
@@ -1842,7 +1652,7 @@ export type TriadProtocol = {
1842
1652
  name: 'args';
1843
1653
  type: {
1844
1654
  defined: {
1845
- name: 'swapWheelTokenArgs';
1655
+ name: 'stakeTokenArgs';
1846
1656
  };
1847
1657
  };
1848
1658
  }
@@ -1921,8 +1731,12 @@ export type TriadProtocol = {
1921
1731
  ];
1922
1732
  args: [
1923
1733
  {
1924
- name: 'marketEnd';
1925
- type: 'i64';
1734
+ name: 'args';
1735
+ type: {
1736
+ defined: {
1737
+ name: 'updateMarketArgs';
1738
+ };
1739
+ };
1926
1740
  }
1927
1741
  ];
1928
1742
  },
@@ -2102,11 +1916,6 @@ export type TriadProtocol = {
2102
1916
  writable: true;
2103
1917
  signer: true;
2104
1918
  },
2105
- {
2106
- name: 'squads';
2107
- writable: true;
2108
- address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
2109
- },
2110
1919
  {
2111
1920
  name: 'nft';
2112
1921
  writable: true;
@@ -2302,6 +2111,10 @@ export type TriadProtocol = {
2302
2111
  name: 'collection';
2303
2112
  discriminator: [48, 160, 232, 205, 191, 207, 26, 141];
2304
2113
  },
2114
+ {
2115
+ name: 'customer';
2116
+ discriminator: [112, 147, 140, 31, 93, 186, 103, 18];
2117
+ },
2305
2118
  {
2306
2119
  name: 'marketV2';
2307
2120
  discriminator: [27, 60, 50, 75, 191, 193, 86, 227];
@@ -2321,17 +2134,9 @@ export type TriadProtocol = {
2321
2134
  {
2322
2135
  name: 'userTrade';
2323
2136
  discriminator: [149, 190, 47, 218, 136, 9, 222, 222];
2324
- },
2325
- {
2326
- name: 'wheel';
2327
- discriminator: [196, 41, 11, 47, 123, 180, 10, 219];
2328
2137
  }
2329
2138
  ];
2330
2139
  events: [
2331
- {
2332
- name: 'claimWheelEvent';
2333
- discriminator: [44, 39, 241, 248, 126, 23, 235, 125];
2334
- },
2335
2140
  {
2336
2141
  name: 'marketEvent';
2337
2142
  discriminator: [212, 67, 145, 23, 58, 104, 52, 83];
@@ -2344,10 +2149,6 @@ export type TriadProtocol = {
2344
2149
  name: 'priceEvent';
2345
2150
  discriminator: [31, 40, 141, 125, 132, 253, 225, 229];
2346
2151
  },
2347
- {
2348
- name: 'spinWheelEvent';
2349
- discriminator: [136, 0, 170, 174, 167, 129, 91, 187];
2350
- },
2351
2152
  {
2352
2153
  name: 'stakeRewardsEvent';
2353
2154
  discriminator: [23, 37, 255, 130, 102, 26, 140, 94];
@@ -2448,53 +2249,36 @@ export type TriadProtocol = {
2448
2249
  code: 6018;
2449
2250
  name: 'noPrizesAvailable';
2450
2251
  msg: 'No Prize Available';
2252
+ },
2253
+ {
2254
+ code: 6019;
2255
+ name: 'invalidCustomer';
2256
+ msg: 'Invalid customer';
2257
+ },
2258
+ {
2259
+ code: 6020;
2260
+ name: 'invalidMint';
2261
+ msg: 'Invalid mint. Only TRD, USDC or USDC Devnet are allowed';
2262
+ },
2263
+ {
2264
+ code: 6021;
2265
+ name: 'invalidFillAmount';
2266
+ msg: 'Invalid fill amount';
2451
2267
  }
2452
2268
  ];
2453
2269
  types: [
2454
2270
  {
2455
- name: 'addWheelPrizeArgs';
2271
+ name: 'baseAssetV1';
2456
2272
  type: {
2457
2273
  kind: 'struct';
2458
2274
  fields: [
2459
2275
  {
2460
- name: 'name';
2461
- type: 'string';
2462
- },
2463
- {
2464
- name: 'prize';
2465
- type: 'u64';
2466
- },
2467
- {
2468
- name: 'availableQuantity';
2469
- type: 'u64';
2470
- },
2471
- {
2472
- name: 'rangeMin';
2473
- type: 'u64';
2474
- },
2475
- {
2476
- name: 'rangeMax';
2477
- type: 'u64';
2478
- },
2479
- {
2480
- name: 'amount';
2481
- type: 'u64';
2482
- }
2483
- ];
2484
- };
2485
- },
2486
- {
2487
- name: 'baseAssetV1';
2488
- type: {
2489
- kind: 'struct';
2490
- fields: [
2491
- {
2492
- name: 'key';
2493
- type: {
2494
- defined: {
2495
- name: 'key';
2496
- };
2497
- };
2276
+ name: 'key';
2277
+ type: {
2278
+ defined: {
2279
+ name: 'key';
2280
+ };
2281
+ };
2498
2282
  },
2499
2283
  {
2500
2284
  name: 'owner';
@@ -2562,43 +2346,41 @@ export type TriadProtocol = {
2562
2346
  };
2563
2347
  },
2564
2348
  {
2565
- name: 'claimStakeRewardsArgs';
2349
+ name: 'collection';
2566
2350
  type: {
2567
2351
  kind: 'struct';
2568
2352
  fields: [
2569
2353
  {
2570
- name: 'rank';
2571
- type: 'u16';
2354
+ name: 'authority';
2355
+ type: 'pubkey';
2572
2356
  },
2573
2357
  {
2574
- name: 'collections';
2358
+ name: 'bump';
2575
2359
  type: 'u8';
2576
- }
2577
- ];
2578
- };
2579
- },
2580
- {
2581
- name: 'claimWheelEvent';
2582
- type: {
2583
- kind: 'struct';
2584
- fields: [
2360
+ },
2585
2361
  {
2586
- name: 'player';
2587
- type: 'pubkey';
2362
+ name: 'symbol';
2363
+ type: 'string';
2588
2364
  },
2589
2365
  {
2590
- name: 'amount';
2366
+ name: 'minted';
2591
2367
  type: 'u64';
2592
2368
  },
2593
2369
  {
2594
- name: 'timestamp';
2595
- type: 'i64';
2370
+ name: 'supply';
2371
+ type: 'u64';
2372
+ },
2373
+ {
2374
+ name: 'padding';
2375
+ type: {
2376
+ array: ['u8', 64];
2377
+ };
2596
2378
  }
2597
2379
  ];
2598
2380
  };
2599
2381
  },
2600
2382
  {
2601
- name: 'claimWheelTokenArgs';
2383
+ name: 'createCustomerArgs';
2602
2384
  type: {
2603
2385
  kind: 'struct';
2604
2386
  fields: [
@@ -2607,68 +2389,80 @@ export type TriadProtocol = {
2607
2389
  type: 'string';
2608
2390
  },
2609
2391
  {
2610
- name: 'amount';
2611
- type: 'u64';
2392
+ name: 'authority';
2393
+ type: 'pubkey';
2394
+ },
2395
+ {
2396
+ name: 'shadowStorage';
2397
+ type: 'pubkey';
2398
+ },
2399
+ {
2400
+ name: 'id';
2401
+ type: 'u16';
2612
2402
  }
2613
2403
  ];
2614
2404
  };
2615
2405
  },
2616
2406
  {
2617
- name: 'collection';
2407
+ name: 'createMarketArgs';
2618
2408
  type: {
2619
2409
  kind: 'struct';
2620
2410
  fields: [
2621
2411
  {
2622
- name: 'authority';
2623
- type: 'pubkey';
2624
- },
2625
- {
2626
- name: 'bump';
2627
- type: 'u8';
2412
+ name: 'marketId';
2413
+ type: 'u64';
2628
2414
  },
2629
2415
  {
2630
- name: 'symbol';
2631
- type: 'string';
2416
+ name: 'question';
2417
+ type: {
2418
+ array: ['u8', 80];
2419
+ };
2632
2420
  },
2633
2421
  {
2634
- name: 'minted';
2635
- type: 'u64';
2422
+ name: 'marketStart';
2423
+ type: 'i64';
2636
2424
  },
2637
2425
  {
2638
- name: 'supply';
2639
- type: 'u64';
2426
+ name: 'marketEnd';
2427
+ type: 'i64';
2640
2428
  },
2641
2429
  {
2642
- name: 'padding';
2643
- type: {
2644
- array: ['u8', 64];
2645
- };
2430
+ name: 'feeBps';
2431
+ type: 'u8';
2646
2432
  }
2647
2433
  ];
2648
2434
  };
2649
2435
  },
2650
2436
  {
2651
- name: 'initializeMarketArgs';
2437
+ name: 'customer';
2652
2438
  type: {
2653
2439
  kind: 'struct';
2654
2440
  fields: [
2655
2441
  {
2656
- name: 'marketId';
2657
- type: 'u64';
2442
+ name: 'bump';
2443
+ type: 'u8';
2658
2444
  },
2659
2445
  {
2660
- name: 'question';
2661
- type: {
2662
- array: ['u8', 80];
2663
- };
2446
+ name: 'id';
2447
+ type: 'u16';
2664
2448
  },
2665
2449
  {
2666
- name: 'marketStart';
2667
- type: 'i64';
2450
+ name: 'authority';
2451
+ type: 'pubkey';
2668
2452
  },
2669
2453
  {
2670
- name: 'marketEnd';
2671
- type: 'i64';
2454
+ name: 'name';
2455
+ type: 'string';
2456
+ },
2457
+ {
2458
+ name: 'shadowStorage';
2459
+ type: 'pubkey';
2460
+ },
2461
+ {
2462
+ name: 'padding';
2463
+ type: {
2464
+ array: ['u8', 64];
2465
+ };
2672
2466
  }
2673
2467
  ];
2674
2468
  };
@@ -2704,6 +2498,10 @@ export type TriadProtocol = {
2704
2498
  type: {
2705
2499
  kind: 'struct';
2706
2500
  fields: [
2501
+ {
2502
+ name: 'authority';
2503
+ type: 'pubkey';
2504
+ },
2707
2505
  {
2708
2506
  name: 'marketId';
2709
2507
  type: 'u64';
@@ -2736,6 +2534,10 @@ export type TriadProtocol = {
2736
2534
  name: 'volume';
2737
2535
  type: 'u64';
2738
2536
  },
2537
+ {
2538
+ name: 'mint';
2539
+ type: 'pubkey';
2540
+ },
2739
2541
  {
2740
2542
  name: 'updateTs';
2741
2543
  type: 'i64';
@@ -2748,6 +2550,28 @@ export type TriadProtocol = {
2748
2550
  name: 'nextOrderId';
2749
2551
  type: 'u64';
2750
2552
  },
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
+ },
2751
2575
  {
2752
2576
  name: 'winningDirection';
2753
2577
  type: {
@@ -2757,19 +2581,23 @@ export type TriadProtocol = {
2757
2581
  };
2758
2582
  },
2759
2583
  {
2760
- name: 'marketStart';
2761
- type: 'i64';
2584
+ name: 'marketLiquidityAtStart';
2585
+ type: 'u64';
2762
2586
  },
2763
2587
  {
2764
- name: 'marketEnd';
2765
- type: 'i64';
2588
+ name: 'creatorFeeAvailable';
2589
+ type: 'u64';
2766
2590
  },
2767
2591
  {
2768
- name: 'isAllowedToPayout';
2769
- type: 'bool';
2592
+ name: 'creatorFeeClaimed';
2593
+ type: 'u64';
2770
2594
  },
2771
2595
  {
2772
- name: 'marketLiquidityAtStart';
2596
+ name: 'marketFeeAvailable';
2597
+ type: 'u64';
2598
+ },
2599
+ {
2600
+ name: 'marketFeeClaimed';
2773
2601
  type: 'u64';
2774
2602
  }
2775
2603
  ];
@@ -2838,14 +2666,14 @@ export type TriadProtocol = {
2838
2666
  },
2839
2667
  {
2840
2668
  name: 'feeBps';
2841
- type: 'u16';
2669
+ type: 'u8';
2842
2670
  },
2843
2671
  {
2844
- name: 'nftHoldersFeeAvailable';
2672
+ name: 'creatorFeeAvailable';
2845
2673
  type: 'u64';
2846
2674
  },
2847
2675
  {
2848
- name: 'nftHoldersFeeClaimed';
2676
+ name: 'creatorFeeClaimed';
2849
2677
  type: 'u64';
2850
2678
  },
2851
2679
  {
@@ -2886,10 +2714,16 @@ export type TriadProtocol = {
2886
2714
  name: 'marketLiquidityAtStart';
2887
2715
  type: 'u64';
2888
2716
  },
2717
+ {
2718
+ name: 'customerId';
2719
+ type: {
2720
+ option: 'u16';
2721
+ };
2722
+ },
2889
2723
  {
2890
2724
  name: 'padding';
2891
2725
  type: {
2892
- array: ['u8', 92];
2726
+ array: ['u8', 89];
2893
2727
  };
2894
2728
  }
2895
2729
  ];
@@ -2936,7 +2770,7 @@ export type TriadProtocol = {
2936
2770
  type: 'u64';
2937
2771
  },
2938
2772
  {
2939
- name: 'questionId';
2773
+ name: 'filledShares';
2940
2774
  type: 'u64';
2941
2775
  },
2942
2776
  {
@@ -2953,17 +2787,14 @@ export type TriadProtocol = {
2953
2787
  },
2954
2788
  {
2955
2789
  name: 'price';
2956
- docs: ['The price of the order (in TRD)'];
2957
2790
  type: 'u64';
2958
2791
  },
2959
2792
  {
2960
- name: 'totalAmount';
2961
- docs: ['The total amount of TRD committed to this order'];
2793
+ name: 'amount';
2962
2794
  type: 'u64';
2963
2795
  },
2964
2796
  {
2965
- name: 'totalShares';
2966
- docs: ['The total number of shares to be purchased'];
2797
+ name: 'shares';
2967
2798
  type: 'u64';
2968
2799
  },
2969
2800
  {
@@ -2975,7 +2806,7 @@ export type TriadProtocol = {
2975
2806
  };
2976
2807
  },
2977
2808
  {
2978
- name: 'direction';
2809
+ name: 'orderDirection';
2979
2810
  type: {
2980
2811
  defined: {
2981
2812
  name: 'orderDirection';
@@ -2986,10 +2817,22 @@ export type TriadProtocol = {
2986
2817
  name: 'userNonce';
2987
2818
  type: 'u32';
2988
2819
  },
2820
+ {
2821
+ name: 'orderSide';
2822
+ type: {
2823
+ defined: {
2824
+ name: 'orderSide';
2825
+ };
2826
+ };
2827
+ },
2828
+ {
2829
+ name: 'linkedOrderId';
2830
+ type: 'u64';
2831
+ },
2989
2832
  {
2990
2833
  name: 'padding';
2991
2834
  type: {
2992
- array: ['u8', 28];
2835
+ array: ['u8', 19];
2993
2836
  };
2994
2837
  }
2995
2838
  ];
@@ -3023,7 +2866,7 @@ export type TriadProtocol = {
3023
2866
  type: 'u64';
3024
2867
  },
3025
2868
  {
3026
- name: 'questionId';
2869
+ name: 'filledShares';
3027
2870
  type: 'u64';
3028
2871
  },
3029
2872
  {
@@ -3031,13 +2874,21 @@ export type TriadProtocol = {
3031
2874
  type: 'u64';
3032
2875
  },
3033
2876
  {
3034
- name: 'direction';
2877
+ name: 'orderDirection';
3035
2878
  type: {
3036
2879
  defined: {
3037
2880
  name: 'orderDirection';
3038
2881
  };
3039
2882
  };
3040
2883
  },
2884
+ {
2885
+ name: 'orderSide';
2886
+ type: {
2887
+ defined: {
2888
+ name: 'orderSide';
2889
+ };
2890
+ };
2891
+ },
3041
2892
  {
3042
2893
  name: 'orderType';
3043
2894
  type: {
@@ -3059,32 +2910,24 @@ export type TriadProtocol = {
3059
2910
  type: 'u64';
3060
2911
  },
3061
2912
  {
3062
- name: 'totalShares';
2913
+ name: 'shares';
3063
2914
  type: 'u64';
3064
2915
  },
3065
2916
  {
3066
- name: 'totalAmount';
2917
+ name: 'amount';
3067
2918
  type: 'u64';
3068
2919
  },
3069
2920
  {
3070
2921
  name: 'refundAmount';
3071
- type: {
3072
- option: 'u64';
3073
- };
3074
- },
3075
- {
3076
- name: 'pnl';
3077
2922
  type: 'i64';
3078
2923
  },
3079
2924
  {
3080
- name: 'timestamp';
2925
+ name: 'ts';
3081
2926
  type: 'i64';
3082
2927
  },
3083
2928
  {
3084
- name: 'isQuestionWinner';
3085
- type: {
3086
- option: 'bool';
3087
- };
2929
+ name: 'linkedOrderId';
2930
+ type: 'u64';
3088
2931
  },
3089
2932
  {
3090
2933
  name: 'userNonce';
@@ -3093,6 +2936,20 @@ export type TriadProtocol = {
3093
2936
  ];
3094
2937
  };
3095
2938
  },
2939
+ {
2940
+ name: 'orderSide';
2941
+ type: {
2942
+ kind: 'enum';
2943
+ variants: [
2944
+ {
2945
+ name: 'bid';
2946
+ },
2947
+ {
2948
+ name: 'ask';
2949
+ }
2950
+ ];
2951
+ };
2952
+ },
3096
2953
  {
3097
2954
  name: 'orderStatus';
3098
2955
  type: {
@@ -3112,6 +2969,9 @@ export type TriadProtocol = {
3112
2969
  },
3113
2970
  {
3114
2971
  name: 'liquidated';
2972
+ },
2973
+ {
2974
+ name: 'waiting';
3115
2975
  }
3116
2976
  ];
3117
2977
  };
@@ -3131,119 +2991,81 @@ export type TriadProtocol = {
3131
2991
  };
3132
2992
  },
3133
2993
  {
3134
- name: 'priceEvent';
2994
+ name: 'placeAskOrderArgs';
3135
2995
  type: {
3136
2996
  kind: 'struct';
3137
2997
  fields: [
3138
2998
  {
3139
- name: 'marketId';
3140
- type: 'u64';
3141
- },
3142
- {
3143
- name: 'hypePrice';
2999
+ name: 'shares';
3144
3000
  type: 'u64';
3145
3001
  },
3146
3002
  {
3147
- name: 'flopPrice';
3003
+ name: 'price';
3148
3004
  type: 'u64';
3149
3005
  },
3150
3006
  {
3151
- name: 'direction';
3007
+ name: 'orderDirection';
3152
3008
  type: {
3153
3009
  defined: {
3154
3010
  name: 'orderDirection';
3155
3011
  };
3156
3012
  };
3157
- },
3158
- {
3159
- name: 'timestamp';
3160
- type: 'i64';
3161
3013
  }
3162
3014
  ];
3163
3015
  };
3164
3016
  },
3165
3017
  {
3166
- name: 'prize';
3018
+ name: 'placeBidOrderArgs';
3167
3019
  type: {
3168
3020
  kind: 'struct';
3169
3021
  fields: [
3170
3022
  {
3171
- name: 'prize';
3023
+ name: 'amount';
3172
3024
  type: 'u64';
3173
3025
  },
3174
3026
  {
3175
- name: 'status';
3027
+ name: 'price';
3028
+ type: 'u64';
3029
+ },
3030
+ {
3031
+ name: 'orderDirection';
3176
3032
  type: {
3177
3033
  defined: {
3178
- name: 'prizeStatus';
3034
+ name: 'orderDirection';
3179
3035
  };
3180
3036
  };
3181
- },
3182
- {
3183
- name: 'availableQuantity';
3184
- type: 'u64';
3185
- },
3186
- {
3187
- name: 'rangeMin';
3188
- type: 'u64';
3189
- },
3190
- {
3191
- name: 'rangeMax';
3192
- type: 'u64';
3193
- },
3194
- {
3195
- name: 'amount';
3196
- type: 'u64';
3197
- }
3198
- ];
3199
- };
3200
- },
3201
- {
3202
- name: 'prizeStatus';
3203
- type: {
3204
- kind: 'enum';
3205
- variants: [
3206
- {
3207
- name: 'free';
3208
- },
3209
- {
3210
- name: 'claimed';
3211
3037
  }
3212
3038
  ];
3213
3039
  };
3214
3040
  },
3215
3041
  {
3216
- name: 'spinWheelArgs';
3042
+ name: 'priceEvent';
3217
3043
  type: {
3218
3044
  kind: 'struct';
3219
3045
  fields: [
3220
3046
  {
3221
- name: 'isSol';
3222
- type: 'bool';
3047
+ name: 'marketId';
3048
+ type: 'u64';
3223
3049
  },
3224
3050
  {
3225
- name: 'prize';
3051
+ name: 'hypePrice';
3226
3052
  type: 'u64';
3227
- }
3228
- ];
3229
- };
3230
- },
3231
- {
3232
- name: 'spinWheelEvent';
3233
- type: {
3234
- kind: 'struct';
3235
- fields: [
3236
- {
3237
- name: 'player';
3238
- type: 'pubkey';
3239
3053
  },
3240
3054
  {
3241
- name: 'prize';
3055
+ name: 'flopPrice';
3242
3056
  type: 'u64';
3243
3057
  },
3244
3058
  {
3245
- name: 'amount';
3246
- type: 'u64';
3059
+ name: 'direction';
3060
+ type: {
3061
+ defined: {
3062
+ name: 'orderDirection';
3063
+ };
3064
+ };
3065
+ },
3066
+ {
3067
+ name: 'timestamp';
3068
+ type: 'i64';
3247
3069
  }
3248
3070
  ];
3249
3071
  };
@@ -3430,22 +3252,6 @@ export type TriadProtocol = {
3430
3252
  ];
3431
3253
  };
3432
3254
  },
3433
- {
3434
- name: 'swapWheelTokenArgs';
3435
- type: {
3436
- kind: 'struct';
3437
- fields: [
3438
- {
3439
- name: 'name';
3440
- type: 'string';
3441
- },
3442
- {
3443
- name: 'amount';
3444
- type: 'u64';
3445
- }
3446
- ];
3447
- };
3448
- },
3449
3255
  {
3450
3256
  name: 'updateAuthority';
3451
3257
  type: {
@@ -3465,6 +3271,30 @@ export type TriadProtocol = {
3465
3271
  ];
3466
3272
  };
3467
3273
  },
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
+ },
3468
3298
  {
3469
3299
  name: 'updateStakeVaultArgs';
3470
3300
  type: {
@@ -3504,23 +3334,14 @@ export type TriadProtocol = {
3504
3334
  },
3505
3335
  {
3506
3336
  name: 'totalDeposits';
3507
- docs: [
3508
- 'The total value of deposits the user has made (in TRD)',
3509
- 'precision: QUOTE_PRECISION'
3510
- ];
3511
3337
  type: 'u64';
3512
3338
  },
3513
3339
  {
3514
3340
  name: 'totalWithdraws';
3515
- docs: [
3516
- 'The total value of withdrawals the user has made (in TRD)',
3517
- 'precision: QUOTE_PRECISION'
3518
- ];
3519
3341
  type: 'u64';
3520
3342
  },
3521
3343
  {
3522
3344
  name: 'openedOrders';
3523
- docs: ['The number of orders the user has opened'];
3524
3345
  type: 'u64';
3525
3346
  },
3526
3347
  {
@@ -3545,48 +3366,13 @@ export type TriadProtocol = {
3545
3366
  type: 'bool';
3546
3367
  },
3547
3368
  {
3548
- name: 'padding';
3549
- type: {
3550
- array: ['u8', 27];
3551
- };
3552
- }
3553
- ];
3554
- };
3555
- },
3556
- {
3557
- name: 'wheel';
3558
- type: {
3559
- kind: 'struct';
3560
- fields: [
3561
- {
3562
- name: 'bump';
3563
- type: 'u8';
3564
- },
3565
- {
3566
- name: 'name';
3567
- type: 'string';
3568
- },
3569
- {
3570
- name: 'count';
3571
- type: 'u64';
3572
- },
3573
- {
3574
- name: 'prizes';
3575
- type: {
3576
- array: [
3577
- {
3578
- defined: {
3579
- name: 'prize';
3580
- };
3581
- },
3582
- 18
3583
- ];
3584
- };
3369
+ name: 'poseidon';
3370
+ type: 'u16';
3585
3371
  },
3586
3372
  {
3587
3373
  name: 'padding';
3588
3374
  type: {
3589
- array: ['u8', 32];
3375
+ array: ['u8', 25];
3590
3376
  };
3591
3377
  }
3592
3378
  ];