@triadxyz/triad-protocol 1.3.0-beta → 1.3.2-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.
@@ -168,6 +168,203 @@ export type TriadProtocol = {
168
168
  }
169
169
  ];
170
170
  },
171
+ {
172
+ name: 'addSpinPrize';
173
+ discriminator: [215, 228, 250, 145, 202, 12, 63, 35];
174
+ accounts: [
175
+ {
176
+ name: 'signer';
177
+ writable: true;
178
+ signer: true;
179
+ },
180
+ {
181
+ name: 'spin';
182
+ writable: true;
183
+ pda: {
184
+ seeds: [
185
+ {
186
+ kind: 'const';
187
+ value: [115, 112, 105, 110];
188
+ },
189
+ {
190
+ kind: 'arg';
191
+ path: 'args.name';
192
+ }
193
+ ];
194
+ };
195
+ },
196
+ {
197
+ name: 'systemProgram';
198
+ address: '11111111111111111111111111111111';
199
+ }
200
+ ];
201
+ args: [
202
+ {
203
+ name: 'args';
204
+ type: {
205
+ defined: {
206
+ name: 'addSpinPrizeArgs';
207
+ };
208
+ };
209
+ }
210
+ ];
211
+ },
212
+ {
213
+ name: 'claimSpinToken';
214
+ discriminator: [253, 217, 186, 91, 131, 36, 163, 235];
215
+ accounts: [
216
+ {
217
+ name: 'signer';
218
+ writable: true;
219
+ signer: true;
220
+ },
221
+ {
222
+ name: 'verifier';
223
+ writable: true;
224
+ signer: true;
225
+ },
226
+ {
227
+ name: 'spin';
228
+ writable: true;
229
+ },
230
+ {
231
+ name: 'mint';
232
+ writable: true;
233
+ },
234
+ {
235
+ name: 'fromAta';
236
+ writable: true;
237
+ pda: {
238
+ seeds: [
239
+ {
240
+ kind: 'account';
241
+ path: 'spin';
242
+ },
243
+ {
244
+ kind: 'account';
245
+ path: 'tokenProgram';
246
+ },
247
+ {
248
+ kind: 'account';
249
+ path: 'mint';
250
+ }
251
+ ];
252
+ program: {
253
+ kind: 'const';
254
+ value: [
255
+ 140,
256
+ 151,
257
+ 37,
258
+ 143,
259
+ 78,
260
+ 36,
261
+ 137,
262
+ 241,
263
+ 187,
264
+ 61,
265
+ 16,
266
+ 41,
267
+ 20,
268
+ 142,
269
+ 13,
270
+ 131,
271
+ 11,
272
+ 90,
273
+ 19,
274
+ 153,
275
+ 218,
276
+ 255,
277
+ 16,
278
+ 132,
279
+ 4,
280
+ 142,
281
+ 123,
282
+ 216,
283
+ 219,
284
+ 233,
285
+ 248,
286
+ 89
287
+ ];
288
+ };
289
+ };
290
+ },
291
+ {
292
+ name: 'toAta';
293
+ writable: true;
294
+ pda: {
295
+ seeds: [
296
+ {
297
+ kind: 'account';
298
+ path: 'signer';
299
+ },
300
+ {
301
+ kind: 'account';
302
+ path: 'tokenProgram';
303
+ },
304
+ {
305
+ kind: 'account';
306
+ path: 'mint';
307
+ }
308
+ ];
309
+ program: {
310
+ kind: 'const';
311
+ value: [
312
+ 140,
313
+ 151,
314
+ 37,
315
+ 143,
316
+ 78,
317
+ 36,
318
+ 137,
319
+ 241,
320
+ 187,
321
+ 61,
322
+ 16,
323
+ 41,
324
+ 20,
325
+ 142,
326
+ 13,
327
+ 131,
328
+ 11,
329
+ 90,
330
+ 19,
331
+ 153,
332
+ 218,
333
+ 255,
334
+ 16,
335
+ 132,
336
+ 4,
337
+ 142,
338
+ 123,
339
+ 216,
340
+ 219,
341
+ 233,
342
+ 248,
343
+ 89
344
+ ];
345
+ };
346
+ };
347
+ },
348
+ {
349
+ name: 'tokenProgram';
350
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
351
+ },
352
+ {
353
+ name: 'associatedTokenProgram';
354
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
355
+ },
356
+ {
357
+ name: 'systemProgram';
358
+ address: '11111111111111111111111111111111';
359
+ }
360
+ ];
361
+ args: [
362
+ {
363
+ name: 'amount';
364
+ type: 'u64';
365
+ }
366
+ ];
367
+ },
171
368
  {
172
369
  name: 'claimStakeRewards';
173
370
  discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
@@ -884,8 +1081,8 @@ export type TriadProtocol = {
884
1081
  ];
885
1082
  },
886
1083
  {
887
- name: 'mintTicket';
888
- discriminator: [159, 167, 223, 60, 138, 6, 23, 29];
1084
+ name: 'mintPoseidon';
1085
+ discriminator: [102, 210, 5, 220, 154, 54, 98, 23];
889
1086
  accounts: [
890
1087
  {
891
1088
  name: 'signer';
@@ -899,7 +1096,7 @@ export type TriadProtocol = {
899
1096
  seeds: [
900
1097
  {
901
1098
  kind: 'const';
902
- value: [110, 102, 116];
1099
+ value: [112, 111, 115, 101, 105, 100, 111, 110];
903
1100
  },
904
1101
  {
905
1102
  kind: 'arg';
@@ -908,11 +1105,6 @@ export type TriadProtocol = {
908
1105
  ];
909
1106
  };
910
1107
  },
911
- {
912
- name: 'verifier';
913
- writable: true;
914
- signer: true;
915
- },
916
1108
  {
917
1109
  name: 'asset';
918
1110
  writable: true;
@@ -943,48 +1135,127 @@ export type TriadProtocol = {
943
1135
  writable: true;
944
1136
  },
945
1137
  {
946
- name: 'trdMint';
1138
+ name: 'metaplexProgram';
1139
+ address: 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d';
1140
+ },
1141
+ {
1142
+ name: 'systemProgram';
1143
+ address: '11111111111111111111111111111111';
1144
+ }
1145
+ ];
1146
+ args: [
1147
+ {
1148
+ name: 'args';
1149
+ type: {
1150
+ defined: {
1151
+ name: 'mintPoseidonArgs';
1152
+ };
1153
+ };
1154
+ }
1155
+ ];
1156
+ },
1157
+ {
1158
+ name: 'mintTicket';
1159
+ discriminator: [159, 167, 223, 60, 138, 6, 23, 29];
1160
+ accounts: [
1161
+ {
1162
+ name: 'signer';
947
1163
  writable: true;
1164
+ signer: true;
948
1165
  },
949
1166
  {
950
- name: 'userTrdAta';
1167
+ name: 'nft';
951
1168
  writable: true;
952
1169
  pda: {
953
1170
  seeds: [
954
1171
  {
955
- kind: 'account';
956
- path: 'signer';
957
- },
958
- {
959
- kind: 'account';
960
- path: 'tokenProgram';
1172
+ kind: 'const';
1173
+ value: [110, 102, 116];
961
1174
  },
962
1175
  {
963
- kind: 'account';
964
- path: 'trdMint';
1176
+ kind: 'arg';
1177
+ path: 'args.number';
965
1178
  }
966
1179
  ];
967
- program: {
968
- kind: 'const';
969
- value: [
970
- 140,
971
- 151,
972
- 37,
973
- 143,
974
- 78,
975
- 36,
976
- 137,
977
- 241,
978
- 187,
979
- 61,
980
- 16,
981
- 41,
982
- 20,
983
- 142,
984
- 13,
985
- 131,
986
- 11,
987
- 90,
1180
+ };
1181
+ },
1182
+ {
1183
+ name: 'verifier';
1184
+ writable: true;
1185
+ signer: true;
1186
+ },
1187
+ {
1188
+ name: 'asset';
1189
+ writable: true;
1190
+ signer: true;
1191
+ },
1192
+ {
1193
+ name: 'nftMint';
1194
+ writable: true;
1195
+ },
1196
+ {
1197
+ name: 'collection';
1198
+ writable: true;
1199
+ pda: {
1200
+ seeds: [
1201
+ {
1202
+ kind: 'const';
1203
+ value: [99, 111, 108, 108, 101, 99, 116, 105, 111, 110];
1204
+ },
1205
+ {
1206
+ kind: 'arg';
1207
+ path: 'args.collection_symbol';
1208
+ }
1209
+ ];
1210
+ };
1211
+ },
1212
+ {
1213
+ name: 'coreCollection';
1214
+ writable: true;
1215
+ },
1216
+ {
1217
+ name: 'trdMint';
1218
+ writable: true;
1219
+ },
1220
+ {
1221
+ name: 'userTrdAta';
1222
+ writable: true;
1223
+ pda: {
1224
+ seeds: [
1225
+ {
1226
+ kind: 'account';
1227
+ path: 'signer';
1228
+ },
1229
+ {
1230
+ kind: 'account';
1231
+ path: 'tokenProgram';
1232
+ },
1233
+ {
1234
+ kind: 'account';
1235
+ path: 'trdMint';
1236
+ }
1237
+ ];
1238
+ program: {
1239
+ kind: 'const';
1240
+ value: [
1241
+ 140,
1242
+ 151,
1243
+ 37,
1244
+ 143,
1245
+ 78,
1246
+ 36,
1247
+ 137,
1248
+ 241,
1249
+ 187,
1250
+ 61,
1251
+ 16,
1252
+ 41,
1253
+ 20,
1254
+ 142,
1255
+ 13,
1256
+ 131,
1257
+ 11,
1258
+ 90,
988
1259
  19,
989
1260
  153,
990
1261
  218,
@@ -1415,18 +1686,148 @@ export type TriadProtocol = {
1415
1686
  ];
1416
1687
  },
1417
1688
  {
1418
- name: 'resolveMarketV1';
1419
- discriminator: [67, 202, 40, 49, 111, 136, 234, 183];
1689
+ name: 'settleOrder';
1690
+ discriminator: [80, 74, 204, 34, 12, 183, 66, 66];
1420
1691
  accounts: [
1421
1692
  {
1422
1693
  name: 'signer';
1423
1694
  writable: true;
1424
1695
  signer: true;
1425
1696
  },
1697
+ {
1698
+ name: 'userTrade';
1699
+ writable: true;
1700
+ },
1426
1701
  {
1427
1702
  name: 'market';
1428
1703
  writable: true;
1429
1704
  },
1705
+ {
1706
+ name: 'mint';
1707
+ writable: true;
1708
+ },
1709
+ {
1710
+ name: 'userAta';
1711
+ writable: true;
1712
+ pda: {
1713
+ seeds: [
1714
+ {
1715
+ kind: 'account';
1716
+ path: 'signer';
1717
+ },
1718
+ {
1719
+ kind: 'account';
1720
+ path: 'tokenProgram';
1721
+ },
1722
+ {
1723
+ kind: 'account';
1724
+ path: 'mint';
1725
+ }
1726
+ ];
1727
+ program: {
1728
+ kind: 'const';
1729
+ value: [
1730
+ 140,
1731
+ 151,
1732
+ 37,
1733
+ 143,
1734
+ 78,
1735
+ 36,
1736
+ 137,
1737
+ 241,
1738
+ 187,
1739
+ 61,
1740
+ 16,
1741
+ 41,
1742
+ 20,
1743
+ 142,
1744
+ 13,
1745
+ 131,
1746
+ 11,
1747
+ 90,
1748
+ 19,
1749
+ 153,
1750
+ 218,
1751
+ 255,
1752
+ 16,
1753
+ 132,
1754
+ 4,
1755
+ 142,
1756
+ 123,
1757
+ 216,
1758
+ 219,
1759
+ 233,
1760
+ 248,
1761
+ 89
1762
+ ];
1763
+ };
1764
+ };
1765
+ },
1766
+ {
1767
+ name: 'marketVault';
1768
+ writable: true;
1769
+ pda: {
1770
+ seeds: [
1771
+ {
1772
+ kind: 'account';
1773
+ path: 'market';
1774
+ },
1775
+ {
1776
+ kind: 'account';
1777
+ path: 'tokenProgram';
1778
+ },
1779
+ {
1780
+ kind: 'account';
1781
+ path: 'mint';
1782
+ }
1783
+ ];
1784
+ program: {
1785
+ kind: 'const';
1786
+ value: [
1787
+ 140,
1788
+ 151,
1789
+ 37,
1790
+ 143,
1791
+ 78,
1792
+ 36,
1793
+ 137,
1794
+ 241,
1795
+ 187,
1796
+ 61,
1797
+ 16,
1798
+ 41,
1799
+ 20,
1800
+ 142,
1801
+ 13,
1802
+ 131,
1803
+ 11,
1804
+ 90,
1805
+ 19,
1806
+ 153,
1807
+ 218,
1808
+ 255,
1809
+ 16,
1810
+ 132,
1811
+ 4,
1812
+ 142,
1813
+ 123,
1814
+ 216,
1815
+ 219,
1816
+ 233,
1817
+ 248,
1818
+ 89
1819
+ ];
1820
+ };
1821
+ };
1822
+ },
1823
+ {
1824
+ name: 'tokenProgram';
1825
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1826
+ },
1827
+ {
1828
+ name: 'associatedTokenProgram';
1829
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1830
+ },
1430
1831
  {
1431
1832
  name: 'systemProgram';
1432
1833
  address: '11111111111111111111111111111111';
@@ -1434,18 +1835,14 @@ export type TriadProtocol = {
1434
1835
  ];
1435
1836
  args: [
1436
1837
  {
1437
- name: 'winningDirection';
1438
- type: {
1439
- defined: {
1440
- name: 'winningDirection';
1441
- };
1442
- };
1838
+ name: 'orderId';
1839
+ type: 'u64';
1443
1840
  }
1444
1841
  ];
1445
1842
  },
1446
1843
  {
1447
- name: 'settleOrder';
1448
- discriminator: [80, 74, 204, 34, 12, 183, 66, 66];
1844
+ name: 'spinRoulette';
1845
+ discriminator: [6, 130, 248, 38, 161, 155, 17, 30];
1449
1846
  accounts: [
1450
1847
  {
1451
1848
  name: 'signer';
@@ -1453,11 +1850,12 @@ export type TriadProtocol = {
1453
1850
  signer: true;
1454
1851
  },
1455
1852
  {
1456
- name: 'userTrade';
1853
+ name: 'tresuaryAccount';
1457
1854
  writable: true;
1855
+ address: '82ppCojm3yrEKgdpH8B5AmBJTU1r1uAWXFWhxvPs9UCR';
1458
1856
  },
1459
1857
  {
1460
- name: 'market';
1858
+ name: 'spin';
1461
1859
  writable: true;
1462
1860
  },
1463
1861
  {
@@ -1465,7 +1863,7 @@ export type TriadProtocol = {
1465
1863
  writable: true;
1466
1864
  },
1467
1865
  {
1468
- name: 'userAta';
1866
+ name: 'fromAta';
1469
1867
  writable: true;
1470
1868
  pda: {
1471
1869
  seeds: [
@@ -1522,13 +1920,13 @@ export type TriadProtocol = {
1522
1920
  };
1523
1921
  },
1524
1922
  {
1525
- name: 'marketVault';
1923
+ name: 'toAta';
1526
1924
  writable: true;
1527
1925
  pda: {
1528
1926
  seeds: [
1529
1927
  {
1530
1928
  kind: 'account';
1531
- path: 'market';
1929
+ path: 'spin';
1532
1930
  },
1533
1931
  {
1534
1932
  kind: 'account';
@@ -1593,8 +1991,8 @@ export type TriadProtocol = {
1593
1991
  ];
1594
1992
  args: [
1595
1993
  {
1596
- name: 'orderId';
1597
- type: 'u64';
1994
+ name: 'isSol';
1995
+ type: 'bool';
1598
1996
  }
1599
1997
  ];
1600
1998
  },
@@ -1957,8 +2355,8 @@ export type TriadProtocol = {
1957
2355
  ];
1958
2356
  },
1959
2357
  {
1960
- name: 'withdrawNft';
1961
- discriminator: [142, 181, 191, 149, 82, 175, 216, 100];
2358
+ name: 'withdrawStake';
2359
+ discriminator: [153, 8, 22, 138, 105, 176, 87, 66];
1962
2360
  accounts: [
1963
2361
  {
1964
2362
  name: 'signer';
@@ -1978,15 +2376,15 @@ export type TriadProtocol = {
1978
2376
  writable: true;
1979
2377
  },
1980
2378
  {
1981
- name: 'nftMint';
2379
+ name: 'admin';
1982
2380
  writable: true;
1983
2381
  },
1984
2382
  {
1985
- name: 'tokenMint';
2383
+ name: 'mint';
1986
2384
  writable: true;
1987
2385
  },
1988
2386
  {
1989
- name: 'nftFromAta';
2387
+ name: 'fromAta';
1990
2388
  writable: true;
1991
2389
  pda: {
1992
2390
  seeds: [
@@ -2000,7 +2398,7 @@ export type TriadProtocol = {
2000
2398
  },
2001
2399
  {
2002
2400
  kind: 'account';
2003
- path: 'nftMint';
2401
+ path: 'mint';
2004
2402
  }
2005
2403
  ];
2006
2404
  program: {
@@ -2043,13 +2441,13 @@ export type TriadProtocol = {
2043
2441
  };
2044
2442
  },
2045
2443
  {
2046
- name: 'nftToAta';
2444
+ name: 'toAta';
2047
2445
  writable: true;
2048
2446
  pda: {
2049
2447
  seeds: [
2050
2448
  {
2051
2449
  kind: 'account';
2052
- path: 'user';
2450
+ path: 'signer';
2053
2451
  },
2054
2452
  {
2055
2453
  kind: 'account';
@@ -2057,288 +2455,7 @@ export type TriadProtocol = {
2057
2455
  },
2058
2456
  {
2059
2457
  kind: 'account';
2060
- path: 'nftMint';
2061
- }
2062
- ];
2063
- program: {
2064
- kind: 'const';
2065
- value: [
2066
- 140,
2067
- 151,
2068
- 37,
2069
- 143,
2070
- 78,
2071
- 36,
2072
- 137,
2073
- 241,
2074
- 187,
2075
- 61,
2076
- 16,
2077
- 41,
2078
- 20,
2079
- 142,
2080
- 13,
2081
- 131,
2082
- 11,
2083
- 90,
2084
- 19,
2085
- 153,
2086
- 218,
2087
- 255,
2088
- 16,
2089
- 132,
2090
- 4,
2091
- 142,
2092
- 123,
2093
- 216,
2094
- 219,
2095
- 233,
2096
- 248,
2097
- 89
2098
- ];
2099
- };
2100
- };
2101
- },
2102
- {
2103
- name: 'tokenFromAta';
2104
- writable: true;
2105
- pda: {
2106
- seeds: [
2107
- {
2108
- kind: 'account';
2109
- path: 'stakeVault';
2110
- },
2111
- {
2112
- kind: 'account';
2113
- path: 'tokenProgram';
2114
- },
2115
- {
2116
- kind: 'account';
2117
- path: 'tokenMint';
2118
- }
2119
- ];
2120
- program: {
2121
- kind: 'const';
2122
- value: [
2123
- 140,
2124
- 151,
2125
- 37,
2126
- 143,
2127
- 78,
2128
- 36,
2129
- 137,
2130
- 241,
2131
- 187,
2132
- 61,
2133
- 16,
2134
- 41,
2135
- 20,
2136
- 142,
2137
- 13,
2138
- 131,
2139
- 11,
2140
- 90,
2141
- 19,
2142
- 153,
2143
- 218,
2144
- 255,
2145
- 16,
2146
- 132,
2147
- 4,
2148
- 142,
2149
- 123,
2150
- 216,
2151
- 219,
2152
- 233,
2153
- 248,
2154
- 89
2155
- ];
2156
- };
2157
- };
2158
- },
2159
- {
2160
- name: 'tokenToAta';
2161
- writable: true;
2162
- pda: {
2163
- seeds: [
2164
- {
2165
- kind: 'account';
2166
- path: 'user';
2167
- },
2168
- {
2169
- kind: 'account';
2170
- path: 'tokenProgram';
2171
- },
2172
- {
2173
- kind: 'account';
2174
- path: 'tokenMint';
2175
- }
2176
- ];
2177
- program: {
2178
- kind: 'const';
2179
- value: [
2180
- 140,
2181
- 151,
2182
- 37,
2183
- 143,
2184
- 78,
2185
- 36,
2186
- 137,
2187
- 241,
2188
- 187,
2189
- 61,
2190
- 16,
2191
- 41,
2192
- 20,
2193
- 142,
2194
- 13,
2195
- 131,
2196
- 11,
2197
- 90,
2198
- 19,
2199
- 153,
2200
- 218,
2201
- 255,
2202
- 16,
2203
- 132,
2204
- 4,
2205
- 142,
2206
- 123,
2207
- 216,
2208
- 219,
2209
- 233,
2210
- 248,
2211
- 89
2212
- ];
2213
- };
2214
- };
2215
- },
2216
- {
2217
- name: 'tokenProgram';
2218
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
2219
- },
2220
- {
2221
- name: 'associatedTokenProgram';
2222
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
2223
- },
2224
- {
2225
- name: 'systemProgram';
2226
- address: '11111111111111111111111111111111';
2227
- }
2228
- ];
2229
- args: [
2230
- {
2231
- name: 'rank';
2232
- type: 'u16';
2233
- },
2234
- {
2235
- name: 'collections';
2236
- type: 'f64';
2237
- }
2238
- ];
2239
- },
2240
- {
2241
- name: 'withdrawStake';
2242
- discriminator: [153, 8, 22, 138, 105, 176, 87, 66];
2243
- accounts: [
2244
- {
2245
- name: 'signer';
2246
- writable: true;
2247
- signer: true;
2248
- },
2249
- {
2250
- name: 'stakeVault';
2251
- writable: true;
2252
- },
2253
- {
2254
- name: 'user';
2255
- writable: true;
2256
- },
2257
- {
2258
- name: 'stake';
2259
- writable: true;
2260
- },
2261
- {
2262
- name: 'admin';
2263
- writable: true;
2264
- },
2265
- {
2266
- name: 'mint';
2267
- writable: true;
2268
- },
2269
- {
2270
- name: 'fromAta';
2271
- writable: true;
2272
- pda: {
2273
- seeds: [
2274
- {
2275
- kind: 'account';
2276
- path: 'stakeVault';
2277
- },
2278
- {
2279
- kind: 'account';
2280
- path: 'tokenProgram';
2281
- },
2282
- {
2283
- kind: 'account';
2284
- path: 'mint';
2285
- }
2286
- ];
2287
- program: {
2288
- kind: 'const';
2289
- value: [
2290
- 140,
2291
- 151,
2292
- 37,
2293
- 143,
2294
- 78,
2295
- 36,
2296
- 137,
2297
- 241,
2298
- 187,
2299
- 61,
2300
- 16,
2301
- 41,
2302
- 20,
2303
- 142,
2304
- 13,
2305
- 131,
2306
- 11,
2307
- 90,
2308
- 19,
2309
- 153,
2310
- 218,
2311
- 255,
2312
- 16,
2313
- 132,
2314
- 4,
2315
- 142,
2316
- 123,
2317
- 216,
2318
- 219,
2319
- 233,
2320
- 248,
2321
- 89
2322
- ];
2323
- };
2324
- };
2325
- },
2326
- {
2327
- name: 'toAta';
2328
- writable: true;
2329
- pda: {
2330
- seeds: [
2331
- {
2332
- kind: 'account';
2333
- path: 'signer';
2334
- },
2335
- {
2336
- kind: 'account';
2337
- path: 'tokenProgram';
2338
- },
2339
- {
2340
- kind: 'account';
2341
- path: 'mint';
2458
+ path: 'mint';
2342
2459
  }
2343
2460
  ];
2344
2461
  program: {
@@ -2394,51 +2511,6 @@ export type TriadProtocol = {
2394
2511
  }
2395
2512
  ];
2396
2513
  args: [];
2397
- },
2398
- {
2399
- name: 'withdrawV1';
2400
- discriminator: [212, 118, 210, 5, 187, 1, 117, 222];
2401
- accounts: [
2402
- {
2403
- name: 'signer';
2404
- writable: true;
2405
- signer: true;
2406
- },
2407
- {
2408
- name: 'vault';
2409
- writable: true;
2410
- },
2411
- {
2412
- name: 'userPosition';
2413
- writable: true;
2414
- },
2415
- {
2416
- name: 'vaultTokenAccount';
2417
- writable: true;
2418
- },
2419
- {
2420
- name: 'userTokenAccount';
2421
- writable: true;
2422
- },
2423
- {
2424
- name: 'associatedTokenProgram';
2425
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
2426
- },
2427
- {
2428
- name: 'systemProgram';
2429
- address: '11111111111111111111111111111111';
2430
- },
2431
- {
2432
- name: 'tokenProgram';
2433
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
2434
- }
2435
- ];
2436
- args: [
2437
- {
2438
- name: 'positionIndex';
2439
- type: 'u8';
2440
- }
2441
- ];
2442
2514
  }
2443
2515
  ];
2444
2516
  accounts: [
@@ -2462,6 +2534,10 @@ export type TriadProtocol = {
2462
2534
  name: 'nft';
2463
2535
  discriminator: [88, 10, 146, 176, 101, 11, 40, 217];
2464
2536
  },
2537
+ {
2538
+ name: 'spin';
2539
+ discriminator: [92, 138, 157, 19, 101, 173, 183, 155];
2540
+ },
2465
2541
  {
2466
2542
  name: 'stakeV2';
2467
2543
  discriminator: [207, 98, 130, 13, 118, 181, 238, 47];
@@ -2474,17 +2550,9 @@ export type TriadProtocol = {
2474
2550
  name: 'user';
2475
2551
  discriminator: [159, 117, 95, 227, 239, 151, 58, 236];
2476
2552
  },
2477
- {
2478
- name: 'userPosition';
2479
- discriminator: [251, 248, 209, 245, 83, 234, 17, 27];
2480
- },
2481
2553
  {
2482
2554
  name: 'userTrade';
2483
2555
  discriminator: [149, 190, 47, 218, 136, 9, 222, 222];
2484
- },
2485
- {
2486
- name: 'vault';
2487
- discriminator: [211, 8, 232, 43, 2, 152, 117, 119];
2488
2556
  }
2489
2557
  ];
2490
2558
  events: [
@@ -2500,6 +2568,10 @@ export type TriadProtocol = {
2500
2568
  name: 'priceUpdate';
2501
2569
  discriminator: [222, 51, 180, 226, 165, 188, 203, 54];
2502
2570
  },
2571
+ {
2572
+ name: 'rouletteSpinResult';
2573
+ discriminator: [200, 199, 199, 61, 248, 4, 45, 42];
2574
+ },
2503
2575
  {
2504
2576
  name: 'stakeRewards';
2505
2577
  discriminator: [236, 217, 227, 239, 6, 129, 188, 218];
@@ -2610,6 +2682,16 @@ export type TriadProtocol = {
2610
2682
  code: 6020;
2611
2683
  name: 'collectionFull';
2612
2684
  msg: 'Collection is full';
2685
+ },
2686
+ {
2687
+ code: 6021;
2688
+ name: 'prizeNotFound';
2689
+ msg: 'Prize not found';
2690
+ },
2691
+ {
2692
+ code: 6022;
2693
+ name: 'noPrizesAvailable';
2694
+ msg: 'No prizes available';
2613
2695
  }
2614
2696
  ];
2615
2697
  types: [
@@ -2633,6 +2715,38 @@ export type TriadProtocol = {
2633
2715
  ];
2634
2716
  };
2635
2717
  },
2718
+ {
2719
+ name: 'addSpinPrizeArgs';
2720
+ type: {
2721
+ kind: 'struct';
2722
+ fields: [
2723
+ {
2724
+ name: 'name';
2725
+ type: 'string';
2726
+ },
2727
+ {
2728
+ name: 'prizeType';
2729
+ type: {
2730
+ defined: {
2731
+ name: 'prizeType';
2732
+ };
2733
+ };
2734
+ },
2735
+ {
2736
+ name: 'availableQuantity';
2737
+ type: 'u64';
2738
+ },
2739
+ {
2740
+ name: 'rangeMin';
2741
+ type: 'u64';
2742
+ },
2743
+ {
2744
+ name: 'rangeMax';
2745
+ type: 'u64';
2746
+ }
2747
+ ];
2748
+ };
2749
+ },
2636
2750
  {
2637
2751
  name: 'baseCollectionV1';
2638
2752
  type: {
@@ -2962,16 +3076,12 @@ export type TriadProtocol = {
2962
3076
  type: 'u64';
2963
3077
  },
2964
3078
  {
2965
- name: 'question';
2966
- type: 'string';
2967
- },
2968
- {
2969
- name: 'startTime';
2970
- type: 'i64';
3079
+ name: 'hypePrice';
3080
+ type: 'u64';
2971
3081
  },
2972
3082
  {
2973
- name: 'endTime';
2974
- type: 'i64';
3083
+ name: 'flopPrice';
3084
+ type: 'u64';
2975
3085
  },
2976
3086
  {
2977
3087
  name: 'hypeLiquidity';
@@ -2982,32 +3092,52 @@ export type TriadProtocol = {
2982
3092
  type: 'u64';
2983
3093
  },
2984
3094
  {
2985
- name: 'winningDirection';
2986
- type: {
2987
- defined: {
2988
- name: 'winningDirection';
2989
- };
2990
- };
3095
+ name: 'hypeShares';
3096
+ type: 'u64';
2991
3097
  },
2992
3098
  {
2993
- name: 'finalHypePrice';
3099
+ name: 'flopShares';
2994
3100
  type: 'u64';
2995
3101
  },
2996
3102
  {
2997
- name: 'finalFlopPrice';
3103
+ name: 'volume';
2998
3104
  type: 'u64';
2999
3105
  },
3000
3106
  {
3001
- name: 'timestamp';
3107
+ name: 'updateTs';
3002
3108
  type: 'i64';
3003
3109
  },
3004
3110
  {
3005
- name: 'totalHypeShares';
3111
+ name: 'openedOrders';
3006
3112
  type: 'u64';
3007
3113
  },
3008
3114
  {
3009
- name: 'totalFlopShares';
3115
+ name: 'nextOrderId';
3010
3116
  type: 'u64';
3117
+ },
3118
+ {
3119
+ name: 'nftHoldersFeeAvailable';
3120
+ type: 'u64';
3121
+ },
3122
+ {
3123
+ name: 'nftHoldersFeeClaimed';
3124
+ type: 'u64';
3125
+ },
3126
+ {
3127
+ name: 'marketFeeAvailable';
3128
+ type: 'u64';
3129
+ },
3130
+ {
3131
+ name: 'marketFeeClaimed';
3132
+ type: 'u64';
3133
+ },
3134
+ {
3135
+ name: 'winningDirection';
3136
+ type: {
3137
+ defined: {
3138
+ name: 'winningDirection';
3139
+ };
3140
+ };
3011
3141
  }
3012
3142
  ];
3013
3143
  };
@@ -3135,13 +3265,42 @@ export type TriadProtocol = {
3135
3265
  };
3136
3266
  },
3137
3267
  {
3138
- name: 'marketLiquidityAtStart';
3268
+ name: 'marketLiquidityAtStart';
3269
+ type: 'u64';
3270
+ },
3271
+ {
3272
+ name: 'padding';
3273
+ type: {
3274
+ array: ['u8', 92];
3275
+ };
3276
+ }
3277
+ ];
3278
+ };
3279
+ },
3280
+ {
3281
+ name: 'mintPoseidonArgs';
3282
+ type: {
3283
+ kind: 'struct';
3284
+ fields: [
3285
+ {
3286
+ name: 'collectionSymbol';
3287
+ type: 'string';
3288
+ },
3289
+ {
3290
+ name: 'number';
3139
3291
  type: 'u64';
3140
3292
  },
3141
3293
  {
3142
- name: 'padding';
3294
+ name: 'attributes';
3143
3295
  type: {
3144
- array: ['u8', 92];
3296
+ array: [
3297
+ {
3298
+ defined: {
3299
+ name: 'poseidonAttribute';
3300
+ };
3301
+ },
3302
+ 7
3303
+ ];
3145
3304
  };
3146
3305
  }
3147
3306
  ];
@@ -3407,65 +3566,149 @@ export type TriadProtocol = {
3407
3566
  };
3408
3567
  },
3409
3568
  {
3410
- name: 'position';
3569
+ name: 'poseidonAttribute';
3411
3570
  type: {
3412
3571
  kind: 'struct';
3413
3572
  fields: [
3414
3573
  {
3415
- name: 'amount';
3416
- type: 'u64';
3574
+ name: 'key';
3575
+ type: 'string';
3417
3576
  },
3418
3577
  {
3419
- name: 'entryPrice';
3578
+ name: 'value';
3579
+ type: 'string';
3580
+ }
3581
+ ];
3582
+ };
3583
+ },
3584
+ {
3585
+ name: 'priceUpdate';
3586
+ type: {
3587
+ kind: 'struct';
3588
+ fields: [
3589
+ {
3590
+ name: 'marketId';
3420
3591
  type: 'u64';
3421
3592
  },
3422
3593
  {
3423
- name: 'ts';
3424
- type: 'i64';
3594
+ name: 'hypePrice';
3595
+ type: 'u64';
3425
3596
  },
3426
3597
  {
3427
- name: 'isLong';
3428
- type: 'bool';
3598
+ name: 'flopPrice';
3599
+ type: 'u64';
3429
3600
  },
3430
3601
  {
3431
- name: 'isOpen';
3432
- type: 'bool';
3602
+ name: 'direction';
3603
+ type: {
3604
+ defined: {
3605
+ name: 'orderDirection';
3606
+ };
3607
+ };
3433
3608
  },
3434
3609
  {
3435
- name: 'pnl';
3610
+ name: 'timestamp';
3436
3611
  type: 'i64';
3437
3612
  }
3438
3613
  ];
3439
3614
  };
3440
3615
  },
3441
3616
  {
3442
- name: 'priceUpdate';
3617
+ name: 'prize';
3443
3618
  type: {
3444
3619
  kind: 'struct';
3445
3620
  fields: [
3446
3621
  {
3447
- name: 'marketId';
3622
+ name: 'prizeType';
3623
+ type: {
3624
+ defined: {
3625
+ name: 'prizeType';
3626
+ };
3627
+ };
3628
+ },
3629
+ {
3630
+ name: 'availableQuantity';
3448
3631
  type: 'u64';
3449
3632
  },
3450
3633
  {
3451
- name: 'hypePrice';
3634
+ name: 'rangeMin';
3452
3635
  type: 'u64';
3453
3636
  },
3454
3637
  {
3455
- name: 'flopPrice';
3638
+ name: 'rangeMax';
3456
3639
  type: 'u64';
3457
3640
  },
3458
3641
  {
3459
- name: 'direction';
3642
+ name: 'status';
3460
3643
  type: {
3461
3644
  defined: {
3462
- name: 'orderDirection';
3645
+ name: 'prizeStatus';
3463
3646
  };
3464
3647
  };
3648
+ }
3649
+ ];
3650
+ };
3651
+ },
3652
+ {
3653
+ name: 'prizeStatus';
3654
+ type: {
3655
+ kind: 'enum';
3656
+ variants: [
3657
+ {
3658
+ name: 'free';
3465
3659
  },
3466
3660
  {
3467
- name: 'timestamp';
3468
- type: 'i64';
3661
+ name: 'claimed';
3662
+ }
3663
+ ];
3664
+ };
3665
+ },
3666
+ {
3667
+ name: 'prizeType';
3668
+ type: {
3669
+ kind: 'enum';
3670
+ variants: [
3671
+ {
3672
+ name: 'none';
3673
+ },
3674
+ {
3675
+ name: 'undead';
3676
+ },
3677
+ {
3678
+ name: 'ticket';
3679
+ },
3680
+ {
3681
+ name: 'honeyland';
3682
+ },
3683
+ {
3684
+ name: 'trd100';
3685
+ },
3686
+ {
3687
+ name: 'trd50';
3688
+ },
3689
+ {
3690
+ name: 'flip';
3691
+ },
3692
+ {
3693
+ name: 'pengu';
3694
+ },
3695
+ {
3696
+ name: 'ore';
3697
+ },
3698
+ {
3699
+ name: 'lucksea';
3700
+ },
3701
+ {
3702
+ name: 'trd5';
3703
+ },
3704
+ {
3705
+ name: 'trident2000';
3706
+ },
3707
+ {
3708
+ name: 'trident500';
3709
+ },
3710
+ {
3711
+ name: 'trd10000';
3469
3712
  }
3470
3713
  ];
3471
3714
  };
@@ -3574,6 +3817,69 @@ export type TriadProtocol = {
3574
3817
  ];
3575
3818
  };
3576
3819
  },
3820
+ {
3821
+ name: 'rouletteSpinResult';
3822
+ type: {
3823
+ kind: 'struct';
3824
+ fields: [
3825
+ {
3826
+ name: 'player';
3827
+ type: 'pubkey';
3828
+ },
3829
+ {
3830
+ name: 'prize';
3831
+ type: {
3832
+ defined: {
3833
+ name: 'prizeType';
3834
+ };
3835
+ };
3836
+ },
3837
+ {
3838
+ name: 'amount';
3839
+ type: 'u64';
3840
+ }
3841
+ ];
3842
+ };
3843
+ },
3844
+ {
3845
+ name: 'spin';
3846
+ type: {
3847
+ kind: 'struct';
3848
+ fields: [
3849
+ {
3850
+ name: 'bump';
3851
+ type: 'u8';
3852
+ },
3853
+ {
3854
+ name: 'name';
3855
+ type: 'string';
3856
+ },
3857
+ {
3858
+ name: 'count';
3859
+ type: 'u64';
3860
+ },
3861
+ {
3862
+ name: 'prizes';
3863
+ type: {
3864
+ array: [
3865
+ {
3866
+ defined: {
3867
+ name: 'prize';
3868
+ };
3869
+ },
3870
+ 30
3871
+ ];
3872
+ };
3873
+ },
3874
+ {
3875
+ name: 'padding';
3876
+ type: {
3877
+ array: ['u8', 32];
3878
+ };
3879
+ }
3880
+ ];
3881
+ };
3882
+ },
3577
3883
  {
3578
3884
  name: 'stakeRewards';
3579
3885
  type: {
@@ -3818,59 +4124,6 @@ export type TriadProtocol = {
3818
4124
  ];
3819
4125
  };
3820
4126
  },
3821
- {
3822
- name: 'userPosition';
3823
- type: {
3824
- kind: 'struct';
3825
- fields: [
3826
- {
3827
- name: 'ts';
3828
- type: 'i64';
3829
- },
3830
- {
3831
- name: 'bump';
3832
- type: 'u8';
3833
- },
3834
- {
3835
- name: 'totalDeposited';
3836
- type: 'u64';
3837
- },
3838
- {
3839
- name: 'totalWithdrawn';
3840
- type: 'u64';
3841
- },
3842
- {
3843
- name: 'lpShare';
3844
- type: 'u64';
3845
- },
3846
- {
3847
- name: 'totalPositions';
3848
- type: 'u16';
3849
- },
3850
- {
3851
- name: 'ticker';
3852
- type: 'pubkey';
3853
- },
3854
- {
3855
- name: 'authority';
3856
- type: 'pubkey';
3857
- },
3858
- {
3859
- name: 'positions';
3860
- type: {
3861
- array: [
3862
- {
3863
- defined: {
3864
- name: 'position';
3865
- };
3866
- },
3867
- 3
3868
- ];
3869
- };
3870
- }
3871
- ];
3872
- };
3873
- },
3874
4127
  {
3875
4128
  name: 'userTrade';
3876
4129
  type: {
@@ -3927,70 +4180,6 @@ export type TriadProtocol = {
3927
4180
  ];
3928
4181
  };
3929
4182
  },
3930
- {
3931
- name: 'vault';
3932
- type: {
3933
- kind: 'struct';
3934
- fields: [
3935
- {
3936
- name: 'bump';
3937
- type: 'u8';
3938
- },
3939
- {
3940
- name: 'authority';
3941
- type: 'pubkey';
3942
- },
3943
- {
3944
- name: 'name';
3945
- type: 'string';
3946
- },
3947
- {
3948
- name: 'tokenAccount';
3949
- type: 'pubkey';
3950
- },
3951
- {
3952
- name: 'tickerAddress';
3953
- type: 'pubkey';
3954
- },
3955
- {
3956
- name: 'totalDeposited';
3957
- type: 'u64';
3958
- },
3959
- {
3960
- name: 'totalWithdrawn';
3961
- type: 'u64';
3962
- },
3963
- {
3964
- name: 'initTs';
3965
- type: 'i64';
3966
- },
3967
- {
3968
- name: 'netDeposits';
3969
- type: 'u128';
3970
- },
3971
- {
3972
- name: 'netWithdraws';
3973
- type: 'u128';
3974
- },
3975
- {
3976
- name: 'longBalance';
3977
- type: 'u64';
3978
- },
3979
- {
3980
- name: 'shortBalance';
3981
- type: 'u64';
3982
- },
3983
- {
3984
- name: 'longPositionsOpened';
3985
- type: 'u64';
3986
- },
3987
- {
3988
- name: 'shortPositionsOpened';
3989
- type: 'u64';
3990
- }
3991
- ];
3992
- };
3993
- },
3994
4183
  {
3995
4184
  name: 'winningDirection';
3996
4185
  type: {
@@ -4004,6 +4193,9 @@ export type TriadProtocol = {
4004
4193
  },
4005
4194
  {
4006
4195
  name: 'flop';
4196
+ },
4197
+ {
4198
+ name: 'draw';
4007
4199
  }
4008
4200
  ];
4009
4201
  };