@triadxyz/triad-protocol 3.1.1-beta → 3.1.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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];
@@ -309,7 +486,7 @@ export type TriadProtocol = {
309
486
  writable: true;
310
487
  },
311
488
  {
312
- name: 'fromAta';
489
+ name: 'stakeVaultAta';
313
490
  writable: true;
314
491
  pda: {
315
492
  seeds: [
@@ -366,7 +543,7 @@ export type TriadProtocol = {
366
543
  };
367
544
  },
368
545
  {
369
- name: 'toAta';
546
+ name: 'userAta';
370
547
  writable: true;
371
548
  pda: {
372
549
  seeds: [
@@ -438,8 +615,8 @@ export type TriadProtocol = {
438
615
  args: [];
439
616
  },
440
617
  {
441
- name: 'closeOrder';
442
- discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
618
+ name: 'claimToken';
619
+ discriminator: [116, 206, 27, 191, 166, 19, 0, 73];
443
620
  accounts: [
444
621
  {
445
622
  name: 'signer';
@@ -447,30 +624,46 @@ export type TriadProtocol = {
447
624
  signer: true;
448
625
  },
449
626
  {
450
- name: 'squads';
627
+ name: 'payer';
451
628
  writable: true;
452
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
629
+ signer: true;
453
630
  },
454
631
  {
455
- name: 'userTrade';
632
+ name: 'claimVault';
456
633
  writable: true;
457
634
  },
458
635
  {
459
- name: 'market';
636
+ name: 'claimedUser';
460
637
  writable: true;
638
+ pda: {
639
+ seeds: [
640
+ {
641
+ kind: 'const';
642
+ value: [99, 108, 97, 105, 109, 101, 100, 95, 117, 115, 101, 114];
643
+ },
644
+ {
645
+ kind: 'account';
646
+ path: 'claimVault';
647
+ },
648
+ {
649
+ kind: 'account';
650
+ path: 'signer';
651
+ }
652
+ ];
653
+ };
461
654
  },
462
655
  {
463
656
  name: 'mint';
464
657
  writable: true;
465
658
  },
466
659
  {
467
- name: 'userAta';
660
+ name: 'claimVaultAta';
468
661
  writable: true;
469
662
  pda: {
470
663
  seeds: [
471
664
  {
472
665
  kind: 'account';
473
- path: 'signer';
666
+ path: 'claimVault';
474
667
  },
475
668
  {
476
669
  kind: 'account';
@@ -521,13 +714,13 @@ export type TriadProtocol = {
521
714
  };
522
715
  },
523
716
  {
524
- name: 'marketVault';
717
+ name: 'userAta';
525
718
  writable: true;
526
719
  pda: {
527
720
  seeds: [
528
721
  {
529
722
  kind: 'account';
530
- path: 'market';
723
+ path: 'signer';
531
724
  },
532
725
  {
533
726
  kind: 'account';
@@ -579,7 +772,6 @@ export type TriadProtocol = {
579
772
  },
580
773
  {
581
774
  name: 'tokenProgram';
582
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
583
775
  },
584
776
  {
585
777
  name: 'associatedTokenProgram';
@@ -592,14 +784,18 @@ export type TriadProtocol = {
592
784
  ];
593
785
  args: [
594
786
  {
595
- name: 'orderId';
596
- type: 'u64';
787
+ name: 'args';
788
+ type: {
789
+ defined: {
790
+ name: 'claimTokenArgs';
791
+ };
792
+ };
597
793
  }
598
794
  ];
599
795
  },
600
796
  {
601
- name: 'closeOrderBook';
602
- discriminator: [219, 134, 73, 219, 180, 7, 94, 206];
797
+ name: 'closeOrder';
798
+ discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
603
799
  accounts: [
604
800
  {
605
801
  name: 'signer';
@@ -612,58 +808,25 @@ export type TriadProtocol = {
612
808
  address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
613
809
  },
614
810
  {
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';
811
+ name: 'userTrade';
640
812
  writable: true;
641
- address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
642
813
  },
643
814
  {
644
815
  name: 'market';
645
816
  writable: true;
646
817
  },
647
- {
648
- name: 'customerFeeRecipient';
649
- writable: true;
650
- },
651
- {
652
- name: 'customer';
653
- writable: true;
654
- },
655
818
  {
656
819
  name: 'mint';
657
820
  writable: true;
658
821
  },
659
822
  {
660
- name: 'marketAta';
823
+ name: 'userAta';
661
824
  writable: true;
662
825
  pda: {
663
826
  seeds: [
664
827
  {
665
828
  kind: 'account';
666
- path: 'market';
829
+ path: 'signer';
667
830
  },
668
831
  {
669
832
  kind: 'account';
@@ -714,7 +877,200 @@ export type TriadProtocol = {
714
877
  };
715
878
  },
716
879
  {
717
- name: 'squadsAta';
880
+ name: 'marketVault';
881
+ writable: true;
882
+ pda: {
883
+ seeds: [
884
+ {
885
+ kind: 'account';
886
+ path: 'market';
887
+ },
888
+ {
889
+ kind: 'account';
890
+ path: 'tokenProgram';
891
+ },
892
+ {
893
+ kind: 'account';
894
+ path: 'mint';
895
+ }
896
+ ];
897
+ program: {
898
+ kind: 'const';
899
+ value: [
900
+ 140,
901
+ 151,
902
+ 37,
903
+ 143,
904
+ 78,
905
+ 36,
906
+ 137,
907
+ 241,
908
+ 187,
909
+ 61,
910
+ 16,
911
+ 41,
912
+ 20,
913
+ 142,
914
+ 13,
915
+ 131,
916
+ 11,
917
+ 90,
918
+ 19,
919
+ 153,
920
+ 218,
921
+ 255,
922
+ 16,
923
+ 132,
924
+ 4,
925
+ 142,
926
+ 123,
927
+ 216,
928
+ 219,
929
+ 233,
930
+ 248,
931
+ 89
932
+ ];
933
+ };
934
+ };
935
+ },
936
+ {
937
+ name: 'tokenProgram';
938
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
939
+ },
940
+ {
941
+ name: 'associatedTokenProgram';
942
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
943
+ },
944
+ {
945
+ name: 'systemProgram';
946
+ address: '11111111111111111111111111111111';
947
+ }
948
+ ];
949
+ args: [
950
+ {
951
+ name: 'orderId';
952
+ type: 'u64';
953
+ }
954
+ ];
955
+ },
956
+ {
957
+ name: 'closeOrderBook';
958
+ discriminator: [219, 134, 73, 219, 180, 7, 94, 206];
959
+ accounts: [
960
+ {
961
+ name: 'signer';
962
+ writable: true;
963
+ signer: true;
964
+ },
965
+ {
966
+ name: 'squads';
967
+ writable: true;
968
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
969
+ },
970
+ {
971
+ name: 'market';
972
+ writable: true;
973
+ },
974
+ {
975
+ name: 'orderBook';
976
+ writable: true;
977
+ },
978
+ {
979
+ name: 'systemProgram';
980
+ address: '11111111111111111111111111111111';
981
+ }
982
+ ];
983
+ args: [];
984
+ },
985
+ {
986
+ name: 'collectMarketFee';
987
+ discriminator: [139, 4, 96, 182, 216, 250, 122, 79];
988
+ accounts: [
989
+ {
990
+ name: 'signer';
991
+ writable: true;
992
+ signer: true;
993
+ },
994
+ {
995
+ name: 'squads';
996
+ writable: true;
997
+ address: 'Hk1r2NUL4LbUhx1agg1w44tyZiNr72mbeLsg6suF5MA4';
998
+ },
999
+ {
1000
+ name: 'market';
1001
+ writable: true;
1002
+ },
1003
+ {
1004
+ name: 'customerFeeRecipient';
1005
+ writable: true;
1006
+ },
1007
+ {
1008
+ name: 'customer';
1009
+ writable: true;
1010
+ },
1011
+ {
1012
+ name: 'mint';
1013
+ writable: true;
1014
+ },
1015
+ {
1016
+ name: 'marketAta';
1017
+ writable: true;
1018
+ pda: {
1019
+ seeds: [
1020
+ {
1021
+ kind: 'account';
1022
+ path: 'market';
1023
+ },
1024
+ {
1025
+ kind: 'account';
1026
+ path: 'tokenProgram';
1027
+ },
1028
+ {
1029
+ kind: 'account';
1030
+ path: 'mint';
1031
+ }
1032
+ ];
1033
+ program: {
1034
+ kind: 'const';
1035
+ value: [
1036
+ 140,
1037
+ 151,
1038
+ 37,
1039
+ 143,
1040
+ 78,
1041
+ 36,
1042
+ 137,
1043
+ 241,
1044
+ 187,
1045
+ 61,
1046
+ 16,
1047
+ 41,
1048
+ 20,
1049
+ 142,
1050
+ 13,
1051
+ 131,
1052
+ 11,
1053
+ 90,
1054
+ 19,
1055
+ 153,
1056
+ 218,
1057
+ 255,
1058
+ 16,
1059
+ 132,
1060
+ 4,
1061
+ 142,
1062
+ 123,
1063
+ 216,
1064
+ 219,
1065
+ 233,
1066
+ 248,
1067
+ 89
1068
+ ];
1069
+ };
1070
+ };
1071
+ },
1072
+ {
1073
+ name: 'squadsAta';
718
1074
  writable: true;
719
1075
  pda: {
720
1076
  seeds: [
@@ -771,7 +1127,7 @@ export type TriadProtocol = {
771
1127
  };
772
1128
  },
773
1129
  {
774
- name: 'customerAta';
1130
+ name: 'customerFeeRecipientAta';
775
1131
  writable: true;
776
1132
  pda: {
777
1133
  seeds: [
@@ -1018,8 +1374,8 @@ export type TriadProtocol = {
1018
1374
  args: [];
1019
1375
  },
1020
1376
  {
1021
- name: 'createCustomer';
1022
- discriminator: [120, 122, 113, 216, 95, 207, 252, 147];
1377
+ name: 'createClaimVault';
1378
+ discriminator: [16, 216, 88, 237, 77, 170, 154, 66];
1023
1379
  accounts: [
1024
1380
  {
1025
1381
  name: 'signer';
@@ -1027,44 +1383,210 @@ export type TriadProtocol = {
1027
1383
  signer: true;
1028
1384
  },
1029
1385
  {
1030
- name: 'customer';
1386
+ name: 'claimVault';
1031
1387
  writable: true;
1032
1388
  pda: {
1033
1389
  seeds: [
1034
1390
  {
1035
1391
  kind: 'const';
1036
- value: [99, 117, 115, 116, 111, 109, 101, 114];
1392
+ value: [99, 108, 97, 105, 109, 95, 118, 97, 117, 108, 116];
1037
1393
  },
1038
1394
  {
1039
1395
  kind: 'arg';
1040
- path: 'args.id';
1396
+ path: 'args.name';
1041
1397
  }
1042
1398
  ];
1043
1399
  };
1044
1400
  },
1045
1401
  {
1046
- name: 'stake';
1402
+ name: 'mint';
1403
+ writable: true;
1404
+ },
1405
+ {
1406
+ name: 'signerAta';
1047
1407
  writable: true;
1048
- optional: true;
1049
1408
  pda: {
1050
1409
  seeds: [
1051
1410
  {
1052
- kind: 'const';
1053
- value: [115, 116, 97, 107, 101, 95, 118, 51];
1411
+ kind: 'account';
1412
+ path: 'signer';
1054
1413
  },
1055
1414
  {
1056
1415
  kind: 'account';
1057
- path: 'signer';
1416
+ path: 'tokenProgram';
1417
+ },
1418
+ {
1419
+ kind: 'account';
1420
+ path: 'mint';
1058
1421
  }
1059
1422
  ];
1423
+ program: {
1424
+ kind: 'const';
1425
+ value: [
1426
+ 140,
1427
+ 151,
1428
+ 37,
1429
+ 143,
1430
+ 78,
1431
+ 36,
1432
+ 137,
1433
+ 241,
1434
+ 187,
1435
+ 61,
1436
+ 16,
1437
+ 41,
1438
+ 20,
1439
+ 142,
1440
+ 13,
1441
+ 131,
1442
+ 11,
1443
+ 90,
1444
+ 19,
1445
+ 153,
1446
+ 218,
1447
+ 255,
1448
+ 16,
1449
+ 132,
1450
+ 4,
1451
+ 142,
1452
+ 123,
1453
+ 216,
1454
+ 219,
1455
+ 233,
1456
+ 248,
1457
+ 89
1458
+ ];
1459
+ };
1060
1460
  };
1061
1461
  },
1062
1462
  {
1063
- name: 'systemProgram';
1064
- address: '11111111111111111111111111111111';
1065
- }
1066
- ];
1067
- args: [
1463
+ name: 'claimVaultAta';
1464
+ writable: true;
1465
+ pda: {
1466
+ seeds: [
1467
+ {
1468
+ kind: 'account';
1469
+ path: 'claimVault';
1470
+ },
1471
+ {
1472
+ kind: 'account';
1473
+ path: 'tokenProgram';
1474
+ },
1475
+ {
1476
+ kind: 'account';
1477
+ path: 'mint';
1478
+ }
1479
+ ];
1480
+ program: {
1481
+ kind: 'const';
1482
+ value: [
1483
+ 140,
1484
+ 151,
1485
+ 37,
1486
+ 143,
1487
+ 78,
1488
+ 36,
1489
+ 137,
1490
+ 241,
1491
+ 187,
1492
+ 61,
1493
+ 16,
1494
+ 41,
1495
+ 20,
1496
+ 142,
1497
+ 13,
1498
+ 131,
1499
+ 11,
1500
+ 90,
1501
+ 19,
1502
+ 153,
1503
+ 218,
1504
+ 255,
1505
+ 16,
1506
+ 132,
1507
+ 4,
1508
+ 142,
1509
+ 123,
1510
+ 216,
1511
+ 219,
1512
+ 233,
1513
+ 248,
1514
+ 89
1515
+ ];
1516
+ };
1517
+ };
1518
+ },
1519
+ {
1520
+ name: 'tokenProgram';
1521
+ },
1522
+ {
1523
+ name: 'associatedTokenProgram';
1524
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1525
+ },
1526
+ {
1527
+ name: 'systemProgram';
1528
+ address: '11111111111111111111111111111111';
1529
+ }
1530
+ ];
1531
+ args: [
1532
+ {
1533
+ name: 'args';
1534
+ type: {
1535
+ defined: {
1536
+ name: 'createClaimVaultArgs';
1537
+ };
1538
+ };
1539
+ }
1540
+ ];
1541
+ },
1542
+ {
1543
+ name: 'createCustomer';
1544
+ discriminator: [120, 122, 113, 216, 95, 207, 252, 147];
1545
+ accounts: [
1546
+ {
1547
+ name: 'signer';
1548
+ writable: true;
1549
+ signer: true;
1550
+ },
1551
+ {
1552
+ name: 'customer';
1553
+ writable: true;
1554
+ pda: {
1555
+ seeds: [
1556
+ {
1557
+ kind: 'const';
1558
+ value: [99, 117, 115, 116, 111, 109, 101, 114];
1559
+ },
1560
+ {
1561
+ kind: 'arg';
1562
+ path: 'args.id';
1563
+ }
1564
+ ];
1565
+ };
1566
+ },
1567
+ {
1568
+ name: 'stake';
1569
+ writable: true;
1570
+ optional: true;
1571
+ pda: {
1572
+ seeds: [
1573
+ {
1574
+ kind: 'const';
1575
+ value: [115, 116, 97, 107, 101, 95, 118, 51];
1576
+ },
1577
+ {
1578
+ kind: 'account';
1579
+ path: 'signer';
1580
+ }
1581
+ ];
1582
+ };
1583
+ },
1584
+ {
1585
+ name: 'systemProgram';
1586
+ address: '11111111111111111111111111111111';
1587
+ }
1588
+ ];
1589
+ args: [
1068
1590
  {
1069
1591
  name: 'args';
1070
1592
  type: {
@@ -1595,6 +2117,10 @@ export type TriadProtocol = {
1595
2117
  name: 'marketAta';
1596
2118
  writable: true;
1597
2119
  },
2120
+ {
2121
+ name: 'squadsAta';
2122
+ writable: true;
2123
+ },
1598
2124
  {
1599
2125
  name: 'tokenProgram';
1600
2126
  },
@@ -2698,8 +3224,8 @@ export type TriadProtocol = {
2698
3224
  args: [];
2699
3225
  },
2700
3226
  {
2701
- name: 'updateCustomerFee';
2702
- discriminator: [218, 240, 1, 38, 34, 166, 40, 25];
3227
+ name: 'updateIsActiveClaimVault';
3228
+ discriminator: [19, 59, 238, 222, 216, 2, 60, 71];
2703
3229
  accounts: [
2704
3230
  {
2705
3231
  name: 'signer';
@@ -2707,7 +3233,78 @@ export type TriadProtocol = {
2707
3233
  signer: true;
2708
3234
  },
2709
3235
  {
2710
- name: 'customer';
3236
+ name: 'claimVault';
3237
+ writable: true;
3238
+ }
3239
+ ];
3240
+ args: [
3241
+ {
3242
+ name: 'isActive';
3243
+ type: 'bool';
3244
+ }
3245
+ ];
3246
+ },
3247
+ {
3248
+ name: 'updateMarketEnd';
3249
+ discriminator: [10, 188, 22, 219, 206, 83, 67, 31];
3250
+ accounts: [
3251
+ {
3252
+ name: 'signer';
3253
+ writable: true;
3254
+ signer: true;
3255
+ },
3256
+ {
3257
+ name: 'market';
3258
+ writable: true;
3259
+ },
3260
+ {
3261
+ name: 'systemProgram';
3262
+ address: '11111111111111111111111111111111';
3263
+ }
3264
+ ];
3265
+ args: [
3266
+ {
3267
+ name: 'marketEnd';
3268
+ type: 'i64';
3269
+ }
3270
+ ];
3271
+ },
3272
+ {
3273
+ name: 'updateMarketPayout';
3274
+ discriminator: [10, 209, 221, 170, 158, 103, 104, 57];
3275
+ accounts: [
3276
+ {
3277
+ name: 'signer';
3278
+ writable: true;
3279
+ signer: true;
3280
+ },
3281
+ {
3282
+ name: 'market';
3283
+ writable: true;
3284
+ },
3285
+ {
3286
+ name: 'systemProgram';
3287
+ address: '11111111111111111111111111111111';
3288
+ }
3289
+ ];
3290
+ args: [
3291
+ {
3292
+ name: 'isAllowedToPayout';
3293
+ type: 'bool';
3294
+ }
3295
+ ];
3296
+ },
3297
+ {
3298
+ name: 'updateMarketQuestion';
3299
+ discriminator: [142, 161, 115, 206, 241, 181, 202, 233];
3300
+ accounts: [
3301
+ {
3302
+ name: 'signer';
3303
+ writable: true;
3304
+ signer: true;
3305
+ },
3306
+ {
3307
+ name: 'market';
2711
3308
  writable: true;
2712
3309
  },
2713
3310
  {
@@ -2717,14 +3314,16 @@ export type TriadProtocol = {
2717
3314
  ];
2718
3315
  args: [
2719
3316
  {
2720
- name: 'feeBps';
2721
- type: 'u16';
3317
+ name: 'question';
3318
+ type: {
3319
+ array: ['u8', 80];
3320
+ };
2722
3321
  }
2723
3322
  ];
2724
3323
  },
2725
3324
  {
2726
- name: 'updateMarket';
2727
- discriminator: [153, 39, 2, 197, 179, 50, 199, 217];
3325
+ name: 'updateMarketWinningDirection';
3326
+ discriminator: [243, 10, 168, 194, 142, 250, 255, 133];
2728
3327
  accounts: [
2729
3328
  {
2730
3329
  name: 'signer';
@@ -2747,18 +3346,18 @@ export type TriadProtocol = {
2747
3346
  ];
2748
3347
  args: [
2749
3348
  {
2750
- name: 'args';
3349
+ name: 'winningDirection';
2751
3350
  type: {
2752
3351
  defined: {
2753
- name: 'updateMarketArgs';
3352
+ name: 'winningDirection';
2754
3353
  };
2755
3354
  };
2756
3355
  }
2757
3356
  ];
2758
3357
  },
2759
3358
  {
2760
- name: 'updateStakeVault';
2761
- discriminator: [84, 171, 100, 153, 126, 215, 229, 68];
3359
+ name: 'updateStakeVaultIsLocked';
3360
+ discriminator: [239, 65, 219, 190, 157, 173, 139, 226];
2762
3361
  accounts: [
2763
3362
  {
2764
3363
  name: 'signer';
@@ -2796,158 +3395,28 @@ export type TriadProtocol = {
2796
3395
  };
2797
3396
  },
2798
3397
  {
2799
- name: 'mint';
3398
+ name: 'systemProgram';
3399
+ address: '11111111111111111111111111111111';
3400
+ }
3401
+ ];
3402
+ args: [
3403
+ {
3404
+ name: 'isLocked';
3405
+ type: 'bool';
3406
+ }
3407
+ ];
3408
+ },
3409
+ {
3410
+ name: 'withdrawPoseidon';
3411
+ discriminator: [63, 55, 48, 174, 44, 202, 11, 227];
3412
+ accounts: [
3413
+ {
3414
+ name: 'signer';
2800
3415
  writable: true;
3416
+ signer: true;
2801
3417
  },
2802
3418
  {
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
- };
2914
- };
2915
- },
2916
- {
2917
- name: 'tokenProgram';
2918
- address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
2919
- },
2920
- {
2921
- name: 'associatedTokenProgram';
2922
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
2923
- },
2924
- {
2925
- name: 'systemProgram';
2926
- address: '11111111111111111111111111111111';
2927
- }
2928
- ];
2929
- args: [
2930
- {
2931
- name: 'args';
2932
- type: {
2933
- defined: {
2934
- name: 'updateStakeVaultArgs';
2935
- };
2936
- };
2937
- }
2938
- ];
2939
- },
2940
- {
2941
- name: 'withdrawPoseidon';
2942
- discriminator: [63, 55, 48, 174, 44, 202, 11, 227];
2943
- accounts: [
2944
- {
2945
- name: 'signer';
2946
- writable: true;
2947
- signer: true;
2948
- },
2949
- {
2950
- name: 'nft';
3419
+ name: 'nft';
2951
3420
  writable: true;
2952
3421
  },
2953
3422
  {
@@ -2983,6 +3452,14 @@ export type TriadProtocol = {
2983
3452
  name: 'baseCollectionV1';
2984
3453
  discriminator: [0, 0, 0, 0, 0, 0, 0, 0];
2985
3454
  },
3455
+ {
3456
+ name: 'claimVault';
3457
+ discriminator: [154, 74, 122, 191, 197, 171, 227, 248];
3458
+ },
3459
+ {
3460
+ name: 'claimedUser';
3461
+ discriminator: [160, 7, 160, 134, 104, 87, 137, 13];
3462
+ },
2986
3463
  {
2987
3464
  name: 'collection';
2988
3465
  discriminator: [48, 160, 232, 205, 191, 207, 26, 141];
@@ -3034,12 +3511,16 @@ export type TriadProtocol = {
3034
3511
  discriminator: [143, 95, 119, 33, 30, 15, 222, 175];
3035
3512
  },
3036
3513
  {
3037
- name: 'marketEvent';
3038
- discriminator: [212, 67, 145, 23, 58, 104, 52, 83];
3514
+ name: 'claimTokenEvent';
3515
+ discriminator: [127, 10, 14, 49, 47, 171, 31, 127];
3039
3516
  },
3040
3517
  {
3041
- name: 'marketFeeCollectedEvent';
3042
- discriminator: [248, 190, 87, 22, 89, 145, 188, 207];
3518
+ name: 'collectMarketFeeEvent';
3519
+ discriminator: [210, 147, 203, 216, 158, 111, 59, 143];
3520
+ },
3521
+ {
3522
+ name: 'marketEvent';
3523
+ discriminator: [212, 67, 145, 23, 58, 104, 52, 83];
3043
3524
  },
3044
3525
  {
3045
3526
  name: 'orderEvent';
@@ -3076,138 +3557,118 @@ export type TriadProtocol = {
3076
3557
  },
3077
3558
  {
3078
3559
  code: 6003;
3079
- name: 'noRewardsAvailable';
3080
- msg: 'No rewards available';
3081
- },
3082
- {
3083
- code: 6004;
3084
3560
  name: 'invalidPrice';
3085
3561
  msg: 'Invalid price';
3086
3562
  },
3087
3563
  {
3088
- code: 6005;
3564
+ code: 6004;
3089
3565
  name: 'noAvailableOrderSlot';
3090
3566
  msg: 'No available order slot';
3091
3567
  },
3092
3568
  {
3093
- code: 6006;
3094
- name: 'marketInactive';
3095
- msg: 'Market is inactive';
3096
- },
3097
- {
3098
- code: 6007;
3569
+ code: 6005;
3099
3570
  name: 'orderNotFound';
3100
3571
  msg: 'Order not found';
3101
3572
  },
3102
3573
  {
3103
- code: 6008;
3104
- name: 'questionPeriodNotStarted';
3105
- msg: 'Question period not started';
3106
- },
3107
- {
3108
- code: 6009;
3109
- name: 'questionPeriodEnded';
3110
- msg: 'Question period ended';
3111
- },
3112
- {
3113
- code: 6010;
3574
+ code: 6006;
3114
3575
  name: 'stakeVaultLocked';
3115
3576
  msg: 'Stake vault is locked';
3116
3577
  },
3117
3578
  {
3118
- code: 6011;
3579
+ code: 6007;
3119
3580
  name: 'marketStillActive';
3120
3581
  msg: 'Market still active';
3121
3582
  },
3122
3583
  {
3123
- code: 6012;
3124
- name: 'insufficientLiquidity';
3125
- msg: 'Insufficient liquidity';
3584
+ code: 6008;
3585
+ name: 'marketInactive';
3586
+ msg: 'Market Inactive';
3126
3587
  },
3127
3588
  {
3128
- code: 6013;
3589
+ code: 6009;
3590
+ name: 'marketEnded';
3591
+ msg: 'Market Ended';
3592
+ },
3593
+ {
3594
+ code: 6010;
3129
3595
  name: 'marketAlreadyResolved';
3130
3596
  msg: 'Market already resolved';
3131
3597
  },
3132
3598
  {
3133
- code: 6014;
3599
+ code: 6011;
3134
3600
  name: 'concurrentTransaction';
3135
3601
  msg: 'Concurrent transaction';
3136
3602
  },
3137
3603
  {
3138
- code: 6015;
3604
+ code: 6012;
3139
3605
  name: 'marketNotAllowedToPayout';
3140
3606
  msg: 'Market Not allowed to payout';
3141
3607
  },
3142
3608
  {
3143
- code: 6016;
3609
+ code: 6013;
3144
3610
  name: 'userTradeIsSubUser';
3145
3611
  msg: 'User trade is sub user';
3146
3612
  },
3147
3613
  {
3148
- code: 6017;
3614
+ code: 6014;
3149
3615
  name: 'alreadyLinked';
3150
3616
  msg: 'Already linked';
3151
3617
  },
3152
3618
  {
3153
- code: 6018;
3619
+ code: 6015;
3154
3620
  name: 'notLinked';
3155
3621
  msg: 'Not linked';
3156
3622
  },
3157
3623
  {
3158
- code: 6019;
3159
- name: 'invalidCustomer';
3160
- msg: 'Invalid customer';
3161
- },
3162
- {
3163
- code: 6020;
3164
- name: 'invalidMint';
3165
- msg: 'Invalid mint';
3166
- },
3167
- {
3168
- code: 6021;
3624
+ code: 6016;
3169
3625
  name: 'invalidShares';
3170
3626
  msg: 'Invalid shares';
3171
3627
  },
3172
3628
  {
3173
- code: 6022;
3629
+ code: 6017;
3174
3630
  name: 'unauthorizedToOrderBook';
3175
3631
  msg: 'Unauthorized to order book';
3176
3632
  },
3177
3633
  {
3178
- code: 6023;
3179
- name: 'orderIsFullFilled';
3180
- msg: 'Order is full filled';
3634
+ code: 6018;
3635
+ name: 'fastMarketStillActive';
3636
+ msg: 'Fast Market is still active';
3181
3637
  },
3182
3638
  {
3183
- code: 6024;
3184
- name: 'linkedBidOrderNotFound';
3185
- msg: 'Linked bid order not found';
3639
+ code: 6019;
3640
+ name: 'invalidNonce';
3641
+ msg: 'Invalid Nonce';
3186
3642
  },
3187
3643
  {
3188
- code: 6025;
3189
- name: 'currentFastPoolMarketStillActive';
3190
- msg: 'Current fast pool market still active';
3644
+ code: 6020;
3645
+ name: 'invalidMainOrder';
3646
+ msg: 'Invalid Main Order';
3647
+ },
3648
+ {
3649
+ code: 6021;
3650
+ name: 'invalidMarketEnd';
3651
+ msg: 'Invalid Market End';
3191
3652
  },
3192
3653
  {
3193
- code: 6026;
3194
- name: 'marketAlreadyAggregated';
3195
- msg: 'Market already aggregated';
3654
+ code: 6022;
3655
+ name: 'invalidPool';
3656
+ msg: 'Invalid Pool';
3196
3657
  },
3197
3658
  {
3198
- code: 6027;
3199
- name: 'marketAlreadyPaidOut';
3200
- msg: 'Market already paid out';
3659
+ code: 6023;
3660
+ name: 'invalidMerkleProof';
3661
+ msg: 'Invalid Merkle Proof';
3201
3662
  },
3202
3663
  {
3203
- code: 6028;
3204
- name: 'invalidNonce';
3205
- msg: 'Invalid Nonce';
3664
+ code: 6024;
3665
+ name: 'claimVaultInactive';
3666
+ msg: 'Claim Vault Inactive';
3206
3667
  },
3207
3668
  {
3208
- code: 6029;
3209
- name: 'invalidMainOrder';
3210
- msg: 'Invalid Main Order';
3669
+ code: 6025;
3670
+ name: 'userAlreadyClaimed';
3671
+ msg: 'User Already Claimed';
3211
3672
  }
3212
3673
  ];
3213
3674
  types: [
@@ -3299,162 +3760,338 @@ export type TriadProtocol = {
3299
3760
  kind: 'struct';
3300
3761
  fields: [
3301
3762
  {
3302
- name: 'price';
3303
- type: 'u64';
3304
- },
3305
- {
3306
- name: 'totalShares';
3307
- type: 'u64';
3308
- },
3309
- {
3310
- name: 'filledShares';
3763
+ name: 'price';
3764
+ type: 'u64';
3765
+ },
3766
+ {
3767
+ name: 'totalShares';
3768
+ type: 'u64';
3769
+ },
3770
+ {
3771
+ name: 'filledShares';
3772
+ type: 'u64';
3773
+ },
3774
+ {
3775
+ name: 'authority';
3776
+ type: {
3777
+ array: ['u8', 32];
3778
+ };
3779
+ },
3780
+ {
3781
+ name: 'userNonce';
3782
+ type: 'u32';
3783
+ },
3784
+ {
3785
+ name: 'id';
3786
+ type: 'u8';
3787
+ },
3788
+ {
3789
+ name: 'linkedBookOrderId';
3790
+ type: 'u8';
3791
+ },
3792
+ {
3793
+ name: 'orderDirection';
3794
+ type: 'u8';
3795
+ },
3796
+ {
3797
+ name: 'orderSide';
3798
+ type: 'u8';
3799
+ }
3800
+ ];
3801
+ };
3802
+ },
3803
+ {
3804
+ name: 'bookOrderEvent';
3805
+ type: {
3806
+ kind: 'struct';
3807
+ fields: [
3808
+ {
3809
+ name: 'marketId';
3810
+ type: 'u64';
3811
+ },
3812
+ {
3813
+ name: 'timestamp';
3814
+ type: 'i64';
3815
+ },
3816
+ {
3817
+ name: 'price';
3818
+ type: 'u64';
3819
+ },
3820
+ {
3821
+ name: 'totalShares';
3822
+ type: 'u64';
3823
+ },
3824
+ {
3825
+ name: 'filledShares';
3826
+ type: 'u64';
3827
+ },
3828
+ {
3829
+ name: 'authority';
3830
+ type: 'pubkey';
3831
+ },
3832
+ {
3833
+ name: 'userNonce';
3834
+ type: 'u32';
3835
+ },
3836
+ {
3837
+ name: 'id';
3838
+ type: 'u8';
3839
+ },
3840
+ {
3841
+ name: 'linkedBookOrderId';
3842
+ type: 'u8';
3843
+ },
3844
+ {
3845
+ name: 'orderDirection';
3846
+ type: {
3847
+ defined: {
3848
+ name: 'orderDirection';
3849
+ };
3850
+ };
3851
+ },
3852
+ {
3853
+ name: 'orderSide';
3854
+ type: {
3855
+ defined: {
3856
+ name: 'orderSide';
3857
+ };
3858
+ };
3859
+ }
3860
+ ];
3861
+ };
3862
+ },
3863
+ {
3864
+ name: 'bookOrderFilledEvent';
3865
+ type: {
3866
+ kind: 'struct';
3867
+ fields: [
3868
+ {
3869
+ name: 'marketId';
3870
+ type: 'u64';
3871
+ },
3872
+ {
3873
+ name: 'authority';
3874
+ type: 'pubkey';
3875
+ },
3876
+ {
3877
+ name: 'shares';
3878
+ type: 'u64';
3879
+ },
3880
+ {
3881
+ name: 'price';
3882
+ type: 'u64';
3883
+ },
3884
+ {
3885
+ name: 'orderDirection';
3886
+ type: {
3887
+ defined: {
3888
+ name: 'orderDirection';
3889
+ };
3890
+ };
3891
+ },
3892
+ {
3893
+ name: 'rewards';
3894
+ type: 'u64';
3895
+ },
3896
+ {
3897
+ name: 'timestamp';
3898
+ type: 'i64';
3899
+ }
3900
+ ];
3901
+ };
3902
+ },
3903
+ {
3904
+ name: 'cancelOrderArgs';
3905
+ type: {
3906
+ kind: 'struct';
3907
+ fields: [
3908
+ {
3909
+ name: 'orderId';
3910
+ type: 'u64';
3911
+ },
3912
+ {
3913
+ name: 'orderDirection';
3914
+ type: {
3915
+ defined: {
3916
+ name: 'orderDirection';
3917
+ };
3918
+ };
3919
+ }
3920
+ ];
3921
+ };
3922
+ },
3923
+ {
3924
+ name: 'claimTokenArgs';
3925
+ type: {
3926
+ kind: 'struct';
3927
+ fields: [
3928
+ {
3929
+ name: 'amount';
3311
3930
  type: 'u64';
3312
3931
  },
3313
3932
  {
3314
- name: 'authority';
3933
+ name: 'merkleProof';
3315
3934
  type: {
3316
- array: ['u8', 32];
3935
+ vec: {
3936
+ array: ['u8', 32];
3937
+ };
3317
3938
  };
3318
- },
3939
+ }
3940
+ ];
3941
+ };
3942
+ },
3943
+ {
3944
+ name: 'claimTokenEvent';
3945
+ type: {
3946
+ kind: 'struct';
3947
+ fields: [
3319
3948
  {
3320
- name: 'userNonce';
3321
- type: 'u32';
3949
+ name: 'user';
3950
+ type: 'pubkey';
3322
3951
  },
3323
3952
  {
3324
- name: 'id';
3325
- type: 'u8';
3953
+ name: 'claimVault';
3954
+ type: 'pubkey';
3326
3955
  },
3327
3956
  {
3328
- name: 'linkedBookOrderId';
3329
- type: 'u8';
3957
+ name: 'mint';
3958
+ type: 'pubkey';
3330
3959
  },
3331
3960
  {
3332
- name: 'orderDirection';
3333
- type: 'u8';
3961
+ name: 'amount';
3962
+ type: 'u64';
3334
3963
  },
3335
3964
  {
3336
- name: 'orderSide';
3337
- type: 'u8';
3965
+ name: 'timestamp';
3966
+ type: 'i64';
3338
3967
  }
3339
3968
  ];
3340
3969
  };
3341
3970
  },
3342
3971
  {
3343
- name: 'bookOrderEvent';
3972
+ name: 'claimVault';
3344
3973
  type: {
3345
3974
  kind: 'struct';
3346
3975
  fields: [
3347
3976
  {
3348
- name: 'marketId';
3349
- type: 'u64';
3977
+ name: 'bump';
3978
+ type: 'u8';
3350
3979
  },
3351
3980
  {
3352
- name: 'timestamp';
3981
+ name: 'authority';
3982
+ type: 'pubkey';
3983
+ },
3984
+ {
3985
+ name: 'initTs';
3353
3986
  type: 'i64';
3354
3987
  },
3355
3988
  {
3356
- name: 'price';
3989
+ name: 'endTs';
3990
+ type: 'i64';
3991
+ },
3992
+ {
3993
+ name: 'totalAmount';
3357
3994
  type: 'u64';
3358
3995
  },
3359
3996
  {
3360
- name: 'totalShares';
3997
+ name: 'totalClaimed';
3361
3998
  type: 'u64';
3362
3999
  },
3363
4000
  {
3364
- name: 'filledShares';
4001
+ name: 'totalUsers';
3365
4002
  type: 'u64';
3366
4003
  },
3367
4004
  {
3368
- name: 'authority';
4005
+ name: 'claimedUsers';
4006
+ type: 'u64';
4007
+ },
4008
+ {
4009
+ name: 'tokenPerUser';
4010
+ type: 'u64';
4011
+ },
4012
+ {
4013
+ name: 'mint';
3369
4014
  type: 'pubkey';
3370
4015
  },
3371
4016
  {
3372
- name: 'userNonce';
3373
- type: 'u32';
4017
+ name: 'isActive';
4018
+ type: 'bool';
3374
4019
  },
3375
4020
  {
3376
- name: 'id';
3377
- type: 'u8';
4021
+ name: 'name';
4022
+ type: 'string';
3378
4023
  },
3379
4024
  {
3380
- name: 'linkedBookOrderId';
3381
- type: 'u8';
4025
+ name: 'isFirstComeFirstServed';
4026
+ type: 'bool';
3382
4027
  },
3383
4028
  {
3384
- name: 'orderDirection';
4029
+ name: 'merkleRoot';
3385
4030
  type: {
3386
- defined: {
3387
- name: 'orderDirection';
3388
- };
4031
+ array: ['u8', 32];
3389
4032
  };
3390
4033
  },
3391
4034
  {
3392
- name: 'orderSide';
4035
+ name: 'padding';
3393
4036
  type: {
3394
- defined: {
3395
- name: 'orderSide';
3396
- };
4037
+ array: ['u8', 32];
3397
4038
  };
3398
4039
  }
3399
4040
  ];
3400
4041
  };
3401
4042
  },
3402
4043
  {
3403
- name: 'bookOrderFilledEvent';
4044
+ name: 'claimedUser';
3404
4045
  type: {
3405
4046
  kind: 'struct';
3406
4047
  fields: [
3407
4048
  {
3408
- name: 'marketId';
3409
- type: 'u64';
3410
- },
3411
- {
3412
- name: 'authority';
4049
+ name: 'user';
3413
4050
  type: 'pubkey';
3414
4051
  },
3415
4052
  {
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
- };
4053
+ name: 'claimVault';
4054
+ type: 'pubkey';
3430
4055
  },
3431
4056
  {
3432
- name: 'rewards';
4057
+ name: 'amount';
3433
4058
  type: 'u64';
3434
4059
  },
3435
4060
  {
3436
- name: 'timestamp';
4061
+ name: 'ts';
3437
4062
  type: 'i64';
3438
4063
  }
3439
4064
  ];
3440
4065
  };
3441
4066
  },
3442
4067
  {
3443
- name: 'cancelOrderArgs';
4068
+ name: 'collectMarketFeeEvent';
3444
4069
  type: {
3445
4070
  kind: 'struct';
3446
4071
  fields: [
3447
4072
  {
3448
- name: 'orderId';
4073
+ name: 'marketId';
3449
4074
  type: 'u64';
3450
4075
  },
3451
4076
  {
3452
- name: 'orderDirection';
3453
- type: {
3454
- defined: {
3455
- name: 'orderDirection';
3456
- };
3457
- };
4077
+ name: 'triadFee';
4078
+ type: 'u64';
4079
+ },
4080
+ {
4081
+ name: 'customerId';
4082
+ type: 'u16';
4083
+ },
4084
+ {
4085
+ name: 'customerFee';
4086
+ type: 'u64';
4087
+ },
4088
+ {
4089
+ name: 'customerFeeRecipient';
4090
+ type: 'pubkey';
4091
+ },
4092
+ {
4093
+ name: 'timestamp';
4094
+ type: 'i64';
3458
4095
  }
3459
4096
  ];
3460
4097
  };
@@ -3493,6 +4130,46 @@ export type TriadProtocol = {
3493
4130
  ];
3494
4131
  };
3495
4132
  },
4133
+ {
4134
+ name: 'createClaimVaultArgs';
4135
+ type: {
4136
+ kind: 'struct';
4137
+ fields: [
4138
+ {
4139
+ name: 'totalAmount';
4140
+ type: 'u64';
4141
+ },
4142
+ {
4143
+ name: 'totalUsers';
4144
+ type: 'u64';
4145
+ },
4146
+ {
4147
+ name: 'mint';
4148
+ type: 'pubkey';
4149
+ },
4150
+ {
4151
+ name: 'name';
4152
+ type: 'string';
4153
+ },
4154
+ {
4155
+ name: 'isFirstComeFirstServed';
4156
+ type: 'bool';
4157
+ },
4158
+ {
4159
+ name: 'endTs';
4160
+ type: 'i64';
4161
+ },
4162
+ {
4163
+ name: 'merkleRoot';
4164
+ type: {
4165
+ option: {
4166
+ array: ['u8', 32];
4167
+ };
4168
+ };
4169
+ }
4170
+ ];
4171
+ };
4172
+ },
3496
4173
  {
3497
4174
  name: 'createCustomerArgs';
3498
4175
  type: {
@@ -3818,46 +4495,6 @@ export type TriadProtocol = {
3818
4495
  ];
3819
4496
  };
3820
4497
  },
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
4498
  {
3862
4499
  name: 'marketV2';
3863
4500
  type: {
@@ -4690,56 +5327,6 @@ export type TriadProtocol = {
4690
5327
  ];
4691
5328
  };
4692
5329
  },
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
5330
  {
4744
5331
  name: 'userTrade';
4745
5332
  type: {