@triadxyz/triad-protocol 3.5.2-beta → 4.0.0

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.
@@ -617,8 +617,8 @@ export type TriadProtocol = {
617
617
  args: [];
618
618
  },
619
619
  {
620
- name: 'claimToken';
621
- discriminator: [116, 206, 27, 191, 166, 19, 0, 73];
620
+ name: 'closeOrderBook';
621
+ discriminator: [219, 134, 73, 219, 180, 7, 94, 206];
622
622
  accounts: [
623
623
  {
624
624
  name: 'signer';
@@ -626,103 +626,64 @@ export type TriadProtocol = {
626
626
  signer: true;
627
627
  },
628
628
  {
629
- name: 'payer';
629
+ name: 'squads';
630
+ writable: true;
631
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
632
+ },
633
+ {
634
+ name: 'market';
635
+ writable: true;
636
+ },
637
+ {
638
+ name: 'orderBook';
639
+ writable: true;
640
+ },
641
+ {
642
+ name: 'systemProgram';
643
+ address: '11111111111111111111111111111111';
644
+ }
645
+ ];
646
+ args: [];
647
+ },
648
+ {
649
+ name: 'collectMarketFee';
650
+ discriminator: [139, 4, 96, 182, 216, 250, 122, 79];
651
+ accounts: [
652
+ {
653
+ name: 'signer';
630
654
  writable: true;
631
655
  signer: true;
632
656
  },
633
657
  {
634
- name: 'claimVault';
658
+ name: 'squads';
635
659
  writable: true;
660
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
636
661
  },
637
662
  {
638
- name: 'claimedUser';
663
+ name: 'market';
639
664
  writable: true;
640
- pda: {
641
- seeds: [
642
- {
643
- kind: 'const';
644
- value: [99, 108, 97, 105, 109, 101, 100, 95, 117, 115, 101, 114];
645
- },
646
- {
647
- kind: 'account';
648
- path: 'claimVault';
649
- },
650
- {
651
- kind: 'account';
652
- path: 'signer';
653
- }
654
- ];
655
- };
656
665
  },
657
666
  {
658
- name: 'mint';
667
+ name: 'customerFeeRecipient';
659
668
  writable: true;
660
669
  },
661
670
  {
662
- name: 'claimVaultAta';
671
+ name: 'customer';
663
672
  writable: true;
664
- pda: {
665
- seeds: [
666
- {
667
- kind: 'account';
668
- path: 'claimVault';
669
- },
670
- {
671
- kind: 'account';
672
- path: 'tokenProgram';
673
- },
674
- {
675
- kind: 'account';
676
- path: 'mint';
677
- }
678
- ];
679
- program: {
680
- kind: 'const';
681
- value: [
682
- 140,
683
- 151,
684
- 37,
685
- 143,
686
- 78,
687
- 36,
688
- 137,
689
- 241,
690
- 187,
691
- 61,
692
- 16,
693
- 41,
694
- 20,
695
- 142,
696
- 13,
697
- 131,
698
- 11,
699
- 90,
700
- 19,
701
- 153,
702
- 218,
703
- 255,
704
- 16,
705
- 132,
706
- 4,
707
- 142,
708
- 123,
709
- 216,
710
- 219,
711
- 233,
712
- 248,
713
- 89
714
- ];
715
- };
716
- };
717
673
  },
718
674
  {
719
- name: 'userAta';
675
+ name: 'mint';
676
+ writable: true;
677
+ address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
678
+ },
679
+ {
680
+ name: 'marketAta';
720
681
  writable: true;
721
682
  pda: {
722
683
  seeds: [
723
684
  {
724
685
  kind: 'account';
725
- path: 'signer';
686
+ path: 'market';
726
687
  },
727
688
  {
728
689
  kind: 'account';
@@ -773,67 +734,13 @@ export type TriadProtocol = {
773
734
  };
774
735
  },
775
736
  {
776
- name: 'tokenProgram';
777
- },
778
- {
779
- name: 'associatedTokenProgram';
780
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
781
- },
782
- {
783
- name: 'systemProgram';
784
- address: '11111111111111111111111111111111';
785
- }
786
- ];
787
- args: [
788
- {
789
- name: 'args';
790
- type: {
791
- defined: {
792
- name: 'claimTokenArgs';
793
- };
794
- };
795
- }
796
- ];
797
- },
798
- {
799
- name: 'closeOrder';
800
- discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
801
- accounts: [
802
- {
803
- name: 'signer';
804
- writable: true;
805
- signer: true;
806
- },
807
- {
808
- name: 'payer';
809
- writable: true;
810
- signer: true;
811
- },
812
- {
813
- name: 'squads';
814
- writable: true;
815
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
816
- },
817
- {
818
- name: 'market';
819
- writable: true;
820
- },
821
- {
822
- name: 'order';
823
- writable: true;
824
- },
825
- {
826
- name: 'mint';
827
- writable: true;
828
- },
829
- {
830
- name: 'userAta';
737
+ name: 'squadsAta';
831
738
  writable: true;
832
739
  pda: {
833
740
  seeds: [
834
741
  {
835
742
  kind: 'account';
836
- path: 'signer';
743
+ path: 'squads';
837
744
  },
838
745
  {
839
746
  kind: 'account';
@@ -884,13 +791,13 @@ export type TriadProtocol = {
884
791
  };
885
792
  },
886
793
  {
887
- name: 'marketVault';
794
+ name: 'customerFeeRecipientAta';
888
795
  writable: true;
889
796
  pda: {
890
797
  seeds: [
891
798
  {
892
799
  kind: 'account';
893
- path: 'market';
800
+ path: 'customerFeeRecipient';
894
801
  },
895
802
  {
896
803
  kind: 'account';
@@ -942,7 +849,7 @@ export type TriadProtocol = {
942
849
  },
943
850
  {
944
851
  name: 'tokenProgram';
945
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
852
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
946
853
  },
947
854
  {
948
855
  name: 'associatedTokenProgram';
@@ -953,20 +860,11 @@ export type TriadProtocol = {
953
860
  address: '11111111111111111111111111111111';
954
861
  }
955
862
  ];
956
- args: [
957
- {
958
- name: 'orderDirection';
959
- type: {
960
- defined: {
961
- name: 'orderDirection';
962
- };
963
- };
964
- }
965
- ];
863
+ args: [];
966
864
  },
967
865
  {
968
- name: 'closeOrderBook';
969
- discriminator: [219, 134, 73, 219, 180, 7, 94, 206];
866
+ name: 'collectRoyalty';
867
+ discriminator: [189, 235, 7, 168, 255, 50, 30, 75];
970
868
  accounts: [
971
869
  {
972
870
  name: 'signer';
@@ -974,16 +872,12 @@ export type TriadProtocol = {
974
872
  signer: true;
975
873
  },
976
874
  {
977
- name: 'squads';
978
- writable: true;
979
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
980
- },
981
- {
982
- name: 'market';
875
+ name: 'poseidonFeeWallet';
983
876
  writable: true;
877
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
984
878
  },
985
879
  {
986
- name: 'orderBook';
880
+ name: 'collection';
987
881
  writable: true;
988
882
  },
989
883
  {
@@ -994,8 +888,8 @@ export type TriadProtocol = {
994
888
  args: [];
995
889
  },
996
890
  {
997
- name: 'collectMarketFee';
998
- discriminator: [139, 4, 96, 182, 216, 250, 122, 79];
891
+ name: 'createCentral';
892
+ discriminator: [32, 102, 101, 13, 255, 84, 147, 240];
999
893
  accounts: [
1000
894
  {
1001
895
  name: 'signer';
@@ -1003,565 +897,67 @@ export type TriadProtocol = {
1003
897
  signer: true;
1004
898
  },
1005
899
  {
1006
- name: 'squads';
1007
- writable: true;
1008
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
1009
- },
1010
- {
1011
- name: 'market';
1012
- writable: true;
1013
- },
1014
- {
1015
- name: 'stakeVault';
900
+ name: 'central';
1016
901
  writable: true;
1017
902
  pda: {
1018
903
  seeds: [
1019
904
  {
1020
905
  kind: 'const';
1021
- value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
906
+ value: [99, 101, 110, 116, 114, 97, 108];
1022
907
  },
1023
908
  {
1024
909
  kind: 'const';
1025
910
  value: [
1026
- 84,
911
+ 116,
1027
912
  114,
1028
913
  105,
1029
914
  97,
1030
915
  100,
1031
- 32,
1032
- 83,
1033
- 104,
916
+ 109,
1034
917
  97,
1035
918
  114,
919
+ 107,
1036
920
  101,
1037
- 32,
1038
- 49
921
+ 116,
922
+ 115
1039
923
  ];
1040
924
  }
1041
925
  ];
1042
926
  };
1043
927
  },
1044
- {
1045
- name: 'customerFeeRecipient';
1046
- writable: true;
1047
- },
1048
- {
1049
- name: 'customer';
1050
- writable: true;
1051
- },
1052
928
  {
1053
929
  name: 'mint';
1054
930
  writable: true;
1055
- address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
1056
- },
1057
- {
1058
- name: 'marketAta';
1059
- writable: true;
1060
- pda: {
1061
- seeds: [
1062
- {
1063
- kind: 'account';
1064
- path: 'market';
1065
- },
1066
- {
1067
- kind: 'account';
1068
- path: 'tokenProgram';
1069
- },
1070
- {
1071
- kind: 'account';
1072
- path: 'mint';
1073
- }
1074
- ];
1075
- program: {
1076
- kind: 'const';
1077
- value: [
1078
- 140,
1079
- 151,
1080
- 37,
1081
- 143,
1082
- 78,
1083
- 36,
1084
- 137,
1085
- 241,
1086
- 187,
1087
- 61,
1088
- 16,
1089
- 41,
1090
- 20,
1091
- 142,
1092
- 13,
1093
- 131,
1094
- 11,
1095
- 90,
1096
- 19,
1097
- 153,
1098
- 218,
1099
- 255,
1100
- 16,
1101
- 132,
1102
- 4,
1103
- 142,
1104
- 123,
1105
- 216,
1106
- 219,
1107
- 233,
1108
- 248,
1109
- 89
1110
- ];
1111
- };
1112
- };
1113
- },
1114
- {
1115
- name: 'squadsAta';
1116
- writable: true;
1117
- pda: {
1118
- seeds: [
1119
- {
1120
- kind: 'account';
1121
- path: 'squads';
1122
- },
1123
- {
1124
- kind: 'account';
1125
- path: 'tokenProgram';
1126
- },
1127
- {
1128
- kind: 'account';
1129
- path: 'mint';
1130
- }
1131
- ];
1132
- program: {
1133
- kind: 'const';
1134
- value: [
1135
- 140,
1136
- 151,
1137
- 37,
1138
- 143,
1139
- 78,
1140
- 36,
1141
- 137,
1142
- 241,
1143
- 187,
1144
- 61,
1145
- 16,
1146
- 41,
1147
- 20,
1148
- 142,
1149
- 13,
1150
- 131,
1151
- 11,
1152
- 90,
1153
- 19,
1154
- 153,
1155
- 218,
1156
- 255,
1157
- 16,
1158
- 132,
1159
- 4,
1160
- 142,
1161
- 123,
1162
- 216,
1163
- 219,
1164
- 233,
1165
- 248,
1166
- 89
1167
- ];
1168
- };
1169
- };
1170
- },
1171
- {
1172
- name: 'customerFeeRecipientAta';
1173
- writable: true;
1174
- pda: {
1175
- seeds: [
1176
- {
1177
- kind: 'account';
1178
- path: 'customerFeeRecipient';
1179
- },
1180
- {
1181
- kind: 'account';
1182
- path: 'tokenProgram';
1183
- },
1184
- {
1185
- kind: 'account';
1186
- path: 'mint';
1187
- }
1188
- ];
1189
- program: {
1190
- kind: 'const';
1191
- value: [
1192
- 140,
1193
- 151,
1194
- 37,
1195
- 143,
1196
- 78,
1197
- 36,
1198
- 137,
1199
- 241,
1200
- 187,
1201
- 61,
1202
- 16,
1203
- 41,
1204
- 20,
1205
- 142,
1206
- 13,
1207
- 131,
1208
- 11,
1209
- 90,
1210
- 19,
1211
- 153,
1212
- 218,
1213
- 255,
1214
- 16,
1215
- 132,
1216
- 4,
1217
- 142,
1218
- 123,
1219
- 216,
1220
- 219,
1221
- 233,
1222
- 248,
1223
- 89
1224
- ];
1225
- };
1226
- };
1227
- },
1228
- {
1229
- name: 'stakeVaultAta';
1230
- writable: true;
1231
- pda: {
1232
- seeds: [
1233
- {
1234
- kind: 'account';
1235
- path: 'stakeVault';
1236
- },
1237
- {
1238
- kind: 'account';
1239
- path: 'tokenProgram';
1240
- },
1241
- {
1242
- kind: 'account';
1243
- path: 'mint';
1244
- }
1245
- ];
1246
- program: {
1247
- kind: 'const';
1248
- value: [
1249
- 140,
1250
- 151,
1251
- 37,
1252
- 143,
1253
- 78,
1254
- 36,
1255
- 137,
1256
- 241,
1257
- 187,
1258
- 61,
1259
- 16,
1260
- 41,
1261
- 20,
1262
- 142,
1263
- 13,
1264
- 131,
1265
- 11,
1266
- 90,
1267
- 19,
1268
- 153,
1269
- 218,
1270
- 255,
1271
- 16,
1272
- 132,
1273
- 4,
1274
- 142,
1275
- 123,
1276
- 216,
1277
- 219,
1278
- 233,
1279
- 248,
1280
- 89
1281
- ];
1282
- };
1283
- };
1284
- },
1285
- {
1286
- name: 'tokenProgram';
1287
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1288
- },
1289
- {
1290
- name: 'associatedTokenProgram';
1291
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1292
- },
1293
- {
1294
- name: 'systemProgram';
1295
- address: '11111111111111111111111111111111';
1296
- }
1297
- ];
1298
- args: [];
1299
- },
1300
- {
1301
- name: 'collectRemainingLiquidity';
1302
- discriminator: [153, 107, 201, 83, 183, 195, 59, 186];
1303
- accounts: [
1304
- {
1305
- name: 'signer';
1306
- writable: true;
1307
- signer: true;
1308
- },
1309
- {
1310
- name: 'market';
1311
- writable: true;
1312
- },
1313
- {
1314
- name: 'mint';
1315
- writable: true;
1316
- },
1317
- {
1318
- name: 'marketAta';
1319
- writable: true;
1320
- pda: {
1321
- seeds: [
1322
- {
1323
- kind: 'account';
1324
- path: 'market';
1325
- },
1326
- {
1327
- kind: 'account';
1328
- path: 'tokenProgram';
1329
- },
1330
- {
1331
- kind: 'account';
1332
- path: 'mint';
1333
- }
1334
- ];
1335
- program: {
1336
- kind: 'const';
1337
- value: [
1338
- 140,
1339
- 151,
1340
- 37,
1341
- 143,
1342
- 78,
1343
- 36,
1344
- 137,
1345
- 241,
1346
- 187,
1347
- 61,
1348
- 16,
1349
- 41,
1350
- 20,
1351
- 142,
1352
- 13,
1353
- 131,
1354
- 11,
1355
- 90,
1356
- 19,
1357
- 153,
1358
- 218,
1359
- 255,
1360
- 16,
1361
- 132,
1362
- 4,
1363
- 142,
1364
- 123,
1365
- 216,
1366
- 219,
1367
- 233,
1368
- 248,
1369
- 89
1370
- ];
1371
- };
1372
- };
1373
- },
1374
- {
1375
- name: 'signerAta';
1376
- writable: true;
1377
- pda: {
1378
- seeds: [
1379
- {
1380
- kind: 'account';
1381
- path: 'signer';
1382
- },
1383
- {
1384
- kind: 'account';
1385
- path: 'tokenProgram';
1386
- },
1387
- {
1388
- kind: 'account';
1389
- path: 'mint';
1390
- }
1391
- ];
1392
- program: {
1393
- kind: 'const';
1394
- value: [
1395
- 140,
1396
- 151,
1397
- 37,
1398
- 143,
1399
- 78,
1400
- 36,
1401
- 137,
1402
- 241,
1403
- 187,
1404
- 61,
1405
- 16,
1406
- 41,
1407
- 20,
1408
- 142,
1409
- 13,
1410
- 131,
1411
- 11,
1412
- 90,
1413
- 19,
1414
- 153,
1415
- 218,
1416
- 255,
1417
- 16,
1418
- 132,
1419
- 4,
1420
- 142,
1421
- 123,
1422
- 216,
1423
- 219,
1424
- 233,
1425
- 248,
1426
- 89
1427
- ];
1428
- };
1429
- };
1430
- },
1431
- {
1432
- name: 'tokenProgram';
1433
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1434
- },
1435
- {
1436
- name: 'associatedTokenProgram';
1437
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1438
- },
1439
- {
1440
- name: 'systemProgram';
1441
- address: '11111111111111111111111111111111';
1442
- }
1443
- ];
1444
- args: [];
1445
- },
1446
- {
1447
- name: 'collectRoyalty';
1448
- discriminator: [189, 235, 7, 168, 255, 50, 30, 75];
1449
- accounts: [
1450
- {
1451
- name: 'signer';
1452
- writable: true;
1453
- signer: true;
1454
- },
1455
- {
1456
- name: 'poseidonFeeWallet';
1457
- writable: true;
1458
- address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
1459
- },
1460
- {
1461
- name: 'collection';
1462
- writable: true;
1463
- },
1464
- {
1465
- name: 'systemProgram';
1466
- address: '11111111111111111111111111111111';
1467
- }
1468
- ];
1469
- args: [];
1470
- },
1471
- {
1472
- name: 'createClaimVault';
1473
- discriminator: [16, 216, 88, 237, 77, 170, 154, 66];
1474
- accounts: [
1475
- {
1476
- name: 'signer';
1477
- writable: true;
1478
- signer: true;
1479
- },
1480
- {
1481
- name: 'claimVault';
1482
- writable: true;
1483
931
  pda: {
1484
932
  seeds: [
1485
933
  {
1486
934
  kind: 'const';
1487
- value: [99, 108, 97, 105, 109, 95, 118, 97, 117, 108, 116];
1488
- },
1489
- {
1490
- kind: 'arg';
1491
- path: 'args.name';
1492
- }
1493
- ];
1494
- };
1495
- },
1496
- {
1497
- name: 'mint';
1498
- writable: true;
1499
- },
1500
- {
1501
- name: 'signerAta';
1502
- writable: true;
1503
- pda: {
1504
- seeds: [
1505
- {
1506
- kind: 'account';
1507
- path: 'signer';
1508
- },
1509
- {
1510
- kind: 'account';
1511
- path: 'tokenProgram';
1512
- },
1513
- {
1514
- kind: 'account';
1515
- path: 'mint';
935
+ value: [
936
+ 116,
937
+ 114,
938
+ 105,
939
+ 97,
940
+ 100,
941
+ 109,
942
+ 97,
943
+ 114,
944
+ 107,
945
+ 101,
946
+ 116,
947
+ 115
948
+ ];
1516
949
  }
1517
950
  ];
1518
- program: {
1519
- kind: 'const';
1520
- value: [
1521
- 140,
1522
- 151,
1523
- 37,
1524
- 143,
1525
- 78,
1526
- 36,
1527
- 137,
1528
- 241,
1529
- 187,
1530
- 61,
1531
- 16,
1532
- 41,
1533
- 20,
1534
- 142,
1535
- 13,
1536
- 131,
1537
- 11,
1538
- 90,
1539
- 19,
1540
- 153,
1541
- 218,
1542
- 255,
1543
- 16,
1544
- 132,
1545
- 4,
1546
- 142,
1547
- 123,
1548
- 216,
1549
- 219,
1550
- 233,
1551
- 248,
1552
- 89
1553
- ];
1554
- };
1555
951
  };
1556
952
  },
1557
953
  {
1558
- name: 'claimVaultAta';
954
+ name: 'userAta';
1559
955
  writable: true;
1560
956
  pda: {
1561
957
  seeds: [
1562
958
  {
1563
959
  kind: 'account';
1564
- path: 'claimVault';
960
+ path: 'central';
1565
961
  },
1566
962
  {
1567
963
  kind: 'account';
@@ -1613,6 +1009,7 @@ export type TriadProtocol = {
1613
1009
  },
1614
1010
  {
1615
1011
  name: 'tokenProgram';
1012
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1616
1013
  },
1617
1014
  {
1618
1015
  name: 'associatedTokenProgram';
@@ -1623,16 +1020,7 @@ export type TriadProtocol = {
1623
1020
  address: '11111111111111111111111111111111';
1624
1021
  }
1625
1022
  ];
1626
- args: [
1627
- {
1628
- name: 'args';
1629
- type: {
1630
- defined: {
1631
- name: 'createClaimVaultArgs';
1632
- };
1633
- };
1634
- }
1635
- ];
1023
+ args: [];
1636
1024
  },
1637
1025
  {
1638
1026
  name: 'createCustomer';
@@ -1659,23 +1047,6 @@ export type TriadProtocol = {
1659
1047
  ];
1660
1048
  };
1661
1049
  },
1662
- {
1663
- name: 'stake';
1664
- writable: true;
1665
- optional: true;
1666
- pda: {
1667
- seeds: [
1668
- {
1669
- kind: 'const';
1670
- value: [115, 116, 97, 107, 101, 95, 118, 51];
1671
- },
1672
- {
1673
- kind: 'account';
1674
- path: 'signer';
1675
- }
1676
- ];
1677
- };
1678
- },
1679
1050
  {
1680
1051
  name: 'systemProgram';
1681
1052
  address: '11111111111111111111111111111111';
@@ -1902,6 +1273,56 @@ export type TriadProtocol = {
1902
1273
  }
1903
1274
  ];
1904
1275
  },
1276
+ {
1277
+ name: 'createPredictor';
1278
+ discriminator: [53, 24, 4, 123, 101, 28, 27, 45];
1279
+ accounts: [
1280
+ {
1281
+ name: 'signer';
1282
+ writable: true;
1283
+ signer: true;
1284
+ },
1285
+ {
1286
+ name: 'payer';
1287
+ writable: true;
1288
+ signer: true;
1289
+ },
1290
+ {
1291
+ name: 'predictor';
1292
+ writable: true;
1293
+ pda: {
1294
+ seeds: [
1295
+ {
1296
+ kind: 'const';
1297
+ value: [112, 114, 101, 100, 105, 99, 116, 111, 114];
1298
+ },
1299
+ {
1300
+ kind: 'account';
1301
+ path: 'signer';
1302
+ },
1303
+ {
1304
+ kind: 'arg';
1305
+ path: 'args.customer';
1306
+ }
1307
+ ];
1308
+ };
1309
+ },
1310
+ {
1311
+ name: 'systemProgram';
1312
+ address: '11111111111111111111111111111111';
1313
+ }
1314
+ ];
1315
+ args: [
1316
+ {
1317
+ name: 'args';
1318
+ type: {
1319
+ defined: {
1320
+ name: 'createPredictorArgs';
1321
+ };
1322
+ };
1323
+ }
1324
+ ];
1325
+ },
1905
1326
  {
1906
1327
  name: 'marketAskOrder';
1907
1328
  discriminator: [189, 66, 162, 254, 3, 85, 152, 54];
@@ -2110,195 +1531,26 @@ export type TriadProtocol = {
2110
1531
  255,
2111
1532
  16,
2112
1533
  132,
2113
- 4,
2114
- 142,
2115
- 123,
2116
- 216,
2117
- 219,
2118
- 233,
2119
- 248,
2120
- 89
2121
- ];
2122
- };
2123
- };
2124
- },
2125
- {
2126
- name: 'sellerAta';
2127
- writable: true;
2128
- pda: {
2129
- seeds: [
2130
- {
2131
- kind: 'account';
2132
- path: 'bookOrderAskAuthority';
2133
- },
2134
- {
2135
- kind: 'account';
2136
- path: 'tokenProgram';
2137
- },
2138
- {
2139
- kind: 'account';
2140
- path: 'mint';
2141
- }
2142
- ];
2143
- program: {
2144
- kind: 'const';
2145
- value: [
2146
- 140,
2147
- 151,
2148
- 37,
2149
- 143,
2150
- 78,
2151
- 36,
2152
- 137,
2153
- 241,
2154
- 187,
2155
- 61,
2156
- 16,
2157
- 41,
2158
- 20,
2159
- 142,
2160
- 13,
2161
- 131,
2162
- 11,
2163
- 90,
2164
- 19,
2165
- 153,
2166
- 218,
2167
- 255,
2168
- 16,
2169
- 132,
2170
- 4,
2171
- 142,
2172
- 123,
2173
- 216,
2174
- 219,
2175
- 233,
2176
- 248,
2177
- 89
2178
- ];
2179
- };
2180
- };
2181
- },
2182
- {
2183
- name: 'marketAta';
2184
- writable: true;
2185
- pda: {
2186
- seeds: [
2187
- {
2188
- kind: 'account';
2189
- path: 'market';
2190
- },
2191
- {
2192
- kind: 'account';
2193
- path: 'tokenProgram';
2194
- },
2195
- {
2196
- kind: 'account';
2197
- path: 'mint';
2198
- }
2199
- ];
2200
- program: {
2201
- kind: 'const';
2202
- value: [
2203
- 140,
2204
- 151,
2205
- 37,
2206
- 143,
2207
- 78,
2208
- 36,
2209
- 137,
2210
- 241,
2211
- 187,
2212
- 61,
2213
- 16,
2214
- 41,
2215
- 20,
2216
- 142,
2217
- 13,
2218
- 131,
2219
- 11,
2220
- 90,
2221
- 19,
2222
- 153,
2223
- 218,
2224
- 255,
2225
- 16,
2226
- 132,
2227
- 4,
2228
- 142,
2229
- 123,
2230
- 216,
2231
- 219,
2232
- 233,
2233
- 248,
2234
- 89
2235
- ];
2236
- };
2237
- };
2238
- },
2239
- {
2240
- name: 'tokenProgram';
2241
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
2242
- },
2243
- {
2244
- name: 'associatedTokenProgram';
2245
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
2246
- },
2247
- {
2248
- name: 'systemProgram';
2249
- address: '11111111111111111111111111111111';
2250
- }
2251
- ];
2252
- args: [
2253
- {
2254
- name: 'args';
2255
- type: {
2256
- defined: {
2257
- name: 'marketBidOrderArgs';
1534
+ 4,
1535
+ 142,
1536
+ 123,
1537
+ 216,
1538
+ 219,
1539
+ 233,
1540
+ 248,
1541
+ 89
1542
+ ];
2258
1543
  };
2259
1544
  };
2260
- }
2261
- ];
2262
- },
2263
- {
2264
- name: 'openOrder';
2265
- discriminator: [206, 88, 88, 143, 38, 136, 50, 224];
2266
- accounts: [
2267
- {
2268
- name: 'signer';
2269
- writable: true;
2270
- signer: true;
2271
- },
2272
- {
2273
- name: 'payer';
2274
- writable: true;
2275
- signer: true;
2276
- },
2277
- {
2278
- name: 'squads';
2279
- writable: true;
2280
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
2281
- },
2282
- {
2283
- name: 'market';
2284
- writable: true;
2285
1545
  },
2286
1546
  {
2287
- name: 'order';
2288
- writable: true;
2289
- },
2290
- {
2291
- name: 'mint';
2292
- writable: true;
2293
- },
2294
- {
2295
- name: 'userFromAta';
1547
+ name: 'sellerAta';
2296
1548
  writable: true;
2297
1549
  pda: {
2298
1550
  seeds: [
2299
1551
  {
2300
1552
  kind: 'account';
2301
- path: 'signer';
1553
+ path: 'bookOrderAskAuthority';
2302
1554
  },
2303
1555
  {
2304
1556
  kind: 'account';
@@ -2349,7 +1601,7 @@ export type TriadProtocol = {
2349
1601
  };
2350
1602
  },
2351
1603
  {
2352
- name: 'marketToAta';
1604
+ name: 'marketAta';
2353
1605
  writable: true;
2354
1606
  pda: {
2355
1607
  seeds: [
@@ -2407,7 +1659,7 @@ export type TriadProtocol = {
2407
1659
  },
2408
1660
  {
2409
1661
  name: 'tokenProgram';
2410
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1662
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
2411
1663
  },
2412
1664
  {
2413
1665
  name: 'associatedTokenProgram';
@@ -2423,7 +1675,7 @@ export type TriadProtocol = {
2423
1675
  name: 'args';
2424
1676
  type: {
2425
1677
  defined: {
2426
- name: 'openOrderArgs';
1678
+ name: 'marketBidOrderArgs';
2427
1679
  };
2428
1680
  };
2429
1681
  }
@@ -2458,6 +1710,7 @@ export type TriadProtocol = {
2458
1710
  {
2459
1711
  name: 'mint';
2460
1712
  writable: true;
1713
+ address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
2461
1714
  },
2462
1715
  {
2463
1716
  name: 'userAta';
@@ -2925,38 +2178,6 @@ export type TriadProtocol = {
2925
2178
  }
2926
2179
  ];
2927
2180
  },
2928
- {
2929
- name: 'stakeAuthority';
2930
- discriminator: [246, 215, 84, 204, 198, 135, 235, 247];
2931
- accounts: [
2932
- {
2933
- name: 'signer';
2934
- writable: true;
2935
- signer: true;
2936
- },
2937
- {
2938
- name: 'stake';
2939
- writable: true;
2940
- pda: {
2941
- seeds: [
2942
- {
2943
- kind: 'const';
2944
- value: [115, 116, 97, 107, 101, 95, 118, 51];
2945
- },
2946
- {
2947
- kind: 'account';
2948
- path: 'signer';
2949
- }
2950
- ];
2951
- };
2952
- },
2953
- {
2954
- name: 'systemProgram';
2955
- address: '11111111111111111111111111111111';
2956
- }
2957
- ];
2958
- args: [];
2959
- },
2960
2181
  {
2961
2182
  name: 'stakeToken';
2962
2183
  discriminator: [191, 127, 193, 101, 37, 96, 87, 211];
@@ -3340,225 +2561,29 @@ export type TriadProtocol = {
3340
2561
  4,
3341
2562
  142,
3342
2563
  123,
3343
- 216,
3344
- 219,
3345
- 233,
3346
- 248,
3347
- 89
3348
- ];
3349
- };
3350
- };
3351
- },
3352
- {
3353
- name: 'tokenProgram';
3354
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
3355
- },
3356
- {
3357
- name: 'associatedTokenProgram';
3358
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
3359
- },
3360
- {
3361
- name: 'systemProgram';
3362
- address: '11111111111111111111111111111111';
3363
- }
3364
- ];
3365
- args: [];
3366
- },
3367
- {
3368
- name: 'updateClaimVaultAmount';
3369
- discriminator: [97, 2, 93, 198, 31, 248, 174, 52];
3370
- accounts: [
3371
- {
3372
- name: 'signer';
3373
- writable: true;
3374
- signer: true;
3375
- },
3376
- {
3377
- name: 'claimVault';
3378
- writable: true;
3379
- },
3380
- {
3381
- name: 'mint';
3382
- writable: true;
3383
- },
3384
- {
3385
- name: 'signerAta';
3386
- writable: true;
3387
- pda: {
3388
- seeds: [
3389
- {
3390
- kind: 'account';
3391
- path: 'signer';
3392
- },
3393
- {
3394
- kind: 'account';
3395
- path: 'tokenProgram';
3396
- },
3397
- {
3398
- kind: 'account';
3399
- path: 'mint';
3400
- }
3401
- ];
3402
- program: {
3403
- kind: 'const';
3404
- value: [
3405
- 140,
3406
- 151,
3407
- 37,
3408
- 143,
3409
- 78,
3410
- 36,
3411
- 137,
3412
- 241,
3413
- 187,
3414
- 61,
3415
- 16,
3416
- 41,
3417
- 20,
3418
- 142,
3419
- 13,
3420
- 131,
3421
- 11,
3422
- 90,
3423
- 19,
3424
- 153,
3425
- 218,
3426
- 255,
3427
- 16,
3428
- 132,
3429
- 4,
3430
- 142,
3431
- 123,
3432
- 216,
3433
- 219,
3434
- 233,
3435
- 248,
3436
- 89
3437
- ];
3438
- };
3439
- };
3440
- },
3441
- {
3442
- name: 'claimVaultAta';
3443
- writable: true;
3444
- pda: {
3445
- seeds: [
3446
- {
3447
- kind: 'account';
3448
- path: 'claimVault';
3449
- },
3450
- {
3451
- kind: 'account';
3452
- path: 'tokenProgram';
3453
- },
3454
- {
3455
- kind: 'account';
3456
- path: 'mint';
3457
- }
3458
- ];
3459
- program: {
3460
- kind: 'const';
3461
- value: [
3462
- 140,
3463
- 151,
3464
- 37,
3465
- 143,
3466
- 78,
3467
- 36,
3468
- 137,
3469
- 241,
3470
- 187,
3471
- 61,
3472
- 16,
3473
- 41,
3474
- 20,
3475
- 142,
3476
- 13,
3477
- 131,
3478
- 11,
3479
- 90,
3480
- 19,
3481
- 153,
3482
- 218,
3483
- 255,
3484
- 16,
3485
- 132,
3486
- 4,
3487
- 142,
3488
- 123,
3489
- 216,
3490
- 219,
3491
- 233,
3492
- 248,
3493
- 89
3494
- ];
3495
- };
3496
- };
3497
- },
3498
- {
3499
- name: 'tokenProgram';
3500
- },
3501
- {
3502
- name: 'associatedTokenProgram';
3503
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
3504
- },
3505
- {
3506
- name: 'systemProgram';
3507
- address: '11111111111111111111111111111111';
3508
- }
3509
- ];
3510
- args: [
3511
- {
3512
- name: 'args';
3513
- type: {
3514
- defined: {
3515
- name: 'updateClaimVaultAmountArgs';
3516
- };
3517
- };
3518
- }
3519
- ];
3520
- },
3521
- {
3522
- name: 'updateClaimVaultEndTs';
3523
- discriminator: [69, 164, 251, 168, 155, 22, 198, 189];
3524
- accounts: [
3525
- {
3526
- name: 'signer';
3527
- writable: true;
3528
- signer: true;
2564
+ 216,
2565
+ 219,
2566
+ 233,
2567
+ 248,
2568
+ 89
2569
+ ];
2570
+ };
2571
+ };
3529
2572
  },
3530
2573
  {
3531
- name: 'claimVault';
3532
- writable: true;
3533
- }
3534
- ];
3535
- args: [
3536
- {
3537
- name: 'endTs';
3538
- type: 'i64';
3539
- }
3540
- ];
3541
- },
3542
- {
3543
- name: 'updateClaimVaultIsActive';
3544
- discriminator: [122, 240, 207, 89, 71, 29, 176, 103];
3545
- accounts: [
3546
- {
3547
- name: 'signer';
3548
- writable: true;
3549
- signer: true;
2574
+ name: 'tokenProgram';
2575
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
3550
2576
  },
3551
2577
  {
3552
- name: 'claimVault';
3553
- writable: true;
3554
- }
3555
- ];
3556
- args: [
2578
+ name: 'associatedTokenProgram';
2579
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
2580
+ },
3557
2581
  {
3558
- name: 'isActive';
3559
- type: 'bool';
2582
+ name: 'systemProgram';
2583
+ address: '11111111111111111111111111111111';
3560
2584
  }
3561
2585
  ];
2586
+ args: [];
3562
2587
  },
3563
2588
  {
3564
2589
  name: 'updateCustomerFee';
@@ -3626,6 +2651,26 @@ export type TriadProtocol = {
3626
2651
  }
3627
2652
  ];
3628
2653
  },
2654
+ {
2655
+ name: 'updateMarketFee';
2656
+ discriminator: [129, 5, 190, 195, 114, 138, 95, 93];
2657
+ accounts: [
2658
+ {
2659
+ name: 'signer';
2660
+ writable: true;
2661
+ signer: true;
2662
+ },
2663
+ {
2664
+ name: 'market';
2665
+ writable: true;
2666
+ },
2667
+ {
2668
+ name: 'systemProgram';
2669
+ address: '11111111111111111111111111111111';
2670
+ }
2671
+ ];
2672
+ args: [];
2673
+ },
3629
2674
  {
3630
2675
  name: 'updateMarketPayout';
3631
2676
  discriminator: [10, 209, 221, 170, 158, 103, 104, 57];
@@ -3691,11 +2736,6 @@ export type TriadProtocol = {
3691
2736
  name: 'market';
3692
2737
  writable: true;
3693
2738
  },
3694
- {
3695
- name: 'pool';
3696
- writable: true;
3697
- optional: true;
3698
- },
3699
2739
  {
3700
2740
  name: 'systemProgram';
3701
2741
  address: '11111111111111111111111111111111';
@@ -3776,57 +2816,6 @@ export type TriadProtocol = {
3776
2816
  }
3777
2817
  ];
3778
2818
  },
3779
- {
3780
- name: 'updateStakeVaultIsLocked';
3781
- discriminator: [239, 65, 219, 190, 157, 173, 139, 226];
3782
- accounts: [
3783
- {
3784
- name: 'signer';
3785
- writable: true;
3786
- signer: true;
3787
- },
3788
- {
3789
- name: 'stakeVault';
3790
- writable: true;
3791
- pda: {
3792
- seeds: [
3793
- {
3794
- kind: 'const';
3795
- value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
3796
- },
3797
- {
3798
- kind: 'const';
3799
- value: [
3800
- 84,
3801
- 114,
3802
- 105,
3803
- 97,
3804
- 100,
3805
- 32,
3806
- 83,
3807
- 104,
3808
- 97,
3809
- 114,
3810
- 101,
3811
- 32,
3812
- 49
3813
- ];
3814
- }
3815
- ];
3816
- };
3817
- },
3818
- {
3819
- name: 'systemProgram';
3820
- address: '11111111111111111111111111111111';
3821
- }
3822
- ];
3823
- args: [
3824
- {
3825
- name: 'isLocked';
3826
- type: 'bool';
3827
- }
3828
- ];
3829
- },
3830
2819
  {
3831
2820
  name: 'withdrawPoseidon';
3832
2821
  discriminator: [63, 55, 48, 174, 44, 202, 11, 227];
@@ -3874,12 +2863,8 @@ export type TriadProtocol = {
3874
2863
  discriminator: [0, 0, 0, 0, 0, 0, 0, 0];
3875
2864
  },
3876
2865
  {
3877
- name: 'claimVault';
3878
- discriminator: [154, 74, 122, 191, 197, 171, 227, 248];
3879
- },
3880
- {
3881
- name: 'claimedUser';
3882
- discriminator: [160, 7, 160, 134, 104, 87, 137, 13];
2866
+ name: 'central';
2867
+ discriminator: [100, 179, 89, 248, 1, 82, 133, 24];
3883
2868
  },
3884
2869
  {
3885
2870
  name: 'collection';
@@ -3909,6 +2894,10 @@ export type TriadProtocol = {
3909
2894
  name: 'pool';
3910
2895
  discriminator: [241, 154, 109, 4, 17, 177, 109, 188];
3911
2896
  },
2897
+ {
2898
+ name: 'predictor';
2899
+ discriminator: [220, 240, 153, 14, 72, 188, 37, 21];
2900
+ },
3912
2901
  {
3913
2902
  name: 'stakeV3';
3914
2903
  discriminator: [33, 54, 166, 108, 88, 184, 96, 190];
@@ -3923,6 +2912,10 @@ export type TriadProtocol = {
3923
2912
  }
3924
2913
  ];
3925
2914
  events: [
2915
+ {
2916
+ name: 'activityEvent';
2917
+ discriminator: [231, 225, 142, 104, 209, 97, 39, 202];
2918
+ },
3926
2919
  {
3927
2920
  name: 'bookOrderEvent';
3928
2921
  discriminator: [175, 216, 61, 224, 98, 215, 181, 62];
@@ -3947,10 +2940,6 @@ export type TriadProtocol = {
3947
2940
  name: 'marketFeeEvent';
3948
2941
  discriminator: [191, 148, 93, 112, 63, 139, 16, 186];
3949
2942
  },
3950
- {
3951
- name: 'orderEvent';
3952
- discriminator: [209, 51, 146, 206, 88, 127, 112, 69];
3953
- },
3954
2943
  {
3955
2944
  name: 'poolEvent';
3956
2945
  discriminator: [76, 227, 205, 183, 1, 218, 164, 244];
@@ -4102,6 +3091,70 @@ export type TriadProtocol = {
4102
3091
  }
4103
3092
  ];
4104
3093
  types: [
3094
+ {
3095
+ name: 'activityEvent';
3096
+ type: {
3097
+ kind: 'struct';
3098
+ fields: [
3099
+ {
3100
+ name: 'authority';
3101
+ type: 'pubkey';
3102
+ },
3103
+ {
3104
+ name: 'marketId';
3105
+ type: 'u64';
3106
+ },
3107
+ {
3108
+ name: 'orderDirection';
3109
+ type: {
3110
+ defined: {
3111
+ name: 'orderDirection';
3112
+ };
3113
+ };
3114
+ },
3115
+ {
3116
+ name: 'orderSide';
3117
+ type: {
3118
+ defined: {
3119
+ name: 'orderSide';
3120
+ };
3121
+ };
3122
+ },
3123
+ {
3124
+ name: 'orderType';
3125
+ type: {
3126
+ defined: {
3127
+ name: 'orderType';
3128
+ };
3129
+ };
3130
+ },
3131
+ {
3132
+ name: 'orderStatus';
3133
+ type: {
3134
+ defined: {
3135
+ name: 'orderStatus';
3136
+ };
3137
+ };
3138
+ },
3139
+ {
3140
+ name: 'price';
3141
+ type: 'u64';
3142
+ },
3143
+ {
3144
+ name: 'shares';
3145
+ type: 'u64';
3146
+ },
3147
+ {
3148
+ name: 'fee';
3149
+ type: 'u64';
3150
+ },
3151
+ {
3152
+ name: 'timestamp';
3153
+ type: 'i64';
3154
+ }
3155
+ ];
3156
+ };
3157
+ },
4105
3158
  {
4106
3159
  name: 'baseAssetV1';
4107
3160
  type: {
@@ -4315,20 +3368,18 @@ export type TriadProtocol = {
4315
3368
  };
4316
3369
  },
4317
3370
  {
4318
- name: 'claimTokenArgs';
3371
+ name: 'central';
4319
3372
  type: {
4320
3373
  kind: 'struct';
4321
3374
  fields: [
4322
3375
  {
4323
- name: 'amount';
4324
- type: 'u64';
3376
+ name: 'bump';
3377
+ type: 'u8';
4325
3378
  },
4326
3379
  {
4327
- name: 'merkleProof';
3380
+ name: 'padding';
4328
3381
  type: {
4329
- vec: {
4330
- array: ['u8', 32];
4331
- };
3382
+ array: ['u8', 320];
4332
3383
  };
4333
3384
  }
4334
3385
  ];
@@ -4338,102 +3389,26 @@ export type TriadProtocol = {
4338
3389
  name: 'claimTokenEvent';
4339
3390
  type: {
4340
3391
  kind: 'struct';
4341
- fields: [
4342
- {
4343
- name: 'user';
4344
- type: 'pubkey';
4345
- },
4346
- {
4347
- name: 'claimVault';
4348
- type: 'pubkey';
4349
- },
4350
- {
4351
- name: 'mint';
4352
- type: 'pubkey';
4353
- },
4354
- {
4355
- name: 'amount';
4356
- type: 'u64';
4357
- },
4358
- {
4359
- name: 'timestamp';
4360
- type: 'i64';
4361
- }
4362
- ];
4363
- };
4364
- },
4365
- {
4366
- name: 'claimVault';
4367
- type: {
4368
- kind: 'struct';
4369
- fields: [
4370
- {
4371
- name: 'bump';
4372
- type: 'u8';
4373
- },
4374
- {
4375
- name: 'authority';
4376
- type: 'pubkey';
4377
- },
4378
- {
4379
- name: 'initTs';
4380
- type: 'i64';
4381
- },
4382
- {
4383
- name: 'endTs';
4384
- type: 'i64';
4385
- },
4386
- {
4387
- name: 'totalAmount';
4388
- type: 'u64';
4389
- },
4390
- {
4391
- name: 'totalClaimed';
4392
- type: 'u64';
4393
- },
4394
- {
4395
- name: 'totalUsers';
4396
- type: 'u64';
4397
- },
4398
- {
4399
- name: 'claimedUsers';
4400
- type: 'u64';
4401
- },
4402
- {
4403
- name: 'tokenPerUser';
4404
- type: 'u64';
4405
- },
4406
- {
4407
- name: 'mint';
4408
- type: 'pubkey';
4409
- },
4410
- {
4411
- name: 'isActive';
4412
- type: 'bool';
4413
- },
3392
+ fields: [
4414
3393
  {
4415
- name: 'name';
4416
- type: 'string';
3394
+ name: 'user';
3395
+ type: 'pubkey';
4417
3396
  },
4418
3397
  {
4419
- name: 'isFirstComeFirstServed';
4420
- type: 'bool';
3398
+ name: 'claimVault';
3399
+ type: 'pubkey';
4421
3400
  },
4422
3401
  {
4423
- name: 'merkleRoot';
4424
- type: {
4425
- array: ['u8', 32];
4426
- };
3402
+ name: 'mint';
3403
+ type: 'pubkey';
4427
3404
  },
4428
3405
  {
4429
- name: 'ts';
4430
- type: 'i64';
3406
+ name: 'amount';
3407
+ type: 'u64';
4431
3408
  },
4432
3409
  {
4433
- name: 'padding';
4434
- type: {
4435
- array: ['u8', 24];
4436
- };
3410
+ name: 'timestamp';
3411
+ type: 'i64';
4437
3412
  }
4438
3413
  ];
4439
3414
  };
@@ -4504,30 +3479,6 @@ export type TriadProtocol = {
4504
3479
  ];
4505
3480
  };
4506
3481
  },
4507
- {
4508
- name: 'claimedUser';
4509
- type: {
4510
- kind: 'struct';
4511
- fields: [
4512
- {
4513
- name: 'user';
4514
- type: 'pubkey';
4515
- },
4516
- {
4517
- name: 'claimVault';
4518
- type: 'pubkey';
4519
- },
4520
- {
4521
- name: 'amount';
4522
- type: 'u64';
4523
- },
4524
- {
4525
- name: 'ts';
4526
- type: 'i64';
4527
- }
4528
- ];
4529
- };
4530
- },
4531
3482
  {
4532
3483
  name: 'collectMarketFeeEvent';
4533
3484
  type: {
@@ -4541,10 +3492,6 @@ export type TriadProtocol = {
4541
3492
  name: 'triadFee';
4542
3493
  type: 'u64';
4543
3494
  },
4544
- {
4545
- name: 'revShareFee';
4546
- type: 'u64';
4547
- },
4548
3495
  {
4549
3496
  name: 'customerId';
4550
3497
  type: 'u16';
@@ -4598,42 +3545,6 @@ export type TriadProtocol = {
4598
3545
  ];
4599
3546
  };
4600
3547
  },
4601
- {
4602
- name: 'createClaimVaultArgs';
4603
- type: {
4604
- kind: 'struct';
4605
- fields: [
4606
- {
4607
- name: 'totalAmount';
4608
- type: 'u64';
4609
- },
4610
- {
4611
- name: 'totalUsers';
4612
- type: 'u64';
4613
- },
4614
- {
4615
- name: 'name';
4616
- type: 'string';
4617
- },
4618
- {
4619
- name: 'isFirstComeFirstServed';
4620
- type: 'bool';
4621
- },
4622
- {
4623
- name: 'endTs';
4624
- type: 'i64';
4625
- },
4626
- {
4627
- name: 'merkleRoot';
4628
- type: {
4629
- option: {
4630
- array: ['u8', 32];
4631
- };
4632
- };
4633
- }
4634
- ];
4635
- };
4636
- },
4637
3548
  {
4638
3549
  name: 'createCustomerArgs';
4639
3550
  type: {
@@ -4688,6 +3599,14 @@ export type TriadProtocol = {
4688
3599
  {
4689
3600
  name: 'payoutFee';
4690
3601
  type: 'u16';
3602
+ },
3603
+ {
3604
+ name: 'preOrdersAvailable';
3605
+ type: 'u64';
3606
+ },
3607
+ {
3608
+ name: 'preMarketEndTs';
3609
+ type: 'i64';
4691
3610
  }
4692
3611
  ];
4693
3612
  };
@@ -4716,6 +3635,26 @@ export type TriadProtocol = {
4716
3635
  ];
4717
3636
  };
4718
3637
  },
3638
+ {
3639
+ name: 'createPredictorArgs';
3640
+ type: {
3641
+ kind: 'struct';
3642
+ fields: [
3643
+ {
3644
+ name: 'authority';
3645
+ type: 'pubkey';
3646
+ },
3647
+ {
3648
+ name: 'refer';
3649
+ type: 'pubkey';
3650
+ },
3651
+ {
3652
+ name: 'customer';
3653
+ type: 'u16';
3654
+ }
3655
+ ];
3656
+ };
3657
+ },
4719
3658
  {
4720
3659
  name: 'customer';
4721
3660
  type: {
@@ -5119,21 +4058,21 @@ export type TriadProtocol = {
5119
4058
  type: 'u64';
5120
4059
  },
5121
4060
  {
5122
- name: 'padding1';
5123
- type: {
5124
- array: ['u8', 8];
5125
- };
4061
+ name: 'preOrdersAvailable';
4062
+ type: 'u64';
5126
4063
  },
5127
4064
  {
5128
- name: 'padding2';
5129
- type: {
5130
- array: ['u8', 8];
5131
- };
4065
+ name: 'preOrdersClaimed';
4066
+ type: 'u64';
4067
+ },
4068
+ {
4069
+ name: 'preMarketEndTs';
4070
+ type: 'i64';
5132
4071
  },
5133
4072
  {
5134
4073
  name: 'padding';
5135
4074
  type: {
5136
- array: ['u8', 32];
4075
+ array: ['u8', 24];
5137
4076
  };
5138
4077
  }
5139
4078
  ];
@@ -5146,30 +4085,6 @@ export type TriadProtocol = {
5146
4085
  fields: [];
5147
4086
  };
5148
4087
  },
5149
- {
5150
- name: 'openOrderArgs';
5151
- type: {
5152
- kind: 'struct';
5153
- fields: [
5154
- {
5155
- name: 'amount';
5156
- type: 'u64';
5157
- },
5158
- {
5159
- name: 'marketId';
5160
- type: 'u64';
5161
- },
5162
- {
5163
- name: 'orderDirection';
5164
- type: {
5165
- defined: {
5166
- name: 'orderDirection';
5167
- };
5168
- };
5169
- }
5170
- ];
5171
- };
5172
- },
5173
4088
  {
5174
4089
  name: 'orderBook';
5175
4090
  serialization: 'bytemuck';
@@ -5244,66 +4159,6 @@ export type TriadProtocol = {
5244
4159
  ];
5245
4160
  };
5246
4161
  },
5247
- {
5248
- name: 'orderEvent';
5249
- type: {
5250
- kind: 'struct';
5251
- fields: [
5252
- {
5253
- name: 'authority';
5254
- type: 'pubkey';
5255
- },
5256
- {
5257
- name: 'marketId';
5258
- type: 'u64';
5259
- },
5260
- {
5261
- name: 'orderDirection';
5262
- type: {
5263
- defined: {
5264
- name: 'orderDirection';
5265
- };
5266
- };
5267
- },
5268
- {
5269
- name: 'orderSide';
5270
- type: {
5271
- defined: {
5272
- name: 'orderSide';
5273
- };
5274
- };
5275
- },
5276
- {
5277
- name: 'orderType';
5278
- type: {
5279
- defined: {
5280
- name: 'orderType';
5281
- };
5282
- };
5283
- },
5284
- {
5285
- name: 'orderStatus';
5286
- type: {
5287
- defined: {
5288
- name: 'orderStatus';
5289
- };
5290
- };
5291
- },
5292
- {
5293
- name: 'price';
5294
- type: 'u64';
5295
- },
5296
- {
5297
- name: 'shares';
5298
- type: 'u64';
5299
- },
5300
- {
5301
- name: 'timestamp';
5302
- type: 'i64';
5303
- }
5304
- ];
5305
- };
5306
- },
5307
4162
  {
5308
4163
  name: 'orderSide';
5309
4164
  type: {
@@ -5490,12 +4345,16 @@ export type TriadProtocol = {
5490
4345
  type: 'pubkey';
5491
4346
  },
5492
4347
  {
5493
- name: 'isFast';
5494
- type: 'bool';
4348
+ name: 'padding1';
4349
+ type: {
4350
+ array: ['u8', 1];
4351
+ };
5495
4352
  },
5496
4353
  {
5497
- name: 'isFastMarketActive';
5498
- type: 'bool';
4354
+ name: 'padding2';
4355
+ type: {
4356
+ array: ['u8', 1];
4357
+ };
5499
4358
  },
5500
4359
  {
5501
4360
  name: 'padding';
@@ -5521,17 +4380,35 @@ export type TriadProtocol = {
5521
4380
  array: ['u8', 80];
5522
4381
  };
5523
4382
  },
4383
+ {
4384
+ name: 'authority';
4385
+ type: 'pubkey';
4386
+ }
4387
+ ];
4388
+ };
4389
+ },
4390
+ {
4391
+ name: 'predictor';
4392
+ type: {
4393
+ kind: 'struct';
4394
+ fields: [
5524
4395
  {
5525
4396
  name: 'authority';
5526
4397
  type: 'pubkey';
5527
4398
  },
5528
4399
  {
5529
- name: 'isFast';
5530
- type: 'bool';
4400
+ name: 'refer';
4401
+ type: 'pubkey';
5531
4402
  },
5532
4403
  {
5533
- name: 'isFastMarketActive';
5534
- type: 'bool';
4404
+ name: 'customer';
4405
+ type: 'u16';
4406
+ },
4407
+ {
4408
+ name: 'padding';
4409
+ type: {
4410
+ array: ['u8', 64];
4411
+ };
5535
4412
  }
5536
4413
  ];
5537
4414
  };
@@ -5791,28 +4668,6 @@ export type TriadProtocol = {
5791
4668
  ];
5792
4669
  };
5793
4670
  },
5794
- {
5795
- name: 'updateClaimVaultAmountArgs';
5796
- type: {
5797
- kind: 'struct';
5798
- fields: [
5799
- {
5800
- name: 'amount';
5801
- type: 'u64';
5802
- },
5803
- {
5804
- name: 'newUsers';
5805
- type: 'u64';
5806
- },
5807
- {
5808
- name: 'merkleRoot';
5809
- type: {
5810
- array: ['u8', 32];
5811
- };
5812
- }
5813
- ];
5814
- };
5815
- },
5816
4671
  {
5817
4672
  name: 'updateCustomerFeeArgs';
5818
4673
  type: {