@triadxyz/triad-protocol 1.3.1-beta → 1.3.3-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: 'spinWheel';
1845
+ discriminator: [25, 214, 214, 83, 131, 150, 190, 91];
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,10 +1991,15 @@ 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
  ];
1998
+ returns: {
1999
+ defined: {
2000
+ name: 'prizeType';
2001
+ };
2002
+ };
1600
2003
  },
1601
2004
  {
1602
2005
  name: 'stakeToken';
@@ -1957,8 +2360,8 @@ export type TriadProtocol = {
1957
2360
  ];
1958
2361
  },
1959
2362
  {
1960
- name: 'withdrawNft';
1961
- discriminator: [142, 181, 191, 149, 82, 175, 216, 100];
2363
+ name: 'withdrawStake';
2364
+ discriminator: [153, 8, 22, 138, 105, 176, 87, 66];
1962
2365
  accounts: [
1963
2366
  {
1964
2367
  name: 'signer';
@@ -1978,15 +2381,15 @@ export type TriadProtocol = {
1978
2381
  writable: true;
1979
2382
  },
1980
2383
  {
1981
- name: 'nftMint';
2384
+ name: 'admin';
1982
2385
  writable: true;
1983
2386
  },
1984
2387
  {
1985
- name: 'tokenMint';
2388
+ name: 'mint';
1986
2389
  writable: true;
1987
2390
  },
1988
2391
  {
1989
- name: 'nftFromAta';
2392
+ name: 'fromAta';
1990
2393
  writable: true;
1991
2394
  pda: {
1992
2395
  seeds: [
@@ -2000,7 +2403,7 @@ export type TriadProtocol = {
2000
2403
  },
2001
2404
  {
2002
2405
  kind: 'account';
2003
- path: 'nftMint';
2406
+ path: 'mint';
2004
2407
  }
2005
2408
  ];
2006
2409
  program: {
@@ -2043,13 +2446,13 @@ export type TriadProtocol = {
2043
2446
  };
2044
2447
  },
2045
2448
  {
2046
- name: 'nftToAta';
2449
+ name: 'toAta';
2047
2450
  writable: true;
2048
2451
  pda: {
2049
2452
  seeds: [
2050
2453
  {
2051
2454
  kind: 'account';
2052
- path: 'user';
2455
+ path: 'signer';
2053
2456
  },
2054
2457
  {
2055
2458
  kind: 'account';
@@ -2057,288 +2460,7 @@ export type TriadProtocol = {
2057
2460
  },
2058
2461
  {
2059
2462
  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';
2463
+ path: 'mint';
2342
2464
  }
2343
2465
  ];
2344
2466
  program: {
@@ -2394,51 +2516,6 @@ export type TriadProtocol = {
2394
2516
  }
2395
2517
  ];
2396
2518
  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
2519
  }
2443
2520
  ];
2444
2521
  accounts: [
@@ -2462,6 +2539,10 @@ export type TriadProtocol = {
2462
2539
  name: 'nft';
2463
2540
  discriminator: [88, 10, 146, 176, 101, 11, 40, 217];
2464
2541
  },
2542
+ {
2543
+ name: 'spin';
2544
+ discriminator: [92, 138, 157, 19, 101, 173, 183, 155];
2545
+ },
2465
2546
  {
2466
2547
  name: 'stakeV2';
2467
2548
  discriminator: [207, 98, 130, 13, 118, 181, 238, 47];
@@ -2474,17 +2555,9 @@ export type TriadProtocol = {
2474
2555
  name: 'user';
2475
2556
  discriminator: [159, 117, 95, 227, 239, 151, 58, 236];
2476
2557
  },
2477
- {
2478
- name: 'userPosition';
2479
- discriminator: [251, 248, 209, 245, 83, 234, 17, 27];
2480
- },
2481
2558
  {
2482
2559
  name: 'userTrade';
2483
2560
  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
2561
  }
2489
2562
  ];
2490
2563
  events: [
@@ -2500,6 +2573,10 @@ export type TriadProtocol = {
2500
2573
  name: 'priceUpdate';
2501
2574
  discriminator: [222, 51, 180, 226, 165, 188, 203, 54];
2502
2575
  },
2576
+ {
2577
+ name: 'spinWheelResult';
2578
+ discriminator: [98, 31, 244, 65, 124, 192, 160, 79];
2579
+ },
2503
2580
  {
2504
2581
  name: 'stakeRewards';
2505
2582
  discriminator: [236, 217, 227, 239, 6, 129, 188, 218];
@@ -2610,6 +2687,16 @@ export type TriadProtocol = {
2610
2687
  code: 6020;
2611
2688
  name: 'collectionFull';
2612
2689
  msg: 'Collection is full';
2690
+ },
2691
+ {
2692
+ code: 6021;
2693
+ name: 'prizeNotFound';
2694
+ msg: 'Prize not found';
2695
+ },
2696
+ {
2697
+ code: 6022;
2698
+ name: 'noPrizesAvailable';
2699
+ msg: 'No prizes available';
2613
2700
  }
2614
2701
  ];
2615
2702
  types: [
@@ -2633,6 +2720,38 @@ export type TriadProtocol = {
2633
2720
  ];
2634
2721
  };
2635
2722
  },
2723
+ {
2724
+ name: 'addSpinPrizeArgs';
2725
+ type: {
2726
+ kind: 'struct';
2727
+ fields: [
2728
+ {
2729
+ name: 'name';
2730
+ type: 'string';
2731
+ },
2732
+ {
2733
+ name: 'prizeType';
2734
+ type: {
2735
+ defined: {
2736
+ name: 'prizeType';
2737
+ };
2738
+ };
2739
+ },
2740
+ {
2741
+ name: 'availableQuantity';
2742
+ type: 'u64';
2743
+ },
2744
+ {
2745
+ name: 'rangeMin';
2746
+ type: 'u64';
2747
+ },
2748
+ {
2749
+ name: 'rangeMax';
2750
+ type: 'u64';
2751
+ }
2752
+ ];
2753
+ };
2754
+ },
2636
2755
  {
2637
2756
  name: 'baseCollectionV1';
2638
2757
  type: {
@@ -2962,16 +3081,12 @@ export type TriadProtocol = {
2962
3081
  type: 'u64';
2963
3082
  },
2964
3083
  {
2965
- name: 'question';
2966
- type: 'string';
2967
- },
2968
- {
2969
- name: 'startTime';
2970
- type: 'i64';
3084
+ name: 'hypePrice';
3085
+ type: 'u64';
2971
3086
  },
2972
3087
  {
2973
- name: 'endTime';
2974
- type: 'i64';
3088
+ name: 'flopPrice';
3089
+ type: 'u64';
2975
3090
  },
2976
3091
  {
2977
3092
  name: 'hypeLiquidity';
@@ -2982,32 +3097,52 @@ export type TriadProtocol = {
2982
3097
  type: 'u64';
2983
3098
  },
2984
3099
  {
2985
- name: 'winningDirection';
2986
- type: {
2987
- defined: {
2988
- name: 'winningDirection';
2989
- };
2990
- };
3100
+ name: 'hypeShares';
3101
+ type: 'u64';
2991
3102
  },
2992
3103
  {
2993
- name: 'finalHypePrice';
3104
+ name: 'flopShares';
2994
3105
  type: 'u64';
2995
3106
  },
2996
3107
  {
2997
- name: 'finalFlopPrice';
3108
+ name: 'volume';
2998
3109
  type: 'u64';
2999
3110
  },
3000
3111
  {
3001
- name: 'timestamp';
3112
+ name: 'updateTs';
3002
3113
  type: 'i64';
3003
3114
  },
3004
3115
  {
3005
- name: 'totalHypeShares';
3116
+ name: 'openedOrders';
3006
3117
  type: 'u64';
3007
3118
  },
3008
3119
  {
3009
- name: 'totalFlopShares';
3120
+ name: 'nextOrderId';
3010
3121
  type: 'u64';
3122
+ },
3123
+ {
3124
+ name: 'nftHoldersFeeAvailable';
3125
+ type: 'u64';
3126
+ },
3127
+ {
3128
+ name: 'nftHoldersFeeClaimed';
3129
+ type: 'u64';
3130
+ },
3131
+ {
3132
+ name: 'marketFeeAvailable';
3133
+ type: 'u64';
3134
+ },
3135
+ {
3136
+ name: 'marketFeeClaimed';
3137
+ type: 'u64';
3138
+ },
3139
+ {
3140
+ name: 'winningDirection';
3141
+ type: {
3142
+ defined: {
3143
+ name: 'winningDirection';
3144
+ };
3145
+ };
3011
3146
  }
3012
3147
  ];
3013
3148
  };
@@ -3135,13 +3270,42 @@ export type TriadProtocol = {
3135
3270
  };
3136
3271
  },
3137
3272
  {
3138
- name: 'marketLiquidityAtStart';
3273
+ name: 'marketLiquidityAtStart';
3274
+ type: 'u64';
3275
+ },
3276
+ {
3277
+ name: 'padding';
3278
+ type: {
3279
+ array: ['u8', 92];
3280
+ };
3281
+ }
3282
+ ];
3283
+ };
3284
+ },
3285
+ {
3286
+ name: 'mintPoseidonArgs';
3287
+ type: {
3288
+ kind: 'struct';
3289
+ fields: [
3290
+ {
3291
+ name: 'collectionSymbol';
3292
+ type: 'string';
3293
+ },
3294
+ {
3295
+ name: 'number';
3139
3296
  type: 'u64';
3140
3297
  },
3141
3298
  {
3142
- name: 'padding';
3299
+ name: 'attributes';
3143
3300
  type: {
3144
- array: ['u8', 92];
3301
+ array: [
3302
+ {
3303
+ defined: {
3304
+ name: 'poseidonAttribute';
3305
+ };
3306
+ },
3307
+ 7
3308
+ ];
3145
3309
  };
3146
3310
  }
3147
3311
  ];
@@ -3407,65 +3571,149 @@ export type TriadProtocol = {
3407
3571
  };
3408
3572
  },
3409
3573
  {
3410
- name: 'position';
3574
+ name: 'poseidonAttribute';
3411
3575
  type: {
3412
3576
  kind: 'struct';
3413
3577
  fields: [
3414
3578
  {
3415
- name: 'amount';
3416
- type: 'u64';
3579
+ name: 'key';
3580
+ type: 'string';
3417
3581
  },
3418
3582
  {
3419
- name: 'entryPrice';
3583
+ name: 'value';
3584
+ type: 'string';
3585
+ }
3586
+ ];
3587
+ };
3588
+ },
3589
+ {
3590
+ name: 'priceUpdate';
3591
+ type: {
3592
+ kind: 'struct';
3593
+ fields: [
3594
+ {
3595
+ name: 'marketId';
3420
3596
  type: 'u64';
3421
3597
  },
3422
3598
  {
3423
- name: 'ts';
3424
- type: 'i64';
3599
+ name: 'hypePrice';
3600
+ type: 'u64';
3425
3601
  },
3426
3602
  {
3427
- name: 'isLong';
3428
- type: 'bool';
3603
+ name: 'flopPrice';
3604
+ type: 'u64';
3429
3605
  },
3430
3606
  {
3431
- name: 'isOpen';
3432
- type: 'bool';
3607
+ name: 'direction';
3608
+ type: {
3609
+ defined: {
3610
+ name: 'orderDirection';
3611
+ };
3612
+ };
3433
3613
  },
3434
3614
  {
3435
- name: 'pnl';
3615
+ name: 'timestamp';
3436
3616
  type: 'i64';
3437
3617
  }
3438
3618
  ];
3439
3619
  };
3440
3620
  },
3441
3621
  {
3442
- name: 'priceUpdate';
3622
+ name: 'prize';
3443
3623
  type: {
3444
3624
  kind: 'struct';
3445
3625
  fields: [
3446
3626
  {
3447
- name: 'marketId';
3627
+ name: 'prizeType';
3628
+ type: {
3629
+ defined: {
3630
+ name: 'prizeType';
3631
+ };
3632
+ };
3633
+ },
3634
+ {
3635
+ name: 'availableQuantity';
3448
3636
  type: 'u64';
3449
3637
  },
3450
3638
  {
3451
- name: 'hypePrice';
3639
+ name: 'rangeMin';
3452
3640
  type: 'u64';
3453
3641
  },
3454
3642
  {
3455
- name: 'flopPrice';
3643
+ name: 'rangeMax';
3456
3644
  type: 'u64';
3457
3645
  },
3458
3646
  {
3459
- name: 'direction';
3647
+ name: 'status';
3460
3648
  type: {
3461
3649
  defined: {
3462
- name: 'orderDirection';
3650
+ name: 'prizeStatus';
3463
3651
  };
3464
3652
  };
3653
+ }
3654
+ ];
3655
+ };
3656
+ },
3657
+ {
3658
+ name: 'prizeStatus';
3659
+ type: {
3660
+ kind: 'enum';
3661
+ variants: [
3662
+ {
3663
+ name: 'free';
3465
3664
  },
3466
3665
  {
3467
- name: 'timestamp';
3468
- type: 'i64';
3666
+ name: 'claimed';
3667
+ }
3668
+ ];
3669
+ };
3670
+ },
3671
+ {
3672
+ name: 'prizeType';
3673
+ type: {
3674
+ kind: 'enum';
3675
+ variants: [
3676
+ {
3677
+ name: 'none';
3678
+ },
3679
+ {
3680
+ name: 'undead';
3681
+ },
3682
+ {
3683
+ name: 'ticket';
3684
+ },
3685
+ {
3686
+ name: 'honeyland';
3687
+ },
3688
+ {
3689
+ name: 'trd100';
3690
+ },
3691
+ {
3692
+ name: 'trd50';
3693
+ },
3694
+ {
3695
+ name: 'flip';
3696
+ },
3697
+ {
3698
+ name: 'pengu';
3699
+ },
3700
+ {
3701
+ name: 'ore';
3702
+ },
3703
+ {
3704
+ name: 'lucksea';
3705
+ },
3706
+ {
3707
+ name: 'trd5';
3708
+ },
3709
+ {
3710
+ name: 'trident2000';
3711
+ },
3712
+ {
3713
+ name: 'trident500';
3714
+ },
3715
+ {
3716
+ name: 'trd10000';
3469
3717
  }
3470
3718
  ];
3471
3719
  };
@@ -3574,6 +3822,69 @@ export type TriadProtocol = {
3574
3822
  ];
3575
3823
  };
3576
3824
  },
3825
+ {
3826
+ name: 'spin';
3827
+ type: {
3828
+ kind: 'struct';
3829
+ fields: [
3830
+ {
3831
+ name: 'bump';
3832
+ type: 'u8';
3833
+ },
3834
+ {
3835
+ name: 'name';
3836
+ type: 'string';
3837
+ },
3838
+ {
3839
+ name: 'count';
3840
+ type: 'u64';
3841
+ },
3842
+ {
3843
+ name: 'prizes';
3844
+ type: {
3845
+ array: [
3846
+ {
3847
+ defined: {
3848
+ name: 'prize';
3849
+ };
3850
+ },
3851
+ 30
3852
+ ];
3853
+ };
3854
+ },
3855
+ {
3856
+ name: 'padding';
3857
+ type: {
3858
+ array: ['u8', 32];
3859
+ };
3860
+ }
3861
+ ];
3862
+ };
3863
+ },
3864
+ {
3865
+ name: 'spinWheelResult';
3866
+ type: {
3867
+ kind: 'struct';
3868
+ fields: [
3869
+ {
3870
+ name: 'player';
3871
+ type: 'pubkey';
3872
+ },
3873
+ {
3874
+ name: 'prize';
3875
+ type: {
3876
+ defined: {
3877
+ name: 'prizeType';
3878
+ };
3879
+ };
3880
+ },
3881
+ {
3882
+ name: 'amount';
3883
+ type: 'u64';
3884
+ }
3885
+ ];
3886
+ };
3887
+ },
3577
3888
  {
3578
3889
  name: 'stakeRewards';
3579
3890
  type: {
@@ -3818,59 +4129,6 @@ export type TriadProtocol = {
3818
4129
  ];
3819
4130
  };
3820
4131
  },
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
4132
  {
3875
4133
  name: 'userTrade';
3876
4134
  type: {
@@ -3927,70 +4185,6 @@ export type TriadProtocol = {
3927
4185
  ];
3928
4186
  };
3929
4187
  },
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
4188
  {
3995
4189
  name: 'winningDirection';
3996
4190
  type: {
@@ -4004,6 +4198,9 @@ export type TriadProtocol = {
4004
4198
  },
4005
4199
  {
4006
4200
  name: 'flop';
4201
+ },
4202
+ {
4203
+ name: 'draw';
4007
4204
  }
4008
4205
  ];
4009
4206
  };