@triadxyz/triad-protocol 3.1.1-beta → 3.1.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.
@@ -13,6 +13,183 @@ export type TriadProtocol = {
13
13
  description: 'Triad protocol, trade solana projects';
14
14
  };
15
15
  instructions: [
16
+ {
17
+ name: 'addStakeVaultRewards';
18
+ discriminator: [172, 165, 203, 126, 211, 227, 75, 40];
19
+ accounts: [
20
+ {
21
+ name: 'signer';
22
+ writable: true;
23
+ signer: true;
24
+ },
25
+ {
26
+ name: 'stakeVault';
27
+ writable: true;
28
+ pda: {
29
+ seeds: [
30
+ {
31
+ kind: 'const';
32
+ value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
33
+ },
34
+ {
35
+ kind: 'const';
36
+ value: [
37
+ 84,
38
+ 114,
39
+ 105,
40
+ 97,
41
+ 100,
42
+ 32,
43
+ 83,
44
+ 104,
45
+ 97,
46
+ 114,
47
+ 101,
48
+ 32,
49
+ 49
50
+ ];
51
+ }
52
+ ];
53
+ };
54
+ },
55
+ {
56
+ name: 'mint';
57
+ writable: true;
58
+ },
59
+ {
60
+ name: 'userAta';
61
+ writable: true;
62
+ pda: {
63
+ seeds: [
64
+ {
65
+ kind: 'account';
66
+ path: 'signer';
67
+ },
68
+ {
69
+ kind: 'account';
70
+ path: 'tokenProgram';
71
+ },
72
+ {
73
+ kind: 'account';
74
+ path: 'mint';
75
+ }
76
+ ];
77
+ program: {
78
+ kind: 'const';
79
+ value: [
80
+ 140,
81
+ 151,
82
+ 37,
83
+ 143,
84
+ 78,
85
+ 36,
86
+ 137,
87
+ 241,
88
+ 187,
89
+ 61,
90
+ 16,
91
+ 41,
92
+ 20,
93
+ 142,
94
+ 13,
95
+ 131,
96
+ 11,
97
+ 90,
98
+ 19,
99
+ 153,
100
+ 218,
101
+ 255,
102
+ 16,
103
+ 132,
104
+ 4,
105
+ 142,
106
+ 123,
107
+ 216,
108
+ 219,
109
+ 233,
110
+ 248,
111
+ 89
112
+ ];
113
+ };
114
+ };
115
+ },
116
+ {
117
+ name: 'stakeVaultAta';
118
+ writable: true;
119
+ pda: {
120
+ seeds: [
121
+ {
122
+ kind: 'account';
123
+ path: 'stakeVault';
124
+ },
125
+ {
126
+ kind: 'account';
127
+ path: 'tokenProgram';
128
+ },
129
+ {
130
+ kind: 'account';
131
+ path: 'mint';
132
+ }
133
+ ];
134
+ program: {
135
+ kind: 'const';
136
+ value: [
137
+ 140,
138
+ 151,
139
+ 37,
140
+ 143,
141
+ 78,
142
+ 36,
143
+ 137,
144
+ 241,
145
+ 187,
146
+ 61,
147
+ 16,
148
+ 41,
149
+ 20,
150
+ 142,
151
+ 13,
152
+ 131,
153
+ 11,
154
+ 90,
155
+ 19,
156
+ 153,
157
+ 218,
158
+ 255,
159
+ 16,
160
+ 132,
161
+ 4,
162
+ 142,
163
+ 123,
164
+ 216,
165
+ 219,
166
+ 233,
167
+ 248,
168
+ 89
169
+ ];
170
+ };
171
+ };
172
+ },
173
+ {
174
+ name: 'tokenProgram';
175
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
176
+ },
177
+ {
178
+ name: 'associatedTokenProgram';
179
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
180
+ },
181
+ {
182
+ name: 'systemProgram';
183
+ address: '11111111111111111111111111111111';
184
+ }
185
+ ];
186
+ args: [
187
+ {
188
+ name: 'amount';
189
+ type: 'u64';
190
+ }
191
+ ];
192
+ },
16
193
  {
17
194
  name: 'addTraderPoseidon';
18
195
  discriminator: [34, 241, 88, 67, 66, 83, 83, 134];
@@ -111,6 +288,7 @@ export type TriadProtocol = {
111
288
  {
112
289
  name: 'mint';
113
290
  writable: true;
291
+ address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
114
292
  },
115
293
  {
116
294
  name: 'userAta';
@@ -228,6 +406,7 @@ export type TriadProtocol = {
228
406
  },
229
407
  {
230
408
  name: 'tokenProgram';
409
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
231
410
  },
232
411
  {
233
412
  name: 'associatedTokenProgram';
@@ -309,7 +488,7 @@ export type TriadProtocol = {
309
488
  writable: true;
310
489
  },
311
490
  {
312
- name: 'fromAta';
491
+ name: 'stakeVaultAta';
313
492
  writable: true;
314
493
  pda: {
315
494
  seeds: [
@@ -366,7 +545,7 @@ export type TriadProtocol = {
366
545
  };
367
546
  },
368
547
  {
369
- name: 'toAta';
548
+ name: 'userAta';
370
549
  writable: true;
371
550
  pda: {
372
551
  seeds: [
@@ -438,8 +617,8 @@ export type TriadProtocol = {
438
617
  args: [];
439
618
  },
440
619
  {
441
- name: 'closeOrder';
442
- discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
620
+ name: 'claimToken';
621
+ discriminator: [116, 206, 27, 191, 166, 19, 0, 73];
443
622
  accounts: [
444
623
  {
445
624
  name: 'signer';
@@ -447,30 +626,46 @@ export type TriadProtocol = {
447
626
  signer: true;
448
627
  },
449
628
  {
450
- name: 'squads';
629
+ name: 'payer';
451
630
  writable: true;
452
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
631
+ signer: true;
453
632
  },
454
633
  {
455
- name: 'userTrade';
634
+ name: 'claimVault';
456
635
  writable: true;
457
636
  },
458
637
  {
459
- name: 'market';
638
+ name: 'claimedUser';
460
639
  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
+ };
461
656
  },
462
657
  {
463
658
  name: 'mint';
464
659
  writable: true;
465
660
  },
466
661
  {
467
- name: 'userAta';
662
+ name: 'claimVaultAta';
468
663
  writable: true;
469
664
  pda: {
470
665
  seeds: [
471
666
  {
472
667
  kind: 'account';
473
- path: 'signer';
668
+ path: 'claimVault';
474
669
  },
475
670
  {
476
671
  kind: 'account';
@@ -521,13 +716,13 @@ export type TriadProtocol = {
521
716
  };
522
717
  },
523
718
  {
524
- name: 'marketVault';
719
+ name: 'userAta';
525
720
  writable: true;
526
721
  pda: {
527
722
  seeds: [
528
723
  {
529
724
  kind: 'account';
530
- path: 'market';
725
+ path: 'signer';
531
726
  },
532
727
  {
533
728
  kind: 'account';
@@ -579,7 +774,6 @@ export type TriadProtocol = {
579
774
  },
580
775
  {
581
776
  name: 'tokenProgram';
582
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
583
777
  },
584
778
  {
585
779
  name: 'associatedTokenProgram';
@@ -592,14 +786,18 @@ export type TriadProtocol = {
592
786
  ];
593
787
  args: [
594
788
  {
595
- name: 'orderId';
596
- type: 'u64';
789
+ name: 'args';
790
+ type: {
791
+ defined: {
792
+ name: 'claimTokenArgs';
793
+ };
794
+ };
597
795
  }
598
796
  ];
599
797
  },
600
798
  {
601
- name: 'closeOrderBook';
602
- discriminator: [219, 134, 73, 219, 180, 7, 94, 206];
799
+ name: 'closeOrder';
800
+ discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
603
801
  accounts: [
604
802
  {
605
803
  name: 'signer';
@@ -612,58 +810,25 @@ export type TriadProtocol = {
612
810
  address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
613
811
  },
614
812
  {
615
- name: 'market';
616
- writable: true;
617
- },
618
- {
619
- name: 'orderBook';
620
- writable: true;
621
- },
622
- {
623
- name: 'systemProgram';
624
- address: '11111111111111111111111111111111';
625
- }
626
- ];
627
- args: [];
628
- },
629
- {
630
- name: 'collectMarketFee';
631
- discriminator: [139, 4, 96, 182, 216, 250, 122, 79];
632
- accounts: [
633
- {
634
- name: 'signer';
635
- writable: true;
636
- signer: true;
637
- },
638
- {
639
- name: 'squads';
813
+ name: 'userTrade';
640
814
  writable: true;
641
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
642
815
  },
643
816
  {
644
817
  name: 'market';
645
818
  writable: true;
646
819
  },
647
- {
648
- name: 'customerFeeRecipient';
649
- writable: true;
650
- },
651
- {
652
- name: 'customer';
653
- writable: true;
654
- },
655
820
  {
656
821
  name: 'mint';
657
822
  writable: true;
658
823
  },
659
824
  {
660
- name: 'marketAta';
825
+ name: 'userAta';
661
826
  writable: true;
662
827
  pda: {
663
828
  seeds: [
664
829
  {
665
830
  kind: 'account';
666
- path: 'market';
831
+ path: 'signer';
667
832
  },
668
833
  {
669
834
  kind: 'account';
@@ -714,13 +879,13 @@ export type TriadProtocol = {
714
879
  };
715
880
  },
716
881
  {
717
- name: 'squadsAta';
882
+ name: 'marketVault';
718
883
  writable: true;
719
884
  pda: {
720
885
  seeds: [
721
886
  {
722
887
  kind: 'account';
723
- path: 'squads';
888
+ path: 'market';
724
889
  },
725
890
  {
726
891
  kind: 'account';
@@ -771,13 +936,122 @@ export type TriadProtocol = {
771
936
  };
772
937
  },
773
938
  {
774
- name: 'customerAta';
939
+ name: 'tokenProgram';
940
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
941
+ },
942
+ {
943
+ name: 'associatedTokenProgram';
944
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
945
+ },
946
+ {
947
+ name: 'systemProgram';
948
+ address: '11111111111111111111111111111111';
949
+ }
950
+ ];
951
+ args: [
952
+ {
953
+ name: 'orderId';
954
+ type: 'u64';
955
+ }
956
+ ];
957
+ },
958
+ {
959
+ name: 'closeOrderBook';
960
+ discriminator: [219, 134, 73, 219, 180, 7, 94, 206];
961
+ accounts: [
962
+ {
963
+ name: 'signer';
964
+ writable: true;
965
+ signer: true;
966
+ },
967
+ {
968
+ name: 'squads';
969
+ writable: true;
970
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
971
+ },
972
+ {
973
+ name: 'market';
974
+ writable: true;
975
+ },
976
+ {
977
+ name: 'orderBook';
978
+ writable: true;
979
+ },
980
+ {
981
+ name: 'systemProgram';
982
+ address: '11111111111111111111111111111111';
983
+ }
984
+ ];
985
+ args: [];
986
+ },
987
+ {
988
+ name: 'collectMarketFee';
989
+ discriminator: [139, 4, 96, 182, 216, 250, 122, 79];
990
+ accounts: [
991
+ {
992
+ name: 'signer';
993
+ writable: true;
994
+ signer: true;
995
+ },
996
+ {
997
+ name: 'squads';
998
+ writable: true;
999
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
1000
+ },
1001
+ {
1002
+ name: 'market';
1003
+ writable: true;
1004
+ },
1005
+ {
1006
+ name: 'stakeVault';
1007
+ writable: true;
1008
+ pda: {
1009
+ seeds: [
1010
+ {
1011
+ kind: 'const';
1012
+ value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
1013
+ },
1014
+ {
1015
+ kind: 'const';
1016
+ value: [
1017
+ 84,
1018
+ 114,
1019
+ 105,
1020
+ 97,
1021
+ 100,
1022
+ 32,
1023
+ 83,
1024
+ 104,
1025
+ 97,
1026
+ 114,
1027
+ 101,
1028
+ 32,
1029
+ 49
1030
+ ];
1031
+ }
1032
+ ];
1033
+ };
1034
+ },
1035
+ {
1036
+ name: 'customerFeeRecipient';
1037
+ writable: true;
1038
+ },
1039
+ {
1040
+ name: 'customer';
1041
+ writable: true;
1042
+ },
1043
+ {
1044
+ name: 'mint';
1045
+ writable: true;
1046
+ },
1047
+ {
1048
+ name: 'marketAta';
775
1049
  writable: true;
776
1050
  pda: {
777
1051
  seeds: [
778
1052
  {
779
1053
  kind: 'account';
780
- path: 'customerFeeRecipient';
1054
+ path: 'market';
781
1055
  },
782
1056
  {
783
1057
  kind: 'account';
@@ -828,49 +1102,13 @@ export type TriadProtocol = {
828
1102
  };
829
1103
  },
830
1104
  {
831
- name: 'tokenProgram';
832
- },
833
- {
834
- name: 'associatedTokenProgram';
835
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
836
- },
837
- {
838
- name: 'systemProgram';
839
- address: '11111111111111111111111111111111';
840
- }
841
- ];
842
- args: [];
843
- },
844
- {
845
- name: 'collectRemainingLiquidity';
846
- discriminator: [153, 107, 201, 83, 183, 195, 59, 186];
847
- accounts: [
848
- {
849
- name: 'signer';
850
- writable: true;
851
- signer: true;
852
- },
853
- {
854
- name: 'squads';
855
- writable: true;
856
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
857
- },
858
- {
859
- name: 'market';
860
- writable: true;
861
- },
862
- {
863
- name: 'mint';
864
- writable: true;
865
- },
866
- {
867
- name: 'marketAta';
1105
+ name: 'squadsAta';
868
1106
  writable: true;
869
1107
  pda: {
870
1108
  seeds: [
871
1109
  {
872
1110
  kind: 'account';
873
- path: 'market';
1111
+ path: 'squads';
874
1112
  },
875
1113
  {
876
1114
  kind: 'account';
@@ -921,13 +1159,13 @@ export type TriadProtocol = {
921
1159
  };
922
1160
  },
923
1161
  {
924
- name: 'squadsAta';
1162
+ name: 'customerFeeRecipientAta';
925
1163
  writable: true;
926
1164
  pda: {
927
1165
  seeds: [
928
1166
  {
929
1167
  kind: 'account';
930
- path: 'squads';
1168
+ path: 'customerFeeRecipient';
931
1169
  },
932
1170
  {
933
1171
  kind: 'account';
@@ -979,7 +1217,6 @@ export type TriadProtocol = {
979
1217
  },
980
1218
  {
981
1219
  name: 'tokenProgram';
982
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
983
1220
  },
984
1221
  {
985
1222
  name: 'associatedTokenProgram';
@@ -1018,66 +1255,8 @@ export type TriadProtocol = {
1018
1255
  args: [];
1019
1256
  },
1020
1257
  {
1021
- name: 'createCustomer';
1022
- discriminator: [120, 122, 113, 216, 95, 207, 252, 147];
1023
- accounts: [
1024
- {
1025
- name: 'signer';
1026
- writable: true;
1027
- signer: true;
1028
- },
1029
- {
1030
- name: 'customer';
1031
- writable: true;
1032
- pda: {
1033
- seeds: [
1034
- {
1035
- kind: 'const';
1036
- value: [99, 117, 115, 116, 111, 109, 101, 114];
1037
- },
1038
- {
1039
- kind: 'arg';
1040
- path: 'args.id';
1041
- }
1042
- ];
1043
- };
1044
- },
1045
- {
1046
- name: 'stake';
1047
- writable: true;
1048
- optional: true;
1049
- pda: {
1050
- seeds: [
1051
- {
1052
- kind: 'const';
1053
- value: [115, 116, 97, 107, 101, 95, 118, 51];
1054
- },
1055
- {
1056
- kind: 'account';
1057
- path: 'signer';
1058
- }
1059
- ];
1060
- };
1061
- },
1062
- {
1063
- name: 'systemProgram';
1064
- address: '11111111111111111111111111111111';
1065
- }
1066
- ];
1067
- args: [
1068
- {
1069
- name: 'args';
1070
- type: {
1071
- defined: {
1072
- name: 'createCustomerArgs';
1073
- };
1074
- };
1075
- }
1076
- ];
1077
- },
1078
- {
1079
- name: 'createMarket';
1080
- discriminator: [103, 226, 97, 235, 200, 188, 251, 254];
1258
+ name: 'createClaimVault';
1259
+ discriminator: [16, 216, 88, 237, 77, 170, 154, 66];
1081
1260
  accounts: [
1082
1261
  {
1083
1262
  name: 'signer';
@@ -1085,31 +1264,17 @@ export type TriadProtocol = {
1085
1264
  signer: true;
1086
1265
  },
1087
1266
  {
1088
- name: 'squads';
1089
- writable: true;
1090
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
1091
- },
1092
- {
1093
- name: 'customer';
1094
- writable: true;
1095
- },
1096
- {
1097
- name: 'pool';
1098
- writable: true;
1099
- optional: true;
1100
- },
1101
- {
1102
- name: 'market';
1267
+ name: 'claimVault';
1103
1268
  writable: true;
1104
1269
  pda: {
1105
1270
  seeds: [
1106
1271
  {
1107
1272
  kind: 'const';
1108
- value: [109, 97, 114, 107, 101, 116];
1273
+ value: [99, 108, 97, 105, 109, 95, 118, 97, 117, 108, 116];
1109
1274
  },
1110
1275
  {
1111
1276
  kind: 'arg';
1112
- path: 'args.market_id';
1277
+ path: 'args.name';
1113
1278
  }
1114
1279
  ];
1115
1280
  };
@@ -1117,16 +1282,15 @@ export type TriadProtocol = {
1117
1282
  {
1118
1283
  name: 'mint';
1119
1284
  writable: true;
1120
- address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
1121
1285
  },
1122
1286
  {
1123
- name: 'marketToAta';
1287
+ name: 'signerAta';
1124
1288
  writable: true;
1125
1289
  pda: {
1126
1290
  seeds: [
1127
1291
  {
1128
1292
  kind: 'account';
1129
- path: 'market';
1293
+ path: 'signer';
1130
1294
  },
1131
1295
  {
1132
1296
  kind: 'account';
@@ -1177,24 +1341,263 @@ export type TriadProtocol = {
1177
1341
  };
1178
1342
  },
1179
1343
  {
1180
- name: 'tokenProgram';
1181
- },
1182
- {
1183
- name: 'associatedTokenProgram';
1184
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1185
- },
1186
- {
1187
- name: 'systemProgram';
1188
- address: '11111111111111111111111111111111';
1189
- }
1190
- ];
1191
- args: [
1192
- {
1193
- name: 'args';
1194
- type: {
1195
- defined: {
1196
- name: 'createMarketArgs';
1197
- };
1344
+ name: 'claimVaultAta';
1345
+ writable: true;
1346
+ pda: {
1347
+ seeds: [
1348
+ {
1349
+ kind: 'account';
1350
+ path: 'claimVault';
1351
+ },
1352
+ {
1353
+ kind: 'account';
1354
+ path: 'tokenProgram';
1355
+ },
1356
+ {
1357
+ kind: 'account';
1358
+ path: 'mint';
1359
+ }
1360
+ ];
1361
+ program: {
1362
+ kind: 'const';
1363
+ value: [
1364
+ 140,
1365
+ 151,
1366
+ 37,
1367
+ 143,
1368
+ 78,
1369
+ 36,
1370
+ 137,
1371
+ 241,
1372
+ 187,
1373
+ 61,
1374
+ 16,
1375
+ 41,
1376
+ 20,
1377
+ 142,
1378
+ 13,
1379
+ 131,
1380
+ 11,
1381
+ 90,
1382
+ 19,
1383
+ 153,
1384
+ 218,
1385
+ 255,
1386
+ 16,
1387
+ 132,
1388
+ 4,
1389
+ 142,
1390
+ 123,
1391
+ 216,
1392
+ 219,
1393
+ 233,
1394
+ 248,
1395
+ 89
1396
+ ];
1397
+ };
1398
+ };
1399
+ },
1400
+ {
1401
+ name: 'tokenProgram';
1402
+ },
1403
+ {
1404
+ name: 'associatedTokenProgram';
1405
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1406
+ },
1407
+ {
1408
+ name: 'systemProgram';
1409
+ address: '11111111111111111111111111111111';
1410
+ }
1411
+ ];
1412
+ args: [
1413
+ {
1414
+ name: 'args';
1415
+ type: {
1416
+ defined: {
1417
+ name: 'createClaimVaultArgs';
1418
+ };
1419
+ };
1420
+ }
1421
+ ];
1422
+ },
1423
+ {
1424
+ name: 'createCustomer';
1425
+ discriminator: [120, 122, 113, 216, 95, 207, 252, 147];
1426
+ accounts: [
1427
+ {
1428
+ name: 'signer';
1429
+ writable: true;
1430
+ signer: true;
1431
+ },
1432
+ {
1433
+ name: 'customer';
1434
+ writable: true;
1435
+ pda: {
1436
+ seeds: [
1437
+ {
1438
+ kind: 'const';
1439
+ value: [99, 117, 115, 116, 111, 109, 101, 114];
1440
+ },
1441
+ {
1442
+ kind: 'arg';
1443
+ path: 'args.id';
1444
+ }
1445
+ ];
1446
+ };
1447
+ },
1448
+ {
1449
+ name: 'stake';
1450
+ writable: true;
1451
+ optional: true;
1452
+ pda: {
1453
+ seeds: [
1454
+ {
1455
+ kind: 'const';
1456
+ value: [115, 116, 97, 107, 101, 95, 118, 51];
1457
+ },
1458
+ {
1459
+ kind: 'account';
1460
+ path: 'signer';
1461
+ }
1462
+ ];
1463
+ };
1464
+ },
1465
+ {
1466
+ name: 'systemProgram';
1467
+ address: '11111111111111111111111111111111';
1468
+ }
1469
+ ];
1470
+ args: [
1471
+ {
1472
+ name: 'args';
1473
+ type: {
1474
+ defined: {
1475
+ name: 'createCustomerArgs';
1476
+ };
1477
+ };
1478
+ }
1479
+ ];
1480
+ },
1481
+ {
1482
+ name: 'createMarket';
1483
+ discriminator: [103, 226, 97, 235, 200, 188, 251, 254];
1484
+ accounts: [
1485
+ {
1486
+ name: 'signer';
1487
+ writable: true;
1488
+ signer: true;
1489
+ },
1490
+ {
1491
+ name: 'squads';
1492
+ writable: true;
1493
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
1494
+ },
1495
+ {
1496
+ name: 'customer';
1497
+ writable: true;
1498
+ },
1499
+ {
1500
+ name: 'pool';
1501
+ writable: true;
1502
+ optional: true;
1503
+ },
1504
+ {
1505
+ name: 'market';
1506
+ writable: true;
1507
+ pda: {
1508
+ seeds: [
1509
+ {
1510
+ kind: 'const';
1511
+ value: [109, 97, 114, 107, 101, 116];
1512
+ },
1513
+ {
1514
+ kind: 'arg';
1515
+ path: 'args.market_id';
1516
+ }
1517
+ ];
1518
+ };
1519
+ },
1520
+ {
1521
+ name: 'mint';
1522
+ writable: true;
1523
+ address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
1524
+ },
1525
+ {
1526
+ name: 'marketToAta';
1527
+ writable: true;
1528
+ pda: {
1529
+ seeds: [
1530
+ {
1531
+ kind: 'account';
1532
+ path: 'market';
1533
+ },
1534
+ {
1535
+ kind: 'account';
1536
+ path: 'tokenProgram';
1537
+ },
1538
+ {
1539
+ kind: 'account';
1540
+ path: 'mint';
1541
+ }
1542
+ ];
1543
+ program: {
1544
+ kind: 'const';
1545
+ value: [
1546
+ 140,
1547
+ 151,
1548
+ 37,
1549
+ 143,
1550
+ 78,
1551
+ 36,
1552
+ 137,
1553
+ 241,
1554
+ 187,
1555
+ 61,
1556
+ 16,
1557
+ 41,
1558
+ 20,
1559
+ 142,
1560
+ 13,
1561
+ 131,
1562
+ 11,
1563
+ 90,
1564
+ 19,
1565
+ 153,
1566
+ 218,
1567
+ 255,
1568
+ 16,
1569
+ 132,
1570
+ 4,
1571
+ 142,
1572
+ 123,
1573
+ 216,
1574
+ 219,
1575
+ 233,
1576
+ 248,
1577
+ 89
1578
+ ];
1579
+ };
1580
+ };
1581
+ },
1582
+ {
1583
+ name: 'tokenProgram';
1584
+ },
1585
+ {
1586
+ name: 'associatedTokenProgram';
1587
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1588
+ },
1589
+ {
1590
+ name: 'systemProgram';
1591
+ address: '11111111111111111111111111111111';
1592
+ }
1593
+ ];
1594
+ args: [
1595
+ {
1596
+ name: 'args';
1597
+ type: {
1598
+ defined: {
1599
+ name: 'createMarketArgs';
1600
+ };
1198
1601
  };
1199
1602
  }
1200
1603
  ];
@@ -1348,31 +1751,272 @@ export type TriadProtocol = {
1348
1751
  signer: true;
1349
1752
  },
1350
1753
  {
1351
- name: 'userTrade';
1352
- writable: true;
1353
- pda: {
1354
- seeds: [
1355
- {
1356
- kind: 'const';
1357
- value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
1358
- },
1359
- {
1360
- kind: 'account';
1361
- path: 'signer';
1362
- }
1363
- ];
1364
- };
1754
+ name: 'userTrade';
1755
+ writable: true;
1756
+ pda: {
1757
+ seeds: [
1758
+ {
1759
+ kind: 'const';
1760
+ value: [117, 115, 101, 114, 95, 116, 114, 97, 100, 101];
1761
+ },
1762
+ {
1763
+ kind: 'account';
1764
+ path: 'signer';
1765
+ }
1766
+ ];
1767
+ };
1768
+ },
1769
+ {
1770
+ name: 'systemProgram';
1771
+ address: '11111111111111111111111111111111';
1772
+ }
1773
+ ];
1774
+ args: [];
1775
+ },
1776
+ {
1777
+ name: 'marketAskOrder';
1778
+ discriminator: [189, 66, 162, 254, 3, 85, 152, 54];
1779
+ accounts: [
1780
+ {
1781
+ name: 'signer';
1782
+ writable: true;
1783
+ signer: true;
1784
+ },
1785
+ {
1786
+ name: 'market';
1787
+ writable: true;
1788
+ },
1789
+ {
1790
+ name: 'orderBook';
1791
+ writable: true;
1792
+ },
1793
+ {
1794
+ name: 'squads';
1795
+ writable: true;
1796
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
1797
+ },
1798
+ {
1799
+ name: 'buyerAuthority';
1800
+ writable: true;
1801
+ },
1802
+ {
1803
+ name: 'sellerTrade';
1804
+ writable: true;
1805
+ },
1806
+ {
1807
+ name: 'buyerTrade';
1808
+ writable: true;
1809
+ },
1810
+ {
1811
+ name: 'mint';
1812
+ writable: true;
1813
+ },
1814
+ {
1815
+ name: 'sellerAta';
1816
+ writable: true;
1817
+ pda: {
1818
+ seeds: [
1819
+ {
1820
+ kind: 'account';
1821
+ path: 'signer';
1822
+ },
1823
+ {
1824
+ kind: 'account';
1825
+ path: 'tokenProgram';
1826
+ },
1827
+ {
1828
+ kind: 'account';
1829
+ path: 'mint';
1830
+ }
1831
+ ];
1832
+ program: {
1833
+ kind: 'const';
1834
+ value: [
1835
+ 140,
1836
+ 151,
1837
+ 37,
1838
+ 143,
1839
+ 78,
1840
+ 36,
1841
+ 137,
1842
+ 241,
1843
+ 187,
1844
+ 61,
1845
+ 16,
1846
+ 41,
1847
+ 20,
1848
+ 142,
1849
+ 13,
1850
+ 131,
1851
+ 11,
1852
+ 90,
1853
+ 19,
1854
+ 153,
1855
+ 218,
1856
+ 255,
1857
+ 16,
1858
+ 132,
1859
+ 4,
1860
+ 142,
1861
+ 123,
1862
+ 216,
1863
+ 219,
1864
+ 233,
1865
+ 248,
1866
+ 89
1867
+ ];
1868
+ };
1869
+ };
1870
+ },
1871
+ {
1872
+ name: 'marketAta';
1873
+ writable: true;
1874
+ },
1875
+ {
1876
+ name: 'tokenProgram';
1877
+ },
1878
+ {
1879
+ name: 'associatedTokenProgram';
1880
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1881
+ },
1882
+ {
1883
+ name: 'systemProgram';
1884
+ address: '11111111111111111111111111111111';
1885
+ }
1886
+ ];
1887
+ args: [
1888
+ {
1889
+ name: 'args';
1890
+ type: {
1891
+ defined: {
1892
+ name: 'marketAskOrderArgs';
1893
+ };
1894
+ };
1895
+ }
1896
+ ];
1897
+ },
1898
+ {
1899
+ name: 'marketAskOrderV1';
1900
+ discriminator: [232, 254, 180, 215, 149, 178, 211, 216];
1901
+ accounts: [
1902
+ {
1903
+ name: 'signer';
1904
+ writable: true;
1905
+ signer: true;
1906
+ },
1907
+ {
1908
+ name: 'market';
1909
+ writable: true;
1910
+ },
1911
+ {
1912
+ name: 'orderBook';
1913
+ writable: true;
1914
+ },
1915
+ {
1916
+ name: 'buyerAuthority';
1917
+ writable: true;
1918
+ },
1919
+ {
1920
+ name: 'sellerTrade';
1921
+ writable: true;
1922
+ },
1923
+ {
1924
+ name: 'buyerTrade';
1925
+ writable: true;
1926
+ },
1927
+ {
1928
+ name: 'mint';
1929
+ writable: true;
1930
+ address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
1931
+ },
1932
+ {
1933
+ name: 'sellerAta';
1934
+ writable: true;
1935
+ pda: {
1936
+ seeds: [
1937
+ {
1938
+ kind: 'account';
1939
+ path: 'signer';
1940
+ },
1941
+ {
1942
+ kind: 'account';
1943
+ path: 'tokenProgram';
1944
+ },
1945
+ {
1946
+ kind: 'account';
1947
+ path: 'mint';
1948
+ }
1949
+ ];
1950
+ program: {
1951
+ kind: 'const';
1952
+ value: [
1953
+ 140,
1954
+ 151,
1955
+ 37,
1956
+ 143,
1957
+ 78,
1958
+ 36,
1959
+ 137,
1960
+ 241,
1961
+ 187,
1962
+ 61,
1963
+ 16,
1964
+ 41,
1965
+ 20,
1966
+ 142,
1967
+ 13,
1968
+ 131,
1969
+ 11,
1970
+ 90,
1971
+ 19,
1972
+ 153,
1973
+ 218,
1974
+ 255,
1975
+ 16,
1976
+ 132,
1977
+ 4,
1978
+ 142,
1979
+ 123,
1980
+ 216,
1981
+ 219,
1982
+ 233,
1983
+ 248,
1984
+ 89
1985
+ ];
1986
+ };
1987
+ };
1988
+ },
1989
+ {
1990
+ name: 'marketAta';
1991
+ writable: true;
1992
+ },
1993
+ {
1994
+ name: 'tokenProgram';
1995
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1996
+ },
1997
+ {
1998
+ name: 'associatedTokenProgram';
1999
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1365
2000
  },
1366
2001
  {
1367
2002
  name: 'systemProgram';
1368
2003
  address: '11111111111111111111111111111111';
1369
2004
  }
1370
2005
  ];
1371
- args: [];
2006
+ args: [
2007
+ {
2008
+ name: 'args';
2009
+ type: {
2010
+ defined: {
2011
+ name: 'marketAskOrderArgs';
2012
+ };
2013
+ };
2014
+ }
2015
+ ];
1372
2016
  },
1373
2017
  {
1374
- name: 'marketAskOrder';
1375
- discriminator: [189, 66, 162, 254, 3, 85, 152, 54];
2018
+ name: 'marketBidOrder';
2019
+ discriminator: [145, 89, 7, 166, 85, 59, 48, 149];
1376
2020
  accounts: [
1377
2021
  {
1378
2022
  name: 'signer';
@@ -1393,21 +2037,25 @@ export type TriadProtocol = {
1393
2037
  address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
1394
2038
  },
1395
2039
  {
1396
- name: 'buyerAuthority';
2040
+ name: 'sellerAuthority';
1397
2041
  writable: true;
1398
2042
  },
1399
2043
  {
1400
- name: 'sellerTrade';
2044
+ name: 'buyerTrade';
1401
2045
  writable: true;
1402
2046
  },
1403
2047
  {
1404
- name: 'buyerTrade';
2048
+ name: 'sellerTrade';
1405
2049
  writable: true;
1406
2050
  },
1407
2051
  {
1408
2052
  name: 'mint';
1409
2053
  writable: true;
1410
2054
  },
2055
+ {
2056
+ name: 'buyerAta';
2057
+ writable: true;
2058
+ },
1411
2059
  {
1412
2060
  name: 'sellerAta';
1413
2061
  writable: true;
@@ -1415,7 +2063,7 @@ export type TriadProtocol = {
1415
2063
  seeds: [
1416
2064
  {
1417
2065
  kind: 'account';
1418
- path: 'signer';
2066
+ path: 'sellerAuthority';
1419
2067
  },
1420
2068
  {
1421
2069
  kind: 'account';
@@ -1486,15 +2134,15 @@ export type TriadProtocol = {
1486
2134
  name: 'args';
1487
2135
  type: {
1488
2136
  defined: {
1489
- name: 'marketAskOrderArgs';
2137
+ name: 'marketBidOrderArgs';
1490
2138
  };
1491
2139
  };
1492
2140
  }
1493
2141
  ];
1494
2142
  },
1495
2143
  {
1496
- name: 'marketBidOrder';
1497
- discriminator: [145, 89, 7, 166, 85, 59, 48, 149];
2144
+ name: 'marketBidOrderV1';
2145
+ discriminator: [217, 128, 204, 203, 203, 240, 236, 136];
1498
2146
  accounts: [
1499
2147
  {
1500
2148
  name: 'signer';
@@ -1509,11 +2157,6 @@ export type TriadProtocol = {
1509
2157
  name: 'orderBook';
1510
2158
  writable: true;
1511
2159
  },
1512
- {
1513
- name: 'squads';
1514
- writable: true;
1515
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
1516
- },
1517
2160
  {
1518
2161
  name: 'sellerAuthority';
1519
2162
  writable: true;
@@ -1529,6 +2172,7 @@ export type TriadProtocol = {
1529
2172
  {
1530
2173
  name: 'mint';
1531
2174
  writable: true;
2175
+ address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
1532
2176
  },
1533
2177
  {
1534
2178
  name: 'buyerAta';
@@ -1597,6 +2241,7 @@ export type TriadProtocol = {
1597
2241
  },
1598
2242
  {
1599
2243
  name: 'tokenProgram';
2244
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1600
2245
  },
1601
2246
  {
1602
2247
  name: 'associatedTokenProgram';
@@ -2002,6 +2647,7 @@ export type TriadProtocol = {
2002
2647
  {
2003
2648
  name: 'mint';
2004
2649
  writable: true;
2650
+ address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
2005
2651
  },
2006
2652
  {
2007
2653
  name: 'userAta';
@@ -2119,6 +2765,7 @@ export type TriadProtocol = {
2119
2765
  },
2120
2766
  {
2121
2767
  name: 'tokenProgram';
2768
+ address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
2122
2769
  },
2123
2770
  {
2124
2771
  name: 'associatedTokenProgram';
@@ -2698,8 +3345,8 @@ export type TriadProtocol = {
2698
3345
  args: [];
2699
3346
  },
2700
3347
  {
2701
- name: 'updateCustomerFee';
2702
- discriminator: [218, 240, 1, 38, 34, 166, 40, 25];
3348
+ name: 'updateClaimVaultIsActive';
3349
+ discriminator: [122, 240, 207, 89, 71, 29, 176, 103];
2703
3350
  accounts: [
2704
3351
  {
2705
3352
  name: 'signer';
@@ -2707,7 +3354,101 @@ export type TriadProtocol = {
2707
3354
  signer: true;
2708
3355
  },
2709
3356
  {
2710
- name: 'customer';
3357
+ name: 'claimVault';
3358
+ writable: true;
3359
+ }
3360
+ ];
3361
+ args: [
3362
+ {
3363
+ name: 'isActive';
3364
+ type: 'bool';
3365
+ }
3366
+ ];
3367
+ },
3368
+ {
3369
+ name: 'updateClaimVaultMerkleRoot';
3370
+ discriminator: [83, 209, 102, 81, 118, 44, 157, 23];
3371
+ accounts: [
3372
+ {
3373
+ name: 'signer';
3374
+ writable: true;
3375
+ signer: true;
3376
+ },
3377
+ {
3378
+ name: 'claimVault';
3379
+ writable: true;
3380
+ }
3381
+ ];
3382
+ args: [
3383
+ {
3384
+ name: 'merkleRoot';
3385
+ type: {
3386
+ array: ['u8', 32];
3387
+ };
3388
+ }
3389
+ ];
3390
+ },
3391
+ {
3392
+ name: 'updateMarketEnd';
3393
+ discriminator: [10, 188, 22, 219, 206, 83, 67, 31];
3394
+ accounts: [
3395
+ {
3396
+ name: 'signer';
3397
+ writable: true;
3398
+ signer: true;
3399
+ },
3400
+ {
3401
+ name: 'market';
3402
+ writable: true;
3403
+ },
3404
+ {
3405
+ name: 'systemProgram';
3406
+ address: '11111111111111111111111111111111';
3407
+ }
3408
+ ];
3409
+ args: [
3410
+ {
3411
+ name: 'marketEnd';
3412
+ type: 'i64';
3413
+ }
3414
+ ];
3415
+ },
3416
+ {
3417
+ name: 'updateMarketPayout';
3418
+ discriminator: [10, 209, 221, 170, 158, 103, 104, 57];
3419
+ accounts: [
3420
+ {
3421
+ name: 'signer';
3422
+ writable: true;
3423
+ signer: true;
3424
+ },
3425
+ {
3426
+ name: 'market';
3427
+ writable: true;
3428
+ },
3429
+ {
3430
+ name: 'systemProgram';
3431
+ address: '11111111111111111111111111111111';
3432
+ }
3433
+ ];
3434
+ args: [
3435
+ {
3436
+ name: 'isAllowedToPayout';
3437
+ type: 'bool';
3438
+ }
3439
+ ];
3440
+ },
3441
+ {
3442
+ name: 'updateMarketQuestion';
3443
+ discriminator: [142, 161, 115, 206, 241, 181, 202, 233];
3444
+ accounts: [
3445
+ {
3446
+ name: 'signer';
3447
+ writable: true;
3448
+ signer: true;
3449
+ },
3450
+ {
3451
+ name: 'market';
2711
3452
  writable: true;
2712
3453
  },
2713
3454
  {
@@ -2717,14 +3458,16 @@ export type TriadProtocol = {
2717
3458
  ];
2718
3459
  args: [
2719
3460
  {
2720
- name: 'feeBps';
2721
- type: 'u16';
3461
+ name: 'question';
3462
+ type: {
3463
+ array: ['u8', 80];
3464
+ };
2722
3465
  }
2723
3466
  ];
2724
3467
  },
2725
3468
  {
2726
- name: 'updateMarket';
2727
- discriminator: [153, 39, 2, 197, 179, 50, 199, 217];
3469
+ name: 'updateMarketWinningDirection';
3470
+ discriminator: [243, 10, 168, 194, 142, 250, 255, 133];
2728
3471
  accounts: [
2729
3472
  {
2730
3473
  name: 'signer';
@@ -2747,18 +3490,18 @@ export type TriadProtocol = {
2747
3490
  ];
2748
3491
  args: [
2749
3492
  {
2750
- name: 'args';
3493
+ name: 'winningDirection';
2751
3494
  type: {
2752
3495
  defined: {
2753
- name: 'updateMarketArgs';
3496
+ name: 'winningDirection';
2754
3497
  };
2755
3498
  };
2756
3499
  }
2757
3500
  ];
2758
3501
  },
2759
3502
  {
2760
- name: 'updateStakeVault';
2761
- discriminator: [84, 171, 100, 153, 126, 215, 229, 68];
3503
+ name: 'updateStakeVaultIsLocked';
3504
+ discriminator: [239, 65, 219, 190, 157, 173, 139, 226];
2762
3505
  accounts: [
2763
3506
  {
2764
3507
  name: 'signer';
@@ -2791,136 +3534,10 @@ export type TriadProtocol = {
2791
3534
  32,
2792
3535
  49
2793
3536
  ];
2794
- }
2795
- ];
2796
- };
2797
- },
2798
- {
2799
- name: 'mint';
2800
- writable: true;
2801
- },
2802
- {
2803
- name: 'userAta';
2804
- writable: true;
2805
- pda: {
2806
- seeds: [
2807
- {
2808
- kind: 'account';
2809
- path: 'signer';
2810
- },
2811
- {
2812
- kind: 'account';
2813
- path: 'tokenProgram';
2814
- },
2815
- {
2816
- kind: 'account';
2817
- path: 'mint';
2818
- }
2819
- ];
2820
- program: {
2821
- kind: 'const';
2822
- value: [
2823
- 140,
2824
- 151,
2825
- 37,
2826
- 143,
2827
- 78,
2828
- 36,
2829
- 137,
2830
- 241,
2831
- 187,
2832
- 61,
2833
- 16,
2834
- 41,
2835
- 20,
2836
- 142,
2837
- 13,
2838
- 131,
2839
- 11,
2840
- 90,
2841
- 19,
2842
- 153,
2843
- 218,
2844
- 255,
2845
- 16,
2846
- 132,
2847
- 4,
2848
- 142,
2849
- 123,
2850
- 216,
2851
- 219,
2852
- 233,
2853
- 248,
2854
- 89
2855
- ];
2856
- };
2857
- };
2858
- },
2859
- {
2860
- name: 'stakeVaultAta';
2861
- writable: true;
2862
- pda: {
2863
- seeds: [
2864
- {
2865
- kind: 'account';
2866
- path: 'stakeVault';
2867
- },
2868
- {
2869
- kind: 'account';
2870
- path: 'tokenProgram';
2871
- },
2872
- {
2873
- kind: 'account';
2874
- path: 'mint';
2875
- }
2876
- ];
2877
- program: {
2878
- kind: 'const';
2879
- value: [
2880
- 140,
2881
- 151,
2882
- 37,
2883
- 143,
2884
- 78,
2885
- 36,
2886
- 137,
2887
- 241,
2888
- 187,
2889
- 61,
2890
- 16,
2891
- 41,
2892
- 20,
2893
- 142,
2894
- 13,
2895
- 131,
2896
- 11,
2897
- 90,
2898
- 19,
2899
- 153,
2900
- 218,
2901
- 255,
2902
- 16,
2903
- 132,
2904
- 4,
2905
- 142,
2906
- 123,
2907
- 216,
2908
- 219,
2909
- 233,
2910
- 248,
2911
- 89
2912
- ];
2913
- };
3537
+ }
3538
+ ];
2914
3539
  };
2915
3540
  },
2916
- {
2917
- name: 'tokenProgram';
2918
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
2919
- },
2920
- {
2921
- name: 'associatedTokenProgram';
2922
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
2923
- },
2924
3541
  {
2925
3542
  name: 'systemProgram';
2926
3543
  address: '11111111111111111111111111111111';
@@ -2928,12 +3545,8 @@ export type TriadProtocol = {
2928
3545
  ];
2929
3546
  args: [
2930
3547
  {
2931
- name: 'args';
2932
- type: {
2933
- defined: {
2934
- name: 'updateStakeVaultArgs';
2935
- };
2936
- };
3548
+ name: 'isLocked';
3549
+ type: 'bool';
2937
3550
  }
2938
3551
  ];
2939
3552
  },
@@ -2983,6 +3596,14 @@ export type TriadProtocol = {
2983
3596
  name: 'baseCollectionV1';
2984
3597
  discriminator: [0, 0, 0, 0, 0, 0, 0, 0];
2985
3598
  },
3599
+ {
3600
+ name: 'claimVault';
3601
+ discriminator: [154, 74, 122, 191, 197, 171, 227, 248];
3602
+ },
3603
+ {
3604
+ name: 'claimedUser';
3605
+ discriminator: [160, 7, 160, 134, 104, 87, 137, 13];
3606
+ },
2986
3607
  {
2987
3608
  name: 'collection';
2988
3609
  discriminator: [48, 160, 232, 205, 191, 207, 26, 141];
@@ -3034,12 +3655,16 @@ export type TriadProtocol = {
3034
3655
  discriminator: [143, 95, 119, 33, 30, 15, 222, 175];
3035
3656
  },
3036
3657
  {
3037
- name: 'marketEvent';
3038
- discriminator: [212, 67, 145, 23, 58, 104, 52, 83];
3658
+ name: 'claimTokenEvent';
3659
+ discriminator: [127, 10, 14, 49, 47, 171, 31, 127];
3660
+ },
3661
+ {
3662
+ name: 'collectMarketFeeEvent';
3663
+ discriminator: [210, 147, 203, 216, 158, 111, 59, 143];
3039
3664
  },
3040
3665
  {
3041
- name: 'marketFeeCollectedEvent';
3042
- discriminator: [248, 190, 87, 22, 89, 145, 188, 207];
3666
+ name: 'marketEvent';
3667
+ discriminator: [212, 67, 145, 23, 58, 104, 52, 83];
3043
3668
  },
3044
3669
  {
3045
3670
  name: 'orderEvent';
@@ -3076,138 +3701,123 @@ export type TriadProtocol = {
3076
3701
  },
3077
3702
  {
3078
3703
  code: 6003;
3079
- name: 'noRewardsAvailable';
3080
- msg: 'No rewards available';
3081
- },
3082
- {
3083
- code: 6004;
3084
3704
  name: 'invalidPrice';
3085
3705
  msg: 'Invalid price';
3086
3706
  },
3087
3707
  {
3088
- code: 6005;
3708
+ code: 6004;
3089
3709
  name: 'noAvailableOrderSlot';
3090
3710
  msg: 'No available order slot';
3091
3711
  },
3712
+ {
3713
+ code: 6005;
3714
+ name: 'orderNotFound';
3715
+ msg: 'Order not found';
3716
+ },
3092
3717
  {
3093
3718
  code: 6006;
3094
- name: 'marketInactive';
3095
- msg: 'Market is inactive';
3719
+ name: 'stakeVaultLocked';
3720
+ msg: 'Stake vault is locked';
3096
3721
  },
3097
3722
  {
3098
3723
  code: 6007;
3099
- name: 'orderNotFound';
3100
- msg: 'Order not found';
3724
+ name: 'marketStillActive';
3725
+ msg: 'Market still active';
3101
3726
  },
3102
3727
  {
3103
3728
  code: 6008;
3104
- name: 'questionPeriodNotStarted';
3105
- msg: 'Question period not started';
3729
+ name: 'marketInactive';
3730
+ msg: 'Market Inactive';
3106
3731
  },
3107
3732
  {
3108
3733
  code: 6009;
3109
- name: 'questionPeriodEnded';
3110
- msg: 'Question period ended';
3734
+ name: 'marketEnded';
3735
+ msg: 'Market Ended';
3111
3736
  },
3112
3737
  {
3113
3738
  code: 6010;
3114
- name: 'stakeVaultLocked';
3115
- msg: 'Stake vault is locked';
3739
+ name: 'marketAlreadyResolved';
3740
+ msg: 'Market already resolved';
3116
3741
  },
3117
3742
  {
3118
3743
  code: 6011;
3119
- name: 'marketStillActive';
3120
- msg: 'Market still active';
3744
+ name: 'concurrentTransaction';
3745
+ msg: 'Concurrent transaction';
3121
3746
  },
3122
3747
  {
3123
3748
  code: 6012;
3124
- name: 'insufficientLiquidity';
3125
- msg: 'Insufficient liquidity';
3749
+ name: 'marketNotAllowedToPayout';
3750
+ msg: 'Market Not allowed to payout';
3126
3751
  },
3127
3752
  {
3128
3753
  code: 6013;
3129
- name: 'marketAlreadyResolved';
3130
- msg: 'Market already resolved';
3754
+ name: 'userTradeIsSubUser';
3755
+ msg: 'User trade is sub user';
3131
3756
  },
3132
3757
  {
3133
3758
  code: 6014;
3134
- name: 'concurrentTransaction';
3135
- msg: 'Concurrent transaction';
3759
+ name: 'alreadyLinked';
3760
+ msg: 'Already linked';
3136
3761
  },
3137
3762
  {
3138
3763
  code: 6015;
3139
- name: 'marketNotAllowedToPayout';
3140
- msg: 'Market Not allowed to payout';
3764
+ name: 'notLinked';
3765
+ msg: 'Not linked';
3141
3766
  },
3142
3767
  {
3143
3768
  code: 6016;
3144
- name: 'userTradeIsSubUser';
3145
- msg: 'User trade is sub user';
3769
+ name: 'invalidShares';
3770
+ msg: 'Invalid shares';
3146
3771
  },
3147
3772
  {
3148
3773
  code: 6017;
3149
- name: 'alreadyLinked';
3150
- msg: 'Already linked';
3774
+ name: 'unauthorizedToOrderBook';
3775
+ msg: 'Unauthorized to order book';
3151
3776
  },
3152
3777
  {
3153
3778
  code: 6018;
3154
- name: 'notLinked';
3155
- msg: 'Not linked';
3779
+ name: 'fastMarketStillActive';
3780
+ msg: 'Fast Market is still active';
3156
3781
  },
3157
3782
  {
3158
3783
  code: 6019;
3159
- name: 'invalidCustomer';
3160
- msg: 'Invalid customer';
3784
+ name: 'invalidNonce';
3785
+ msg: 'Invalid Nonce';
3161
3786
  },
3162
3787
  {
3163
3788
  code: 6020;
3164
- name: 'invalidMint';
3165
- msg: 'Invalid mint';
3789
+ name: 'invalidMainOrder';
3790
+ msg: 'Invalid Main Order';
3166
3791
  },
3167
3792
  {
3168
3793
  code: 6021;
3169
- name: 'invalidShares';
3170
- msg: 'Invalid shares';
3794
+ name: 'invalidMarketEnd';
3795
+ msg: 'Invalid Market End';
3171
3796
  },
3172
3797
  {
3173
3798
  code: 6022;
3174
- name: 'unauthorizedToOrderBook';
3175
- msg: 'Unauthorized to order book';
3799
+ name: 'invalidPool';
3800
+ msg: 'Invalid Pool';
3176
3801
  },
3177
3802
  {
3178
3803
  code: 6023;
3179
- name: 'orderIsFullFilled';
3180
- msg: 'Order is full filled';
3804
+ name: 'invalidMerkleProof';
3805
+ msg: 'Invalid Merkle Proof';
3181
3806
  },
3182
3807
  {
3183
3808
  code: 6024;
3184
- name: 'linkedBidOrderNotFound';
3185
- msg: 'Linked bid order not found';
3809
+ name: 'invalidMerkleRoot';
3810
+ msg: 'Invalid Merkle Root';
3186
3811
  },
3187
3812
  {
3188
3813
  code: 6025;
3189
- name: 'currentFastPoolMarketStillActive';
3190
- msg: 'Current fast pool market still active';
3814
+ name: 'claimVaultInactive';
3815
+ msg: 'Claim Vault Inactive';
3191
3816
  },
3192
3817
  {
3193
3818
  code: 6026;
3194
- name: 'marketAlreadyAggregated';
3195
- msg: 'Market already aggregated';
3196
- },
3197
- {
3198
- code: 6027;
3199
- name: 'marketAlreadyPaidOut';
3200
- msg: 'Market already paid out';
3201
- },
3202
- {
3203
- code: 6028;
3204
- name: 'invalidNonce';
3205
- msg: 'Invalid Nonce';
3206
- },
3207
- {
3208
- code: 6029;
3209
- name: 'invalidMainOrder';
3210
- msg: 'Invalid Main Order';
3819
+ name: 'userAlreadyClaimed';
3820
+ msg: 'User Already Claimed';
3211
3821
  }
3212
3822
  ];
3213
3823
  types: [
@@ -3321,140 +3931,320 @@ export type TriadProtocol = {
3321
3931
  type: 'u32';
3322
3932
  },
3323
3933
  {
3324
- name: 'id';
3325
- type: 'u8';
3934
+ name: 'id';
3935
+ type: 'u8';
3936
+ },
3937
+ {
3938
+ name: 'linkedBookOrderId';
3939
+ type: 'u8';
3940
+ },
3941
+ {
3942
+ name: 'orderDirection';
3943
+ type: 'u8';
3944
+ },
3945
+ {
3946
+ name: 'orderSide';
3947
+ type: 'u8';
3948
+ }
3949
+ ];
3950
+ };
3951
+ },
3952
+ {
3953
+ name: 'bookOrderEvent';
3954
+ type: {
3955
+ kind: 'struct';
3956
+ fields: [
3957
+ {
3958
+ name: 'marketId';
3959
+ type: 'u64';
3960
+ },
3961
+ {
3962
+ name: 'timestamp';
3963
+ type: 'i64';
3964
+ },
3965
+ {
3966
+ name: 'price';
3967
+ type: 'u64';
3968
+ },
3969
+ {
3970
+ name: 'totalShares';
3971
+ type: 'u64';
3972
+ },
3973
+ {
3974
+ name: 'filledShares';
3975
+ type: 'u64';
3976
+ },
3977
+ {
3978
+ name: 'authority';
3979
+ type: 'pubkey';
3980
+ },
3981
+ {
3982
+ name: 'userNonce';
3983
+ type: 'u32';
3984
+ },
3985
+ {
3986
+ name: 'id';
3987
+ type: 'u8';
3988
+ },
3989
+ {
3990
+ name: 'linkedBookOrderId';
3991
+ type: 'u8';
3992
+ },
3993
+ {
3994
+ name: 'orderDirection';
3995
+ type: {
3996
+ defined: {
3997
+ name: 'orderDirection';
3998
+ };
3999
+ };
4000
+ },
4001
+ {
4002
+ name: 'orderSide';
4003
+ type: {
4004
+ defined: {
4005
+ name: 'orderSide';
4006
+ };
4007
+ };
4008
+ }
4009
+ ];
4010
+ };
4011
+ },
4012
+ {
4013
+ name: 'bookOrderFilledEvent';
4014
+ type: {
4015
+ kind: 'struct';
4016
+ fields: [
4017
+ {
4018
+ name: 'marketId';
4019
+ type: 'u64';
4020
+ },
4021
+ {
4022
+ name: 'authority';
4023
+ type: 'pubkey';
4024
+ },
4025
+ {
4026
+ name: 'shares';
4027
+ type: 'u64';
4028
+ },
4029
+ {
4030
+ name: 'price';
4031
+ type: 'u64';
4032
+ },
4033
+ {
4034
+ name: 'orderDirection';
4035
+ type: {
4036
+ defined: {
4037
+ name: 'orderDirection';
4038
+ };
4039
+ };
4040
+ },
4041
+ {
4042
+ name: 'rewards';
4043
+ type: 'u64';
4044
+ },
4045
+ {
4046
+ name: 'timestamp';
4047
+ type: 'i64';
4048
+ }
4049
+ ];
4050
+ };
4051
+ },
4052
+ {
4053
+ name: 'cancelOrderArgs';
4054
+ type: {
4055
+ kind: 'struct';
4056
+ fields: [
4057
+ {
4058
+ name: 'orderId';
4059
+ type: 'u64';
4060
+ },
4061
+ {
4062
+ name: 'orderDirection';
4063
+ type: {
4064
+ defined: {
4065
+ name: 'orderDirection';
4066
+ };
4067
+ };
4068
+ }
4069
+ ];
4070
+ };
4071
+ },
4072
+ {
4073
+ name: 'claimTokenArgs';
4074
+ type: {
4075
+ kind: 'struct';
4076
+ fields: [
4077
+ {
4078
+ name: 'amount';
4079
+ type: 'u64';
4080
+ },
4081
+ {
4082
+ name: 'merkleProof';
4083
+ type: {
4084
+ vec: {
4085
+ array: ['u8', 32];
4086
+ };
4087
+ };
4088
+ }
4089
+ ];
4090
+ };
4091
+ },
4092
+ {
4093
+ name: 'claimTokenEvent';
4094
+ type: {
4095
+ kind: 'struct';
4096
+ fields: [
4097
+ {
4098
+ name: 'user';
4099
+ type: 'pubkey';
4100
+ },
4101
+ {
4102
+ name: 'claimVault';
4103
+ type: 'pubkey';
3326
4104
  },
3327
4105
  {
3328
- name: 'linkedBookOrderId';
3329
- type: 'u8';
4106
+ name: 'mint';
4107
+ type: 'pubkey';
3330
4108
  },
3331
4109
  {
3332
- name: 'orderDirection';
3333
- type: 'u8';
4110
+ name: 'amount';
4111
+ type: 'u64';
3334
4112
  },
3335
4113
  {
3336
- name: 'orderSide';
3337
- type: 'u8';
4114
+ name: 'timestamp';
4115
+ type: 'i64';
3338
4116
  }
3339
4117
  ];
3340
4118
  };
3341
4119
  },
3342
4120
  {
3343
- name: 'bookOrderEvent';
4121
+ name: 'claimVault';
3344
4122
  type: {
3345
4123
  kind: 'struct';
3346
4124
  fields: [
3347
4125
  {
3348
- name: 'marketId';
3349
- type: 'u64';
4126
+ name: 'bump';
4127
+ type: 'u8';
3350
4128
  },
3351
4129
  {
3352
- name: 'timestamp';
4130
+ name: 'authority';
4131
+ type: 'pubkey';
4132
+ },
4133
+ {
4134
+ name: 'initTs';
3353
4135
  type: 'i64';
3354
4136
  },
3355
4137
  {
3356
- name: 'price';
4138
+ name: 'endTs';
4139
+ type: 'i64';
4140
+ },
4141
+ {
4142
+ name: 'totalAmount';
3357
4143
  type: 'u64';
3358
4144
  },
3359
4145
  {
3360
- name: 'totalShares';
4146
+ name: 'totalClaimed';
3361
4147
  type: 'u64';
3362
4148
  },
3363
4149
  {
3364
- name: 'filledShares';
4150
+ name: 'totalUsers';
3365
4151
  type: 'u64';
3366
4152
  },
3367
4153
  {
3368
- name: 'authority';
4154
+ name: 'claimedUsers';
4155
+ type: 'u64';
4156
+ },
4157
+ {
4158
+ name: 'tokenPerUser';
4159
+ type: 'u64';
4160
+ },
4161
+ {
4162
+ name: 'mint';
3369
4163
  type: 'pubkey';
3370
4164
  },
3371
4165
  {
3372
- name: 'userNonce';
3373
- type: 'u32';
4166
+ name: 'isActive';
4167
+ type: 'bool';
3374
4168
  },
3375
4169
  {
3376
- name: 'id';
3377
- type: 'u8';
4170
+ name: 'name';
4171
+ type: 'string';
3378
4172
  },
3379
4173
  {
3380
- name: 'linkedBookOrderId';
3381
- type: 'u8';
4174
+ name: 'isFirstComeFirstServed';
4175
+ type: 'bool';
3382
4176
  },
3383
4177
  {
3384
- name: 'orderDirection';
4178
+ name: 'merkleRoot';
3385
4179
  type: {
3386
- defined: {
3387
- name: 'orderDirection';
3388
- };
4180
+ array: ['u8', 32];
3389
4181
  };
3390
4182
  },
3391
4183
  {
3392
- name: 'orderSide';
4184
+ name: 'padding';
3393
4185
  type: {
3394
- defined: {
3395
- name: 'orderSide';
3396
- };
4186
+ array: ['u8', 32];
3397
4187
  };
3398
4188
  }
3399
4189
  ];
3400
4190
  };
3401
4191
  },
3402
4192
  {
3403
- name: 'bookOrderFilledEvent';
4193
+ name: 'claimedUser';
3404
4194
  type: {
3405
4195
  kind: 'struct';
3406
4196
  fields: [
3407
4197
  {
3408
- name: 'marketId';
3409
- type: 'u64';
3410
- },
3411
- {
3412
- name: 'authority';
4198
+ name: 'user';
3413
4199
  type: 'pubkey';
3414
4200
  },
3415
4201
  {
3416
- name: 'shares';
3417
- type: 'u64';
3418
- },
3419
- {
3420
- name: 'price';
3421
- type: 'u64';
3422
- },
3423
- {
3424
- name: 'orderDirection';
3425
- type: {
3426
- defined: {
3427
- name: 'orderDirection';
3428
- };
3429
- };
4202
+ name: 'claimVault';
4203
+ type: 'pubkey';
3430
4204
  },
3431
4205
  {
3432
- name: 'rewards';
4206
+ name: 'amount';
3433
4207
  type: 'u64';
3434
4208
  },
3435
4209
  {
3436
- name: 'timestamp';
4210
+ name: 'ts';
3437
4211
  type: 'i64';
3438
4212
  }
3439
4213
  ];
3440
4214
  };
3441
4215
  },
3442
4216
  {
3443
- name: 'cancelOrderArgs';
4217
+ name: 'collectMarketFeeEvent';
3444
4218
  type: {
3445
4219
  kind: 'struct';
3446
4220
  fields: [
3447
4221
  {
3448
- name: 'orderId';
4222
+ name: 'marketId';
3449
4223
  type: 'u64';
3450
4224
  },
3451
4225
  {
3452
- name: 'orderDirection';
3453
- type: {
3454
- defined: {
3455
- name: 'orderDirection';
3456
- };
3457
- };
4226
+ name: 'triadFee';
4227
+ type: 'u64';
4228
+ },
4229
+ {
4230
+ name: 'revShareFee';
4231
+ type: 'u64';
4232
+ },
4233
+ {
4234
+ name: 'customerId';
4235
+ type: 'u16';
4236
+ },
4237
+ {
4238
+ name: 'customerFee';
4239
+ type: 'u64';
4240
+ },
4241
+ {
4242
+ name: 'customerFeeRecipient';
4243
+ type: 'pubkey';
4244
+ },
4245
+ {
4246
+ name: 'timestamp';
4247
+ type: 'i64';
3458
4248
  }
3459
4249
  ];
3460
4250
  };
@@ -3493,6 +4283,42 @@ export type TriadProtocol = {
3493
4283
  ];
3494
4284
  };
3495
4285
  },
4286
+ {
4287
+ name: 'createClaimVaultArgs';
4288
+ type: {
4289
+ kind: 'struct';
4290
+ fields: [
4291
+ {
4292
+ name: 'totalAmount';
4293
+ type: 'u64';
4294
+ },
4295
+ {
4296
+ name: 'totalUsers';
4297
+ type: 'u64';
4298
+ },
4299
+ {
4300
+ name: 'name';
4301
+ type: 'string';
4302
+ },
4303
+ {
4304
+ name: 'isFirstComeFirstServed';
4305
+ type: 'bool';
4306
+ },
4307
+ {
4308
+ name: 'endTs';
4309
+ type: 'i64';
4310
+ },
4311
+ {
4312
+ name: 'merkleRoot';
4313
+ type: {
4314
+ option: {
4315
+ array: ['u8', 32];
4316
+ };
4317
+ };
4318
+ }
4319
+ ];
4320
+ };
4321
+ },
3496
4322
  {
3497
4323
  name: 'createCustomerArgs';
3498
4324
  type: {
@@ -3818,46 +4644,6 @@ export type TriadProtocol = {
3818
4644
  ];
3819
4645
  };
3820
4646
  },
3821
- {
3822
- name: 'marketFeeCollectedEvent';
3823
- type: {
3824
- kind: 'struct';
3825
- fields: [
3826
- {
3827
- name: 'marketId';
3828
- type: 'u64';
3829
- },
3830
- {
3831
- name: 'triadFee';
3832
- type: 'u64';
3833
- },
3834
- {
3835
- name: 'customerFee';
3836
- type: 'u64';
3837
- },
3838
- {
3839
- name: 'triadFeeRecipient';
3840
- type: 'pubkey';
3841
- },
3842
- {
3843
- name: 'customerFeeRecipient';
3844
- type: 'pubkey';
3845
- },
3846
- {
3847
- name: 'customerId';
3848
- type: 'u16';
3849
- },
3850
- {
3851
- name: 'customerFeeBps';
3852
- type: 'u16';
3853
- },
3854
- {
3855
- name: 'timestamp';
3856
- type: 'i64';
3857
- }
3858
- ];
3859
- };
3860
- },
3861
4647
  {
3862
4648
  name: 'marketV2';
3863
4649
  type: {
@@ -3985,10 +4771,18 @@ export type TriadProtocol = {
3985
4771
  name: 'poolId';
3986
4772
  type: 'u64';
3987
4773
  },
4774
+ {
4775
+ name: 'marketOrderFeeAvailable';
4776
+ type: 'u64';
4777
+ },
4778
+ {
4779
+ name: 'marketOrderFeeClaimed';
4780
+ type: 'u64';
4781
+ },
3988
4782
  {
3989
4783
  name: 'padding';
3990
4784
  type: {
3991
- array: ['u8', 48];
4785
+ array: ['u8', 32];
3992
4786
  };
3993
4787
  }
3994
4788
  ];
@@ -4560,10 +5354,22 @@ export type TriadProtocol = {
4560
5354
  name: 'amount';
4561
5355
  type: 'u64';
4562
5356
  },
5357
+ {
5358
+ name: 'revShareCheckedTs';
5359
+ type: 'i64';
5360
+ },
5361
+ {
5362
+ name: 'revShareClaimed';
5363
+ type: 'u64';
5364
+ },
5365
+ {
5366
+ name: 'revShareAvailable';
5367
+ type: 'u64';
5368
+ },
4563
5369
  {
4564
5370
  name: 'padding';
4565
5371
  type: {
4566
- array: ['u8', 32];
5372
+ array: ['u8', 8];
4567
5373
  };
4568
5374
  }
4569
5375
  ];
@@ -4603,11 +5409,11 @@ export type TriadProtocol = {
4603
5409
  type: 'u8';
4604
5410
  },
4605
5411
  {
4606
- name: 'nftStaked';
5412
+ name: 'revShareClaimed';
4607
5413
  type: 'u64';
4608
5414
  },
4609
5415
  {
4610
- name: 'slots';
5416
+ name: 'revShareAvailable';
4611
5417
  type: 'u64';
4612
5418
  },
4613
5419
  {
@@ -4690,56 +5496,6 @@ export type TriadProtocol = {
4690
5496
  ];
4691
5497
  };
4692
5498
  },
4693
- {
4694
- name: 'updateMarketArgs';
4695
- type: {
4696
- kind: 'struct';
4697
- fields: [
4698
- {
4699
- name: 'marketEnd';
4700
- type: {
4701
- option: 'i64';
4702
- };
4703
- },
4704
- {
4705
- name: 'winningDirection';
4706
- type: {
4707
- option: {
4708
- defined: {
4709
- name: 'winningDirection';
4710
- };
4711
- };
4712
- };
4713
- },
4714
- {
4715
- name: 'allowPayout';
4716
- type: {
4717
- option: 'bool';
4718
- };
4719
- }
4720
- ];
4721
- };
4722
- },
4723
- {
4724
- name: 'updateStakeVaultArgs';
4725
- type: {
4726
- kind: 'struct';
4727
- fields: [
4728
- {
4729
- name: 'amount';
4730
- type: {
4731
- option: 'u64';
4732
- };
4733
- },
4734
- {
4735
- name: 'isLocked';
4736
- type: {
4737
- option: 'bool';
4738
- };
4739
- }
4740
- ];
4741
- };
4742
- },
4743
5499
  {
4744
5500
  name: 'userTrade';
4745
5501
  type: {
@@ -4754,15 +5510,19 @@ export type TriadProtocol = {
4754
5510
  type: 'pubkey';
4755
5511
  },
4756
5512
  {
4757
- name: 'totalDeposits';
4758
- type: 'u64';
5513
+ name: 'padding1';
5514
+ type: {
5515
+ array: ['u8', 8];
5516
+ };
4759
5517
  },
4760
5518
  {
4761
- name: 'totalWithdraws';
4762
- type: 'u64';
5519
+ name: 'padding2';
5520
+ type: {
5521
+ array: ['u8', 8];
5522
+ };
4763
5523
  },
4764
5524
  {
4765
- name: 'padding1';
5525
+ name: 'padding3';
4766
5526
  type: {
4767
5527
  array: ['u8', 8];
4768
5528
  };