@triadxyz/triad-protocol 0.0.6-beta → 0.0.8-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.
- package/dist/stake.d.ts +4 -4
- package/dist/stake.js +26 -37
- package/dist/test.js +13 -114
- package/dist/types/idl_triad_protocol.json +428 -157
- package/dist/types/stake.d.ts +7 -3
- package/dist/types/triad_protocol.d.ts +770 -151
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/constants.js +2 -2
- package/dist/utils/helpers.js +9 -5
- package/package.json +1 -1
|
@@ -12,6 +12,136 @@ export type TriadProtocol = {
|
|
|
12
12
|
spec: '0.1.0';
|
|
13
13
|
};
|
|
14
14
|
instructions: [
|
|
15
|
+
{
|
|
16
|
+
name: 'claimRewards';
|
|
17
|
+
discriminator: [4, 144, 132, 71, 116, 23, 151, 80];
|
|
18
|
+
accounts: [
|
|
19
|
+
{
|
|
20
|
+
name: 'signer';
|
|
21
|
+
writable: true;
|
|
22
|
+
signer: true;
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'stakeVault';
|
|
26
|
+
writable: true;
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'stake';
|
|
30
|
+
writable: true;
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'mint';
|
|
34
|
+
writable: true;
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'fromAta';
|
|
38
|
+
writable: true;
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'toAta';
|
|
42
|
+
writable: true;
|
|
43
|
+
pda: {
|
|
44
|
+
seeds: [
|
|
45
|
+
{
|
|
46
|
+
kind: 'account';
|
|
47
|
+
path: 'signer';
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
kind: 'const';
|
|
51
|
+
value: [
|
|
52
|
+
6,
|
|
53
|
+
221,
|
|
54
|
+
246,
|
|
55
|
+
225,
|
|
56
|
+
215,
|
|
57
|
+
101,
|
|
58
|
+
161,
|
|
59
|
+
147,
|
|
60
|
+
217,
|
|
61
|
+
203,
|
|
62
|
+
225,
|
|
63
|
+
70,
|
|
64
|
+
206,
|
|
65
|
+
235,
|
|
66
|
+
121,
|
|
67
|
+
172,
|
|
68
|
+
28,
|
|
69
|
+
180,
|
|
70
|
+
133,
|
|
71
|
+
237,
|
|
72
|
+
95,
|
|
73
|
+
91,
|
|
74
|
+
55,
|
|
75
|
+
145,
|
|
76
|
+
58,
|
|
77
|
+
140,
|
|
78
|
+
245,
|
|
79
|
+
133,
|
|
80
|
+
126,
|
|
81
|
+
255,
|
|
82
|
+
0,
|
|
83
|
+
169
|
|
84
|
+
];
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
kind: 'account';
|
|
88
|
+
path: 'mint';
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
program: {
|
|
92
|
+
kind: 'const';
|
|
93
|
+
value: [
|
|
94
|
+
140,
|
|
95
|
+
151,
|
|
96
|
+
37,
|
|
97
|
+
143,
|
|
98
|
+
78,
|
|
99
|
+
36,
|
|
100
|
+
137,
|
|
101
|
+
241,
|
|
102
|
+
187,
|
|
103
|
+
61,
|
|
104
|
+
16,
|
|
105
|
+
41,
|
|
106
|
+
20,
|
|
107
|
+
142,
|
|
108
|
+
13,
|
|
109
|
+
131,
|
|
110
|
+
11,
|
|
111
|
+
90,
|
|
112
|
+
19,
|
|
113
|
+
153,
|
|
114
|
+
218,
|
|
115
|
+
255,
|
|
116
|
+
16,
|
|
117
|
+
132,
|
|
118
|
+
4,
|
|
119
|
+
142,
|
|
120
|
+
123,
|
|
121
|
+
216,
|
|
122
|
+
219,
|
|
123
|
+
233,
|
|
124
|
+
248,
|
|
125
|
+
89
|
|
126
|
+
];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'tokenProgram';
|
|
132
|
+
address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'associatedTokenProgram';
|
|
136
|
+
address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'systemProgram';
|
|
140
|
+
address: '11111111111111111111111111111111';
|
|
141
|
+
}
|
|
142
|
+
];
|
|
143
|
+
args: [];
|
|
144
|
+
},
|
|
15
145
|
{
|
|
16
146
|
name: 'claimStakeRewards';
|
|
17
147
|
discriminator: [107, 91, 233, 196, 211, 47, 218, 21];
|
|
@@ -44,6 +174,92 @@ export type TriadProtocol = {
|
|
|
44
174
|
{
|
|
45
175
|
name: 'toAta';
|
|
46
176
|
writable: true;
|
|
177
|
+
pda: {
|
|
178
|
+
seeds: [
|
|
179
|
+
{
|
|
180
|
+
kind: 'account';
|
|
181
|
+
path: 'signer';
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
kind: 'const';
|
|
185
|
+
value: [
|
|
186
|
+
6,
|
|
187
|
+
221,
|
|
188
|
+
246,
|
|
189
|
+
225,
|
|
190
|
+
215,
|
|
191
|
+
101,
|
|
192
|
+
161,
|
|
193
|
+
147,
|
|
194
|
+
217,
|
|
195
|
+
203,
|
|
196
|
+
225,
|
|
197
|
+
70,
|
|
198
|
+
206,
|
|
199
|
+
235,
|
|
200
|
+
121,
|
|
201
|
+
172,
|
|
202
|
+
28,
|
|
203
|
+
180,
|
|
204
|
+
133,
|
|
205
|
+
237,
|
|
206
|
+
95,
|
|
207
|
+
91,
|
|
208
|
+
55,
|
|
209
|
+
145,
|
|
210
|
+
58,
|
|
211
|
+
140,
|
|
212
|
+
245,
|
|
213
|
+
133,
|
|
214
|
+
126,
|
|
215
|
+
255,
|
|
216
|
+
0,
|
|
217
|
+
169
|
|
218
|
+
];
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
kind: 'account';
|
|
222
|
+
path: 'mint';
|
|
223
|
+
}
|
|
224
|
+
];
|
|
225
|
+
program: {
|
|
226
|
+
kind: 'const';
|
|
227
|
+
value: [
|
|
228
|
+
140,
|
|
229
|
+
151,
|
|
230
|
+
37,
|
|
231
|
+
143,
|
|
232
|
+
78,
|
|
233
|
+
36,
|
|
234
|
+
137,
|
|
235
|
+
241,
|
|
236
|
+
187,
|
|
237
|
+
61,
|
|
238
|
+
16,
|
|
239
|
+
41,
|
|
240
|
+
20,
|
|
241
|
+
142,
|
|
242
|
+
13,
|
|
243
|
+
131,
|
|
244
|
+
11,
|
|
245
|
+
90,
|
|
246
|
+
19,
|
|
247
|
+
153,
|
|
248
|
+
218,
|
|
249
|
+
255,
|
|
250
|
+
16,
|
|
251
|
+
132,
|
|
252
|
+
4,
|
|
253
|
+
142,
|
|
254
|
+
123,
|
|
255
|
+
216,
|
|
256
|
+
219,
|
|
257
|
+
233,
|
|
258
|
+
248,
|
|
259
|
+
89
|
|
260
|
+
];
|
|
261
|
+
};
|
|
262
|
+
};
|
|
47
263
|
},
|
|
48
264
|
{
|
|
49
265
|
name: 'tokenProgram';
|
|
@@ -218,6 +434,55 @@ export type TriadProtocol = {
|
|
|
218
434
|
}
|
|
219
435
|
];
|
|
220
436
|
},
|
|
437
|
+
{
|
|
438
|
+
name: 'createUser';
|
|
439
|
+
discriminator: [108, 227, 130, 130, 252, 109, 75, 218];
|
|
440
|
+
accounts: [
|
|
441
|
+
{
|
|
442
|
+
name: 'signer';
|
|
443
|
+
writable: true;
|
|
444
|
+
signer: true;
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
name: 'referral';
|
|
448
|
+
writable: true;
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
name: 'user';
|
|
452
|
+
writable: true;
|
|
453
|
+
pda: {
|
|
454
|
+
seeds: [
|
|
455
|
+
{
|
|
456
|
+
kind: 'const';
|
|
457
|
+
value: [117, 115, 101, 114];
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
kind: 'account';
|
|
461
|
+
path: 'signer';
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
kind: 'arg';
|
|
465
|
+
path: 'args.name';
|
|
466
|
+
}
|
|
467
|
+
];
|
|
468
|
+
};
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: 'systemProgram';
|
|
472
|
+
address: '11111111111111111111111111111111';
|
|
473
|
+
}
|
|
474
|
+
];
|
|
475
|
+
args: [
|
|
476
|
+
{
|
|
477
|
+
name: 'args';
|
|
478
|
+
type: {
|
|
479
|
+
defined: {
|
|
480
|
+
name: 'createUserArgs';
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
];
|
|
485
|
+
},
|
|
221
486
|
{
|
|
222
487
|
name: 'createUserPosition';
|
|
223
488
|
discriminator: [6, 137, 127, 227, 135, 241, 14, 109];
|
|
@@ -308,6 +573,92 @@ export type TriadProtocol = {
|
|
|
308
573
|
{
|
|
309
574
|
name: 'toAta';
|
|
310
575
|
writable: true;
|
|
576
|
+
pda: {
|
|
577
|
+
seeds: [
|
|
578
|
+
{
|
|
579
|
+
kind: 'account';
|
|
580
|
+
path: 'stakeVault';
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
kind: 'const';
|
|
584
|
+
value: [
|
|
585
|
+
6,
|
|
586
|
+
221,
|
|
587
|
+
246,
|
|
588
|
+
225,
|
|
589
|
+
215,
|
|
590
|
+
101,
|
|
591
|
+
161,
|
|
592
|
+
147,
|
|
593
|
+
217,
|
|
594
|
+
203,
|
|
595
|
+
225,
|
|
596
|
+
70,
|
|
597
|
+
206,
|
|
598
|
+
235,
|
|
599
|
+
121,
|
|
600
|
+
172,
|
|
601
|
+
28,
|
|
602
|
+
180,
|
|
603
|
+
133,
|
|
604
|
+
237,
|
|
605
|
+
95,
|
|
606
|
+
91,
|
|
607
|
+
55,
|
|
608
|
+
145,
|
|
609
|
+
58,
|
|
610
|
+
140,
|
|
611
|
+
245,
|
|
612
|
+
133,
|
|
613
|
+
126,
|
|
614
|
+
255,
|
|
615
|
+
0,
|
|
616
|
+
169
|
|
617
|
+
];
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
kind: 'account';
|
|
621
|
+
path: 'mint';
|
|
622
|
+
}
|
|
623
|
+
];
|
|
624
|
+
program: {
|
|
625
|
+
kind: 'const';
|
|
626
|
+
value: [
|
|
627
|
+
140,
|
|
628
|
+
151,
|
|
629
|
+
37,
|
|
630
|
+
143,
|
|
631
|
+
78,
|
|
632
|
+
36,
|
|
633
|
+
137,
|
|
634
|
+
241,
|
|
635
|
+
187,
|
|
636
|
+
61,
|
|
637
|
+
16,
|
|
638
|
+
41,
|
|
639
|
+
20,
|
|
640
|
+
142,
|
|
641
|
+
13,
|
|
642
|
+
131,
|
|
643
|
+
11,
|
|
644
|
+
90,
|
|
645
|
+
19,
|
|
646
|
+
153,
|
|
647
|
+
218,
|
|
648
|
+
255,
|
|
649
|
+
16,
|
|
650
|
+
132,
|
|
651
|
+
4,
|
|
652
|
+
142,
|
|
653
|
+
123,
|
|
654
|
+
216,
|
|
655
|
+
219,
|
|
656
|
+
233,
|
|
657
|
+
248,
|
|
658
|
+
89
|
|
659
|
+
];
|
|
660
|
+
};
|
|
661
|
+
};
|
|
311
662
|
},
|
|
312
663
|
{
|
|
313
664
|
name: 'tokenProgram';
|
|
@@ -378,31 +729,6 @@ export type TriadProtocol = {
|
|
|
378
729
|
}
|
|
379
730
|
];
|
|
380
731
|
},
|
|
381
|
-
{
|
|
382
|
-
name: 'jupiterSwap';
|
|
383
|
-
discriminator: [116, 207, 0, 196, 252, 120, 243, 18];
|
|
384
|
-
accounts: [
|
|
385
|
-
{
|
|
386
|
-
name: 'userAccount';
|
|
387
|
-
writable: true;
|
|
388
|
-
signer: true;
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
name: 'jupiterProgram';
|
|
392
|
-
address: 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4';
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
name: 'systemProgram';
|
|
396
|
-
address: '11111111111111111111111111111111';
|
|
397
|
-
}
|
|
398
|
-
];
|
|
399
|
-
args: [
|
|
400
|
-
{
|
|
401
|
-
name: 'data';
|
|
402
|
-
type: 'bytes';
|
|
403
|
-
}
|
|
404
|
-
];
|
|
405
|
-
},
|
|
406
732
|
{
|
|
407
733
|
name: 'openPosition';
|
|
408
734
|
discriminator: [135, 128, 47, 77, 15, 152, 240, 49];
|
|
@@ -485,8 +811,44 @@ export type TriadProtocol = {
|
|
|
485
811
|
];
|
|
486
812
|
},
|
|
487
813
|
{
|
|
488
|
-
name: '
|
|
489
|
-
discriminator: [
|
|
814
|
+
name: 'requestWithdrawStake';
|
|
815
|
+
discriminator: [175, 9, 77, 31, 145, 136, 30, 207];
|
|
816
|
+
accounts: [
|
|
817
|
+
{
|
|
818
|
+
name: 'signer';
|
|
819
|
+
writable: true;
|
|
820
|
+
signer: true;
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
name: 'stakeVault';
|
|
824
|
+
writable: true;
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
name: 'stake';
|
|
828
|
+
writable: true;
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
name: 'mint';
|
|
832
|
+
writable: true;
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
name: 'tokenProgram';
|
|
836
|
+
address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
name: 'associatedTokenProgram';
|
|
840
|
+
address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL';
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
name: 'systemProgram';
|
|
844
|
+
address: '11111111111111111111111111111111';
|
|
845
|
+
}
|
|
846
|
+
];
|
|
847
|
+
args: [];
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
name: 'stakeNft';
|
|
851
|
+
discriminator: [38, 27, 66, 46, 69, 65, 151, 219];
|
|
490
852
|
accounts: [
|
|
491
853
|
{
|
|
492
854
|
name: 'signer';
|
|
@@ -518,9 +880,13 @@ export type TriadProtocol = {
|
|
|
518
880
|
kind: 'const';
|
|
519
881
|
value: [115, 116, 97, 107, 101];
|
|
520
882
|
},
|
|
883
|
+
{
|
|
884
|
+
kind: 'account';
|
|
885
|
+
path: 'signer';
|
|
886
|
+
},
|
|
521
887
|
{
|
|
522
888
|
kind: 'arg';
|
|
523
|
-
path: 'args.
|
|
889
|
+
path: 'args.name';
|
|
524
890
|
}
|
|
525
891
|
];
|
|
526
892
|
};
|
|
@@ -529,6 +895,100 @@ export type TriadProtocol = {
|
|
|
529
895
|
name: 'mint';
|
|
530
896
|
writable: true;
|
|
531
897
|
},
|
|
898
|
+
{
|
|
899
|
+
name: 'fromAta';
|
|
900
|
+
writable: true;
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
name: 'toAta';
|
|
904
|
+
writable: true;
|
|
905
|
+
pda: {
|
|
906
|
+
seeds: [
|
|
907
|
+
{
|
|
908
|
+
kind: 'account';
|
|
909
|
+
path: 'stakeVault';
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
kind: 'const';
|
|
913
|
+
value: [
|
|
914
|
+
6,
|
|
915
|
+
221,
|
|
916
|
+
246,
|
|
917
|
+
225,
|
|
918
|
+
215,
|
|
919
|
+
101,
|
|
920
|
+
161,
|
|
921
|
+
147,
|
|
922
|
+
217,
|
|
923
|
+
203,
|
|
924
|
+
225,
|
|
925
|
+
70,
|
|
926
|
+
206,
|
|
927
|
+
235,
|
|
928
|
+
121,
|
|
929
|
+
172,
|
|
930
|
+
28,
|
|
931
|
+
180,
|
|
932
|
+
133,
|
|
933
|
+
237,
|
|
934
|
+
95,
|
|
935
|
+
91,
|
|
936
|
+
55,
|
|
937
|
+
145,
|
|
938
|
+
58,
|
|
939
|
+
140,
|
|
940
|
+
245,
|
|
941
|
+
133,
|
|
942
|
+
126,
|
|
943
|
+
255,
|
|
944
|
+
0,
|
|
945
|
+
169
|
|
946
|
+
];
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
kind: 'account';
|
|
950
|
+
path: 'mint';
|
|
951
|
+
}
|
|
952
|
+
];
|
|
953
|
+
program: {
|
|
954
|
+
kind: 'const';
|
|
955
|
+
value: [
|
|
956
|
+
140,
|
|
957
|
+
151,
|
|
958
|
+
37,
|
|
959
|
+
143,
|
|
960
|
+
78,
|
|
961
|
+
36,
|
|
962
|
+
137,
|
|
963
|
+
241,
|
|
964
|
+
187,
|
|
965
|
+
61,
|
|
966
|
+
16,
|
|
967
|
+
41,
|
|
968
|
+
20,
|
|
969
|
+
142,
|
|
970
|
+
13,
|
|
971
|
+
131,
|
|
972
|
+
11,
|
|
973
|
+
90,
|
|
974
|
+
19,
|
|
975
|
+
153,
|
|
976
|
+
218,
|
|
977
|
+
255,
|
|
978
|
+
16,
|
|
979
|
+
132,
|
|
980
|
+
4,
|
|
981
|
+
142,
|
|
982
|
+
123,
|
|
983
|
+
216,
|
|
984
|
+
219,
|
|
985
|
+
233,
|
|
986
|
+
248,
|
|
987
|
+
89
|
|
988
|
+
];
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
},
|
|
532
992
|
{
|
|
533
993
|
name: 'tokenProgram';
|
|
534
994
|
address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
|
|
@@ -547,15 +1007,15 @@ export type TriadProtocol = {
|
|
|
547
1007
|
name: 'args';
|
|
548
1008
|
type: {
|
|
549
1009
|
defined: {
|
|
550
|
-
name: '
|
|
1010
|
+
name: 'stakeNftArgs';
|
|
551
1011
|
};
|
|
552
1012
|
};
|
|
553
1013
|
}
|
|
554
1014
|
];
|
|
555
1015
|
},
|
|
556
1016
|
{
|
|
557
|
-
name: '
|
|
558
|
-
discriminator: [
|
|
1017
|
+
name: 'stakeToken';
|
|
1018
|
+
discriminator: [191, 127, 193, 101, 37, 96, 87, 211];
|
|
559
1019
|
accounts: [
|
|
560
1020
|
{
|
|
561
1021
|
name: 'signer';
|
|
@@ -587,6 +1047,10 @@ export type TriadProtocol = {
|
|
|
587
1047
|
kind: 'const';
|
|
588
1048
|
value: [115, 116, 97, 107, 101];
|
|
589
1049
|
},
|
|
1050
|
+
{
|
|
1051
|
+
kind: 'account';
|
|
1052
|
+
path: 'signer';
|
|
1053
|
+
},
|
|
590
1054
|
{
|
|
591
1055
|
kind: 'arg';
|
|
592
1056
|
path: 'args.name';
|
|
@@ -605,6 +1069,92 @@ export type TriadProtocol = {
|
|
|
605
1069
|
{
|
|
606
1070
|
name: 'toAta';
|
|
607
1071
|
writable: true;
|
|
1072
|
+
pda: {
|
|
1073
|
+
seeds: [
|
|
1074
|
+
{
|
|
1075
|
+
kind: 'account';
|
|
1076
|
+
path: 'stakeVault';
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
kind: 'const';
|
|
1080
|
+
value: [
|
|
1081
|
+
6,
|
|
1082
|
+
221,
|
|
1083
|
+
246,
|
|
1084
|
+
225,
|
|
1085
|
+
215,
|
|
1086
|
+
101,
|
|
1087
|
+
161,
|
|
1088
|
+
147,
|
|
1089
|
+
217,
|
|
1090
|
+
203,
|
|
1091
|
+
225,
|
|
1092
|
+
70,
|
|
1093
|
+
206,
|
|
1094
|
+
235,
|
|
1095
|
+
121,
|
|
1096
|
+
172,
|
|
1097
|
+
28,
|
|
1098
|
+
180,
|
|
1099
|
+
133,
|
|
1100
|
+
237,
|
|
1101
|
+
95,
|
|
1102
|
+
91,
|
|
1103
|
+
55,
|
|
1104
|
+
145,
|
|
1105
|
+
58,
|
|
1106
|
+
140,
|
|
1107
|
+
245,
|
|
1108
|
+
133,
|
|
1109
|
+
126,
|
|
1110
|
+
255,
|
|
1111
|
+
0,
|
|
1112
|
+
169
|
|
1113
|
+
];
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
kind: 'account';
|
|
1117
|
+
path: 'mint';
|
|
1118
|
+
}
|
|
1119
|
+
];
|
|
1120
|
+
program: {
|
|
1121
|
+
kind: 'const';
|
|
1122
|
+
value: [
|
|
1123
|
+
140,
|
|
1124
|
+
151,
|
|
1125
|
+
37,
|
|
1126
|
+
143,
|
|
1127
|
+
78,
|
|
1128
|
+
36,
|
|
1129
|
+
137,
|
|
1130
|
+
241,
|
|
1131
|
+
187,
|
|
1132
|
+
61,
|
|
1133
|
+
16,
|
|
1134
|
+
41,
|
|
1135
|
+
20,
|
|
1136
|
+
142,
|
|
1137
|
+
13,
|
|
1138
|
+
131,
|
|
1139
|
+
11,
|
|
1140
|
+
90,
|
|
1141
|
+
19,
|
|
1142
|
+
153,
|
|
1143
|
+
218,
|
|
1144
|
+
255,
|
|
1145
|
+
16,
|
|
1146
|
+
132,
|
|
1147
|
+
4,
|
|
1148
|
+
142,
|
|
1149
|
+
123,
|
|
1150
|
+
216,
|
|
1151
|
+
219,
|
|
1152
|
+
233,
|
|
1153
|
+
248,
|
|
1154
|
+
89
|
|
1155
|
+
];
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
608
1158
|
},
|
|
609
1159
|
{
|
|
610
1160
|
name: 'tokenProgram';
|
|
@@ -624,7 +1174,7 @@ export type TriadProtocol = {
|
|
|
624
1174
|
name: 'args';
|
|
625
1175
|
type: {
|
|
626
1176
|
defined: {
|
|
627
|
-
name: '
|
|
1177
|
+
name: 'stakeTokenArgs';
|
|
628
1178
|
};
|
|
629
1179
|
};
|
|
630
1180
|
}
|
|
@@ -734,8 +1284,8 @@ export type TriadProtocol = {
|
|
|
734
1284
|
];
|
|
735
1285
|
},
|
|
736
1286
|
{
|
|
737
|
-
name: '
|
|
738
|
-
discriminator: [
|
|
1287
|
+
name: 'withdrawStake';
|
|
1288
|
+
discriminator: [153, 8, 22, 138, 105, 176, 87, 66];
|
|
739
1289
|
accounts: [
|
|
740
1290
|
{
|
|
741
1291
|
name: 'signer';
|
|
@@ -745,34 +1295,10 @@ export type TriadProtocol = {
|
|
|
745
1295
|
{
|
|
746
1296
|
name: 'stakeVault';
|
|
747
1297
|
writable: true;
|
|
748
|
-
pda: {
|
|
749
|
-
seeds: [
|
|
750
|
-
{
|
|
751
|
-
kind: 'const';
|
|
752
|
-
value: [115, 116, 97, 107, 101, 95, 118, 97, 117, 108, 116];
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
kind: 'arg';
|
|
756
|
-
path: 'args.stake_vault';
|
|
757
|
-
}
|
|
758
|
-
];
|
|
759
|
-
};
|
|
760
1298
|
},
|
|
761
1299
|
{
|
|
762
1300
|
name: 'stake';
|
|
763
1301
|
writable: true;
|
|
764
|
-
pda: {
|
|
765
|
-
seeds: [
|
|
766
|
-
{
|
|
767
|
-
kind: 'const';
|
|
768
|
-
value: [115, 116, 97, 107, 101];
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
kind: 'arg';
|
|
772
|
-
path: 'args.nft_name';
|
|
773
|
-
}
|
|
774
|
-
];
|
|
775
|
-
};
|
|
776
1302
|
},
|
|
777
1303
|
{
|
|
778
1304
|
name: 'admin';
|
|
@@ -793,6 +1319,92 @@ export type TriadProtocol = {
|
|
|
793
1319
|
{
|
|
794
1320
|
name: 'toAta';
|
|
795
1321
|
writable: true;
|
|
1322
|
+
pda: {
|
|
1323
|
+
seeds: [
|
|
1324
|
+
{
|
|
1325
|
+
kind: 'account';
|
|
1326
|
+
path: 'signer';
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
kind: 'const';
|
|
1330
|
+
value: [
|
|
1331
|
+
6,
|
|
1332
|
+
221,
|
|
1333
|
+
246,
|
|
1334
|
+
225,
|
|
1335
|
+
215,
|
|
1336
|
+
101,
|
|
1337
|
+
161,
|
|
1338
|
+
147,
|
|
1339
|
+
217,
|
|
1340
|
+
203,
|
|
1341
|
+
225,
|
|
1342
|
+
70,
|
|
1343
|
+
206,
|
|
1344
|
+
235,
|
|
1345
|
+
121,
|
|
1346
|
+
172,
|
|
1347
|
+
28,
|
|
1348
|
+
180,
|
|
1349
|
+
133,
|
|
1350
|
+
237,
|
|
1351
|
+
95,
|
|
1352
|
+
91,
|
|
1353
|
+
55,
|
|
1354
|
+
145,
|
|
1355
|
+
58,
|
|
1356
|
+
140,
|
|
1357
|
+
245,
|
|
1358
|
+
133,
|
|
1359
|
+
126,
|
|
1360
|
+
255,
|
|
1361
|
+
0,
|
|
1362
|
+
169
|
|
1363
|
+
];
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
kind: 'account';
|
|
1367
|
+
path: 'mint';
|
|
1368
|
+
}
|
|
1369
|
+
];
|
|
1370
|
+
program: {
|
|
1371
|
+
kind: 'const';
|
|
1372
|
+
value: [
|
|
1373
|
+
140,
|
|
1374
|
+
151,
|
|
1375
|
+
37,
|
|
1376
|
+
143,
|
|
1377
|
+
78,
|
|
1378
|
+
36,
|
|
1379
|
+
137,
|
|
1380
|
+
241,
|
|
1381
|
+
187,
|
|
1382
|
+
61,
|
|
1383
|
+
16,
|
|
1384
|
+
41,
|
|
1385
|
+
20,
|
|
1386
|
+
142,
|
|
1387
|
+
13,
|
|
1388
|
+
131,
|
|
1389
|
+
11,
|
|
1390
|
+
90,
|
|
1391
|
+
19,
|
|
1392
|
+
153,
|
|
1393
|
+
218,
|
|
1394
|
+
255,
|
|
1395
|
+
16,
|
|
1396
|
+
132,
|
|
1397
|
+
4,
|
|
1398
|
+
142,
|
|
1399
|
+
123,
|
|
1400
|
+
216,
|
|
1401
|
+
219,
|
|
1402
|
+
233,
|
|
1403
|
+
248,
|
|
1404
|
+
89
|
|
1405
|
+
];
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
796
1408
|
},
|
|
797
1409
|
{
|
|
798
1410
|
name: 'tokenProgram';
|
|
@@ -807,16 +1419,7 @@ export type TriadProtocol = {
|
|
|
807
1419
|
address: '11111111111111111111111111111111';
|
|
808
1420
|
}
|
|
809
1421
|
];
|
|
810
|
-
args: [
|
|
811
|
-
{
|
|
812
|
-
name: 'args';
|
|
813
|
-
type: {
|
|
814
|
-
defined: {
|
|
815
|
-
name: 'withdrawNftArgs';
|
|
816
|
-
};
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
];
|
|
1422
|
+
args: [];
|
|
820
1423
|
}
|
|
821
1424
|
];
|
|
822
1425
|
accounts: [
|
|
@@ -836,6 +1439,10 @@ export type TriadProtocol = {
|
|
|
836
1439
|
name: 'ticker';
|
|
837
1440
|
discriminator: [214, 74, 184, 188, 214, 64, 251, 53];
|
|
838
1441
|
},
|
|
1442
|
+
{
|
|
1443
|
+
name: 'user';
|
|
1444
|
+
discriminator: [159, 117, 95, 227, 239, 151, 58, 236];
|
|
1445
|
+
},
|
|
839
1446
|
{
|
|
840
1447
|
name: 'userPosition';
|
|
841
1448
|
discriminator: [251, 248, 209, 245, 83, 234, 17, 27];
|
|
@@ -878,17 +1485,17 @@ export type TriadProtocol = {
|
|
|
878
1485
|
{
|
|
879
1486
|
code: 6003;
|
|
880
1487
|
name: 'invalidOwnerAuthority';
|
|
881
|
-
msg: 'Invalid
|
|
1488
|
+
msg: 'Invalid owner authority';
|
|
882
1489
|
},
|
|
883
1490
|
{
|
|
884
1491
|
code: 6004;
|
|
885
1492
|
name: 'invalidPosition';
|
|
886
|
-
msg: 'Invalid
|
|
1493
|
+
msg: 'Invalid position';
|
|
887
1494
|
},
|
|
888
1495
|
{
|
|
889
1496
|
code: 6005;
|
|
890
1497
|
name: 'invalidTickerPosition';
|
|
891
|
-
msg: 'Invalid
|
|
1498
|
+
msg: 'Invalid ticker position';
|
|
892
1499
|
},
|
|
893
1500
|
{
|
|
894
1501
|
code: 6006;
|
|
@@ -898,42 +1505,42 @@ export type TriadProtocol = {
|
|
|
898
1505
|
{
|
|
899
1506
|
code: 6007;
|
|
900
1507
|
name: 'invalidMintAddress';
|
|
901
|
-
msg: 'Invalid
|
|
1508
|
+
msg: 'Invalid mint address';
|
|
902
1509
|
},
|
|
903
1510
|
{
|
|
904
1511
|
code: 6008;
|
|
905
1512
|
name: 'invalidProfitShare';
|
|
906
|
-
msg: 'Invalid
|
|
1513
|
+
msg: 'Invalid profit share';
|
|
907
1514
|
},
|
|
908
1515
|
{
|
|
909
1516
|
code: 6009;
|
|
910
1517
|
name: 'invalidDepositAmount';
|
|
911
|
-
msg: 'Invalid
|
|
1518
|
+
msg: 'Invalid deposit amount';
|
|
912
1519
|
},
|
|
913
1520
|
{
|
|
914
1521
|
code: 6010;
|
|
915
1522
|
name: 'invalidWithdrawAmount';
|
|
916
|
-
msg: 'Invalid
|
|
1523
|
+
msg: 'Invalid withdraw amount';
|
|
917
1524
|
},
|
|
918
1525
|
{
|
|
919
1526
|
code: 6011;
|
|
920
1527
|
name: 'invalidStakeVault';
|
|
921
|
-
msg: 'Invalid
|
|
1528
|
+
msg: 'Invalid stake vault';
|
|
922
1529
|
},
|
|
923
1530
|
{
|
|
924
1531
|
code: 6012;
|
|
925
1532
|
name: 'invalidStakeVaultAuthority';
|
|
926
|
-
msg: 'Invalid
|
|
1533
|
+
msg: 'Invalid stake vault authority';
|
|
927
1534
|
},
|
|
928
1535
|
{
|
|
929
1536
|
code: 6013;
|
|
930
1537
|
name: 'invalidStakeVaultAmount';
|
|
931
|
-
msg: 'Invalid
|
|
1538
|
+
msg: 'Invalid stake vault amount';
|
|
932
1539
|
},
|
|
933
1540
|
{
|
|
934
1541
|
code: 6014;
|
|
935
1542
|
name: 'stakeVaultLocked';
|
|
936
|
-
msg: 'Stake
|
|
1543
|
+
msg: 'Stake vault locked';
|
|
937
1544
|
},
|
|
938
1545
|
{
|
|
939
1546
|
code: 6015;
|
|
@@ -943,17 +1550,22 @@ export type TriadProtocol = {
|
|
|
943
1550
|
{
|
|
944
1551
|
code: 6016;
|
|
945
1552
|
name: 'stakeVaultFull';
|
|
946
|
-
msg: 'Stake
|
|
1553
|
+
msg: 'Stake vault full';
|
|
947
1554
|
},
|
|
948
1555
|
{
|
|
949
1556
|
code: 6017;
|
|
950
1557
|
name: 'invalidMint';
|
|
951
|
-
msg: 'Invalid
|
|
1558
|
+
msg: 'Invalid mint';
|
|
952
1559
|
},
|
|
953
1560
|
{
|
|
954
1561
|
code: 6018;
|
|
955
1562
|
name: 'invalidStakeVaultWeek';
|
|
956
|
-
msg: 'Invalid
|
|
1563
|
+
msg: 'Invalid stake vault week';
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
code: 6019;
|
|
1567
|
+
name: 'rewardsAlreadyClaimed';
|
|
1568
|
+
msg: 'Rewards already claimed';
|
|
957
1569
|
}
|
|
958
1570
|
];
|
|
959
1571
|
types: [
|
|
@@ -1053,6 +1665,18 @@ export type TriadProtocol = {
|
|
|
1053
1665
|
];
|
|
1054
1666
|
};
|
|
1055
1667
|
},
|
|
1668
|
+
{
|
|
1669
|
+
name: 'createUserArgs';
|
|
1670
|
+
type: {
|
|
1671
|
+
kind: 'struct';
|
|
1672
|
+
fields: [
|
|
1673
|
+
{
|
|
1674
|
+
name: 'name';
|
|
1675
|
+
type: 'string';
|
|
1676
|
+
}
|
|
1677
|
+
];
|
|
1678
|
+
};
|
|
1679
|
+
},
|
|
1056
1680
|
{
|
|
1057
1681
|
name: 'depositStakeRewardsArgs';
|
|
1058
1682
|
type: {
|
|
@@ -1227,22 +1851,6 @@ export type TriadProtocol = {
|
|
|
1227
1851
|
];
|
|
1228
1852
|
};
|
|
1229
1853
|
},
|
|
1230
|
-
{
|
|
1231
|
-
name: 'requestWithdrawNftArgs';
|
|
1232
|
-
type: {
|
|
1233
|
-
kind: 'struct';
|
|
1234
|
-
fields: [
|
|
1235
|
-
{
|
|
1236
|
-
name: 'stakeVault';
|
|
1237
|
-
type: 'string';
|
|
1238
|
-
},
|
|
1239
|
-
{
|
|
1240
|
-
name: 'nftName';
|
|
1241
|
-
type: 'string';
|
|
1242
|
-
}
|
|
1243
|
-
];
|
|
1244
|
-
};
|
|
1245
|
-
},
|
|
1246
1854
|
{
|
|
1247
1855
|
name: 'stake';
|
|
1248
1856
|
type: {
|
|
@@ -1339,6 +1947,26 @@ export type TriadProtocol = {
|
|
|
1339
1947
|
];
|
|
1340
1948
|
};
|
|
1341
1949
|
},
|
|
1950
|
+
{
|
|
1951
|
+
name: 'stakeTokenArgs';
|
|
1952
|
+
type: {
|
|
1953
|
+
kind: 'struct';
|
|
1954
|
+
fields: [
|
|
1955
|
+
{
|
|
1956
|
+
name: 'stakeVault';
|
|
1957
|
+
type: 'string';
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
name: 'name';
|
|
1961
|
+
type: 'string';
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
name: 'amount';
|
|
1965
|
+
type: 'u64';
|
|
1966
|
+
}
|
|
1967
|
+
];
|
|
1968
|
+
};
|
|
1969
|
+
},
|
|
1342
1970
|
{
|
|
1343
1971
|
name: 'stakeVault';
|
|
1344
1972
|
type: {
|
|
@@ -1369,11 +1997,11 @@ export type TriadProtocol = {
|
|
|
1369
1997
|
type: 'u64';
|
|
1370
1998
|
},
|
|
1371
1999
|
{
|
|
1372
|
-
name: '
|
|
2000
|
+
name: 'tokenDecimals';
|
|
1373
2001
|
type: 'u8';
|
|
1374
2002
|
},
|
|
1375
2003
|
{
|
|
1376
|
-
name: '
|
|
2004
|
+
name: 'nftStaked';
|
|
1377
2005
|
type: 'u64';
|
|
1378
2006
|
},
|
|
1379
2007
|
{
|
|
@@ -1393,17 +2021,25 @@ export type TriadProtocol = {
|
|
|
1393
2021
|
type: 'string';
|
|
1394
2022
|
},
|
|
1395
2023
|
{
|
|
1396
|
-
name: '
|
|
2024
|
+
name: 'tokenMint';
|
|
1397
2025
|
type: 'pubkey';
|
|
1398
2026
|
},
|
|
1399
2027
|
{
|
|
1400
2028
|
name: 'week';
|
|
1401
2029
|
type: 'u8';
|
|
1402
2030
|
},
|
|
2031
|
+
{
|
|
2032
|
+
name: 'tokenStaked';
|
|
2033
|
+
type: 'u64';
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
name: 'sumAllUsers';
|
|
2037
|
+
type: 'f64';
|
|
2038
|
+
},
|
|
1403
2039
|
{
|
|
1404
2040
|
name: 'padding';
|
|
1405
2041
|
type: {
|
|
1406
|
-
array: ['u8',
|
|
2042
|
+
array: ['u8', 32];
|
|
1407
2043
|
};
|
|
1408
2044
|
}
|
|
1409
2045
|
];
|
|
@@ -1416,44 +2052,34 @@ export type TriadProtocol = {
|
|
|
1416
2052
|
fields: [
|
|
1417
2053
|
{
|
|
1418
2054
|
name: 'initTs';
|
|
1419
|
-
docs: ['timestamp of the creation of the ticker'];
|
|
1420
2055
|
type: 'i64';
|
|
1421
2056
|
},
|
|
1422
2057
|
{
|
|
1423
2058
|
name: 'updatedTs';
|
|
1424
|
-
docs: ['timestamp of the last update of the ticker'];
|
|
1425
2059
|
type: 'i64';
|
|
1426
2060
|
},
|
|
1427
2061
|
{
|
|
1428
2062
|
name: 'bump';
|
|
1429
|
-
docs: ['The bump for the ticker pda'];
|
|
1430
2063
|
type: 'u8';
|
|
1431
2064
|
},
|
|
1432
2065
|
{
|
|
1433
2066
|
name: 'authority';
|
|
1434
|
-
docs: ['authority for the ticker'];
|
|
1435
2067
|
type: 'pubkey';
|
|
1436
2068
|
},
|
|
1437
2069
|
{
|
|
1438
2070
|
name: 'name';
|
|
1439
|
-
docs: ['name of the ticekt'];
|
|
1440
2071
|
type: 'string';
|
|
1441
2072
|
},
|
|
1442
2073
|
{
|
|
1443
2074
|
name: 'protocolProgramId';
|
|
1444
|
-
docs: [
|
|
1445
|
-
'protocol program id like dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH to get data info'
|
|
1446
|
-
];
|
|
1447
2075
|
type: 'pubkey';
|
|
1448
2076
|
},
|
|
1449
2077
|
{
|
|
1450
2078
|
name: 'price';
|
|
1451
|
-
docs: ['ticker price'];
|
|
1452
2079
|
type: 'u64';
|
|
1453
2080
|
},
|
|
1454
2081
|
{
|
|
1455
2082
|
name: 'vault';
|
|
1456
|
-
docs: ['Vault PDA'];
|
|
1457
2083
|
type: 'pubkey';
|
|
1458
2084
|
}
|
|
1459
2085
|
];
|
|
@@ -1527,6 +2153,38 @@ export type TriadProtocol = {
|
|
|
1527
2153
|
];
|
|
1528
2154
|
};
|
|
1529
2155
|
},
|
|
2156
|
+
{
|
|
2157
|
+
name: 'user';
|
|
2158
|
+
type: {
|
|
2159
|
+
kind: 'struct';
|
|
2160
|
+
fields: [
|
|
2161
|
+
{
|
|
2162
|
+
name: 'ts';
|
|
2163
|
+
type: 'i64';
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
name: 'authority';
|
|
2167
|
+
type: 'pubkey';
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
name: 'bump';
|
|
2171
|
+
type: 'u8';
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
name: 'referral';
|
|
2175
|
+
type: 'pubkey';
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
name: 'referred';
|
|
2179
|
+
type: 'i64';
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
name: 'name';
|
|
2183
|
+
type: 'string';
|
|
2184
|
+
}
|
|
2185
|
+
];
|
|
2186
|
+
};
|
|
2187
|
+
},
|
|
1530
2188
|
{
|
|
1531
2189
|
name: 'userPosition';
|
|
1532
2190
|
type: {
|
|
@@ -1534,47 +2192,38 @@ export type TriadProtocol = {
|
|
|
1534
2192
|
fields: [
|
|
1535
2193
|
{
|
|
1536
2194
|
name: 'ts';
|
|
1537
|
-
docs: ['timestamp'];
|
|
1538
2195
|
type: 'i64';
|
|
1539
2196
|
},
|
|
1540
2197
|
{
|
|
1541
2198
|
name: 'bump';
|
|
1542
|
-
docs: ['bump seed'];
|
|
1543
2199
|
type: 'u8';
|
|
1544
2200
|
},
|
|
1545
2201
|
{
|
|
1546
2202
|
name: 'totalDeposited';
|
|
1547
|
-
docs: ['total deposited'];
|
|
1548
2203
|
type: 'u64';
|
|
1549
2204
|
},
|
|
1550
2205
|
{
|
|
1551
2206
|
name: 'totalWithdrawn';
|
|
1552
|
-
docs: ['total withdrawn'];
|
|
1553
2207
|
type: 'u64';
|
|
1554
2208
|
},
|
|
1555
2209
|
{
|
|
1556
2210
|
name: 'lpShare';
|
|
1557
|
-
docs: ['total liquidity provided'];
|
|
1558
2211
|
type: 'u64';
|
|
1559
2212
|
},
|
|
1560
2213
|
{
|
|
1561
2214
|
name: 'totalPositions';
|
|
1562
|
-
docs: ['total positions'];
|
|
1563
2215
|
type: 'u16';
|
|
1564
2216
|
},
|
|
1565
2217
|
{
|
|
1566
2218
|
name: 'ticker';
|
|
1567
|
-
docs: ['ticker account'];
|
|
1568
2219
|
type: 'pubkey';
|
|
1569
2220
|
},
|
|
1570
2221
|
{
|
|
1571
2222
|
name: 'authority';
|
|
1572
|
-
docs: ["user's authority"];
|
|
1573
2223
|
type: 'pubkey';
|
|
1574
2224
|
},
|
|
1575
2225
|
{
|
|
1576
2226
|
name: 'positions';
|
|
1577
|
-
docs: ["user's position"];
|
|
1578
2227
|
type: {
|
|
1579
2228
|
array: [
|
|
1580
2229
|
{
|
|
@@ -1596,92 +2245,62 @@ export type TriadProtocol = {
|
|
|
1596
2245
|
fields: [
|
|
1597
2246
|
{
|
|
1598
2247
|
name: 'bump';
|
|
1599
|
-
docs: ['The bump for the vault pda'];
|
|
1600
2248
|
type: 'u8';
|
|
1601
2249
|
},
|
|
1602
2250
|
{
|
|
1603
2251
|
name: 'authority';
|
|
1604
|
-
docs: ['authority for the vault'];
|
|
1605
2252
|
type: 'pubkey';
|
|
1606
2253
|
},
|
|
1607
2254
|
{
|
|
1608
2255
|
name: 'name';
|
|
1609
|
-
docs: ['name of the vault'];
|
|
1610
2256
|
type: 'string';
|
|
1611
2257
|
},
|
|
1612
2258
|
{
|
|
1613
2259
|
name: 'tokenAccount';
|
|
1614
|
-
docs: ['token account for the vault e.g. tDRIFT'];
|
|
1615
2260
|
type: 'pubkey';
|
|
1616
2261
|
},
|
|
1617
2262
|
{
|
|
1618
2263
|
name: 'tickerAddress';
|
|
1619
|
-
docs: ['ticker address'];
|
|
1620
2264
|
type: 'pubkey';
|
|
1621
2265
|
},
|
|
1622
2266
|
{
|
|
1623
2267
|
name: 'totalDeposited';
|
|
1624
|
-
docs: ['lifetime total deposited'];
|
|
1625
2268
|
type: 'u64';
|
|
1626
2269
|
},
|
|
1627
2270
|
{
|
|
1628
2271
|
name: 'totalWithdrawn';
|
|
1629
|
-
docs: ['lifetime total withdrawn'];
|
|
1630
2272
|
type: 'u64';
|
|
1631
2273
|
},
|
|
1632
2274
|
{
|
|
1633
2275
|
name: 'initTs';
|
|
1634
|
-
docs: ['timestamp vault initialized'];
|
|
1635
2276
|
type: 'i64';
|
|
1636
2277
|
},
|
|
1637
2278
|
{
|
|
1638
2279
|
name: 'netDeposits';
|
|
1639
|
-
docs: ['lifetime net deposits'];
|
|
1640
2280
|
type: 'u128';
|
|
1641
2281
|
},
|
|
1642
2282
|
{
|
|
1643
2283
|
name: 'netWithdraws';
|
|
1644
|
-
docs: ['lifetime net withdraws'];
|
|
1645
2284
|
type: 'u128';
|
|
1646
2285
|
},
|
|
1647
2286
|
{
|
|
1648
2287
|
name: 'longBalance';
|
|
1649
|
-
docs: ['Long bet balance'];
|
|
1650
2288
|
type: 'u64';
|
|
1651
2289
|
},
|
|
1652
2290
|
{
|
|
1653
2291
|
name: 'shortBalance';
|
|
1654
|
-
docs: ['Short bet balance'];
|
|
1655
2292
|
type: 'u64';
|
|
1656
2293
|
},
|
|
1657
2294
|
{
|
|
1658
2295
|
name: 'longPositionsOpened';
|
|
1659
|
-
docs: ['Opened long positions'];
|
|
1660
2296
|
type: 'u64';
|
|
1661
2297
|
},
|
|
1662
2298
|
{
|
|
1663
2299
|
name: 'shortPositionsOpened';
|
|
1664
|
-
docs: ['Opened short positions'];
|
|
1665
2300
|
type: 'u64';
|
|
1666
2301
|
}
|
|
1667
2302
|
];
|
|
1668
2303
|
};
|
|
1669
|
-
},
|
|
1670
|
-
{
|
|
1671
|
-
name: 'withdrawNftArgs';
|
|
1672
|
-
type: {
|
|
1673
|
-
kind: 'struct';
|
|
1674
|
-
fields: [
|
|
1675
|
-
{
|
|
1676
|
-
name: 'stakeVault';
|
|
1677
|
-
type: 'string';
|
|
1678
|
-
},
|
|
1679
|
-
{
|
|
1680
|
-
name: 'nftName';
|
|
1681
|
-
type: 'string';
|
|
1682
|
-
}
|
|
1683
|
-
];
|
|
1684
|
-
};
|
|
1685
2304
|
}
|
|
1686
2305
|
];
|
|
1687
2306
|
};
|