@triadxyz/triad-protocol 2.2.0-beta → 2.2.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.
@@ -50,6 +50,466 @@ export type TriadProtocol = {
50
50
  ];
51
51
  args: [];
52
52
  },
53
+ {
54
+ name: 'bidChest';
55
+ discriminator: [185, 123, 72, 37, 225, 126, 79, 103];
56
+ accounts: [
57
+ {
58
+ name: 'signer';
59
+ writable: true;
60
+ signer: true;
61
+ },
62
+ {
63
+ name: 'squads';
64
+ writable: true;
65
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
66
+ },
67
+ {
68
+ name: 'chest';
69
+ writable: true;
70
+ pda: {
71
+ seeds: [
72
+ {
73
+ kind: 'const';
74
+ value: [99, 104, 101, 115, 116];
75
+ },
76
+ {
77
+ kind: 'arg';
78
+ path: 'args.id';
79
+ }
80
+ ];
81
+ };
82
+ },
83
+ {
84
+ name: 'mint';
85
+ writable: true;
86
+ address: 'tCMraBSGHeMcQS76hNnBhnfbMzrtnnT3nbt3vAnSCE2';
87
+ },
88
+ {
89
+ name: 'signerAta';
90
+ writable: true;
91
+ pda: {
92
+ seeds: [
93
+ {
94
+ kind: 'account';
95
+ path: 'signer';
96
+ },
97
+ {
98
+ kind: 'account';
99
+ path: 'tokenProgram';
100
+ },
101
+ {
102
+ kind: 'account';
103
+ path: 'mint';
104
+ }
105
+ ];
106
+ program: {
107
+ kind: 'const';
108
+ value: [
109
+ 140,
110
+ 151,
111
+ 37,
112
+ 143,
113
+ 78,
114
+ 36,
115
+ 137,
116
+ 241,
117
+ 187,
118
+ 61,
119
+ 16,
120
+ 41,
121
+ 20,
122
+ 142,
123
+ 13,
124
+ 131,
125
+ 11,
126
+ 90,
127
+ 19,
128
+ 153,
129
+ 218,
130
+ 255,
131
+ 16,
132
+ 132,
133
+ 4,
134
+ 142,
135
+ 123,
136
+ 216,
137
+ 219,
138
+ 233,
139
+ 248,
140
+ 89
141
+ ];
142
+ };
143
+ };
144
+ },
145
+ {
146
+ name: 'chestAta';
147
+ writable: true;
148
+ pda: {
149
+ seeds: [
150
+ {
151
+ kind: 'account';
152
+ path: 'chest';
153
+ },
154
+ {
155
+ kind: 'account';
156
+ path: 'tokenProgram';
157
+ },
158
+ {
159
+ kind: 'account';
160
+ path: 'mint';
161
+ }
162
+ ];
163
+ program: {
164
+ kind: 'const';
165
+ value: [
166
+ 140,
167
+ 151,
168
+ 37,
169
+ 143,
170
+ 78,
171
+ 36,
172
+ 137,
173
+ 241,
174
+ 187,
175
+ 61,
176
+ 16,
177
+ 41,
178
+ 20,
179
+ 142,
180
+ 13,
181
+ 131,
182
+ 11,
183
+ 90,
184
+ 19,
185
+ 153,
186
+ 218,
187
+ 255,
188
+ 16,
189
+ 132,
190
+ 4,
191
+ 142,
192
+ 123,
193
+ 216,
194
+ 219,
195
+ 233,
196
+ 248,
197
+ 89
198
+ ];
199
+ };
200
+ };
201
+ },
202
+ {
203
+ name: 'tokenProgram';
204
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
205
+ },
206
+ {
207
+ name: 'associatedTokenProgram';
208
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
209
+ },
210
+ {
211
+ name: 'systemProgram';
212
+ address: '11111111111111111111111111111111';
213
+ }
214
+ ];
215
+ args: [
216
+ {
217
+ name: 'args';
218
+ type: {
219
+ defined: {
220
+ name: 'bidChestArgs';
221
+ };
222
+ };
223
+ }
224
+ ];
225
+ },
226
+ {
227
+ name: 'buyChestToken';
228
+ discriminator: [39, 255, 245, 190, 125, 81, 87, 32];
229
+ accounts: [
230
+ {
231
+ name: 'signer';
232
+ writable: true;
233
+ signer: true;
234
+ },
235
+ {
236
+ name: 'chest';
237
+ writable: true;
238
+ pda: {
239
+ seeds: [
240
+ {
241
+ kind: 'const';
242
+ value: [99, 104, 101, 115, 116];
243
+ },
244
+ {
245
+ kind: 'arg';
246
+ path: 'args.id';
247
+ }
248
+ ];
249
+ };
250
+ },
251
+ {
252
+ name: 'eventMint';
253
+ writable: true;
254
+ address: 'tCMraBSGHeMcQS76hNnBhnfbMzrtnnT3nbt3vAnSCE2';
255
+ },
256
+ {
257
+ name: 'trdMint';
258
+ writable: true;
259
+ address: 't3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV';
260
+ },
261
+ {
262
+ name: 'chestEventAta';
263
+ writable: true;
264
+ pda: {
265
+ seeds: [
266
+ {
267
+ kind: 'account';
268
+ path: 'chest';
269
+ },
270
+ {
271
+ kind: 'account';
272
+ path: 'tokenProgram';
273
+ },
274
+ {
275
+ kind: 'account';
276
+ path: 'eventMint';
277
+ }
278
+ ];
279
+ program: {
280
+ kind: 'const';
281
+ value: [
282
+ 140,
283
+ 151,
284
+ 37,
285
+ 143,
286
+ 78,
287
+ 36,
288
+ 137,
289
+ 241,
290
+ 187,
291
+ 61,
292
+ 16,
293
+ 41,
294
+ 20,
295
+ 142,
296
+ 13,
297
+ 131,
298
+ 11,
299
+ 90,
300
+ 19,
301
+ 153,
302
+ 218,
303
+ 255,
304
+ 16,
305
+ 132,
306
+ 4,
307
+ 142,
308
+ 123,
309
+ 216,
310
+ 219,
311
+ 233,
312
+ 248,
313
+ 89
314
+ ];
315
+ };
316
+ };
317
+ },
318
+ {
319
+ name: 'signerEventAta';
320
+ writable: true;
321
+ pda: {
322
+ seeds: [
323
+ {
324
+ kind: 'account';
325
+ path: 'signer';
326
+ },
327
+ {
328
+ kind: 'account';
329
+ path: 'tokenProgram';
330
+ },
331
+ {
332
+ kind: 'account';
333
+ path: 'eventMint';
334
+ }
335
+ ];
336
+ program: {
337
+ kind: 'const';
338
+ value: [
339
+ 140,
340
+ 151,
341
+ 37,
342
+ 143,
343
+ 78,
344
+ 36,
345
+ 137,
346
+ 241,
347
+ 187,
348
+ 61,
349
+ 16,
350
+ 41,
351
+ 20,
352
+ 142,
353
+ 13,
354
+ 131,
355
+ 11,
356
+ 90,
357
+ 19,
358
+ 153,
359
+ 218,
360
+ 255,
361
+ 16,
362
+ 132,
363
+ 4,
364
+ 142,
365
+ 123,
366
+ 216,
367
+ 219,
368
+ 233,
369
+ 248,
370
+ 89
371
+ ];
372
+ };
373
+ };
374
+ },
375
+ {
376
+ name: 'signerTrdAta';
377
+ writable: true;
378
+ pda: {
379
+ seeds: [
380
+ {
381
+ kind: 'account';
382
+ path: 'signer';
383
+ },
384
+ {
385
+ kind: 'account';
386
+ path: 'tokenProgram';
387
+ },
388
+ {
389
+ kind: 'account';
390
+ path: 'trdMint';
391
+ }
392
+ ];
393
+ program: {
394
+ kind: 'const';
395
+ value: [
396
+ 140,
397
+ 151,
398
+ 37,
399
+ 143,
400
+ 78,
401
+ 36,
402
+ 137,
403
+ 241,
404
+ 187,
405
+ 61,
406
+ 16,
407
+ 41,
408
+ 20,
409
+ 142,
410
+ 13,
411
+ 131,
412
+ 11,
413
+ 90,
414
+ 19,
415
+ 153,
416
+ 218,
417
+ 255,
418
+ 16,
419
+ 132,
420
+ 4,
421
+ 142,
422
+ 123,
423
+ 216,
424
+ 219,
425
+ 233,
426
+ 248,
427
+ 89
428
+ ];
429
+ };
430
+ };
431
+ },
432
+ {
433
+ name: 'chestTrdAta';
434
+ writable: true;
435
+ pda: {
436
+ seeds: [
437
+ {
438
+ kind: 'account';
439
+ path: 'chest';
440
+ },
441
+ {
442
+ kind: 'account';
443
+ path: 'tokenProgram';
444
+ },
445
+ {
446
+ kind: 'account';
447
+ path: 'trdMint';
448
+ }
449
+ ];
450
+ program: {
451
+ kind: 'const';
452
+ value: [
453
+ 140,
454
+ 151,
455
+ 37,
456
+ 143,
457
+ 78,
458
+ 36,
459
+ 137,
460
+ 241,
461
+ 187,
462
+ 61,
463
+ 16,
464
+ 41,
465
+ 20,
466
+ 142,
467
+ 13,
468
+ 131,
469
+ 11,
470
+ 90,
471
+ 19,
472
+ 153,
473
+ 218,
474
+ 255,
475
+ 16,
476
+ 132,
477
+ 4,
478
+ 142,
479
+ 123,
480
+ 216,
481
+ 219,
482
+ 233,
483
+ 248,
484
+ 89
485
+ ];
486
+ };
487
+ };
488
+ },
489
+ {
490
+ name: 'tokenProgram';
491
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
492
+ },
493
+ {
494
+ name: 'associatedTokenProgram';
495
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
496
+ },
497
+ {
498
+ name: 'systemProgram';
499
+ address: '11111111111111111111111111111111';
500
+ }
501
+ ];
502
+ args: [
503
+ {
504
+ name: 'args';
505
+ type: {
506
+ defined: {
507
+ name: 'buyChestTokenArgs';
508
+ };
509
+ };
510
+ }
511
+ ];
512
+ },
53
513
  {
54
514
  name: 'cancelAskOrder';
55
515
  discriminator: [211, 157, 113, 122, 34, 180, 162, 178];
@@ -64,12 +524,166 @@ export type TriadProtocol = {
64
524
  writable: true;
65
525
  },
66
526
  {
67
- name: 'bidUserTrade';
68
- writable: true;
527
+ name: 'bidUserTrade';
528
+ writable: true;
529
+ },
530
+ {
531
+ name: 'askUserTrade';
532
+ writable: true;
533
+ },
534
+ {
535
+ name: 'systemProgram';
536
+ address: '11111111111111111111111111111111';
537
+ }
538
+ ];
539
+ args: [
540
+ {
541
+ name: 'orderId';
542
+ type: 'u64';
543
+ }
544
+ ];
545
+ },
546
+ {
547
+ name: 'cancelBidOrder';
548
+ discriminator: [198, 70, 164, 166, 232, 131, 55, 165];
549
+ accounts: [
550
+ {
551
+ name: 'signer';
552
+ writable: true;
553
+ signer: true;
554
+ },
555
+ {
556
+ name: 'market';
557
+ writable: true;
558
+ },
559
+ {
560
+ name: 'bidUserTrade';
561
+ writable: true;
562
+ },
563
+ {
564
+ name: 'mint';
565
+ writable: true;
566
+ },
567
+ {
568
+ name: 'userAta';
569
+ writable: true;
570
+ pda: {
571
+ seeds: [
572
+ {
573
+ kind: 'account';
574
+ path: 'signer';
575
+ },
576
+ {
577
+ kind: 'account';
578
+ path: 'tokenProgram';
579
+ },
580
+ {
581
+ kind: 'account';
582
+ path: 'mint';
583
+ }
584
+ ];
585
+ program: {
586
+ kind: 'const';
587
+ value: [
588
+ 140,
589
+ 151,
590
+ 37,
591
+ 143,
592
+ 78,
593
+ 36,
594
+ 137,
595
+ 241,
596
+ 187,
597
+ 61,
598
+ 16,
599
+ 41,
600
+ 20,
601
+ 142,
602
+ 13,
603
+ 131,
604
+ 11,
605
+ 90,
606
+ 19,
607
+ 153,
608
+ 218,
609
+ 255,
610
+ 16,
611
+ 132,
612
+ 4,
613
+ 142,
614
+ 123,
615
+ 216,
616
+ 219,
617
+ 233,
618
+ 248,
619
+ 89
620
+ ];
621
+ };
622
+ };
623
+ },
624
+ {
625
+ name: 'marketAta';
626
+ writable: true;
627
+ pda: {
628
+ seeds: [
629
+ {
630
+ kind: 'account';
631
+ path: 'market';
632
+ },
633
+ {
634
+ kind: 'account';
635
+ path: 'tokenProgram';
636
+ },
637
+ {
638
+ kind: 'account';
639
+ path: 'mint';
640
+ }
641
+ ];
642
+ program: {
643
+ kind: 'const';
644
+ value: [
645
+ 140,
646
+ 151,
647
+ 37,
648
+ 143,
649
+ 78,
650
+ 36,
651
+ 137,
652
+ 241,
653
+ 187,
654
+ 61,
655
+ 16,
656
+ 41,
657
+ 20,
658
+ 142,
659
+ 13,
660
+ 131,
661
+ 11,
662
+ 90,
663
+ 19,
664
+ 153,
665
+ 218,
666
+ 255,
667
+ 16,
668
+ 132,
669
+ 4,
670
+ 142,
671
+ 123,
672
+ 216,
673
+ 219,
674
+ 233,
675
+ 248,
676
+ 89
677
+ ];
678
+ };
679
+ };
680
+ },
681
+ {
682
+ name: 'tokenProgram';
69
683
  },
70
684
  {
71
- name: 'askUserTrade';
72
- writable: true;
685
+ name: 'associatedTokenProgram';
686
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
73
687
  },
74
688
  {
75
689
  name: 'systemProgram';
@@ -84,8 +698,8 @@ export type TriadProtocol = {
84
698
  ];
85
699
  },
86
700
  {
87
- name: 'cancelBidOrder';
88
- discriminator: [198, 70, 164, 166, 232, 131, 55, 165];
701
+ name: 'claimStakeRewards';
702
+ discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
89
703
  accounts: [
90
704
  {
91
705
  name: 'signer';
@@ -93,11 +707,37 @@ export type TriadProtocol = {
93
707
  signer: true;
94
708
  },
95
709
  {
96
- name: 'market';
710
+ name: 'stakeVault';
97
711
  writable: true;
712
+ pda: {
713
+ seeds: [
714
+ {
715
+ kind: 'const';
716
+ value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
717
+ },
718
+ {
719
+ kind: 'const';
720
+ value: [
721
+ 84,
722
+ 114,
723
+ 105,
724
+ 97,
725
+ 100,
726
+ 32,
727
+ 83,
728
+ 104,
729
+ 97,
730
+ 114,
731
+ 101,
732
+ 32,
733
+ 49
734
+ ];
735
+ }
736
+ ];
737
+ };
98
738
  },
99
739
  {
100
- name: 'bidUserTrade';
740
+ name: 'stake';
101
741
  writable: true;
102
742
  },
103
743
  {
@@ -105,13 +745,13 @@ export type TriadProtocol = {
105
745
  writable: true;
106
746
  },
107
747
  {
108
- name: 'userAta';
748
+ name: 'fromAta';
109
749
  writable: true;
110
750
  pda: {
111
751
  seeds: [
112
752
  {
113
753
  kind: 'account';
114
- path: 'signer';
754
+ path: 'stakeVault';
115
755
  },
116
756
  {
117
757
  kind: 'account';
@@ -162,13 +802,13 @@ export type TriadProtocol = {
162
802
  };
163
803
  },
164
804
  {
165
- name: 'marketAta';
805
+ name: 'toAta';
166
806
  writable: true;
167
807
  pda: {
168
808
  seeds: [
169
809
  {
170
810
  kind: 'account';
171
- path: 'market';
811
+ path: 'signer';
172
812
  },
173
813
  {
174
814
  kind: 'account';
@@ -220,6 +860,7 @@ export type TriadProtocol = {
220
860
  },
221
861
  {
222
862
  name: 'tokenProgram';
863
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
223
864
  },
224
865
  {
225
866
  name: 'associatedTokenProgram';
@@ -230,16 +871,12 @@ export type TriadProtocol = {
230
871
  address: '11111111111111111111111111111111';
231
872
  }
232
873
  ];
233
- args: [
234
- {
235
- name: 'orderId';
236
- type: 'u64';
237
- }
238
- ];
874
+ args: [];
875
+ returns: 'u64';
239
876
  },
240
877
  {
241
- name: 'claimStakeRewards';
242
- discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
878
+ name: 'closeOrder';
879
+ discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
243
880
  accounts: [
244
881
  {
245
882
  name: 'signer';
@@ -247,51 +884,187 @@ export type TriadProtocol = {
247
884
  signer: true;
248
885
  },
249
886
  {
250
- name: 'stakeVault';
887
+ name: 'squads';
888
+ writable: true;
889
+ address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
890
+ },
891
+ {
892
+ name: 'userTrade';
893
+ writable: true;
894
+ },
895
+ {
896
+ name: 'market';
897
+ writable: true;
898
+ },
899
+ {
900
+ name: 'mint';
901
+ writable: true;
902
+ },
903
+ {
904
+ name: 'userAta';
251
905
  writable: true;
252
906
  pda: {
253
907
  seeds: [
254
908
  {
255
- kind: 'const';
256
- value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
909
+ kind: 'account';
910
+ path: 'signer';
257
911
  },
258
912
  {
259
- kind: 'const';
260
- value: [
261
- 84,
262
- 114,
263
- 105,
264
- 97,
265
- 100,
266
- 32,
267
- 83,
268
- 104,
269
- 97,
270
- 114,
271
- 101,
272
- 32,
273
- 49
274
- ];
913
+ kind: 'account';
914
+ path: 'tokenProgram';
915
+ },
916
+ {
917
+ kind: 'account';
918
+ path: 'mint';
919
+ }
920
+ ];
921
+ program: {
922
+ kind: 'const';
923
+ value: [
924
+ 140,
925
+ 151,
926
+ 37,
927
+ 143,
928
+ 78,
929
+ 36,
930
+ 137,
931
+ 241,
932
+ 187,
933
+ 61,
934
+ 16,
935
+ 41,
936
+ 20,
937
+ 142,
938
+ 13,
939
+ 131,
940
+ 11,
941
+ 90,
942
+ 19,
943
+ 153,
944
+ 218,
945
+ 255,
946
+ 16,
947
+ 132,
948
+ 4,
949
+ 142,
950
+ 123,
951
+ 216,
952
+ 219,
953
+ 233,
954
+ 248,
955
+ 89
956
+ ];
957
+ };
958
+ };
959
+ },
960
+ {
961
+ name: 'marketVault';
962
+ writable: true;
963
+ pda: {
964
+ seeds: [
965
+ {
966
+ kind: 'account';
967
+ path: 'market';
968
+ },
969
+ {
970
+ kind: 'account';
971
+ path: 'tokenProgram';
972
+ },
973
+ {
974
+ kind: 'account';
975
+ path: 'mint';
275
976
  }
276
977
  ];
978
+ program: {
979
+ kind: 'const';
980
+ value: [
981
+ 140,
982
+ 151,
983
+ 37,
984
+ 143,
985
+ 78,
986
+ 36,
987
+ 137,
988
+ 241,
989
+ 187,
990
+ 61,
991
+ 16,
992
+ 41,
993
+ 20,
994
+ 142,
995
+ 13,
996
+ 131,
997
+ 11,
998
+ 90,
999
+ 19,
1000
+ 153,
1001
+ 218,
1002
+ 255,
1003
+ 16,
1004
+ 132,
1005
+ 4,
1006
+ 142,
1007
+ 123,
1008
+ 216,
1009
+ 219,
1010
+ 233,
1011
+ 248,
1012
+ 89
1013
+ ];
1014
+ };
277
1015
  };
278
1016
  },
279
1017
  {
280
- name: 'stake';
1018
+ name: 'tokenProgram';
1019
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
1020
+ },
1021
+ {
1022
+ name: 'associatedTokenProgram';
1023
+ address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
1024
+ },
1025
+ {
1026
+ name: 'systemProgram';
1027
+ address: '11111111111111111111111111111111';
1028
+ }
1029
+ ];
1030
+ args: [
1031
+ {
1032
+ name: 'orderId';
1033
+ type: 'u64';
1034
+ }
1035
+ ];
1036
+ },
1037
+ {
1038
+ name: 'collectChestToken';
1039
+ discriminator: [96, 19, 20, 164, 124, 139, 140, 123];
1040
+ accounts: [
1041
+ {
1042
+ name: 'signer';
1043
+ writable: true;
1044
+ signer: true;
1045
+ },
1046
+ {
1047
+ name: 'admin';
1048
+ writable: true;
1049
+ address: '82ppCojm3yrEKgdpH8B5AmBJTU1r1uAWXFWhxvPs9UCR';
1050
+ },
1051
+ {
1052
+ name: 'chest';
281
1053
  writable: true;
282
1054
  },
283
1055
  {
284
1056
  name: 'mint';
285
1057
  writable: true;
1058
+ address: 'tCMraBSGHeMcQS76hNnBhnfbMzrtnnT3nbt3vAnSCE2';
286
1059
  },
287
1060
  {
288
- name: 'fromAta';
1061
+ name: 'chestAta';
289
1062
  writable: true;
290
1063
  pda: {
291
1064
  seeds: [
292
1065
  {
293
1066
  kind: 'account';
294
- path: 'stakeVault';
1067
+ path: 'chest';
295
1068
  },
296
1069
  {
297
1070
  kind: 'account';
@@ -342,13 +1115,13 @@ export type TriadProtocol = {
342
1115
  };
343
1116
  },
344
1117
  {
345
- name: 'toAta';
1118
+ name: 'adminAta';
346
1119
  writable: true;
347
1120
  pda: {
348
1121
  seeds: [
349
1122
  {
350
1123
  kind: 'account';
351
- path: 'signer';
1124
+ path: 'admin';
352
1125
  },
353
1126
  {
354
1127
  kind: 'account';
@@ -412,11 +1185,10 @@ export type TriadProtocol = {
412
1185
  }
413
1186
  ];
414
1187
  args: [];
415
- returns: 'u64';
416
1188
  },
417
1189
  {
418
- name: 'closeOrder';
419
- discriminator: [90, 103, 209, 28, 7, 63, 168, 4];
1190
+ name: 'collectRemainingLiquidity';
1191
+ discriminator: [153, 107, 201, 83, 183, 195, 59, 186];
420
1192
  accounts: [
421
1193
  {
422
1194
  name: 'signer';
@@ -428,10 +1200,6 @@ export type TriadProtocol = {
428
1200
  writable: true;
429
1201
  address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
430
1202
  },
431
- {
432
- name: 'userTrade';
433
- writable: true;
434
- },
435
1203
  {
436
1204
  name: 'market';
437
1205
  writable: true;
@@ -441,13 +1209,13 @@ export type TriadProtocol = {
441
1209
  writable: true;
442
1210
  },
443
1211
  {
444
- name: 'userAta';
1212
+ name: 'marketAta';
445
1213
  writable: true;
446
1214
  pda: {
447
1215
  seeds: [
448
1216
  {
449
1217
  kind: 'account';
450
- path: 'signer';
1218
+ path: 'market';
451
1219
  },
452
1220
  {
453
1221
  kind: 'account';
@@ -498,13 +1266,13 @@ export type TriadProtocol = {
498
1266
  };
499
1267
  },
500
1268
  {
501
- name: 'marketVault';
1269
+ name: 'squadsAta';
502
1270
  writable: true;
503
1271
  pda: {
504
1272
  seeds: [
505
1273
  {
506
1274
  kind: 'account';
507
- path: 'market';
1275
+ path: 'squads';
508
1276
  },
509
1277
  {
510
1278
  kind: 'account';
@@ -567,16 +1335,11 @@ export type TriadProtocol = {
567
1335
  address: '11111111111111111111111111111111';
568
1336
  }
569
1337
  ];
570
- args: [
571
- {
572
- name: 'orderId';
573
- type: 'u64';
574
- }
575
- ];
1338
+ args: [];
576
1339
  },
577
1340
  {
578
- name: 'collectRemainingLiquidity';
579
- discriminator: [153, 107, 201, 83, 183, 195, 59, 186];
1341
+ name: 'collectRoyalty';
1342
+ discriminator: [189, 235, 7, 168, 255, 50, 30, 75];
580
1343
  accounts: [
581
1344
  {
582
1345
  name: 'signer';
@@ -589,21 +1352,54 @@ export type TriadProtocol = {
589
1352
  address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
590
1353
  },
591
1354
  {
592
- name: 'market';
1355
+ name: 'collection';
1356
+ writable: true;
1357
+ },
1358
+ {
1359
+ name: 'systemProgram';
1360
+ address: '11111111111111111111111111111111';
1361
+ }
1362
+ ];
1363
+ args: [];
1364
+ },
1365
+ {
1366
+ name: 'createChest';
1367
+ discriminator: [146, 35, 76, 242, 243, 197, 90, 0];
1368
+ accounts: [
1369
+ {
1370
+ name: 'signer';
1371
+ writable: true;
1372
+ signer: true;
1373
+ },
1374
+ {
1375
+ name: 'chest';
593
1376
  writable: true;
1377
+ pda: {
1378
+ seeds: [
1379
+ {
1380
+ kind: 'const';
1381
+ value: [99, 104, 101, 115, 116];
1382
+ },
1383
+ {
1384
+ kind: 'arg';
1385
+ path: 'args.id';
1386
+ }
1387
+ ];
1388
+ };
594
1389
  },
595
1390
  {
596
1391
  name: 'mint';
597
1392
  writable: true;
1393
+ address: 't3DohmswhKk94PPbPYwA6ZKACyY3y5kbcqeQerAJjmV';
598
1394
  },
599
1395
  {
600
- name: 'marketAta';
1396
+ name: 'signerAta';
601
1397
  writable: true;
602
1398
  pda: {
603
1399
  seeds: [
604
1400
  {
605
1401
  kind: 'account';
606
- path: 'market';
1402
+ path: 'signer';
607
1403
  },
608
1404
  {
609
1405
  kind: 'account';
@@ -654,13 +1450,13 @@ export type TriadProtocol = {
654
1450
  };
655
1451
  },
656
1452
  {
657
- name: 'squadsAta';
1453
+ name: 'chestAta';
658
1454
  writable: true;
659
1455
  pda: {
660
1456
  seeds: [
661
1457
  {
662
1458
  kind: 'account';
663
- path: 'squads';
1459
+ path: 'chest';
664
1460
  },
665
1461
  {
666
1462
  kind: 'account';
@@ -723,32 +1519,16 @@ export type TriadProtocol = {
723
1519
  address: '11111111111111111111111111111111';
724
1520
  }
725
1521
  ];
726
- args: [];
727
- },
728
- {
729
- name: 'collectRoyalty';
730
- discriminator: [189, 235, 7, 168, 255, 50, 30, 75];
731
- accounts: [
732
- {
733
- name: 'signer';
734
- writable: true;
735
- signer: true;
736
- },
737
- {
738
- name: 'squads';
739
- writable: true;
740
- address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
741
- },
742
- {
743
- name: 'collection';
744
- writable: true;
745
- },
1522
+ args: [
746
1523
  {
747
- name: 'systemProgram';
748
- address: '11111111111111111111111111111111';
1524
+ name: 'args';
1525
+ type: {
1526
+ defined: {
1527
+ name: 'createChestArgs';
1528
+ };
1529
+ };
749
1530
  }
750
1531
  ];
751
- args: [];
752
1532
  },
753
1533
  {
754
1534
  name: 'createCustomer';
@@ -2053,11 +2833,6 @@ export type TriadProtocol = {
2053
2833
  writable: true;
2054
2834
  signer: true;
2055
2835
  },
2056
- {
2057
- name: 'squads';
2058
- writable: true;
2059
- address: '6fcSf6qfwPNR9AUUNC1UWYZDy5cQ4TzTb2aaipN2zFdq';
2060
- },
2061
2836
  {
2062
2837
  name: 'nft';
2063
2838
  writable: true;
@@ -2533,6 +3308,10 @@ export type TriadProtocol = {
2533
3308
  name: 'baseCollectionV1';
2534
3309
  discriminator: [0, 0, 0, 0, 0, 0, 0, 0];
2535
3310
  },
3311
+ {
3312
+ name: 'chest';
3313
+ discriminator: [62, 105, 229, 96, 248, 72, 144, 162];
3314
+ },
2536
3315
  {
2537
3316
  name: 'collection';
2538
3317
  discriminator: [48, 160, 232, 205, 191, 207, 26, 141];
@@ -2567,6 +3346,14 @@ export type TriadProtocol = {
2567
3346
  }
2568
3347
  ];
2569
3348
  events: [
3349
+ {
3350
+ name: 'bidChestEvent';
3351
+ discriminator: [162, 64, 11, 176, 231, 173, 217, 89];
3352
+ },
3353
+ {
3354
+ name: 'chestFinishedEvent';
3355
+ discriminator: [131, 41, 197, 21, 81, 13, 105, 118];
3356
+ },
2570
3357
  {
2571
3358
  name: 'marketEvent';
2572
3359
  discriminator: [212, 67, 145, 23, 58, 104, 52, 83];
@@ -2731,6 +3518,16 @@ export type TriadProtocol = {
2731
3518
  },
2732
3519
  {
2733
3520
  code: 6028;
3521
+ name: 'chestFinished';
3522
+ msg: 'Chest finished';
3523
+ },
3524
+ {
3525
+ code: 6029;
3526
+ name: 'chestExpired';
3527
+ msg: 'Chest expired';
3528
+ },
3529
+ {
3530
+ code: 6030;
2734
3531
  name: 'marketAlreadyAggregated';
2735
3532
  msg: 'Market already aggregated';
2736
3533
  }
@@ -2814,6 +3611,128 @@ export type TriadProtocol = {
2814
3611
  ];
2815
3612
  };
2816
3613
  },
3614
+ {
3615
+ name: 'bidChestArgs';
3616
+ type: {
3617
+ kind: 'struct';
3618
+ fields: [
3619
+ {
3620
+ name: 'id';
3621
+ type: 'u64';
3622
+ },
3623
+ {
3624
+ name: 'amount';
3625
+ type: 'u64';
3626
+ }
3627
+ ];
3628
+ };
3629
+ },
3630
+ {
3631
+ name: 'bidChestEvent';
3632
+ type: {
3633
+ kind: 'struct';
3634
+ fields: [
3635
+ {
3636
+ name: 'player';
3637
+ type: 'pubkey';
3638
+ },
3639
+ {
3640
+ name: 'chestId';
3641
+ type: 'u64';
3642
+ },
3643
+ {
3644
+ name: 'amount';
3645
+ type: 'u64';
3646
+ },
3647
+ {
3648
+ name: 'timestamp';
3649
+ type: 'i64';
3650
+ }
3651
+ ];
3652
+ };
3653
+ },
3654
+ {
3655
+ name: 'buyChestTokenArgs';
3656
+ type: {
3657
+ kind: 'struct';
3658
+ fields: [
3659
+ {
3660
+ name: 'id';
3661
+ type: 'u64';
3662
+ },
3663
+ {
3664
+ name: 'amount';
3665
+ type: 'u64';
3666
+ }
3667
+ ];
3668
+ };
3669
+ },
3670
+ {
3671
+ name: 'chest';
3672
+ type: {
3673
+ kind: 'struct';
3674
+ fields: [
3675
+ {
3676
+ name: 'bump';
3677
+ type: 'u8';
3678
+ },
3679
+ {
3680
+ name: 'id';
3681
+ type: 'u64';
3682
+ },
3683
+ {
3684
+ name: 'prizePool';
3685
+ type: 'u64';
3686
+ },
3687
+ {
3688
+ name: 'timer';
3689
+ type: 'i64';
3690
+ },
3691
+ {
3692
+ name: 'isFinished';
3693
+ type: 'bool';
3694
+ },
3695
+ {
3696
+ name: 'lastUser';
3697
+ type: 'pubkey';
3698
+ },
3699
+ {
3700
+ name: 'version';
3701
+ type: 'u64';
3702
+ },
3703
+ {
3704
+ name: 'padding';
3705
+ type: {
3706
+ array: ['u8', 128];
3707
+ };
3708
+ }
3709
+ ];
3710
+ };
3711
+ },
3712
+ {
3713
+ name: 'chestFinishedEvent';
3714
+ type: {
3715
+ kind: 'struct';
3716
+ fields: [
3717
+ {
3718
+ name: 'chestId';
3719
+ type: 'u64';
3720
+ },
3721
+ {
3722
+ name: 'winner';
3723
+ type: 'pubkey';
3724
+ },
3725
+ {
3726
+ name: 'prizePool';
3727
+ type: 'u64';
3728
+ },
3729
+ {
3730
+ name: 'timestamp';
3731
+ type: 'i64';
3732
+ }
3733
+ ];
3734
+ };
3735
+ },
2817
3736
  {
2818
3737
  name: 'collection';
2819
3738
  type: {
@@ -2848,6 +3767,22 @@ export type TriadProtocol = {
2848
3767
  ];
2849
3768
  };
2850
3769
  },
3770
+ {
3771
+ name: 'createChestArgs';
3772
+ type: {
3773
+ kind: 'struct';
3774
+ fields: [
3775
+ {
3776
+ name: 'id';
3777
+ type: 'u64';
3778
+ },
3779
+ {
3780
+ name: 'initialPrizePool';
3781
+ type: 'u64';
3782
+ }
3783
+ ];
3784
+ };
3785
+ },
2851
3786
  {
2852
3787
  name: 'createCustomerArgs';
2853
3788
  type: {