@triadxyz/triad-protocol 1.4.8-beta → 1.5.0-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.
@@ -169,8 +169,8 @@ export type TriadProtocol = {
169
169
  ];
170
170
  },
171
171
  {
172
- name: 'addSpinPrize';
173
- discriminator: [215, 228, 250, 145, 202, 12, 63, 35];
172
+ name: 'allowMarketPayout';
173
+ discriminator: [95, 246, 155, 119, 253, 65, 95, 184];
174
174
  accounts: [
175
175
  {
176
176
  name: 'signer';
@@ -178,40 +178,19 @@ export type TriadProtocol = {
178
178
  signer: true;
179
179
  },
180
180
  {
181
- name: 'spin';
181
+ name: 'market';
182
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
183
  },
196
184
  {
197
185
  name: 'systemProgram';
198
186
  address: '11111111111111111111111111111111';
199
187
  }
200
188
  ];
201
- args: [
202
- {
203
- name: 'args';
204
- type: {
205
- defined: {
206
- name: 'addSpinPrizeArgs';
207
- };
208
- };
209
- }
210
- ];
189
+ args: [];
211
190
  },
212
191
  {
213
- name: 'buyToken';
214
- discriminator: [138, 127, 14, 91, 38, 87, 115, 105];
192
+ name: 'claimStakeRewards';
193
+ discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
215
194
  accounts: [
216
195
  {
217
196
  name: 'signer';
@@ -219,25 +198,17 @@ export type TriadProtocol = {
219
198
  signer: true;
220
199
  },
221
200
  {
222
- name: 'spin';
201
+ name: 'verifier';
202
+ writable: true;
203
+ signer: true;
204
+ },
205
+ {
206
+ name: 'stakeVault';
223
207
  writable: true;
224
- pda: {
225
- seeds: [
226
- {
227
- kind: 'const';
228
- value: [115, 112, 105, 110];
229
- },
230
- {
231
- kind: 'arg';
232
- path: 'args.name';
233
- }
234
- ];
235
- };
236
208
  },
237
209
  {
238
- name: 'tresuaryAccount';
210
+ name: 'stake';
239
211
  writable: true;
240
- address: '82ppCojm3yrEKgdpH8B5AmBJTU1r1uAWXFWhxvPs9UCR';
241
212
  },
242
213
  {
243
214
  name: 'mint';
@@ -250,7 +221,7 @@ export type TriadProtocol = {
250
221
  seeds: [
251
222
  {
252
223
  kind: 'account';
253
- path: 'spin';
224
+ path: 'stakeVault';
254
225
  },
255
226
  {
256
227
  kind: 'account';
@@ -375,15 +346,16 @@ export type TriadProtocol = {
375
346
  name: 'args';
376
347
  type: {
377
348
  defined: {
378
- name: 'buyTokenArgs';
349
+ name: 'claimStakeRewardsArgs';
379
350
  };
380
351
  };
381
352
  }
382
353
  ];
354
+ returns: 'u64';
383
355
  },
384
356
  {
385
- name: 'claimSpinToken';
386
- discriminator: [253, 217, 186, 91, 131, 36, 163, 235];
357
+ name: 'closeOrder';
358
+ discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
387
359
  accounts: [
388
360
  {
389
361
  name: 'signer';
@@ -391,38 +363,25 @@ export type TriadProtocol = {
391
363
  signer: true;
392
364
  },
393
365
  {
394
- name: 'verifier';
366
+ name: 'userTrade';
395
367
  writable: true;
396
- signer: true;
397
368
  },
398
369
  {
399
- name: 'spin';
370
+ name: 'market';
400
371
  writable: true;
401
- pda: {
402
- seeds: [
403
- {
404
- kind: 'const';
405
- value: [115, 112, 105, 110];
406
- },
407
- {
408
- kind: 'arg';
409
- path: 'args.name';
410
- }
411
- ];
412
- };
413
372
  },
414
373
  {
415
374
  name: 'mint';
416
375
  writable: true;
417
376
  },
418
377
  {
419
- name: 'fromAta';
378
+ name: 'userAta';
420
379
  writable: true;
421
380
  pda: {
422
381
  seeds: [
423
382
  {
424
383
  kind: 'account';
425
- path: 'spin';
384
+ path: 'signer';
426
385
  },
427
386
  {
428
387
  kind: 'account';
@@ -473,13 +432,13 @@ export type TriadProtocol = {
473
432
  };
474
433
  },
475
434
  {
476
- name: 'toAta';
435
+ name: 'marketVault';
477
436
  writable: true;
478
437
  pda: {
479
438
  seeds: [
480
439
  {
481
440
  kind: 'account';
482
- path: 'signer';
441
+ path: 'market';
483
442
  },
484
443
  {
485
444
  kind: 'account';
@@ -544,18 +503,14 @@ export type TriadProtocol = {
544
503
  ];
545
504
  args: [
546
505
  {
547
- name: 'args';
548
- type: {
549
- defined: {
550
- name: 'claimSpinTokenArgs';
551
- };
552
- };
506
+ name: 'orderId';
507
+ type: 'u64';
553
508
  }
554
509
  ];
555
510
  },
556
511
  {
557
- name: 'claimStakeRewards';
558
- discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
512
+ name: 'collectRemainingLiquidity';
513
+ discriminator: [153, 107, 201, 83, 183, 195, 59, 186];
559
514
  accounts: [
560
515
  {
561
516
  name: 'signer';
@@ -563,16 +518,12 @@ export type TriadProtocol = {
563
518
  signer: true;
564
519
  },
565
520
  {
566
- name: 'verifier';
567
- writable: true;
568
- signer: true;
569
- },
570
- {
571
- name: 'stakeVault';
521
+ name: 'squads';
572
522
  writable: true;
523
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
573
524
  },
574
525
  {
575
- name: 'stake';
526
+ name: 'market';
576
527
  writable: true;
577
528
  },
578
529
  {
@@ -580,13 +531,13 @@ export type TriadProtocol = {
580
531
  writable: true;
581
532
  },
582
533
  {
583
- name: 'fromAta';
534
+ name: 'marketAta';
584
535
  writable: true;
585
536
  pda: {
586
537
  seeds: [
587
538
  {
588
539
  kind: 'account';
589
- path: 'stakeVault';
540
+ path: 'market';
590
541
  },
591
542
  {
592
543
  kind: 'account';
@@ -637,13 +588,13 @@ export type TriadProtocol = {
637
588
  };
638
589
  },
639
590
  {
640
- name: 'toAta';
591
+ name: 'squadsAta';
641
592
  writable: true;
642
593
  pda: {
643
594
  seeds: [
644
595
  {
645
596
  kind: 'account';
646
- path: 'signer';
597
+ path: 'squads';
647
598
  },
648
599
  {
649
600
  kind: 'account';
@@ -706,21 +657,11 @@ export type TriadProtocol = {
706
657
  address: '11111111111111111111111111111111';
707
658
  }
708
659
  ];
709
- args: [
710
- {
711
- name: 'args';
712
- type: {
713
- defined: {
714
- name: 'claimStakeRewardsArgs';
715
- };
716
- };
717
- }
718
- ];
719
- returns: 'u64';
660
+ args: [];
720
661
  },
721
662
  {
722
- name: 'closeOrder';
723
- discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
663
+ name: 'createUserTrade';
664
+ discriminator: [232, 235, 58, 194, 135, 248, 153, 1];
724
665
  accounts: [
725
666
  {
726
667
  name: 'signer';
@@ -730,74 +671,57 @@ export type TriadProtocol = {
730
671
  {
731
672
  name: 'userTrade';
732
673
  writable: true;
674
+ pda: {
675
+ seeds: [
676
+ {
677
+ kind: 'const';
678
+ value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
679
+ },
680
+ {
681
+ kind: 'account';
682
+ path: 'signer';
683
+ }
684
+ ];
685
+ };
733
686
  },
734
687
  {
735
- name: 'market';
736
- writable: true;
737
- },
688
+ name: 'systemProgram';
689
+ address: '11111111111111111111111111111111';
690
+ }
691
+ ];
692
+ args: [];
693
+ },
694
+ {
695
+ name: 'initializeMarket';
696
+ discriminator: [35, 35, 189, 193, 155, 48, 170, 203];
697
+ accounts: [
738
698
  {
739
- name: 'mint';
699
+ name: 'signer';
740
700
  writable: true;
701
+ signer: true;
741
702
  },
742
703
  {
743
- name: 'userAta';
704
+ name: 'market';
744
705
  writable: true;
745
706
  pda: {
746
707
  seeds: [
747
708
  {
748
- kind: 'account';
749
- path: 'signer';
750
- },
751
- {
752
- kind: 'account';
753
- path: 'tokenProgram';
709
+ kind: 'const';
710
+ value: [109, 97, 114, 107, 101, 116];
754
711
  },
755
712
  {
756
- kind: 'account';
757
- path: 'mint';
713
+ kind: 'arg';
714
+ path: 'args.market_id';
758
715
  }
759
716
  ];
760
- program: {
761
- kind: 'const';
762
- value: [
763
- 140,
764
- 151,
765
- 37,
766
- 143,
767
- 78,
768
- 36,
769
- 137,
770
- 241,
771
- 187,
772
- 61,
773
- 16,
774
- 41,
775
- 20,
776
- 142,
777
- 13,
778
- 131,
779
- 11,
780
- 90,
781
- 19,
782
- 153,
783
- 218,
784
- 255,
785
- 16,
786
- 132,
787
- 4,
788
- 142,
789
- 123,
790
- 216,
791
- 219,
792
- 233,
793
- 248,
794
- 89
795
- ];
796
- };
797
717
  };
798
718
  },
799
719
  {
800
- name: 'marketVault';
720
+ name: 'mint';
721
+ writable: true;
722
+ },
723
+ {
724
+ name: 'marketAta';
801
725
  writable: true;
802
726
  pda: {
803
727
  seeds: [
@@ -868,20 +792,53 @@ export type TriadProtocol = {
868
792
  ];
869
793
  args: [
870
794
  {
871
- name: 'orderId';
872
- type: 'u64';
795
+ name: 'args';
796
+ type: {
797
+ defined: {
798
+ name: 'initializeMarketArgs';
799
+ };
800
+ };
801
+ }
802
+ ];
803
+ },
804
+ {
805
+ name: 'migrateUser';
806
+ discriminator: [159, 64, 64, 6, 80, 228, 54, 66];
807
+ accounts: [
808
+ {
809
+ name: 'signer';
810
+ writable: true;
811
+ signer: true;
812
+ },
813
+ {
814
+ name: 'user';
815
+ writable: true;
816
+ },
817
+ {
818
+ name: 'systemProgram';
819
+ address: '11111111111111111111111111111111';
873
820
  }
874
821
  ];
822
+ args: [];
875
823
  },
876
824
  {
877
- name: 'collectFee';
878
- discriminator: [60, 173, 247, 103, 4, 93, 130, 48];
825
+ name: 'openOrder';
826
+ discriminator: [206, 88, 88, 143, 38, 136, 50, 224];
879
827
  accounts: [
880
828
  {
881
829
  name: 'signer';
882
830
  writable: true;
883
831
  signer: true;
884
832
  },
833
+ {
834
+ name: 'squads';
835
+ writable: true;
836
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
837
+ },
838
+ {
839
+ name: 'userTrade';
840
+ writable: true;
841
+ },
885
842
  {
886
843
  name: 'market';
887
844
  writable: true;
@@ -891,13 +848,13 @@ export type TriadProtocol = {
891
848
  writable: true;
892
849
  },
893
850
  {
894
- name: 'marketAta';
851
+ name: 'userFromAta';
895
852
  writable: true;
896
853
  pda: {
897
854
  seeds: [
898
855
  {
899
856
  kind: 'account';
900
- path: 'market';
857
+ path: 'signer';
901
858
  },
902
859
  {
903
860
  kind: 'account';
@@ -948,13 +905,13 @@ export type TriadProtocol = {
948
905
  };
949
906
  },
950
907
  {
951
- name: 'signerAta';
908
+ name: 'marketToAta';
952
909
  writable: true;
953
910
  pda: {
954
911
  seeds: [
955
912
  {
956
913
  kind: 'account';
957
- path: 'signer';
914
+ path: 'market';
958
915
  },
959
916
  {
960
917
  kind: 'account';
@@ -1017,11 +974,20 @@ export type TriadProtocol = {
1017
974
  address: '11111111111111111111111111111111';
1018
975
  }
1019
976
  ];
1020
- args: [];
977
+ args: [
978
+ {
979
+ name: 'args';
980
+ type: {
981
+ defined: {
982
+ name: 'openOrderArgs';
983
+ };
984
+ };
985
+ }
986
+ ];
1021
987
  },
1022
988
  {
1023
- name: 'createCollection';
1024
- discriminator: [156, 251, 92, 54, 233, 2, 16, 82];
989
+ name: 'payoutOrder';
990
+ discriminator: [247, 233, 158, 228, 63, 32, 236, 113];
1025
991
  accounts: [
1026
992
  {
1027
993
  name: 'signer';
@@ -1029,563 +995,12 @@ export type TriadProtocol = {
1029
995
  signer: true;
1030
996
  },
1031
997
  {
1032
- name: 'coreCollection';
998
+ name: 'squads';
1033
999
  writable: true;
1034
- signer: true;
1000
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1035
1001
  },
1036
1002
  {
1037
- name: 'collection';
1038
- writable: true;
1039
- pda: {
1040
- seeds: [
1041
- {
1042
- kind: 'const';
1043
- value: [99, 111, 108, 108, 101, 99, 116, 105, 111, 110];
1044
- },
1045
- {
1046
- kind: 'arg';
1047
- path: 'args.symbol';
1048
- }
1049
- ];
1050
- };
1051
- },
1052
- {
1053
- name: 'metaplexProgram';
1054
- address: 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d';
1055
- },
1056
- {
1057
- name: 'tokenProgram';
1058
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1059
- },
1060
- {
1061
- name: 'associatedTokenProgram';
1062
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1063
- },
1064
- {
1065
- name: 'systemProgram';
1066
- address: '11111111111111111111111111111111';
1067
- }
1068
- ];
1069
- args: [
1070
- {
1071
- name: 'args';
1072
- type: {
1073
- defined: {
1074
- name: 'createCollectionArgs';
1075
- };
1076
- };
1077
- }
1078
- ];
1079
- },
1080
- {
1081
- name: 'createUser';
1082
- discriminator: [108, 227, 130, 130, 252, 109, 75, 218];
1083
- accounts: [
1084
- {
1085
- name: 'signer';
1086
- writable: true;
1087
- signer: true;
1088
- },
1089
- {
1090
- name: 'referral';
1091
- writable: true;
1092
- },
1093
- {
1094
- name: 'user';
1095
- writable: true;
1096
- pda: {
1097
- seeds: [
1098
- {
1099
- kind: 'const';
1100
- value: [117, 115, 101, 114];
1101
- },
1102
- {
1103
- kind: 'account';
1104
- path: 'signer';
1105
- }
1106
- ];
1107
- };
1108
- },
1109
- {
1110
- name: 'systemProgram';
1111
- address: '11111111111111111111111111111111';
1112
- }
1113
- ];
1114
- args: [
1115
- {
1116
- name: 'args';
1117
- type: {
1118
- defined: {
1119
- name: 'createUserArgs';
1120
- };
1121
- };
1122
- }
1123
- ];
1124
- },
1125
- {
1126
- name: 'createUserTrade';
1127
- discriminator: [232, 235, 58, 194, 135, 248, 153, 1];
1128
- accounts: [
1129
- {
1130
- name: 'signer';
1131
- writable: true;
1132
- signer: true;
1133
- },
1134
- {
1135
- name: 'userTrade';
1136
- writable: true;
1137
- pda: {
1138
- seeds: [
1139
- {
1140
- kind: 'const';
1141
- value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
1142
- },
1143
- {
1144
- kind: 'account';
1145
- path: 'signer';
1146
- }
1147
- ];
1148
- };
1149
- },
1150
- {
1151
- name: 'systemProgram';
1152
- address: '11111111111111111111111111111111';
1153
- }
1154
- ];
1155
- args: [];
1156
- },
1157
- {
1158
- name: 'initializeMarket';
1159
- discriminator: [35, 35, 189, 193, 155, 48, 170, 203];
1160
- accounts: [
1161
- {
1162
- name: 'signer';
1163
- writable: true;
1164
- signer: true;
1165
- },
1166
- {
1167
- name: 'market';
1168
- writable: true;
1169
- pda: {
1170
- seeds: [
1171
- {
1172
- kind: 'const';
1173
- value: [109, 97, 114, 107, 101, 116];
1174
- },
1175
- {
1176
- kind: 'arg';
1177
- path: 'args.market_id';
1178
- }
1179
- ];
1180
- };
1181
- },
1182
- {
1183
- name: 'mint';
1184
- writable: true;
1185
- },
1186
- {
1187
- name: 'marketAta';
1188
- writable: true;
1189
- pda: {
1190
- seeds: [
1191
- {
1192
- kind: 'account';
1193
- path: 'market';
1194
- },
1195
- {
1196
- kind: 'account';
1197
- path: 'tokenProgram';
1198
- },
1199
- {
1200
- kind: 'account';
1201
- path: 'mint';
1202
- }
1203
- ];
1204
- program: {
1205
- kind: 'const';
1206
- value: [
1207
- 140,
1208
- 151,
1209
- 37,
1210
- 143,
1211
- 78,
1212
- 36,
1213
- 137,
1214
- 241,
1215
- 187,
1216
- 61,
1217
- 16,
1218
- 41,
1219
- 20,
1220
- 142,
1221
- 13,
1222
- 131,
1223
- 11,
1224
- 90,
1225
- 19,
1226
- 153,
1227
- 218,
1228
- 255,
1229
- 16,
1230
- 132,
1231
- 4,
1232
- 142,
1233
- 123,
1234
- 216,
1235
- 219,
1236
- 233,
1237
- 248,
1238
- 89
1239
- ];
1240
- };
1241
- };
1242
- },
1243
- {
1244
- name: 'tokenProgram';
1245
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1246
- },
1247
- {
1248
- name: 'associatedTokenProgram';
1249
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1250
- },
1251
- {
1252
- name: 'systemProgram';
1253
- address: '11111111111111111111111111111111';
1254
- }
1255
- ];
1256
- args: [
1257
- {
1258
- name: 'args';
1259
- type: {
1260
- defined: {
1261
- name: 'initializeMarketArgs';
1262
- };
1263
- };
1264
- }
1265
- ];
1266
- },
1267
- {
1268
- name: 'mintTicket';
1269
- discriminator: [159, 167, 223, 60, 138, 6, 23, 29];
1270
- accounts: [
1271
- {
1272
- name: 'signer';
1273
- writable: true;
1274
- signer: true;
1275
- },
1276
- {
1277
- name: 'nft';
1278
- writable: true;
1279
- pda: {
1280
- seeds: [
1281
- {
1282
- kind: 'const';
1283
- value: [110, 102, 116];
1284
- },
1285
- {
1286
- kind: 'arg';
1287
- path: 'args.number';
1288
- }
1289
- ];
1290
- };
1291
- },
1292
- {
1293
- name: 'verifier';
1294
- writable: true;
1295
- signer: true;
1296
- },
1297
- {
1298
- name: 'asset';
1299
- writable: true;
1300
- signer: true;
1301
- },
1302
- {
1303
- name: 'nftMint';
1304
- writable: true;
1305
- },
1306
- {
1307
- name: 'collection';
1308
- writable: true;
1309
- pda: {
1310
- seeds: [
1311
- {
1312
- kind: 'const';
1313
- value: [99, 111, 108, 108, 101, 99, 116, 105, 111, 110];
1314
- },
1315
- {
1316
- kind: 'arg';
1317
- path: 'args.collection_symbol';
1318
- }
1319
- ];
1320
- };
1321
- },
1322
- {
1323
- name: 'coreCollection';
1324
- writable: true;
1325
- },
1326
- {
1327
- name: 'trdMint';
1328
- writable: true;
1329
- },
1330
- {
1331
- name: 'userTrdAta';
1332
- writable: true;
1333
- pda: {
1334
- seeds: [
1335
- {
1336
- kind: 'account';
1337
- path: 'signer';
1338
- },
1339
- {
1340
- kind: 'account';
1341
- path: 'tokenProgram';
1342
- },
1343
- {
1344
- kind: 'account';
1345
- path: 'trdMint';
1346
- }
1347
- ];
1348
- program: {
1349
- kind: 'const';
1350
- value: [
1351
- 140,
1352
- 151,
1353
- 37,
1354
- 143,
1355
- 78,
1356
- 36,
1357
- 137,
1358
- 241,
1359
- 187,
1360
- 61,
1361
- 16,
1362
- 41,
1363
- 20,
1364
- 142,
1365
- 13,
1366
- 131,
1367
- 11,
1368
- 90,
1369
- 19,
1370
- 153,
1371
- 218,
1372
- 255,
1373
- 16,
1374
- 132,
1375
- 4,
1376
- 142,
1377
- 123,
1378
- 216,
1379
- 219,
1380
- 233,
1381
- 248,
1382
- 89
1383
- ];
1384
- };
1385
- };
1386
- },
1387
- {
1388
- name: 'userNftAta';
1389
- writable: true;
1390
- },
1391
- {
1392
- name: 'metaplexProgram';
1393
- address: 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d';
1394
- },
1395
- {
1396
- name: 'tokenProgram';
1397
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1398
- },
1399
- {
1400
- name: 'associatedTokenProgram';
1401
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1402
- },
1403
- {
1404
- name: 'systemProgram';
1405
- address: '11111111111111111111111111111111';
1406
- }
1407
- ];
1408
- args: [
1409
- {
1410
- name: 'args';
1411
- type: {
1412
- defined: {
1413
- name: 'mintTicketArgs';
1414
- };
1415
- };
1416
- }
1417
- ];
1418
- },
1419
- {
1420
- name: 'openOrder';
1421
- discriminator: [206, 88, 88, 143, 38, 136, 50, 224];
1422
- accounts: [
1423
- {
1424
- name: 'signer';
1425
- writable: true;
1426
- signer: true;
1427
- },
1428
- {
1429
- name: 'userTrade';
1430
- writable: true;
1431
- },
1432
- {
1433
- name: 'market';
1434
- writable: true;
1435
- },
1436
- {
1437
- name: 'mint';
1438
- writable: true;
1439
- },
1440
- {
1441
- name: 'userFromAta';
1442
- writable: true;
1443
- pda: {
1444
- seeds: [
1445
- {
1446
- kind: 'account';
1447
- path: 'signer';
1448
- },
1449
- {
1450
- kind: 'account';
1451
- path: 'tokenProgram';
1452
- },
1453
- {
1454
- kind: 'account';
1455
- path: 'mint';
1456
- }
1457
- ];
1458
- program: {
1459
- kind: 'const';
1460
- value: [
1461
- 140,
1462
- 151,
1463
- 37,
1464
- 143,
1465
- 78,
1466
- 36,
1467
- 137,
1468
- 241,
1469
- 187,
1470
- 61,
1471
- 16,
1472
- 41,
1473
- 20,
1474
- 142,
1475
- 13,
1476
- 131,
1477
- 11,
1478
- 90,
1479
- 19,
1480
- 153,
1481
- 218,
1482
- 255,
1483
- 16,
1484
- 132,
1485
- 4,
1486
- 142,
1487
- 123,
1488
- 216,
1489
- 219,
1490
- 233,
1491
- 248,
1492
- 89
1493
- ];
1494
- };
1495
- };
1496
- },
1497
- {
1498
- name: 'marketToAta';
1499
- writable: true;
1500
- pda: {
1501
- seeds: [
1502
- {
1503
- kind: 'account';
1504
- path: 'market';
1505
- },
1506
- {
1507
- kind: 'account';
1508
- path: 'tokenProgram';
1509
- },
1510
- {
1511
- kind: 'account';
1512
- path: 'mint';
1513
- }
1514
- ];
1515
- program: {
1516
- kind: 'const';
1517
- value: [
1518
- 140,
1519
- 151,
1520
- 37,
1521
- 143,
1522
- 78,
1523
- 36,
1524
- 137,
1525
- 241,
1526
- 187,
1527
- 61,
1528
- 16,
1529
- 41,
1530
- 20,
1531
- 142,
1532
- 13,
1533
- 131,
1534
- 11,
1535
- 90,
1536
- 19,
1537
- 153,
1538
- 218,
1539
- 255,
1540
- 16,
1541
- 132,
1542
- 4,
1543
- 142,
1544
- 123,
1545
- 216,
1546
- 219,
1547
- 233,
1548
- 248,
1549
- 89
1550
- ];
1551
- };
1552
- };
1553
- },
1554
- {
1555
- name: 'tokenProgram';
1556
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1557
- },
1558
- {
1559
- name: 'associatedTokenProgram';
1560
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1561
- },
1562
- {
1563
- name: 'systemProgram';
1564
- address: '11111111111111111111111111111111';
1565
- }
1566
- ];
1567
- args: [
1568
- {
1569
- name: 'args';
1570
- type: {
1571
- defined: {
1572
- name: 'openOrderArgs';
1573
- };
1574
- };
1575
- }
1576
- ];
1577
- },
1578
- {
1579
- name: 'payoutOrder';
1580
- discriminator: [247, 233, 158, 228, 63, 32, 236, 113];
1581
- accounts: [
1582
- {
1583
- name: 'signer';
1584
- writable: true;
1585
- signer: true;
1586
- },
1587
- {
1588
- name: 'userTrade';
1003
+ name: 'userTrade';
1589
1004
  writable: true;
1590
1005
  },
1591
1006
  {
@@ -1739,10 +1154,6 @@ export type TriadProtocol = {
1739
1154
  writable: true;
1740
1155
  signer: true;
1741
1156
  },
1742
- {
1743
- name: 'stakeVault';
1744
- writable: true;
1745
- },
1746
1157
  {
1747
1158
  name: 'stake';
1748
1159
  writable: true;
@@ -1800,6 +1211,15 @@ export type TriadProtocol = {
1800
1211
  writable: true;
1801
1212
  signer: true;
1802
1213
  },
1214
+ {
1215
+ name: 'squads';
1216
+ writable: true;
1217
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1218
+ },
1219
+ {
1220
+ name: 'user';
1221
+ writable: true;
1222
+ },
1803
1223
  {
1804
1224
  name: 'userTrade';
1805
1225
  writable: true;
@@ -1819,64 +1239,7 @@ export type TriadProtocol = {
1819
1239
  seeds: [
1820
1240
  {
1821
1241
  kind: 'account';
1822
- path: 'signer';
1823
- },
1824
- {
1825
- kind: 'account';
1826
- path: 'tokenProgram';
1827
- },
1828
- {
1829
- kind: 'account';
1830
- path: 'mint';
1831
- }
1832
- ];
1833
- program: {
1834
- kind: 'const';
1835
- value: [
1836
- 140,
1837
- 151,
1838
- 37,
1839
- 143,
1840
- 78,
1841
- 36,
1842
- 137,
1843
- 241,
1844
- 187,
1845
- 61,
1846
- 16,
1847
- 41,
1848
- 20,
1849
- 142,
1850
- 13,
1851
- 131,
1852
- 11,
1853
- 90,
1854
- 19,
1855
- 153,
1856
- 218,
1857
- 255,
1858
- 16,
1859
- 132,
1860
- 4,
1861
- 142,
1862
- 123,
1863
- 216,
1864
- 219,
1865
- 233,
1866
- 248,
1867
- 89
1868
- ];
1869
- };
1870
- };
1871
- },
1872
- {
1873
- name: 'marketVault';
1874
- writable: true;
1875
- pda: {
1876
- seeds: [
1877
- {
1878
- kind: 'account';
1879
- path: 'market';
1242
+ path: 'user';
1880
1243
  },
1881
1244
  {
1882
1245
  kind: 'account';
@@ -1927,60 +1290,13 @@ export type TriadProtocol = {
1927
1290
  };
1928
1291
  },
1929
1292
  {
1930
- name: 'tokenProgram';
1931
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1932
- },
1933
- {
1934
- name: 'associatedTokenProgram';
1935
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1936
- },
1937
- {
1938
- name: 'systemProgram';
1939
- address: '11111111111111111111111111111111';
1940
- }
1941
- ];
1942
- args: [
1943
- {
1944
- name: 'orderId';
1945
- type: 'u64';
1946
- }
1947
- ];
1948
- },
1949
- {
1950
- name: 'spinWheel';
1951
- discriminator: [25, 214, 214, 83, 131, 150, 190, 91];
1952
- accounts: [
1953
- {
1954
- name: 'signer';
1955
- writable: true;
1956
- signer: true;
1957
- },
1958
- {
1959
- name: 'verifier';
1960
- writable: true;
1961
- signer: true;
1962
- },
1963
- {
1964
- name: 'tresuaryAccount';
1965
- writable: true;
1966
- address: '82ppCojm3yrEKgdpH8B5AmBJTU1r1uAWXFWhxvPs9UCR';
1967
- },
1968
- {
1969
- name: 'spin';
1970
- writable: true;
1971
- },
1972
- {
1973
- name: 'mint';
1974
- writable: true;
1975
- },
1976
- {
1977
- name: 'fromAta';
1293
+ name: 'marketAta';
1978
1294
  writable: true;
1979
1295
  pda: {
1980
1296
  seeds: [
1981
1297
  {
1982
1298
  kind: 'account';
1983
- path: 'signer';
1299
+ path: 'market';
1984
1300
  },
1985
1301
  {
1986
1302
  kind: 'account';
@@ -2031,13 +1347,13 @@ export type TriadProtocol = {
2031
1347
  };
2032
1348
  },
2033
1349
  {
2034
- name: 'toAta';
1350
+ name: 'squadsAta';
2035
1351
  writable: true;
2036
1352
  pda: {
2037
1353
  seeds: [
2038
1354
  {
2039
1355
  kind: 'account';
2040
- path: 'spin';
1356
+ path: 'squads';
2041
1357
  },
2042
1358
  {
2043
1359
  kind: 'account';
@@ -2102,19 +1418,10 @@ export type TriadProtocol = {
2102
1418
  ];
2103
1419
  args: [
2104
1420
  {
2105
- name: 'args';
2106
- type: {
2107
- defined: {
2108
- name: 'spinWheelArgs';
2109
- };
2110
- };
1421
+ name: 'orderId';
1422
+ type: 'u64';
2111
1423
  }
2112
1424
  ];
2113
- returns: {
2114
- defined: {
2115
- name: 'prizeType';
2116
- };
2117
- };
2118
1425
  },
2119
1426
  {
2120
1427
  name: 'stakeToken';
@@ -2523,6 +1830,47 @@ export type TriadProtocol = {
2523
1830
  }
2524
1831
  ];
2525
1832
  },
1833
+ {
1834
+ name: 'withdrawPoseidon';
1835
+ discriminator: [63, 55, 48, 174, 44, 202, 11, 227];
1836
+ accounts: [
1837
+ {
1838
+ name: 'signer';
1839
+ writable: true;
1840
+ signer: true;
1841
+ },
1842
+ {
1843
+ name: 'squads';
1844
+ writable: true;
1845
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1846
+ },
1847
+ {
1848
+ name: 'nft';
1849
+ writable: true;
1850
+ },
1851
+ {
1852
+ name: 'poseidonAsset';
1853
+ writable: true;
1854
+ },
1855
+ {
1856
+ name: 'poseidonCollection';
1857
+ writable: true;
1858
+ },
1859
+ {
1860
+ name: 'corePoseidonCollection';
1861
+ writable: true;
1862
+ },
1863
+ {
1864
+ name: 'metaplexProgram';
1865
+ address: 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d';
1866
+ },
1867
+ {
1868
+ name: 'systemProgram';
1869
+ address: '11111111111111111111111111111111';
1870
+ }
1871
+ ];
1872
+ args: [];
1873
+ },
2526
1874
  {
2527
1875
  name: 'withdrawStake';
2528
1876
  discriminator: [153, 8, 22, 138, 105, 176, 87, 66];
@@ -2703,10 +2051,6 @@ export type TriadProtocol = {
2703
2051
  name: 'nft';
2704
2052
  discriminator: [88, 10, 146, 176, 101, 11, 40, 217];
2705
2053
  },
2706
- {
2707
- name: 'spin';
2708
- discriminator: [92, 138, 157, 19, 101, 173, 183, 155];
2709
- },
2710
2054
  {
2711
2055
  name: 'stakeV2';
2712
2056
  discriminator: [207, 98, 130, 13, 118, 181, 238, 47];
@@ -2726,28 +2070,24 @@ export type TriadProtocol = {
2726
2070
  ];
2727
2071
  events: [
2728
2072
  {
2729
- name: 'claimSpinTokenUpdate';
2730
- discriminator: [162, 70, 212, 35, 0, 49, 120, 75];
2731
- },
2732
- {
2733
- name: 'marketUpdate';
2734
- discriminator: [170, 101, 124, 32, 249, 253, 251, 96];
2073
+ name: 'marketAllowedToPayoutEvent';
2074
+ discriminator: [72, 148, 96, 232, 248, 132, 92, 26];
2735
2075
  },
2736
2076
  {
2737
- name: 'orderUpdate';
2738
- discriminator: [97, 239, 148, 96, 83, 234, 245, 14];
2077
+ name: 'marketEvent';
2078
+ discriminator: [212, 67, 145, 23, 58, 104, 52, 83];
2739
2079
  },
2740
2080
  {
2741
- name: 'priceUpdate';
2742
- discriminator: [222, 51, 180, 226, 165, 188, 203, 54];
2081
+ name: 'orderEvent';
2082
+ discriminator: [209, 51, 146, 206, 88, 127, 112, 69];
2743
2083
  },
2744
2084
  {
2745
- name: 'spinWheelResult';
2746
- discriminator: [98, 31, 244, 65, 124, 192, 160, 79];
2085
+ name: 'priceEvent';
2086
+ discriminator: [31, 40, 141, 125, 132, 253, 225, 229];
2747
2087
  },
2748
2088
  {
2749
- name: 'stakeRewards';
2750
- discriminator: [236, 217, 227, 239, 6, 129, 188, 218];
2089
+ name: 'stakeRewardsEvent';
2090
+ discriminator: [23, 37, 255, 130, 102, 26, 140, 94];
2751
2091
  }
2752
2092
  ];
2753
2093
  errors: [
@@ -2758,113 +2098,78 @@ export type TriadProtocol = {
2758
2098
  },
2759
2099
  {
2760
2100
  code: 6001;
2761
- name: 'invalidPosition';
2762
- msg: 'Invalid position';
2763
- },
2764
- {
2765
- code: 6002;
2766
- name: 'invalidWithdrawAmount';
2767
- msg: 'Invalid withdraw amount';
2768
- },
2769
- {
2770
- code: 6003;
2771
2101
  name: 'stakeLocked';
2772
2102
  msg: 'Stake is locked';
2773
2103
  },
2774
2104
  {
2775
- code: 6004;
2105
+ code: 6002;
2776
2106
  name: 'insufficientFunds';
2777
2107
  msg: 'Insufficient funds';
2778
2108
  },
2779
2109
  {
2780
- code: 6005;
2110
+ code: 6003;
2781
2111
  name: 'noRewardsAvailable';
2782
2112
  msg: 'No rewards available';
2783
2113
  },
2784
2114
  {
2785
- code: 6006;
2115
+ code: 6004;
2786
2116
  name: 'invalidPrice';
2787
2117
  msg: 'Invalid price';
2788
2118
  },
2789
2119
  {
2790
- code: 6007;
2120
+ code: 6005;
2791
2121
  name: 'noAvailableOrderSlot';
2792
2122
  msg: 'No available order slot';
2793
2123
  },
2794
2124
  {
2795
- code: 6008;
2125
+ code: 6006;
2796
2126
  name: 'marketInactive';
2797
2127
  msg: 'Market is inactive';
2798
2128
  },
2799
2129
  {
2800
- code: 6009;
2130
+ code: 6007;
2801
2131
  name: 'orderNotFound';
2802
2132
  msg: 'Order not found';
2803
2133
  },
2804
2134
  {
2805
- code: 6010;
2135
+ code: 6008;
2806
2136
  name: 'questionPeriodNotStarted';
2807
2137
  msg: 'Question period not started';
2808
2138
  },
2809
2139
  {
2810
- code: 6011;
2140
+ code: 6009;
2811
2141
  name: 'questionPeriodEnded';
2812
2142
  msg: 'Question period ended';
2813
2143
  },
2814
2144
  {
2815
- code: 6012;
2145
+ code: 6010;
2816
2146
  name: 'stakeVaultLocked';
2817
2147
  msg: 'Stake vault is locked';
2818
2148
  },
2819
2149
  {
2820
- code: 6013;
2150
+ code: 6011;
2821
2151
  name: 'marketStillActive';
2822
2152
  msg: 'Market still active';
2823
2153
  },
2824
2154
  {
2825
- code: 6014;
2826
- name: 'orderNotOpen';
2827
- msg: 'Order not open';
2828
- },
2829
- {
2830
- code: 6015;
2831
- name: 'hasOpenedOrders';
2832
- msg: 'Has opened orders';
2833
- },
2834
- {
2835
- code: 6016;
2155
+ code: 6012;
2836
2156
  name: 'insufficientLiquidity';
2837
2157
  msg: 'Insufficient liquidity';
2838
2158
  },
2839
2159
  {
2840
- code: 6017;
2841
- name: 'marketNotResolved';
2842
- msg: 'Market not resolved';
2843
- },
2844
- {
2845
- code: 6018;
2160
+ code: 6013;
2846
2161
  name: 'marketAlreadyResolved';
2847
2162
  msg: 'Market already resolved';
2848
2163
  },
2849
2164
  {
2850
- code: 6019;
2165
+ code: 6014;
2851
2166
  name: 'concurrentTransaction';
2852
2167
  msg: 'Concurrent transaction';
2853
2168
  },
2854
2169
  {
2855
- code: 6020;
2856
- name: 'collectionFull';
2857
- msg: 'Collection is full';
2858
- },
2859
- {
2860
- code: 6021;
2861
- name: 'prizeNotFound';
2862
- msg: 'Prize not found';
2863
- },
2864
- {
2865
- code: 6022;
2866
- name: 'noPrizesAvailable';
2867
- msg: 'No prizes available';
2170
+ code: 6015;
2171
+ name: 'marketNotAllowedToPayout';
2172
+ msg: 'Market Not allowed to payout';
2868
2173
  }
2869
2174
  ];
2870
2175
  types: [
@@ -2888,38 +2193,6 @@ export type TriadProtocol = {
2888
2193
  ];
2889
2194
  };
2890
2195
  },
2891
- {
2892
- name: 'addSpinPrizeArgs';
2893
- type: {
2894
- kind: 'struct';
2895
- fields: [
2896
- {
2897
- name: 'name';
2898
- type: 'string';
2899
- },
2900
- {
2901
- name: 'prizeType';
2902
- type: {
2903
- defined: {
2904
- name: 'prizeType';
2905
- };
2906
- };
2907
- },
2908
- {
2909
- name: 'availableQuantity';
2910
- type: 'u64';
2911
- },
2912
- {
2913
- name: 'rangeMin';
2914
- type: 'u64';
2915
- },
2916
- {
2917
- name: 'rangeMax';
2918
- type: 'u64';
2919
- }
2920
- ];
2921
- };
2922
- },
2923
2196
  {
2924
2197
  name: 'baseAssetV1';
2925
2198
  type: {
@@ -2998,58 +2271,6 @@ export type TriadProtocol = {
2998
2271
  ];
2999
2272
  };
3000
2273
  },
3001
- {
3002
- name: 'buyTokenArgs';
3003
- type: {
3004
- kind: 'struct';
3005
- fields: [
3006
- {
3007
- name: 'name';
3008
- type: 'string';
3009
- },
3010
- {
3011
- name: 'amount';
3012
- type: 'u64';
3013
- }
3014
- ];
3015
- };
3016
- },
3017
- {
3018
- name: 'claimSpinTokenArgs';
3019
- type: {
3020
- kind: 'struct';
3021
- fields: [
3022
- {
3023
- name: 'name';
3024
- type: 'string';
3025
- },
3026
- {
3027
- name: 'amount';
3028
- type: 'u64';
3029
- }
3030
- ];
3031
- };
3032
- },
3033
- {
3034
- name: 'claimSpinTokenUpdate';
3035
- type: {
3036
- kind: 'struct';
3037
- fields: [
3038
- {
3039
- name: 'player';
3040
- type: 'pubkey';
3041
- },
3042
- {
3043
- name: 'amount';
3044
- type: 'u64';
3045
- },
3046
- {
3047
- name: 'timestamp';
3048
- type: 'i64';
3049
- }
3050
- ];
3051
- };
3052
- },
3053
2274
  {
3054
2275
  name: 'claimStakeRewardsArgs';
3055
2276
  type: {
@@ -3100,38 +2321,6 @@ export type TriadProtocol = {
3100
2321
  ];
3101
2322
  };
3102
2323
  },
3103
- {
3104
- name: 'createCollectionArgs';
3105
- type: {
3106
- kind: 'struct';
3107
- fields: [
3108
- {
3109
- name: 'name';
3110
- type: 'string';
3111
- },
3112
- {
3113
- name: 'symbol';
3114
- type: 'string';
3115
- },
3116
- {
3117
- name: 'supply';
3118
- type: 'u64';
3119
- }
3120
- ];
3121
- };
3122
- },
3123
- {
3124
- name: 'createUserArgs';
3125
- type: {
3126
- kind: 'struct';
3127
- fields: [
3128
- {
3129
- name: 'name';
3130
- type: 'string';
3131
- }
3132
- ];
3133
- };
3134
- },
3135
2324
  {
3136
2325
  name: 'initializeMarketArgs';
3137
2326
  type: {
@@ -3148,11 +2337,11 @@ export type TriadProtocol = {
3148
2337
  };
3149
2338
  },
3150
2339
  {
3151
- name: 'startTime';
2340
+ name: 'marketStart';
3152
2341
  type: 'i64';
3153
2342
  },
3154
2343
  {
3155
- name: 'endTime';
2344
+ name: 'marketEnd';
3156
2345
  type: 'i64';
3157
2346
  }
3158
2347
  ];
@@ -3334,7 +2523,35 @@ export type TriadProtocol = {
3334
2523
  };
3335
2524
  },
3336
2525
  {
3337
- name: 'marketUpdate';
2526
+ name: 'marketAllowedToPayoutEvent';
2527
+ type: {
2528
+ kind: 'struct';
2529
+ fields: [
2530
+ {
2531
+ name: 'marketId';
2532
+ type: 'u64';
2533
+ },
2534
+ {
2535
+ name: 'winningDirection';
2536
+ type: {
2537
+ defined: {
2538
+ name: 'winningDirection';
2539
+ };
2540
+ };
2541
+ },
2542
+ {
2543
+ name: 'timestamp';
2544
+ type: 'i64';
2545
+ },
2546
+ {
2547
+ name: 'isAllowedToPayout';
2548
+ type: 'bool';
2549
+ }
2550
+ ];
2551
+ };
2552
+ },
2553
+ {
2554
+ name: 'marketEvent';
3338
2555
  type: {
3339
2556
  kind: 'struct';
3340
2557
  fields: [
@@ -3382,22 +2599,6 @@ export type TriadProtocol = {
3382
2599
  name: 'nextOrderId';
3383
2600
  type: 'u64';
3384
2601
  },
3385
- {
3386
- name: 'nftHoldersFeeAvailable';
3387
- type: 'u64';
3388
- },
3389
- {
3390
- name: 'nftHoldersFeeClaimed';
3391
- type: 'u64';
3392
- },
3393
- {
3394
- name: 'marketFeeAvailable';
3395
- type: 'u64';
3396
- },
3397
- {
3398
- name: 'marketFeeClaimed';
3399
- type: 'u64';
3400
- },
3401
2602
  {
3402
2603
  name: 'winningDirection';
3403
2604
  type: {
@@ -3405,6 +2606,14 @@ export type TriadProtocol = {
3405
2606
  name: 'winningDirection';
3406
2607
  };
3407
2608
  };
2609
+ },
2610
+ {
2611
+ name: 'marketStart';
2612
+ type: 'i64';
2613
+ },
2614
+ {
2615
+ name: 'marketEnd';
2616
+ type: 'i64';
3408
2617
  }
3409
2618
  ];
3410
2619
  };
@@ -3424,7 +2633,6 @@ export type TriadProtocol = {
3424
2633
  },
3425
2634
  {
3426
2635
  name: 'marketId';
3427
- docs: ['Unique identifier for the market'];
3428
2636
  type: 'u64';
3429
2637
  },
3430
2638
  {
@@ -3437,32 +2645,26 @@ export type TriadProtocol = {
3437
2645
  },
3438
2646
  {
3439
2647
  name: 'hypeLiquidity';
3440
- docs: ['Total liquidity for Hype (in TRD)'];
3441
2648
  type: 'u64';
3442
2649
  },
3443
2650
  {
3444
2651
  name: 'flopLiquidity';
3445
- docs: ['Total liquidity for Flop (in TRD)'];
3446
2652
  type: 'u64';
3447
2653
  },
3448
2654
  {
3449
2655
  name: 'hypeShares';
3450
- docs: ['Total number of Hype shares issued'];
3451
2656
  type: 'u64';
3452
2657
  },
3453
2658
  {
3454
2659
  name: 'flopShares';
3455
- docs: ['Total number of Flop shares issued'];
3456
2660
  type: 'u64';
3457
2661
  },
3458
2662
  {
3459
2663
  name: 'volume';
3460
- docs: ['Total trading volume (in TRD)'];
3461
2664
  type: 'u64';
3462
2665
  },
3463
2666
  {
3464
2667
  name: 'mint';
3465
- docs: ['Mint $TRD token'];
3466
2668
  type: 'pubkey';
3467
2669
  },
3468
2670
  {
@@ -3471,17 +2673,14 @@ export type TriadProtocol = {
3471
2673
  },
3472
2674
  {
3473
2675
  name: 'openedOrders';
3474
- docs: ['Total number of open orders in this market'];
3475
2676
  type: 'u64';
3476
2677
  },
3477
2678
  {
3478
2679
  name: 'nextOrderId';
3479
- docs: ['Next available order ID'];
3480
2680
  type: 'u64';
3481
2681
  },
3482
2682
  {
3483
2683
  name: 'feeBps';
3484
- docs: ['Fees applied to trades (in basis points, e.g., 2.131% fee)'];
3485
2684
  type: 'u16';
3486
2685
  },
3487
2686
  {
@@ -3501,15 +2700,11 @@ export type TriadProtocol = {
3501
2700
  type: 'u64';
3502
2701
  },
3503
2702
  {
3504
- name: 'isActive';
3505
- docs: ['Whether the market is currently active for trading'];
2703
+ name: 'isAllowedToPayout';
3506
2704
  type: 'bool';
3507
2705
  },
3508
2706
  {
3509
2707
  name: 'marketStart';
3510
- docs: [
3511
- 'Index of the current week in the weekly_results array initialized with default values'
3512
- ];
3513
2708
  type: 'i64';
3514
2709
  },
3515
2710
  {
@@ -3518,7 +2713,6 @@ export type TriadProtocol = {
3518
2713
  },
3519
2714
  {
3520
2715
  name: 'question';
3521
- docs: ['The question or prediction topic for the current week'];
3522
2716
  type: {
3523
2717
  array: ['u8', 80];
3524
2718
  };
@@ -3544,38 +2738,6 @@ export type TriadProtocol = {
3544
2738
  ];
3545
2739
  };
3546
2740
  },
3547
- {
3548
- name: 'mintTicketArgs';
3549
- type: {
3550
- kind: 'struct';
3551
- fields: [
3552
- {
3553
- name: 'collectionSymbol';
3554
- type: 'string';
3555
- },
3556
- {
3557
- name: 'discount';
3558
- type: 'u64';
3559
- },
3560
- {
3561
- name: 'isBoosted';
3562
- type: 'bool';
3563
- },
3564
- {
3565
- name: 'number';
3566
- type: 'u64';
3567
- },
3568
- {
3569
- name: 'rarity';
3570
- type: {
3571
- defined: {
3572
- name: 'rarity';
3573
- };
3574
- };
3575
- }
3576
- ];
3577
- };
3578
- },
3579
2741
  {
3580
2742
  name: 'nft';
3581
2743
  type: {
@@ -3687,44 +2849,7 @@ export type TriadProtocol = {
3687
2849
  };
3688
2850
  },
3689
2851
  {
3690
- name: 'orderStatus';
3691
- type: {
3692
- kind: 'enum';
3693
- variants: [
3694
- {
3695
- name: 'init';
3696
- },
3697
- {
3698
- name: 'open';
3699
- },
3700
- {
3701
- name: 'closed';
3702
- },
3703
- {
3704
- name: 'claimed';
3705
- },
3706
- {
3707
- name: 'liquidated';
3708
- }
3709
- ];
3710
- };
3711
- },
3712
- {
3713
- name: 'orderType';
3714
- type: {
3715
- kind: 'enum';
3716
- variants: [
3717
- {
3718
- name: 'market';
3719
- },
3720
- {
3721
- name: 'limit';
3722
- }
3723
- ];
3724
- };
3725
- },
3726
- {
3727
- name: 'orderUpdate';
2852
+ name: 'orderEvent';
3728
2853
  type: {
3729
2854
  kind: 'struct';
3730
2855
  fields: [
@@ -3804,159 +2929,70 @@ export type TriadProtocol = {
3804
2929
  };
3805
2930
  },
3806
2931
  {
3807
- name: 'priceUpdate';
3808
- type: {
3809
- kind: 'struct';
3810
- fields: [
3811
- {
3812
- name: 'marketId';
3813
- type: 'u64';
3814
- },
3815
- {
3816
- name: 'hypePrice';
3817
- type: 'u64';
3818
- },
3819
- {
3820
- name: 'flopPrice';
3821
- type: 'u64';
3822
- },
3823
- {
3824
- name: 'direction';
3825
- type: {
3826
- defined: {
3827
- name: 'orderDirection';
3828
- };
3829
- };
3830
- },
3831
- {
3832
- name: 'timestamp';
3833
- type: 'i64';
3834
- }
3835
- ];
3836
- };
3837
- },
3838
- {
3839
- name: 'prize';
2932
+ name: 'orderStatus';
3840
2933
  type: {
3841
- kind: 'struct';
3842
- fields: [
3843
- {
3844
- name: 'prizeType';
3845
- type: {
3846
- defined: {
3847
- name: 'prizeType';
3848
- };
3849
- };
3850
- },
2934
+ kind: 'enum';
2935
+ variants: [
3851
2936
  {
3852
- name: 'availableQuantity';
3853
- type: 'u64';
2937
+ name: 'init';
3854
2938
  },
3855
2939
  {
3856
- name: 'rangeMin';
3857
- type: 'u64';
2940
+ name: 'open';
3858
2941
  },
3859
2942
  {
3860
- name: 'rangeMax';
3861
- type: 'u64';
2943
+ name: 'closed';
3862
2944
  },
3863
2945
  {
3864
- name: 'status';
3865
- type: {
3866
- defined: {
3867
- name: 'prizeStatus';
3868
- };
3869
- };
3870
- }
3871
- ];
3872
- };
3873
- },
3874
- {
3875
- name: 'prizeStatus';
3876
- type: {
3877
- kind: 'enum';
3878
- variants: [
3879
- {
3880
- name: 'free';
2946
+ name: 'claimed';
3881
2947
  },
3882
2948
  {
3883
- name: 'claimed';
2949
+ name: 'liquidated';
3884
2950
  }
3885
2951
  ];
3886
2952
  };
3887
2953
  },
3888
2954
  {
3889
- name: 'prizeType';
2955
+ name: 'orderType';
3890
2956
  type: {
3891
2957
  kind: 'enum';
3892
2958
  variants: [
3893
2959
  {
3894
- name: 'none';
3895
- },
3896
- {
3897
- name: 'undead';
3898
- },
3899
- {
3900
- name: 'ticket';
3901
- },
3902
- {
3903
- name: 'honeyland';
3904
- },
3905
- {
3906
- name: 'trd100';
3907
- },
3908
- {
3909
- name: 'trd50';
3910
- },
3911
- {
3912
- name: 'flip';
3913
- },
3914
- {
3915
- name: 'pengu';
3916
- },
3917
- {
3918
- name: 'ore';
3919
- },
3920
- {
3921
- name: 'lucksea';
3922
- },
3923
- {
3924
- name: 'trd5';
3925
- },
3926
- {
3927
- name: 'trident2000';
3928
- },
3929
- {
3930
- name: 'trident500';
2960
+ name: 'market';
3931
2961
  },
3932
2962
  {
3933
- name: 'trd10000';
2963
+ name: 'limit';
3934
2964
  }
3935
2965
  ];
3936
2966
  };
3937
2967
  },
3938
2968
  {
3939
- name: 'rarity';
2969
+ name: 'priceEvent';
3940
2970
  type: {
3941
- kind: 'enum';
3942
- variants: [
3943
- {
3944
- name: 'common';
3945
- },
2971
+ kind: 'struct';
2972
+ fields: [
3946
2973
  {
3947
- name: 'uncommon';
2974
+ name: 'marketId';
2975
+ type: 'u64';
3948
2976
  },
3949
2977
  {
3950
- name: 'rare';
2978
+ name: 'hypePrice';
2979
+ type: 'u64';
3951
2980
  },
3952
2981
  {
3953
- name: 'epic';
2982
+ name: 'flopPrice';
2983
+ type: 'u64';
3954
2984
  },
3955
2985
  {
3956
- name: 'legendary';
2986
+ name: 'direction';
2987
+ type: {
2988
+ defined: {
2989
+ name: 'orderDirection';
2990
+ };
2991
+ };
3957
2992
  },
3958
2993
  {
3959
- name: 'mythic';
2994
+ name: 'timestamp';
2995
+ type: 'i64';
3960
2996
  }
3961
2997
  ];
3962
2998
  };
@@ -4040,90 +3076,7 @@ export type TriadProtocol = {
4040
3076
  };
4041
3077
  },
4042
3078
  {
4043
- name: 'spin';
4044
- type: {
4045
- kind: 'struct';
4046
- fields: [
4047
- {
4048
- name: 'bump';
4049
- type: 'u8';
4050
- },
4051
- {
4052
- name: 'name';
4053
- type: 'string';
4054
- },
4055
- {
4056
- name: 'count';
4057
- type: 'u64';
4058
- },
4059
- {
4060
- name: 'prizes';
4061
- type: {
4062
- array: [
4063
- {
4064
- defined: {
4065
- name: 'prize';
4066
- };
4067
- },
4068
- 30
4069
- ];
4070
- };
4071
- },
4072
- {
4073
- name: 'padding';
4074
- type: {
4075
- array: ['u8', 32];
4076
- };
4077
- }
4078
- ];
4079
- };
4080
- },
4081
- {
4082
- name: 'spinWheelArgs';
4083
- type: {
4084
- kind: 'struct';
4085
- fields: [
4086
- {
4087
- name: 'isSol';
4088
- type: 'bool';
4089
- },
4090
- {
4091
- name: 'prizeType';
4092
- type: {
4093
- defined: {
4094
- name: 'prizeType';
4095
- };
4096
- };
4097
- }
4098
- ];
4099
- };
4100
- },
4101
- {
4102
- name: 'spinWheelResult';
4103
- type: {
4104
- kind: 'struct';
4105
- fields: [
4106
- {
4107
- name: 'player';
4108
- type: 'pubkey';
4109
- },
4110
- {
4111
- name: 'prize';
4112
- type: {
4113
- defined: {
4114
- name: 'prizeType';
4115
- };
4116
- };
4117
- },
4118
- {
4119
- name: 'amount';
4120
- type: 'u64';
4121
- }
4122
- ];
4123
- };
4124
- },
4125
- {
4126
- name: 'stakeRewards';
3079
+ name: 'stakeRewardsEvent';
4127
3080
  type: {
4128
3081
  kind: 'struct';
4129
3082
  fields: [