@elmntl/jlpd-sdk 0.1.11 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +949 -302
- package/dist/index.d.ts +949 -302
- package/dist/index.js +999 -266
- package/dist/index.mjs +993 -266
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -99,66 +99,71 @@ type JlpDProgram = {
|
|
|
99
99
|
"args": [];
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"name": "
|
|
102
|
+
"name": "claimWithdraw";
|
|
103
103
|
"docs": [
|
|
104
|
-
"
|
|
105
|
-
"Destructive operation - use only for cleanup/migration",
|
|
104
|
+
"Claim processed withdrawal (epoch-based delayed withdrawal)",
|
|
106
105
|
"",
|
|
107
|
-
"#
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
106
|
+
"# Flow",
|
|
107
|
+
"1. Verify request is processed (pps > 0) and claim period reached",
|
|
108
|
+
"2. Transfer base from STV to user",
|
|
109
|
+
"3. Close request's jvX ATA and WithdrawRequest PDA (rent to user)"
|
|
111
110
|
];
|
|
112
111
|
"discriminator": [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
232,
|
|
113
|
+
89,
|
|
114
|
+
154,
|
|
115
|
+
117,
|
|
116
|
+
16,
|
|
117
|
+
204,
|
|
118
|
+
182,
|
|
119
|
+
224
|
|
121
120
|
];
|
|
122
121
|
"accounts": [
|
|
123
122
|
{
|
|
124
|
-
"name": "
|
|
123
|
+
"name": "user";
|
|
125
124
|
"docs": [
|
|
126
|
-
"
|
|
125
|
+
"User claiming their withdrawal"
|
|
127
126
|
];
|
|
128
127
|
"writable": true;
|
|
129
128
|
"signer": true;
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "stv";
|
|
132
|
+
"docs": [
|
|
133
|
+
"The STV PDA account (mut for reserved_base update)"
|
|
132
134
|
];
|
|
135
|
+
"writable": true;
|
|
133
136
|
},
|
|
134
137
|
{
|
|
135
|
-
"name": "
|
|
138
|
+
"name": "baseMint";
|
|
136
139
|
"docs": [
|
|
137
|
-
"
|
|
140
|
+
"Base asset mint (for transfer_checked)"
|
|
138
141
|
];
|
|
139
|
-
"pda": {
|
|
140
|
-
"seeds": [
|
|
141
|
-
{
|
|
142
|
-
"kind": "const";
|
|
143
|
-
"value": [
|
|
144
|
-
106,
|
|
145
|
-
108,
|
|
146
|
-
112,
|
|
147
|
-
95,
|
|
148
|
-
118,
|
|
149
|
-
97,
|
|
150
|
-
117,
|
|
151
|
-
108,
|
|
152
|
-
116
|
|
153
|
-
];
|
|
154
|
-
}
|
|
155
|
-
];
|
|
156
|
-
};
|
|
157
142
|
},
|
|
158
143
|
{
|
|
159
|
-
"name": "
|
|
144
|
+
"name": "jvMint";
|
|
145
|
+
"docs": [
|
|
146
|
+
"jvX mint (for ATA close verification)"
|
|
147
|
+
];
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "userBaseAta";
|
|
151
|
+
"docs": [
|
|
152
|
+
"User's base token destination"
|
|
153
|
+
];
|
|
154
|
+
"writable": true;
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "stvBaseAta";
|
|
158
|
+
"docs": [
|
|
159
|
+
"STV's base ATA (source for base transfer)"
|
|
160
|
+
];
|
|
161
|
+
"writable": true;
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "withdrawRequest";
|
|
160
165
|
"docs": [
|
|
161
|
-
"
|
|
166
|
+
"WithdrawRequest PDA - closed after claim (rent to user)"
|
|
162
167
|
];
|
|
163
168
|
"writable": true;
|
|
164
169
|
"pda": {
|
|
@@ -166,33 +171,49 @@ type JlpDProgram = {
|
|
|
166
171
|
{
|
|
167
172
|
"kind": "const";
|
|
168
173
|
"value": [
|
|
169
|
-
|
|
174
|
+
119,
|
|
175
|
+
105,
|
|
170
176
|
116,
|
|
171
|
-
|
|
177
|
+
104,
|
|
178
|
+
100,
|
|
179
|
+
114,
|
|
180
|
+
97,
|
|
181
|
+
119,
|
|
182
|
+
95,
|
|
183
|
+
114,
|
|
184
|
+
101,
|
|
185
|
+
113,
|
|
186
|
+
117,
|
|
187
|
+
101,
|
|
188
|
+
115,
|
|
189
|
+
116
|
|
172
190
|
];
|
|
173
191
|
},
|
|
174
192
|
{
|
|
175
193
|
"kind": "account";
|
|
176
|
-
"path": "
|
|
194
|
+
"path": "stv";
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"kind": "account";
|
|
198
|
+
"path": "user";
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"kind": "account";
|
|
202
|
+
"path": "withdraw_request.epoch_id";
|
|
203
|
+
"account": "WithdrawRequest";
|
|
177
204
|
}
|
|
178
205
|
];
|
|
179
206
|
};
|
|
180
207
|
},
|
|
181
208
|
{
|
|
182
|
-
"name": "
|
|
209
|
+
"name": "requestJvxAta";
|
|
183
210
|
"docs": [
|
|
184
|
-
"jvX
|
|
185
|
-
];
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"name": "baseMint";
|
|
189
|
-
"docs": [
|
|
190
|
-
"Base asset mint for this STV"
|
|
211
|
+
"Empty jvX ATA owned by WithdrawRequest PDA (to close, rent to user)"
|
|
191
212
|
];
|
|
213
|
+
"writable": true;
|
|
192
214
|
},
|
|
193
215
|
{
|
|
194
|
-
"name": "
|
|
195
|
-
"address": "11111111111111111111111111111111";
|
|
216
|
+
"name": "tokenProgram";
|
|
196
217
|
}
|
|
197
218
|
];
|
|
198
219
|
"args": [];
|
|
@@ -377,7 +398,7 @@ type JlpDProgram = {
|
|
|
377
398
|
"name": "params";
|
|
378
399
|
"type": {
|
|
379
400
|
"defined": {
|
|
380
|
-
"name": "
|
|
401
|
+
"name": "InitOrUpdateJlpVaultParams";
|
|
381
402
|
};
|
|
382
403
|
};
|
|
383
404
|
}
|
|
@@ -433,7 +454,7 @@ type JlpDProgram = {
|
|
|
433
454
|
},
|
|
434
455
|
{
|
|
435
456
|
"kind": "account";
|
|
436
|
-
"path": "
|
|
457
|
+
"path": "base_mint";
|
|
437
458
|
}
|
|
438
459
|
];
|
|
439
460
|
};
|
|
@@ -454,7 +475,7 @@ type JlpDProgram = {
|
|
|
454
475
|
"name": "jvMint";
|
|
455
476
|
"docs": [
|
|
456
477
|
"Vault share token mint (jvX) - STV is the mint authority",
|
|
457
|
-
"
|
|
478
|
+
"Uses init_if_needed in case mint exists from a previous STV initialization"
|
|
458
479
|
];
|
|
459
480
|
"writable": true;
|
|
460
481
|
"signer": true;
|
|
@@ -511,7 +532,7 @@ type JlpDProgram = {
|
|
|
511
532
|
},
|
|
512
533
|
{
|
|
513
534
|
"kind": "account";
|
|
514
|
-
"path": "
|
|
535
|
+
"path": "jl_mint";
|
|
515
536
|
}
|
|
516
537
|
];
|
|
517
538
|
"program": {
|
|
@@ -586,7 +607,7 @@ type JlpDProgram = {
|
|
|
586
607
|
"name": "params";
|
|
587
608
|
"type": {
|
|
588
609
|
"defined": {
|
|
589
|
-
"name": "
|
|
610
|
+
"name": "InitializeStvParams";
|
|
590
611
|
};
|
|
591
612
|
};
|
|
592
613
|
}
|
|
@@ -686,7 +707,7 @@ type JlpDProgram = {
|
|
|
686
707
|
"name": "params";
|
|
687
708
|
"type": {
|
|
688
709
|
"defined": {
|
|
689
|
-
"name": "
|
|
710
|
+
"name": "JupEarnParams";
|
|
690
711
|
};
|
|
691
712
|
};
|
|
692
713
|
}
|
|
@@ -780,9 +801,308 @@ type JlpDProgram = {
|
|
|
780
801
|
"name": "params";
|
|
781
802
|
"type": {
|
|
782
803
|
"defined": {
|
|
783
|
-
"name": "
|
|
804
|
+
"name": "MoveJlxParams";
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
];
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "processEpoch";
|
|
812
|
+
"docs": [
|
|
813
|
+
"Process epoch: burn jvX from withdraw requests, record PPS, earmark base",
|
|
814
|
+
"",
|
|
815
|
+
"Permissionless (anyone can call after epoch ends).",
|
|
816
|
+
"Processes WithdrawRequest pairs from remaining_accounts.",
|
|
817
|
+
"Uses epoch_pps for multi-batch consistency.",
|
|
818
|
+
"",
|
|
819
|
+
"# Remaining Accounts",
|
|
820
|
+
"- [0-1]: Jupiter Lend accounts (if jl_mint != base_mint)",
|
|
821
|
+
"- [N..]: pairs of [WithdrawRequest (mut), request_jvx_ata (mut)]"
|
|
822
|
+
];
|
|
823
|
+
"discriminator": [
|
|
824
|
+
115,
|
|
825
|
+
194,
|
|
826
|
+
215,
|
|
827
|
+
160,
|
|
828
|
+
113,
|
|
829
|
+
154,
|
|
830
|
+
81,
|
|
831
|
+
5
|
|
832
|
+
];
|
|
833
|
+
"accounts": [
|
|
834
|
+
{
|
|
835
|
+
"name": "payer";
|
|
836
|
+
"docs": [
|
|
837
|
+
"Payer/caller - permissionless (anyone can call after epoch ends)"
|
|
838
|
+
];
|
|
839
|
+
"writable": true;
|
|
840
|
+
"signer": true;
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"name": "jlpVault";
|
|
844
|
+
"docs": [
|
|
845
|
+
"The JLP Vault PDA account (for pause checks)"
|
|
846
|
+
];
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"name": "stv";
|
|
850
|
+
"docs": [
|
|
851
|
+
"The STV PDA account (mut for epoch state + fee crystallization)"
|
|
852
|
+
];
|
|
853
|
+
"writable": true;
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "baseMint";
|
|
857
|
+
"docs": [
|
|
858
|
+
"Base asset mint (for NAV calc)"
|
|
859
|
+
];
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"name": "jlMint";
|
|
863
|
+
"docs": [
|
|
864
|
+
"jlX mint (for exchange rate)"
|
|
865
|
+
];
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "jvMint";
|
|
869
|
+
"docs": [
|
|
870
|
+
"jvX mint (mut for burn - supply decreases)"
|
|
871
|
+
];
|
|
872
|
+
"writable": true;
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "stvBaseAta";
|
|
876
|
+
"docs": [
|
|
877
|
+
"STV's base ATA (for NAV)"
|
|
878
|
+
];
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"name": "stvJlxAta";
|
|
882
|
+
"docs": [
|
|
883
|
+
"STV's jlX ATA (for NAV)"
|
|
884
|
+
];
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "tokenProgram";
|
|
888
|
+
}
|
|
889
|
+
];
|
|
890
|
+
"args": [];
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"name": "requestWithdraw";
|
|
894
|
+
"docs": [
|
|
895
|
+
"Request withdrawal of jvX shares (epoch-based delayed withdrawal)",
|
|
896
|
+
"",
|
|
897
|
+
"# Flow",
|
|
898
|
+
"1. Validate epoch is active and not ended",
|
|
899
|
+
"2. Create or accumulate into WithdrawRequest PDA for this epoch",
|
|
900
|
+
"3. Transfer jvX from user to request's escrow ATA",
|
|
901
|
+
"",
|
|
902
|
+
"User must wait for process_epoch + claim_withdraw to receive base."
|
|
903
|
+
];
|
|
904
|
+
"discriminator": [
|
|
905
|
+
137,
|
|
906
|
+
95,
|
|
907
|
+
187,
|
|
908
|
+
96,
|
|
909
|
+
250,
|
|
910
|
+
138,
|
|
911
|
+
31,
|
|
912
|
+
182
|
|
913
|
+
];
|
|
914
|
+
"accounts": [
|
|
915
|
+
{
|
|
916
|
+
"name": "user";
|
|
917
|
+
"docs": [
|
|
918
|
+
"User requesting withdrawal"
|
|
919
|
+
];
|
|
920
|
+
"writable": true;
|
|
921
|
+
"signer": true;
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "jlpVault";
|
|
925
|
+
"docs": [
|
|
926
|
+
"The JLP Vault PDA account (for pause checks)"
|
|
927
|
+
];
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "stv";
|
|
931
|
+
"docs": [
|
|
932
|
+
"The STV PDA account (for epoch validation)"
|
|
933
|
+
];
|
|
934
|
+
"writable": true;
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"name": "jvMint";
|
|
938
|
+
"docs": [
|
|
939
|
+
"jvX mint (vault share token)"
|
|
940
|
+
];
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "userJvxAta";
|
|
944
|
+
"docs": [
|
|
945
|
+
"User's jvX token account (source of shares)"
|
|
946
|
+
];
|
|
947
|
+
"writable": true;
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"name": "withdrawRequest";
|
|
951
|
+
"docs": [
|
|
952
|
+
"WithdrawRequest PDA - created or accumulated into"
|
|
953
|
+
];
|
|
954
|
+
"writable": true;
|
|
955
|
+
"pda": {
|
|
956
|
+
"seeds": [
|
|
957
|
+
{
|
|
958
|
+
"kind": "const";
|
|
959
|
+
"value": [
|
|
960
|
+
119,
|
|
961
|
+
105,
|
|
962
|
+
116,
|
|
963
|
+
104,
|
|
964
|
+
100,
|
|
965
|
+
114,
|
|
966
|
+
97,
|
|
967
|
+
119,
|
|
968
|
+
95,
|
|
969
|
+
114,
|
|
970
|
+
101,
|
|
971
|
+
113,
|
|
972
|
+
117,
|
|
973
|
+
101,
|
|
974
|
+
115,
|
|
975
|
+
116
|
|
976
|
+
];
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"kind": "account";
|
|
980
|
+
"path": "stv";
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"kind": "account";
|
|
984
|
+
"path": "user";
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"kind": "arg";
|
|
988
|
+
"path": "epoch_id";
|
|
989
|
+
}
|
|
990
|
+
];
|
|
991
|
+
};
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "requestJvxAta";
|
|
995
|
+
"docs": [
|
|
996
|
+
"jvX ATA owned by the WithdrawRequest PDA (escrow for shares)"
|
|
997
|
+
];
|
|
998
|
+
"writable": true;
|
|
999
|
+
"pda": {
|
|
1000
|
+
"seeds": [
|
|
1001
|
+
{
|
|
1002
|
+
"kind": "account";
|
|
1003
|
+
"path": "withdraw_request";
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"kind": "const";
|
|
1007
|
+
"value": [
|
|
1008
|
+
6,
|
|
1009
|
+
221,
|
|
1010
|
+
246,
|
|
1011
|
+
225,
|
|
1012
|
+
215,
|
|
1013
|
+
101,
|
|
1014
|
+
161,
|
|
1015
|
+
147,
|
|
1016
|
+
217,
|
|
1017
|
+
203,
|
|
1018
|
+
225,
|
|
1019
|
+
70,
|
|
1020
|
+
206,
|
|
1021
|
+
235,
|
|
1022
|
+
121,
|
|
1023
|
+
172,
|
|
1024
|
+
28,
|
|
1025
|
+
180,
|
|
1026
|
+
133,
|
|
1027
|
+
237,
|
|
1028
|
+
95,
|
|
1029
|
+
91,
|
|
1030
|
+
55,
|
|
1031
|
+
145,
|
|
1032
|
+
58,
|
|
1033
|
+
140,
|
|
1034
|
+
245,
|
|
1035
|
+
133,
|
|
1036
|
+
126,
|
|
1037
|
+
255,
|
|
1038
|
+
0,
|
|
1039
|
+
169
|
|
1040
|
+
];
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"kind": "account";
|
|
1044
|
+
"path": "jv_mint";
|
|
1045
|
+
}
|
|
1046
|
+
];
|
|
1047
|
+
"program": {
|
|
1048
|
+
"kind": "const";
|
|
1049
|
+
"value": [
|
|
1050
|
+
140,
|
|
1051
|
+
151,
|
|
1052
|
+
37,
|
|
1053
|
+
143,
|
|
1054
|
+
78,
|
|
1055
|
+
36,
|
|
1056
|
+
137,
|
|
1057
|
+
241,
|
|
1058
|
+
187,
|
|
1059
|
+
61,
|
|
1060
|
+
16,
|
|
1061
|
+
41,
|
|
1062
|
+
20,
|
|
1063
|
+
142,
|
|
1064
|
+
13,
|
|
1065
|
+
131,
|
|
1066
|
+
11,
|
|
1067
|
+
90,
|
|
1068
|
+
19,
|
|
1069
|
+
153,
|
|
1070
|
+
218,
|
|
1071
|
+
255,
|
|
1072
|
+
16,
|
|
1073
|
+
132,
|
|
1074
|
+
4,
|
|
1075
|
+
142,
|
|
1076
|
+
123,
|
|
1077
|
+
216,
|
|
1078
|
+
219,
|
|
1079
|
+
233,
|
|
1080
|
+
248,
|
|
1081
|
+
89
|
|
1082
|
+
];
|
|
784
1083
|
};
|
|
785
1084
|
};
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "tokenProgram";
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"name": "associatedTokenProgram";
|
|
1091
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "systemProgram";
|
|
1095
|
+
"address": "11111111111111111111111111111111";
|
|
1096
|
+
}
|
|
1097
|
+
];
|
|
1098
|
+
"args": [
|
|
1099
|
+
{
|
|
1100
|
+
"name": "shares";
|
|
1101
|
+
"type": "u64";
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"name": "epochId";
|
|
1105
|
+
"type": "u32";
|
|
786
1106
|
}
|
|
787
1107
|
];
|
|
788
1108
|
},
|
|
@@ -975,7 +1295,7 @@ type JlpDProgram = {
|
|
|
975
1295
|
"name": "params";
|
|
976
1296
|
"type": {
|
|
977
1297
|
"defined": {
|
|
978
|
-
"name": "
|
|
1298
|
+
"name": "SwapJlxJlpParams";
|
|
979
1299
|
};
|
|
980
1300
|
};
|
|
981
1301
|
}
|
|
@@ -1027,131 +1347,16 @@ type JlpDProgram = {
|
|
|
1027
1347
|
"name": "params";
|
|
1028
1348
|
"type": {
|
|
1029
1349
|
"defined": {
|
|
1030
|
-
"name": "
|
|
1031
|
-
};
|
|
1032
|
-
};
|
|
1033
|
-
}
|
|
1034
|
-
];
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
"name": "withdraw";
|
|
1038
|
-
"docs": [
|
|
1039
|
-
"Withdraw base asset by burning jvX shares",
|
|
1040
|
-
"",
|
|
1041
|
-
"# Flow",
|
|
1042
|
-
"1. Crystallize fees inline (ensures fair PPS)",
|
|
1043
|
-
"2. Calculate base amount from shares at post-fee PPS",
|
|
1044
|
-
"3. Burn jvX shares from user",
|
|
1045
|
-
"4. Transfer base from STV's base ATA to user",
|
|
1046
|
-
"",
|
|
1047
|
-
"# Note",
|
|
1048
|
-
"Requires sufficient base balance in STV's base ATA.",
|
|
1049
|
-
"Manager must ensure liquidity by converting jlX to base via",
|
|
1050
|
-
"jup_earn_deposit_withdraw instruction before user withdrawals.",
|
|
1051
|
-
"",
|
|
1052
|
-
"Remaining accounts (optional, for exchange rate):",
|
|
1053
|
-
"[0] = Jupiter Lend lending account",
|
|
1054
|
-
"[1] = Jupiter Lend rewards rate model"
|
|
1055
|
-
];
|
|
1056
|
-
"discriminator": [
|
|
1057
|
-
183,
|
|
1058
|
-
18,
|
|
1059
|
-
70,
|
|
1060
|
-
156,
|
|
1061
|
-
148,
|
|
1062
|
-
109,
|
|
1063
|
-
161,
|
|
1064
|
-
34
|
|
1065
|
-
];
|
|
1066
|
-
"accounts": [
|
|
1067
|
-
{
|
|
1068
|
-
"name": "user";
|
|
1069
|
-
"docs": [
|
|
1070
|
-
"User performing the withdrawal"
|
|
1071
|
-
];
|
|
1072
|
-
"writable": true;
|
|
1073
|
-
"signer": true;
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
"name": "jlpVault";
|
|
1077
|
-
"docs": [
|
|
1078
|
-
"The JLP Vault PDA account",
|
|
1079
|
-
"Note: PDA verified in handler via get_pda() to avoid multiple loads"
|
|
1080
|
-
];
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
"name": "stv";
|
|
1084
|
-
"docs": [
|
|
1085
|
-
"The STV PDA account",
|
|
1086
|
-
"Note: PDA verified in handler via get_pda() to avoid multiple loads"
|
|
1087
|
-
];
|
|
1088
|
-
"writable": true;
|
|
1089
|
-
},
|
|
1090
|
-
{
|
|
1091
|
-
"name": "baseMint";
|
|
1092
|
-
"docs": [
|
|
1093
|
-
"Base asset mint (underlying token: SOL, BTC, ETH, USDC)"
|
|
1094
|
-
];
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
"name": "jlMint";
|
|
1098
|
-
"docs": [
|
|
1099
|
-
"jlX mint (Jupiter Lend token) - used for NAV calculation"
|
|
1100
|
-
];
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
"name": "jvMint";
|
|
1104
|
-
"docs": [
|
|
1105
|
-
"jvX mint (vault share token) - STV is mint authority",
|
|
1106
|
-
"Verified against STV.jv_mint in handler"
|
|
1107
|
-
];
|
|
1108
|
-
"writable": true;
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
"name": "userBaseAta";
|
|
1112
|
-
"docs": [
|
|
1113
|
-
"User's base asset token account (destination for withdrawal)"
|
|
1114
|
-
];
|
|
1115
|
-
"writable": true;
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
"name": "userJvxAta";
|
|
1119
|
-
"docs": [
|
|
1120
|
-
"User's jvX token account (source - shares to burn)"
|
|
1121
|
-
];
|
|
1122
|
-
"writable": true;
|
|
1123
|
-
},
|
|
1124
|
-
{
|
|
1125
|
-
"name": "stvBaseAta";
|
|
1126
|
-
"docs": [
|
|
1127
|
-
"STV's base ATA (source for base tokens to user)"
|
|
1128
|
-
];
|
|
1129
|
-
"writable": true;
|
|
1130
|
-
},
|
|
1131
|
-
{
|
|
1132
|
-
"name": "stvJlxAta";
|
|
1133
|
-
"docs": [
|
|
1134
|
-
"STV's jlX ATA (used for NAV calculation)"
|
|
1135
|
-
];
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
"name": "tokenProgram";
|
|
1139
|
-
"docs": [
|
|
1140
|
-
"Token program"
|
|
1141
|
-
];
|
|
1142
|
-
}
|
|
1143
|
-
];
|
|
1144
|
-
"args": [
|
|
1145
|
-
{
|
|
1146
|
-
"name": "sharesToBurn";
|
|
1147
|
-
"type": "u64";
|
|
1350
|
+
"name": "UpdateStvParams";
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1148
1353
|
}
|
|
1149
1354
|
];
|
|
1150
1355
|
}
|
|
1151
1356
|
];
|
|
1152
1357
|
"accounts": [
|
|
1153
1358
|
{
|
|
1154
|
-
"name": "
|
|
1359
|
+
"name": "JLPVault";
|
|
1155
1360
|
"discriminator": [
|
|
1156
1361
|
41,
|
|
1157
1362
|
108,
|
|
@@ -1164,7 +1369,7 @@ type JlpDProgram = {
|
|
|
1164
1369
|
];
|
|
1165
1370
|
},
|
|
1166
1371
|
{
|
|
1167
|
-
"name": "
|
|
1372
|
+
"name": "STV";
|
|
1168
1373
|
"discriminator": [
|
|
1169
1374
|
214,
|
|
1170
1375
|
2,
|
|
@@ -1175,11 +1380,24 @@ type JlpDProgram = {
|
|
|
1175
1380
|
17,
|
|
1176
1381
|
230
|
|
1177
1382
|
];
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "WithdrawRequest";
|
|
1386
|
+
"discriminator": [
|
|
1387
|
+
186,
|
|
1388
|
+
239,
|
|
1389
|
+
174,
|
|
1390
|
+
191,
|
|
1391
|
+
189,
|
|
1392
|
+
13,
|
|
1393
|
+
47,
|
|
1394
|
+
196
|
|
1395
|
+
];
|
|
1178
1396
|
}
|
|
1179
1397
|
];
|
|
1180
1398
|
"events": [
|
|
1181
1399
|
{
|
|
1182
|
-
"name": "
|
|
1400
|
+
"name": "Deposited";
|
|
1183
1401
|
"discriminator": [
|
|
1184
1402
|
111,
|
|
1185
1403
|
141,
|
|
@@ -1192,7 +1410,33 @@ type JlpDProgram = {
|
|
|
1192
1410
|
];
|
|
1193
1411
|
},
|
|
1194
1412
|
{
|
|
1195
|
-
"name": "
|
|
1413
|
+
"name": "EpochAdvanced";
|
|
1414
|
+
"discriminator": [
|
|
1415
|
+
41,
|
|
1416
|
+
220,
|
|
1417
|
+
14,
|
|
1418
|
+
123,
|
|
1419
|
+
117,
|
|
1420
|
+
70,
|
|
1421
|
+
117,
|
|
1422
|
+
157
|
|
1423
|
+
];
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"name": "EpochProcessed";
|
|
1427
|
+
"discriminator": [
|
|
1428
|
+
18,
|
|
1429
|
+
238,
|
|
1430
|
+
2,
|
|
1431
|
+
247,
|
|
1432
|
+
238,
|
|
1433
|
+
178,
|
|
1434
|
+
94,
|
|
1435
|
+
138
|
|
1436
|
+
];
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"name": "FeesClaimSkipped";
|
|
1196
1440
|
"discriminator": [
|
|
1197
1441
|
7,
|
|
1198
1442
|
214,
|
|
@@ -1205,7 +1449,7 @@ type JlpDProgram = {
|
|
|
1205
1449
|
];
|
|
1206
1450
|
},
|
|
1207
1451
|
{
|
|
1208
|
-
"name": "
|
|
1452
|
+
"name": "FeesClaimed";
|
|
1209
1453
|
"discriminator": [
|
|
1210
1454
|
22,
|
|
1211
1455
|
104,
|
|
@@ -1218,7 +1462,7 @@ type JlpDProgram = {
|
|
|
1218
1462
|
];
|
|
1219
1463
|
},
|
|
1220
1464
|
{
|
|
1221
|
-
"name": "
|
|
1465
|
+
"name": "JlpSwapped";
|
|
1222
1466
|
"discriminator": [
|
|
1223
1467
|
253,
|
|
1224
1468
|
47,
|
|
@@ -1231,7 +1475,7 @@ type JlpDProgram = {
|
|
|
1231
1475
|
];
|
|
1232
1476
|
},
|
|
1233
1477
|
{
|
|
1234
|
-
"name": "
|
|
1478
|
+
"name": "JlpVaultInitialized";
|
|
1235
1479
|
"discriminator": [
|
|
1236
1480
|
52,
|
|
1237
1481
|
94,
|
|
@@ -1244,7 +1488,7 @@ type JlpDProgram = {
|
|
|
1244
1488
|
];
|
|
1245
1489
|
},
|
|
1246
1490
|
{
|
|
1247
|
-
"name": "
|
|
1491
|
+
"name": "JlpVaultUpdated";
|
|
1248
1492
|
"discriminator": [
|
|
1249
1493
|
20,
|
|
1250
1494
|
204,
|
|
@@ -1257,7 +1501,7 @@ type JlpDProgram = {
|
|
|
1257
1501
|
];
|
|
1258
1502
|
},
|
|
1259
1503
|
{
|
|
1260
|
-
"name": "
|
|
1504
|
+
"name": "JlxMoved";
|
|
1261
1505
|
"discriminator": [
|
|
1262
1506
|
251,
|
|
1263
1507
|
80,
|
|
@@ -1270,7 +1514,7 @@ type JlpDProgram = {
|
|
|
1270
1514
|
];
|
|
1271
1515
|
},
|
|
1272
1516
|
{
|
|
1273
|
-
"name": "
|
|
1517
|
+
"name": "JlxSwapped";
|
|
1274
1518
|
"discriminator": [
|
|
1275
1519
|
200,
|
|
1276
1520
|
218,
|
|
@@ -1283,7 +1527,7 @@ type JlpDProgram = {
|
|
|
1283
1527
|
];
|
|
1284
1528
|
},
|
|
1285
1529
|
{
|
|
1286
|
-
"name": "
|
|
1530
|
+
"name": "JupEarnEvent";
|
|
1287
1531
|
"discriminator": [
|
|
1288
1532
|
138,
|
|
1289
1533
|
10,
|
|
@@ -1296,7 +1540,7 @@ type JlpDProgram = {
|
|
|
1296
1540
|
];
|
|
1297
1541
|
},
|
|
1298
1542
|
{
|
|
1299
|
-
"name": "
|
|
1543
|
+
"name": "SettleYieldEvent";
|
|
1300
1544
|
"discriminator": [
|
|
1301
1545
|
208,
|
|
1302
1546
|
142,
|
|
@@ -1309,7 +1553,7 @@ type JlpDProgram = {
|
|
|
1309
1553
|
];
|
|
1310
1554
|
},
|
|
1311
1555
|
{
|
|
1312
|
-
"name": "
|
|
1556
|
+
"name": "SettleYieldSkipped";
|
|
1313
1557
|
"discriminator": [
|
|
1314
1558
|
189,
|
|
1315
1559
|
221,
|
|
@@ -1322,7 +1566,7 @@ type JlpDProgram = {
|
|
|
1322
1566
|
];
|
|
1323
1567
|
},
|
|
1324
1568
|
{
|
|
1325
|
-
"name": "
|
|
1569
|
+
"name": "SettleYieldStvEvent";
|
|
1326
1570
|
"discriminator": [
|
|
1327
1571
|
12,
|
|
1328
1572
|
42,
|
|
@@ -1335,7 +1579,7 @@ type JlpDProgram = {
|
|
|
1335
1579
|
];
|
|
1336
1580
|
},
|
|
1337
1581
|
{
|
|
1338
|
-
"name": "
|
|
1582
|
+
"name": "StvInitialized";
|
|
1339
1583
|
"discriminator": [
|
|
1340
1584
|
41,
|
|
1341
1585
|
106,
|
|
@@ -1348,7 +1592,7 @@ type JlpDProgram = {
|
|
|
1348
1592
|
];
|
|
1349
1593
|
},
|
|
1350
1594
|
{
|
|
1351
|
-
"name": "
|
|
1595
|
+
"name": "StvUpdated";
|
|
1352
1596
|
"discriminator": [
|
|
1353
1597
|
108,
|
|
1354
1598
|
129,
|
|
@@ -1361,254 +1605,317 @@ type JlpDProgram = {
|
|
|
1361
1605
|
];
|
|
1362
1606
|
},
|
|
1363
1607
|
{
|
|
1364
|
-
"name": "
|
|
1608
|
+
"name": "WithdrawClaimed";
|
|
1365
1609
|
"discriminator": [
|
|
1366
|
-
|
|
1610
|
+
77,
|
|
1611
|
+
130,
|
|
1367
1612
|
89,
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1613
|
+
38,
|
|
1614
|
+
239,
|
|
1615
|
+
172,
|
|
1616
|
+
174,
|
|
1617
|
+
85
|
|
1618
|
+
];
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
"name": "WithdrawRequested";
|
|
1622
|
+
"discriminator": [
|
|
1623
|
+
114,
|
|
1624
|
+
16,
|
|
1625
|
+
240,
|
|
1626
|
+
206,
|
|
1627
|
+
93,
|
|
1628
|
+
128,
|
|
1629
|
+
151,
|
|
1630
|
+
39
|
|
1374
1631
|
];
|
|
1375
1632
|
}
|
|
1376
1633
|
];
|
|
1377
1634
|
"errors": [
|
|
1378
1635
|
{
|
|
1379
1636
|
"code": 6000;
|
|
1380
|
-
"name": "
|
|
1637
|
+
"name": "Unauthorized";
|
|
1381
1638
|
"msg": "Unauthorized: not admin";
|
|
1382
1639
|
},
|
|
1383
1640
|
{
|
|
1384
1641
|
"code": 6001;
|
|
1385
|
-
"name": "
|
|
1642
|
+
"name": "NotManager";
|
|
1386
1643
|
"msg": "Unauthorized: not manager";
|
|
1387
1644
|
},
|
|
1388
1645
|
{
|
|
1389
1646
|
"code": 6002;
|
|
1390
|
-
"name": "
|
|
1647
|
+
"name": "VaultPaused";
|
|
1391
1648
|
"msg": "Vault is paused";
|
|
1392
1649
|
},
|
|
1393
1650
|
{
|
|
1394
1651
|
"code": 6003;
|
|
1395
|
-
"name": "
|
|
1652
|
+
"name": "DepositsDisabled";
|
|
1396
1653
|
"msg": "Deposits disabled";
|
|
1397
1654
|
},
|
|
1398
1655
|
{
|
|
1399
1656
|
"code": 6004;
|
|
1400
|
-
"name": "
|
|
1657
|
+
"name": "WithdrawalsDisabled";
|
|
1401
1658
|
"msg": "Withdrawals disabled";
|
|
1402
1659
|
},
|
|
1403
1660
|
{
|
|
1404
1661
|
"code": 6005;
|
|
1405
|
-
"name": "
|
|
1662
|
+
"name": "JlpDisabled";
|
|
1406
1663
|
"msg": "JLP operations disabled";
|
|
1407
1664
|
},
|
|
1408
1665
|
{
|
|
1409
1666
|
"code": 6006;
|
|
1410
|
-
"name": "
|
|
1667
|
+
"name": "RebalanceDisabled";
|
|
1411
1668
|
"msg": "Rebalance operations disabled";
|
|
1412
1669
|
},
|
|
1413
1670
|
{
|
|
1414
1671
|
"code": 6007;
|
|
1415
|
-
"name": "
|
|
1672
|
+
"name": "MathOverflow";
|
|
1416
1673
|
"msg": "Math overflow";
|
|
1417
1674
|
},
|
|
1418
1675
|
{
|
|
1419
1676
|
"code": 6008;
|
|
1420
|
-
"name": "
|
|
1677
|
+
"name": "InvalidTimestamp";
|
|
1421
1678
|
"msg": "Invalid timestamp";
|
|
1422
1679
|
},
|
|
1423
1680
|
{
|
|
1424
1681
|
"code": 6009;
|
|
1425
|
-
"name": "
|
|
1682
|
+
"name": "DivisionByZero";
|
|
1426
1683
|
"msg": "Division by zero";
|
|
1427
1684
|
},
|
|
1428
1685
|
{
|
|
1429
1686
|
"code": 6010;
|
|
1430
|
-
"name": "
|
|
1687
|
+
"name": "StagingNotZero";
|
|
1431
1688
|
"msg": "Staging ATAs must be zero";
|
|
1432
1689
|
},
|
|
1433
1690
|
{
|
|
1434
1691
|
"code": 6011;
|
|
1435
|
-
"name": "
|
|
1692
|
+
"name": "InsufficientLiquidity";
|
|
1436
1693
|
"msg": "Insufficient liquidity for withdrawal";
|
|
1437
1694
|
},
|
|
1438
1695
|
{
|
|
1439
1696
|
"code": 6012;
|
|
1440
|
-
"name": "
|
|
1697
|
+
"name": "InsufficientBalance";
|
|
1441
1698
|
"msg": "Insufficient balance";
|
|
1442
1699
|
},
|
|
1443
1700
|
{
|
|
1444
1701
|
"code": 6013;
|
|
1445
|
-
"name": "
|
|
1702
|
+
"name": "SlippageExceeded";
|
|
1446
1703
|
"msg": "Slippage exceeded";
|
|
1447
1704
|
},
|
|
1448
1705
|
{
|
|
1449
1706
|
"code": 6014;
|
|
1450
|
-
"name": "
|
|
1707
|
+
"name": "InvalidJlpVaultBump";
|
|
1451
1708
|
"msg": "Invalid JLP vault PDA bump";
|
|
1452
1709
|
},
|
|
1453
1710
|
{
|
|
1454
1711
|
"code": 6015;
|
|
1455
|
-
"name": "
|
|
1712
|
+
"name": "InvalidStvBump";
|
|
1456
1713
|
"msg": "Invalid STV PDA bump";
|
|
1457
1714
|
},
|
|
1458
1715
|
{
|
|
1459
1716
|
"code": 6016;
|
|
1460
|
-
"name": "
|
|
1717
|
+
"name": "InvalidJlMint";
|
|
1461
1718
|
"msg": "Invalid jlX mint (Jupiter Lend token)";
|
|
1462
1719
|
},
|
|
1463
1720
|
{
|
|
1464
1721
|
"code": 6017;
|
|
1465
|
-
"name": "
|
|
1722
|
+
"name": "InvalidJvMint";
|
|
1466
1723
|
"msg": "Invalid jvX mint (vault share token)";
|
|
1467
1724
|
},
|
|
1468
1725
|
{
|
|
1469
1726
|
"code": 6018;
|
|
1470
|
-
"name": "
|
|
1727
|
+
"name": "InvalidBaseMint";
|
|
1471
1728
|
"msg": "Invalid base asset mint";
|
|
1472
1729
|
},
|
|
1473
1730
|
{
|
|
1474
1731
|
"code": 6019;
|
|
1475
|
-
"name": "
|
|
1732
|
+
"name": "InvalidJlpMint";
|
|
1476
1733
|
"msg": "Invalid JLP mint";
|
|
1477
1734
|
},
|
|
1478
1735
|
{
|
|
1479
1736
|
"code": 6020;
|
|
1480
|
-
"name": "
|
|
1737
|
+
"name": "InvalidOwner";
|
|
1481
1738
|
"msg": "Invalid account owner";
|
|
1482
1739
|
},
|
|
1483
1740
|
{
|
|
1484
1741
|
"code": 6021;
|
|
1485
|
-
"name": "
|
|
1742
|
+
"name": "InvalidStvIndex";
|
|
1486
1743
|
"msg": "Invalid STV index";
|
|
1487
1744
|
},
|
|
1488
1745
|
{
|
|
1489
1746
|
"code": 6022;
|
|
1490
|
-
"name": "
|
|
1747
|
+
"name": "InvalidFeeParams";
|
|
1491
1748
|
"msg": "Invalid fee parameters";
|
|
1492
1749
|
},
|
|
1493
1750
|
{
|
|
1494
1751
|
"code": 6023;
|
|
1495
|
-
"name": "
|
|
1752
|
+
"name": "AmountTooSmall";
|
|
1496
1753
|
"msg": "Amount too small";
|
|
1497
1754
|
},
|
|
1498
1755
|
{
|
|
1499
1756
|
"code": 6024;
|
|
1500
|
-
"name": "
|
|
1757
|
+
"name": "ZeroAmount";
|
|
1501
1758
|
"msg": "Zero amount not allowed";
|
|
1502
1759
|
},
|
|
1503
1760
|
{
|
|
1504
1761
|
"code": 6025;
|
|
1505
|
-
"name": "
|
|
1762
|
+
"name": "FeeCapExceeded";
|
|
1506
1763
|
"msg": "Fee cap exceeded";
|
|
1507
1764
|
},
|
|
1508
1765
|
{
|
|
1509
1766
|
"code": 6026;
|
|
1510
|
-
"name": "
|
|
1767
|
+
"name": "MintMismatch";
|
|
1511
1768
|
"msg": "Mint mismatch";
|
|
1512
1769
|
},
|
|
1513
1770
|
{
|
|
1514
1771
|
"code": 6027;
|
|
1515
|
-
"name": "
|
|
1772
|
+
"name": "InsufficientAccounts";
|
|
1516
1773
|
"msg": "Insufficient accounts provided";
|
|
1517
1774
|
},
|
|
1518
1775
|
{
|
|
1519
1776
|
"code": 6028;
|
|
1520
|
-
"name": "
|
|
1777
|
+
"name": "InvalidProgram";
|
|
1521
1778
|
"msg": "Invalid program ID";
|
|
1522
1779
|
},
|
|
1523
1780
|
{
|
|
1524
1781
|
"code": 6029;
|
|
1525
|
-
"name": "
|
|
1782
|
+
"name": "InvalidSwapDiscriminator";
|
|
1526
1783
|
"msg": "Invalid swap discriminator";
|
|
1527
1784
|
},
|
|
1528
1785
|
{
|
|
1529
1786
|
"code": 6030;
|
|
1530
|
-
"name": "
|
|
1787
|
+
"name": "MaxDepositExceeded";
|
|
1531
1788
|
"msg": "Deposit exceeds maximum allowed";
|
|
1532
1789
|
},
|
|
1533
1790
|
{
|
|
1534
1791
|
"code": 6031;
|
|
1535
|
-
"name": "
|
|
1792
|
+
"name": "InvalidLendingAccount";
|
|
1536
1793
|
"msg": "Invalid Jupiter Lend lending account";
|
|
1537
1794
|
},
|
|
1538
1795
|
{
|
|
1539
1796
|
"code": 6032;
|
|
1540
|
-
"name": "
|
|
1797
|
+
"name": "MissingExchangeRateAccounts";
|
|
1541
1798
|
"msg": "Missing exchange rate accounts - lending and rewards_rate_model required for pools with Jupiter Earn";
|
|
1542
1799
|
},
|
|
1543
1800
|
{
|
|
1544
1801
|
"code": 6033;
|
|
1545
|
-
"name": "
|
|
1802
|
+
"name": "JupiterLendCpiFailed";
|
|
1546
1803
|
"msg": "Jupiter Lend CPI failed";
|
|
1547
1804
|
},
|
|
1548
1805
|
{
|
|
1549
1806
|
"code": 6034;
|
|
1550
|
-
"name": "
|
|
1807
|
+
"name": "JupiterSwapCpiFailed";
|
|
1551
1808
|
"msg": "Jupiter swap CPI failed";
|
|
1552
1809
|
},
|
|
1553
1810
|
{
|
|
1554
1811
|
"code": 6035;
|
|
1555
|
-
"name": "
|
|
1812
|
+
"name": "OracleStale";
|
|
1556
1813
|
"msg": "Oracle price is stale - older than staleness threshold";
|
|
1557
1814
|
},
|
|
1558
1815
|
{
|
|
1559
1816
|
"code": 6036;
|
|
1560
|
-
"name": "
|
|
1817
|
+
"name": "OraclePriceNegative";
|
|
1561
1818
|
"msg": "Oracle returned negative price";
|
|
1562
1819
|
},
|
|
1563
1820
|
{
|
|
1564
1821
|
"code": 6037;
|
|
1565
|
-
"name": "
|
|
1822
|
+
"name": "InvalidBaseAssetIndex";
|
|
1566
1823
|
"msg": "Invalid base asset index";
|
|
1567
1824
|
},
|
|
1568
1825
|
{
|
|
1569
1826
|
"code": 6038;
|
|
1570
|
-
"name": "
|
|
1827
|
+
"name": "PriceFeedMismatch";
|
|
1571
1828
|
"msg": "Price feed mismatch";
|
|
1572
1829
|
},
|
|
1573
1830
|
{
|
|
1574
1831
|
"code": 6039;
|
|
1575
|
-
"name": "
|
|
1832
|
+
"name": "OracleAccountInvalid";
|
|
1576
1833
|
"msg": "Oracle account invalid";
|
|
1577
1834
|
},
|
|
1578
1835
|
{
|
|
1579
1836
|
"code": 6040;
|
|
1580
|
-
"name": "
|
|
1837
|
+
"name": "InvalidAccountData";
|
|
1581
1838
|
"msg": "Invalid account data - could not parse account";
|
|
1582
1839
|
},
|
|
1583
1840
|
{
|
|
1584
1841
|
"code": 6041;
|
|
1585
|
-
"name": "
|
|
1842
|
+
"name": "InvalidExchangeRate";
|
|
1586
1843
|
"msg": "Invalid exchange rate from Jupiter Lend";
|
|
1587
1844
|
},
|
|
1588
1845
|
{
|
|
1589
1846
|
"code": 6042;
|
|
1590
|
-
"name": "
|
|
1847
|
+
"name": "InvalidOracleAccount";
|
|
1591
1848
|
"msg": "Invalid oracle account - not owned by expected program";
|
|
1592
1849
|
},
|
|
1593
1850
|
{
|
|
1594
1851
|
"code": 6043;
|
|
1595
|
-
"name": "
|
|
1852
|
+
"name": "JlpPriceOutOfRange";
|
|
1596
1853
|
"msg": "JLP price out of reasonable range ($0.50 - $50.00)";
|
|
1597
1854
|
},
|
|
1598
1855
|
{
|
|
1599
1856
|
"code": 6044;
|
|
1600
|
-
"name": "
|
|
1857
|
+
"name": "TestModeRequired";
|
|
1601
1858
|
"msg": "Test mode required: FLAG_TEST_MODE must be set for devnet/localnet builds";
|
|
1602
1859
|
},
|
|
1603
1860
|
{
|
|
1604
1861
|
"code": 6045;
|
|
1605
|
-
"name": "
|
|
1862
|
+
"name": "NotAdmin";
|
|
1606
1863
|
"msg": "Unauthorized: not admin";
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
"code": 6046;
|
|
1867
|
+
"name": "TokenAccountNotEmpty";
|
|
1868
|
+
"msg": "Token account balance must be zero before closing";
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
"code": 6047;
|
|
1872
|
+
"name": "TokenAccountOwnerMismatch";
|
|
1873
|
+
"msg": "Token account not owned by expected PDA";
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"code": 6048;
|
|
1877
|
+
"name": "EpochEnded";
|
|
1878
|
+
"msg": "Epoch has ended - call process_epoch first";
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
"code": 6049;
|
|
1882
|
+
"name": "EpochNotEnded";
|
|
1883
|
+
"msg": "Epoch has not ended yet";
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
"code": 6050;
|
|
1887
|
+
"name": "ClaimNotAvailableYet";
|
|
1888
|
+
"msg": "Claim not available yet - wait for next epoch";
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"code": 6051;
|
|
1892
|
+
"name": "InvalidEpochInterval";
|
|
1893
|
+
"msg": "Withdraw epoch interval must be > 0";
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
"code": 6052;
|
|
1897
|
+
"name": "ActiveWithdrawReserves";
|
|
1898
|
+
"msg": "Cannot update epoch interval with active reserves";
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
"code": 6053;
|
|
1902
|
+
"name": "EpochIdMismatch";
|
|
1903
|
+
"msg": "Epoch ID mismatch";
|
|
1904
|
+
},
|
|
1905
|
+
{
|
|
1906
|
+
"code": 6054;
|
|
1907
|
+
"name": "WithdrawRequestNotProcessed";
|
|
1908
|
+
"msg": "Withdraw request not processed yet";
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
"code": 6055;
|
|
1912
|
+
"name": "WithdrawRequestAlreadyProcessed";
|
|
1913
|
+
"msg": "Withdraw request already processed";
|
|
1607
1914
|
}
|
|
1608
1915
|
];
|
|
1609
1916
|
"types": [
|
|
1610
1917
|
{
|
|
1611
|
-
"name": "
|
|
1918
|
+
"name": "Deposited";
|
|
1612
1919
|
"type": {
|
|
1613
1920
|
"kind": "struct";
|
|
1614
1921
|
"fields": [
|
|
@@ -1639,7 +1946,7 @@ type JlpDProgram = {
|
|
|
1639
1946
|
};
|
|
1640
1947
|
},
|
|
1641
1948
|
{
|
|
1642
|
-
"name": "
|
|
1949
|
+
"name": "Direction";
|
|
1643
1950
|
"docs": [
|
|
1644
1951
|
"Direction of jlX token movement between STV and Vault"
|
|
1645
1952
|
];
|
|
@@ -1647,16 +1954,72 @@ type JlpDProgram = {
|
|
|
1647
1954
|
"kind": "enum";
|
|
1648
1955
|
"variants": [
|
|
1649
1956
|
{
|
|
1650
|
-
"name": "
|
|
1957
|
+
"name": "ToVault";
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
"name": "FromVault";
|
|
1961
|
+
}
|
|
1962
|
+
];
|
|
1963
|
+
};
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"name": "EpochAdvanced";
|
|
1967
|
+
"type": {
|
|
1968
|
+
"kind": "struct";
|
|
1969
|
+
"fields": [
|
|
1970
|
+
{
|
|
1971
|
+
"name": "stv";
|
|
1972
|
+
"type": "pubkey";
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"name": "newEpochId";
|
|
1976
|
+
"type": "u32";
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
"name": "newNextEpochTs";
|
|
1980
|
+
"type": "u32";
|
|
1981
|
+
}
|
|
1982
|
+
];
|
|
1983
|
+
};
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"name": "EpochProcessed";
|
|
1987
|
+
"type": {
|
|
1988
|
+
"kind": "struct";
|
|
1989
|
+
"fields": [
|
|
1990
|
+
{
|
|
1991
|
+
"name": "stv";
|
|
1992
|
+
"type": "pubkey";
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
"name": "epochId";
|
|
1996
|
+
"type": "u32";
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
"name": "pps";
|
|
2000
|
+
"type": "u64";
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"name": "totalShares";
|
|
2004
|
+
"type": "u64";
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
"name": "totalBase";
|
|
2008
|
+
"type": "u64";
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
"name": "newEpochId";
|
|
2012
|
+
"type": "u32";
|
|
1651
2013
|
},
|
|
1652
2014
|
{
|
|
1653
|
-
"name": "
|
|
2015
|
+
"name": "newNextEpochTs";
|
|
2016
|
+
"type": "u32";
|
|
1654
2017
|
}
|
|
1655
2018
|
];
|
|
1656
2019
|
};
|
|
1657
2020
|
},
|
|
1658
2021
|
{
|
|
1659
|
-
"name": "
|
|
2022
|
+
"name": "FeesClaimSkipped";
|
|
1660
2023
|
"docs": [
|
|
1661
2024
|
"Event emitted when claim_fees returns early (no fees to claim)"
|
|
1662
2025
|
];
|
|
@@ -1681,7 +2044,7 @@ type JlpDProgram = {
|
|
|
1681
2044
|
};
|
|
1682
2045
|
},
|
|
1683
2046
|
{
|
|
1684
|
-
"name": "
|
|
2047
|
+
"name": "FeesClaimed";
|
|
1685
2048
|
"docs": [
|
|
1686
2049
|
"Fee claim event - when manager claims accrued fees"
|
|
1687
2050
|
];
|
|
@@ -1710,7 +2073,7 @@ type JlpDProgram = {
|
|
|
1710
2073
|
};
|
|
1711
2074
|
},
|
|
1712
2075
|
{
|
|
1713
|
-
"name": "
|
|
2076
|
+
"name": "InitOrUpdateJlpVaultParams";
|
|
1714
2077
|
"docs": [
|
|
1715
2078
|
"Parameters for initializing or updating the JLP Vault"
|
|
1716
2079
|
];
|
|
@@ -1806,7 +2169,7 @@ type JlpDProgram = {
|
|
|
1806
2169
|
};
|
|
1807
2170
|
},
|
|
1808
2171
|
{
|
|
1809
|
-
"name": "
|
|
2172
|
+
"name": "InitializeStvParams";
|
|
1810
2173
|
"docs": [
|
|
1811
2174
|
"Parameters for initializing an STV"
|
|
1812
2175
|
];
|
|
@@ -1840,12 +2203,19 @@ type JlpDProgram = {
|
|
|
1840
2203
|
"Minimum deposit amount in base asset (0 = no minimum)"
|
|
1841
2204
|
];
|
|
1842
2205
|
"type": "u64";
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"name": "epochSec";
|
|
2209
|
+
"docs": [
|
|
2210
|
+
"Epoch duration in seconds for delayed withdrawals"
|
|
2211
|
+
];
|
|
2212
|
+
"type": "u32";
|
|
1843
2213
|
}
|
|
1844
2214
|
];
|
|
1845
2215
|
};
|
|
1846
2216
|
},
|
|
1847
2217
|
{
|
|
1848
|
-
"name": "
|
|
2218
|
+
"name": "JLPVault";
|
|
1849
2219
|
"docs": [
|
|
1850
2220
|
"JLPVault - Global vault configuration account",
|
|
1851
2221
|
"Seeds: [\"jlp_vault\"]",
|
|
@@ -1968,7 +2338,7 @@ type JlpDProgram = {
|
|
|
1968
2338
|
};
|
|
1969
2339
|
},
|
|
1970
2340
|
{
|
|
1971
|
-
"name": "
|
|
2341
|
+
"name": "JlpSwapped";
|
|
1972
2342
|
"type": {
|
|
1973
2343
|
"kind": "struct";
|
|
1974
2344
|
"fields": [
|
|
@@ -2007,7 +2377,7 @@ type JlpDProgram = {
|
|
|
2007
2377
|
};
|
|
2008
2378
|
},
|
|
2009
2379
|
{
|
|
2010
|
-
"name": "
|
|
2380
|
+
"name": "JlpVaultInitialized";
|
|
2011
2381
|
"type": {
|
|
2012
2382
|
"kind": "struct";
|
|
2013
2383
|
"fields": [
|
|
@@ -2035,7 +2405,7 @@ type JlpDProgram = {
|
|
|
2035
2405
|
};
|
|
2036
2406
|
},
|
|
2037
2407
|
{
|
|
2038
|
-
"name": "
|
|
2408
|
+
"name": "JlpVaultUpdated";
|
|
2039
2409
|
"type": {
|
|
2040
2410
|
"kind": "struct";
|
|
2041
2411
|
"fields": [
|
|
@@ -2087,7 +2457,7 @@ type JlpDProgram = {
|
|
|
2087
2457
|
};
|
|
2088
2458
|
},
|
|
2089
2459
|
{
|
|
2090
|
-
"name": "
|
|
2460
|
+
"name": "JlxMoved";
|
|
2091
2461
|
"type": {
|
|
2092
2462
|
"kind": "struct";
|
|
2093
2463
|
"fields": [
|
|
@@ -2135,7 +2505,7 @@ type JlpDProgram = {
|
|
|
2135
2505
|
};
|
|
2136
2506
|
},
|
|
2137
2507
|
{
|
|
2138
|
-
"name": "
|
|
2508
|
+
"name": "JlxSwapped";
|
|
2139
2509
|
"type": {
|
|
2140
2510
|
"kind": "struct";
|
|
2141
2511
|
"fields": [
|
|
@@ -2167,7 +2537,7 @@ type JlpDProgram = {
|
|
|
2167
2537
|
};
|
|
2168
2538
|
},
|
|
2169
2539
|
{
|
|
2170
|
-
"name": "
|
|
2540
|
+
"name": "JupEarnDirection";
|
|
2171
2541
|
"docs": [
|
|
2172
2542
|
"Direction for Jupiter Earn operations"
|
|
2173
2543
|
];
|
|
@@ -2175,16 +2545,16 @@ type JlpDProgram = {
|
|
|
2175
2545
|
"kind": "enum";
|
|
2176
2546
|
"variants": [
|
|
2177
2547
|
{
|
|
2178
|
-
"name": "
|
|
2548
|
+
"name": "Deposit";
|
|
2179
2549
|
},
|
|
2180
2550
|
{
|
|
2181
|
-
"name": "
|
|
2551
|
+
"name": "Withdraw";
|
|
2182
2552
|
}
|
|
2183
2553
|
];
|
|
2184
2554
|
};
|
|
2185
2555
|
},
|
|
2186
2556
|
{
|
|
2187
|
-
"name": "
|
|
2557
|
+
"name": "JupEarnEvent";
|
|
2188
2558
|
"docs": [
|
|
2189
2559
|
"Event emitted for Jupiter Earn deposit/withdraw operations"
|
|
2190
2560
|
];
|
|
@@ -2223,7 +2593,7 @@ type JlpDProgram = {
|
|
|
2223
2593
|
};
|
|
2224
2594
|
},
|
|
2225
2595
|
{
|
|
2226
|
-
"name": "
|
|
2596
|
+
"name": "JupEarnParams";
|
|
2227
2597
|
"docs": [
|
|
2228
2598
|
"Parameters for Jupiter Earn deposit/withdraw"
|
|
2229
2599
|
];
|
|
@@ -2237,7 +2607,7 @@ type JlpDProgram = {
|
|
|
2237
2607
|
];
|
|
2238
2608
|
"type": {
|
|
2239
2609
|
"defined": {
|
|
2240
|
-
"name": "
|
|
2610
|
+
"name": "JupEarnDirection";
|
|
2241
2611
|
};
|
|
2242
2612
|
};
|
|
2243
2613
|
},
|
|
@@ -2252,7 +2622,7 @@ type JlpDProgram = {
|
|
|
2252
2622
|
};
|
|
2253
2623
|
},
|
|
2254
2624
|
{
|
|
2255
|
-
"name": "
|
|
2625
|
+
"name": "MoveJlxParams";
|
|
2256
2626
|
"docs": [
|
|
2257
2627
|
"Parameters for moving jlX tokens between STV and Vault"
|
|
2258
2628
|
];
|
|
@@ -2273,7 +2643,7 @@ type JlpDProgram = {
|
|
|
2273
2643
|
];
|
|
2274
2644
|
"type": {
|
|
2275
2645
|
"defined": {
|
|
2276
|
-
"name": "
|
|
2646
|
+
"name": "Direction";
|
|
2277
2647
|
};
|
|
2278
2648
|
};
|
|
2279
2649
|
}
|
|
@@ -2281,11 +2651,11 @@ type JlpDProgram = {
|
|
|
2281
2651
|
};
|
|
2282
2652
|
},
|
|
2283
2653
|
{
|
|
2284
|
-
"name": "
|
|
2654
|
+
"name": "STV";
|
|
2285
2655
|
"docs": [
|
|
2286
2656
|
"STV - Single Token Vault account",
|
|
2287
2657
|
"Seeds: [\"stv\", base_mint.key().as_ref()]",
|
|
2288
|
-
"Size: 8 (discriminator) +
|
|
2658
|
+
"Size: 8 (discriminator) + 200 (data) = 208 bytes"
|
|
2289
2659
|
];
|
|
2290
2660
|
"serialization": "bytemuck";
|
|
2291
2661
|
"repr": {
|
|
@@ -2367,6 +2737,50 @@ type JlpDProgram = {
|
|
|
2367
2737
|
];
|
|
2368
2738
|
"type": "u64";
|
|
2369
2739
|
},
|
|
2740
|
+
{
|
|
2741
|
+
"name": "requestedBase";
|
|
2742
|
+
"docs": [
|
|
2743
|
+
"Estimated base for current epoch's withdrawal requests (reset on process_epoch)",
|
|
2744
|
+
"Manager reads this to know how much to unwind before next epoch"
|
|
2745
|
+
];
|
|
2746
|
+
"type": "u64";
|
|
2747
|
+
},
|
|
2748
|
+
{
|
|
2749
|
+
"name": "reservedBase";
|
|
2750
|
+
"docs": [
|
|
2751
|
+
"Base earmarked for unclaimed withdrawals (+process_epoch, -claim_withdraw)",
|
|
2752
|
+
"Subtracted from NAV so reserved funds don't inflate PPS"
|
|
2753
|
+
];
|
|
2754
|
+
"type": "u64";
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"name": "epochPps";
|
|
2758
|
+
"docs": [
|
|
2759
|
+
"PPS locked at first process_epoch batch (0 = not set, reset on epoch advance)"
|
|
2760
|
+
];
|
|
2761
|
+
"type": "u64";
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
"name": "nextEpochTs";
|
|
2765
|
+
"docs": [
|
|
2766
|
+
"Unix timestamp when current epoch ends"
|
|
2767
|
+
];
|
|
2768
|
+
"type": "u32";
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
"name": "epochSec";
|
|
2772
|
+
"docs": [
|
|
2773
|
+
"Epoch duration in seconds"
|
|
2774
|
+
];
|
|
2775
|
+
"type": "u32";
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
"name": "currentEpochId";
|
|
2779
|
+
"docs": [
|
|
2780
|
+
"Incrementing epoch counter"
|
|
2781
|
+
];
|
|
2782
|
+
"type": "u32";
|
|
2783
|
+
},
|
|
2370
2784
|
{
|
|
2371
2785
|
"name": "mgmtFeeBps";
|
|
2372
2786
|
"docs": [
|
|
@@ -2401,12 +2815,24 @@ type JlpDProgram = {
|
|
|
2401
2815
|
"PDA bump seed"
|
|
2402
2816
|
];
|
|
2403
2817
|
"type": "u8";
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
"name": "Padding";
|
|
2821
|
+
"docs": [
|
|
2822
|
+
"Alignment padding"
|
|
2823
|
+
];
|
|
2824
|
+
"type": {
|
|
2825
|
+
"array": [
|
|
2826
|
+
"u8",
|
|
2827
|
+
4
|
|
2828
|
+
];
|
|
2829
|
+
};
|
|
2404
2830
|
}
|
|
2405
2831
|
];
|
|
2406
2832
|
};
|
|
2407
2833
|
},
|
|
2408
2834
|
{
|
|
2409
|
-
"name": "
|
|
2835
|
+
"name": "SettleYieldEvent";
|
|
2410
2836
|
"docs": [
|
|
2411
2837
|
"Aggregate yield settlement event - emitted once per settle_yield call"
|
|
2412
2838
|
];
|
|
@@ -2459,7 +2885,7 @@ type JlpDProgram = {
|
|
|
2459
2885
|
};
|
|
2460
2886
|
},
|
|
2461
2887
|
{
|
|
2462
|
-
"name": "
|
|
2888
|
+
"name": "SettleYieldSkipped";
|
|
2463
2889
|
"docs": [
|
|
2464
2890
|
"Event emitted when settle_yield returns early (no loans outstanding)"
|
|
2465
2891
|
];
|
|
@@ -2484,7 +2910,7 @@ type JlpDProgram = {
|
|
|
2484
2910
|
};
|
|
2485
2911
|
},
|
|
2486
2912
|
{
|
|
2487
|
-
"name": "
|
|
2913
|
+
"name": "SettleYieldStvEvent";
|
|
2488
2914
|
"docs": [
|
|
2489
2915
|
"Per-STV yield settlement event - emitted for each STV with non-zero base_loaned"
|
|
2490
2916
|
];
|
|
@@ -2530,7 +2956,7 @@ type JlpDProgram = {
|
|
|
2530
2956
|
};
|
|
2531
2957
|
},
|
|
2532
2958
|
{
|
|
2533
|
-
"name": "
|
|
2959
|
+
"name": "StvInitialized";
|
|
2534
2960
|
"type": {
|
|
2535
2961
|
"kind": "struct";
|
|
2536
2962
|
"fields": [
|
|
@@ -2554,7 +2980,7 @@ type JlpDProgram = {
|
|
|
2554
2980
|
};
|
|
2555
2981
|
},
|
|
2556
2982
|
{
|
|
2557
|
-
"name": "
|
|
2983
|
+
"name": "StvUpdated";
|
|
2558
2984
|
"type": {
|
|
2559
2985
|
"kind": "struct";
|
|
2560
2986
|
"fields": [
|
|
@@ -2618,7 +3044,7 @@ type JlpDProgram = {
|
|
|
2618
3044
|
};
|
|
2619
3045
|
},
|
|
2620
3046
|
{
|
|
2621
|
-
"name": "
|
|
3047
|
+
"name": "SwapDirection";
|
|
2622
3048
|
"docs": [
|
|
2623
3049
|
"Direction of the swap operation"
|
|
2624
3050
|
];
|
|
@@ -2626,16 +3052,16 @@ type JlpDProgram = {
|
|
|
2626
3052
|
"kind": "enum";
|
|
2627
3053
|
"variants": [
|
|
2628
3054
|
{
|
|
2629
|
-
"name": "
|
|
3055
|
+
"name": "JlxToJlp";
|
|
2630
3056
|
},
|
|
2631
3057
|
{
|
|
2632
|
-
"name": "
|
|
3058
|
+
"name": "JlpToJlx";
|
|
2633
3059
|
}
|
|
2634
3060
|
];
|
|
2635
3061
|
};
|
|
2636
3062
|
},
|
|
2637
3063
|
{
|
|
2638
|
-
"name": "
|
|
3064
|
+
"name": "SwapJlxJlpParams";
|
|
2639
3065
|
"docs": [
|
|
2640
3066
|
"Parameters for the swap instruction"
|
|
2641
3067
|
];
|
|
@@ -2656,7 +3082,7 @@ type JlpDProgram = {
|
|
|
2656
3082
|
];
|
|
2657
3083
|
"type": {
|
|
2658
3084
|
"defined": {
|
|
2659
|
-
"name": "
|
|
3085
|
+
"name": "SwapDirection";
|
|
2660
3086
|
};
|
|
2661
3087
|
};
|
|
2662
3088
|
},
|
|
@@ -2687,7 +3113,7 @@ type JlpDProgram = {
|
|
|
2687
3113
|
};
|
|
2688
3114
|
},
|
|
2689
3115
|
{
|
|
2690
|
-
"name": "
|
|
3116
|
+
"name": "UpdateStvParams";
|
|
2691
3117
|
"docs": [
|
|
2692
3118
|
"Parameters for updating an STV"
|
|
2693
3119
|
];
|
|
@@ -2764,12 +3190,21 @@ type JlpDProgram = {
|
|
|
2764
3190
|
"type": {
|
|
2765
3191
|
"option": "u64";
|
|
2766
3192
|
};
|
|
3193
|
+
},
|
|
3194
|
+
{
|
|
3195
|
+
"name": "epochSec";
|
|
3196
|
+
"docs": [
|
|
3197
|
+
"Optional new epoch duration in seconds"
|
|
3198
|
+
];
|
|
3199
|
+
"type": {
|
|
3200
|
+
"option": "u32";
|
|
3201
|
+
};
|
|
2767
3202
|
}
|
|
2768
3203
|
];
|
|
2769
3204
|
};
|
|
2770
3205
|
},
|
|
2771
3206
|
{
|
|
2772
|
-
"name": "
|
|
3207
|
+
"name": "WithdrawClaimed";
|
|
2773
3208
|
"type": {
|
|
2774
3209
|
"kind": "struct";
|
|
2775
3210
|
"fields": [
|
|
@@ -2782,19 +3217,113 @@ type JlpDProgram = {
|
|
|
2782
3217
|
"type": "pubkey";
|
|
2783
3218
|
},
|
|
2784
3219
|
{
|
|
2785
|
-
"name": "
|
|
3220
|
+
"name": "shares";
|
|
2786
3221
|
"type": "u64";
|
|
2787
3222
|
},
|
|
2788
3223
|
{
|
|
2789
|
-
"name": "
|
|
3224
|
+
"name": "baseAmount";
|
|
3225
|
+
"type": "u64";
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
"name": "epochId";
|
|
3229
|
+
"type": "u32";
|
|
3230
|
+
}
|
|
3231
|
+
];
|
|
3232
|
+
};
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
"name": "WithdrawRequest";
|
|
3236
|
+
"docs": [
|
|
3237
|
+
"WithdrawRequest - Per-user per-epoch withdrawal request",
|
|
3238
|
+
"Seeds: [\"withdraw_request\", stv.key(), user.key(), &epoch_id.to_le_bytes()]",
|
|
3239
|
+
"",
|
|
3240
|
+
"One PDA per user per STV per epoch. Multiple request_withdraw calls",
|
|
3241
|
+
"in the same epoch accumulate into the same PDA.",
|
|
3242
|
+
"",
|
|
3243
|
+
"Lifecycle:",
|
|
3244
|
+
"1. Created by request_withdraw (user escrows jvX into request's ATA)",
|
|
3245
|
+
"2. Processed by process_epoch (jvX burned, pps + claim_available_after set)",
|
|
3246
|
+
"3. Closed by claim_withdraw (base transferred, PDA + ATA closed)"
|
|
3247
|
+
];
|
|
3248
|
+
"type": {
|
|
3249
|
+
"kind": "struct";
|
|
3250
|
+
"fields": [
|
|
3251
|
+
{
|
|
3252
|
+
"name": "stv";
|
|
3253
|
+
"docs": [
|
|
3254
|
+
"Back-reference to the STV"
|
|
3255
|
+
];
|
|
3256
|
+
"type": "pubkey";
|
|
3257
|
+
},
|
|
3258
|
+
{
|
|
3259
|
+
"name": "user";
|
|
3260
|
+
"docs": [
|
|
3261
|
+
"The user who requested the withdrawal"
|
|
3262
|
+
];
|
|
3263
|
+
"type": "pubkey";
|
|
3264
|
+
},
|
|
3265
|
+
{
|
|
3266
|
+
"name": "shares";
|
|
2790
3267
|
"docs": [
|
|
2791
|
-
"
|
|
3268
|
+
"Total jvX shares escrowed (accumulated across multiple requests in same epoch)"
|
|
2792
3269
|
];
|
|
2793
3270
|
"type": "u64";
|
|
2794
3271
|
},
|
|
2795
3272
|
{
|
|
2796
3273
|
"name": "pps";
|
|
3274
|
+
"docs": [
|
|
3275
|
+
"PPS at process time (0 = unprocessed)"
|
|
3276
|
+
];
|
|
3277
|
+
"type": "u64";
|
|
3278
|
+
},
|
|
3279
|
+
{
|
|
3280
|
+
"name": "epochId";
|
|
3281
|
+
"docs": [
|
|
3282
|
+
"Epoch when request was made"
|
|
3283
|
+
];
|
|
3284
|
+
"type": "u32";
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
"name": "claimAvailableAfter";
|
|
3288
|
+
"docs": [
|
|
3289
|
+
"Unix timestamp after which claim is available (0 = unprocessed)"
|
|
3290
|
+
];
|
|
3291
|
+
"type": "u32";
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"name": "bump";
|
|
3295
|
+
"docs": [
|
|
3296
|
+
"PDA bump seed"
|
|
3297
|
+
];
|
|
3298
|
+
"type": "u8";
|
|
3299
|
+
}
|
|
3300
|
+
];
|
|
3301
|
+
};
|
|
3302
|
+
},
|
|
3303
|
+
{
|
|
3304
|
+
"name": "WithdrawRequested";
|
|
3305
|
+
"type": {
|
|
3306
|
+
"kind": "struct";
|
|
3307
|
+
"fields": [
|
|
3308
|
+
{
|
|
3309
|
+
"name": "stv";
|
|
3310
|
+
"type": "pubkey";
|
|
3311
|
+
},
|
|
3312
|
+
{
|
|
3313
|
+
"name": "user";
|
|
3314
|
+
"type": "pubkey";
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
"name": "shares";
|
|
3318
|
+
"type": "u64";
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
"name": "totalShares";
|
|
2797
3322
|
"type": "u64";
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "epochId";
|
|
3326
|
+
"type": "u32";
|
|
2798
3327
|
}
|
|
2799
3328
|
];
|
|
2800
3329
|
};
|
|
@@ -2830,12 +3359,27 @@ interface STV {
|
|
|
2830
3359
|
accruedFeesJlx: BN;
|
|
2831
3360
|
maxDeposit: BN;
|
|
2832
3361
|
minDeposit: BN;
|
|
3362
|
+
requestedBase: BN;
|
|
3363
|
+
reservedBase: BN;
|
|
3364
|
+
epochPps: BN;
|
|
3365
|
+
nextEpochTs: number;
|
|
3366
|
+
epochSec: number;
|
|
3367
|
+
currentEpochId: number;
|
|
2833
3368
|
mgmtFeeBps: number;
|
|
2834
3369
|
perfFeeBps: number;
|
|
2835
3370
|
flags: number;
|
|
2836
3371
|
version: number;
|
|
2837
3372
|
bump: number;
|
|
2838
3373
|
}
|
|
3374
|
+
interface WithdrawRequest {
|
|
3375
|
+
stv: PublicKey;
|
|
3376
|
+
user: PublicKey;
|
|
3377
|
+
shares: BN;
|
|
3378
|
+
pps: BN;
|
|
3379
|
+
epochId: number;
|
|
3380
|
+
claimAvailableAfter: number;
|
|
3381
|
+
bump: number;
|
|
3382
|
+
}
|
|
2839
3383
|
interface ExchangeRateResult {
|
|
2840
3384
|
rate: number;
|
|
2841
3385
|
rawRate: bigint;
|
|
@@ -2921,6 +3465,7 @@ interface UpdateStvParams$1 {
|
|
|
2921
3465
|
pps?: BN;
|
|
2922
3466
|
hwm?: BN;
|
|
2923
3467
|
baseLoaned?: BN;
|
|
3468
|
+
epochSec?: number;
|
|
2924
3469
|
}
|
|
2925
3470
|
interface InitializeStvParams$1 {
|
|
2926
3471
|
poolName: PoolName;
|
|
@@ -2928,6 +3473,7 @@ interface InitializeStvParams$1 {
|
|
|
2928
3473
|
perfFeeBps: number;
|
|
2929
3474
|
maxDeposit: BN;
|
|
2930
3475
|
minDeposit: BN;
|
|
3476
|
+
withdrawEpochSec: number;
|
|
2931
3477
|
}
|
|
2932
3478
|
interface JupiterQuoteResponse {
|
|
2933
3479
|
inputMint: string;
|
|
@@ -2985,10 +3531,14 @@ interface DepositParams {
|
|
|
2985
3531
|
user: PublicKey;
|
|
2986
3532
|
amount: BN;
|
|
2987
3533
|
}
|
|
2988
|
-
interface
|
|
3534
|
+
interface RequestWithdrawParams {
|
|
2989
3535
|
user: PublicKey;
|
|
2990
3536
|
shares: BN;
|
|
2991
3537
|
}
|
|
3538
|
+
interface ClaimWithdrawParams {
|
|
3539
|
+
user: PublicKey;
|
|
3540
|
+
epochId: number;
|
|
3541
|
+
}
|
|
2992
3542
|
interface JupEarnParams$1 {
|
|
2993
3543
|
manager: PublicKey;
|
|
2994
3544
|
direction: JupEarnDirection;
|
|
@@ -3013,6 +3563,11 @@ interface SwapJlxJlpParams$1 {
|
|
|
3013
3563
|
interface SettleYieldParams {
|
|
3014
3564
|
manager: PublicKey;
|
|
3015
3565
|
}
|
|
3566
|
+
interface ProcessEpochParams {
|
|
3567
|
+
payer: PublicKey;
|
|
3568
|
+
poolName: PoolName;
|
|
3569
|
+
withdrawRequests: PublicKey[];
|
|
3570
|
+
}
|
|
3016
3571
|
/**
|
|
3017
3572
|
* Main SDK client for JLP.D program
|
|
3018
3573
|
*/
|
|
@@ -3083,7 +3638,8 @@ declare class PoolContext {
|
|
|
3083
3638
|
readonly stvJlxAta: PublicKey;
|
|
3084
3639
|
constructor(client: JlpdClient, pool: JupiterLendPool);
|
|
3085
3640
|
deposit(params: DepositParams): Promise<VersionedTransaction>;
|
|
3086
|
-
|
|
3641
|
+
requestWithdraw(params: RequestWithdrawParams): Promise<VersionedTransaction>;
|
|
3642
|
+
claimWithdraw(params: ClaimWithdrawParams): Promise<VersionedTransaction>;
|
|
3087
3643
|
jupEarn(params: JupEarnParams$1): Promise<VersionedTransaction>;
|
|
3088
3644
|
moveJlx(params: MoveJlxParams$1): Promise<VersionedTransaction>;
|
|
3089
3645
|
claimFees(params: ClaimFeesParams): Promise<VersionedTransaction>;
|
|
@@ -3117,6 +3673,7 @@ declare class AdminContext {
|
|
|
3117
3673
|
initializeStv(params: {
|
|
3118
3674
|
admin: PublicKey;
|
|
3119
3675
|
} & InitializeStvParams$1, jvMintKeypair: PublicKey): Promise<VersionedTransaction>;
|
|
3676
|
+
processEpoch(params: ProcessEpochParams): Promise<VersionedTransaction>;
|
|
3120
3677
|
settleYield(params: SettleYieldParams): Promise<VersionedTransaction>;
|
|
3121
3678
|
}
|
|
3122
3679
|
|
|
@@ -3132,6 +3689,7 @@ declare const JUPITER_LEND_PROGRAM_ID$1: PublicKey;
|
|
|
3132
3689
|
declare const JUPITER_SWAP_PROGRAM_ID: PublicKey;
|
|
3133
3690
|
declare const SEED_JLP_VAULT = "jlp_vault";
|
|
3134
3691
|
declare const SEED_STV = "stv";
|
|
3692
|
+
declare const SEED_WITHDRAW_REQUEST = "withdraw_request";
|
|
3135
3693
|
declare const FLAG_PAUSED = 1;
|
|
3136
3694
|
declare const FLAG_DEPOSITS_DISABLED = 2;
|
|
3137
3695
|
declare const FLAG_WITHDRAWALS_DISABLED = 4;
|
|
@@ -3172,6 +3730,11 @@ declare function deriveVaultPda(programId: PublicKey): [PublicKey, number];
|
|
|
3172
3730
|
* Seeds: ["stv", base_mint]
|
|
3173
3731
|
*/
|
|
3174
3732
|
declare function deriveStvPda(baseMint: PublicKey, programId: PublicKey): [PublicKey, number];
|
|
3733
|
+
/**
|
|
3734
|
+
* Derive WithdrawRequest PDA address (cached)
|
|
3735
|
+
* Seeds: ["withdraw_request", stv, user, epoch_id.to_le_bytes()]
|
|
3736
|
+
*/
|
|
3737
|
+
declare function deriveWithdrawRequestPda(stvPda: PublicKey, user: PublicKey, epochId: number, programId: PublicKey): [PublicKey, number];
|
|
3175
3738
|
/**
|
|
3176
3739
|
* Clear PDA cache (useful for testing)
|
|
3177
3740
|
*/
|
|
@@ -3189,9 +3752,33 @@ declare const JLP_VAULT_DISCRIMINATOR: Buffer<ArrayBuffer>;
|
|
|
3189
3752
|
declare function parseVault(data: Buffer): JLPVault;
|
|
3190
3753
|
|
|
3191
3754
|
/**
|
|
3192
|
-
* STV (Single Token Vault) account layout (
|
|
3755
|
+
* STV (Single Token Vault) account layout (200 bytes data + 8 byte discriminator = 208 bytes total)
|
|
3756
|
+
*
|
|
3757
|
+
* Layout (data starts after 8-byte discriminator):
|
|
3758
|
+
* Offset 0-31: baseMint (Pubkey)
|
|
3759
|
+
* Offset 32-63: jlMint (Pubkey)
|
|
3760
|
+
* Offset 64-95: jvMint (Pubkey)
|
|
3761
|
+
* Offset 96-103: pps (u64 LE)
|
|
3762
|
+
* Offset 104-111: hwm (u64 LE)
|
|
3763
|
+
* Offset 112-119: lastMgmtFeeTs (u64 LE)
|
|
3764
|
+
* Offset 120-127: baseLoaned (u64 LE)
|
|
3765
|
+
* Offset 128-135: accruedFeesJlx (u64 LE)
|
|
3766
|
+
* Offset 136-143: maxDeposit (u64 LE)
|
|
3767
|
+
* Offset 144-151: minDeposit (u64 LE)
|
|
3768
|
+
* Offset 152-159: requestedBase (u64 LE)
|
|
3769
|
+
* Offset 160-167: reservedBase (u64 LE)
|
|
3770
|
+
* Offset 168-175: epochPps (u64 LE)
|
|
3771
|
+
* Offset 176-179: nextEpochTs (u32 LE)
|
|
3772
|
+
* Offset 180-183: epochSec (u32 LE)
|
|
3773
|
+
* Offset 184-187: currentEpochId (u32 LE)
|
|
3774
|
+
* Offset 188-189: mgmtFeeBps (u16 LE)
|
|
3775
|
+
* Offset 190-191: perfFeeBps (u16 LE)
|
|
3776
|
+
* Offset 192-193: flags (u16 LE)
|
|
3777
|
+
* Offset 194: version (u8)
|
|
3778
|
+
* Offset 195: bump (u8)
|
|
3779
|
+
* Offset 196-199: _padding (4 bytes)
|
|
3193
3780
|
*/
|
|
3194
|
-
declare const STV_DATA_SIZE =
|
|
3781
|
+
declare const STV_DATA_SIZE = 200;
|
|
3195
3782
|
declare const STV_ACCOUNT_SIZE: number;
|
|
3196
3783
|
declare const STV_DISCRIMINATOR: Buffer<ArrayBuffer>;
|
|
3197
3784
|
/**
|
|
@@ -3199,6 +3786,27 @@ declare const STV_DISCRIMINATOR: Buffer<ArrayBuffer>;
|
|
|
3199
3786
|
*/
|
|
3200
3787
|
declare function parseStv(data: Buffer): STV;
|
|
3201
3788
|
|
|
3789
|
+
/**
|
|
3790
|
+
* WithdrawRequest account layout
|
|
3791
|
+
* Seeds: ["withdraw_request", stv, user, epoch_id.to_le_bytes()]
|
|
3792
|
+
*
|
|
3793
|
+
* Layout (data starts after 8-byte discriminator):
|
|
3794
|
+
* Offset 0-31: stv (Pubkey)
|
|
3795
|
+
* Offset 32-63: user (Pubkey)
|
|
3796
|
+
* Offset 64-71: shares (u64 LE)
|
|
3797
|
+
* Offset 72-79: pps (u64 LE) — 0 = unprocessed
|
|
3798
|
+
* Offset 80-83: epochId (u32 LE)
|
|
3799
|
+
* Offset 84-87: claimAvailableAfter (u32 LE) — 0 = unprocessed
|
|
3800
|
+
* Offset 88: bump (u8)
|
|
3801
|
+
*/
|
|
3802
|
+
declare const WITHDRAW_REQUEST_DATA_SIZE = 89;
|
|
3803
|
+
declare const WITHDRAW_REQUEST_ACCOUNT_SIZE: number;
|
|
3804
|
+
declare const WITHDRAW_REQUEST_DISCRIMINATOR: Buffer<ArrayBuffer>;
|
|
3805
|
+
/**
|
|
3806
|
+
* Parse a WithdrawRequest account from raw account data
|
|
3807
|
+
*/
|
|
3808
|
+
declare function parseWithdrawRequest(data: Buffer): WithdrawRequest;
|
|
3809
|
+
|
|
3202
3810
|
/**
|
|
3203
3811
|
* Derive ATA address (cached)
|
|
3204
3812
|
*/
|
|
@@ -3231,9 +3839,15 @@ declare function clearAtaCache(): void;
|
|
|
3231
3839
|
|
|
3232
3840
|
/**
|
|
3233
3841
|
* Calculate NAV for an STV
|
|
3234
|
-
* NAV = stv_base_ata.amount + (stv_jlx_ata.amount * exchange_rate / 1e12) + base_loaned
|
|
3842
|
+
* NAV = stv_base_ata.amount + (stv_jlx_ata.amount * exchange_rate / 1e12) + base_loaned - reserved_base
|
|
3843
|
+
*
|
|
3844
|
+
* @param stvBaseBalance - STV base token balance
|
|
3845
|
+
* @param stvJlxBalance - STV jlX token balance
|
|
3846
|
+
* @param exchangeRate - Jupiter Lend exchange rate (12 decimals)
|
|
3847
|
+
* @param baseLoaned - Base loaned to vault
|
|
3848
|
+
* @param reservedBase - Optional: base earmarked for unclaimed processed withdrawals (subtracted from NAV)
|
|
3235
3849
|
*/
|
|
3236
|
-
declare function calculateNav(stvBaseBalance: BN, stvJlxBalance: BN, exchangeRate: bigint, baseLoaned: BN): BN;
|
|
3850
|
+
declare function calculateNav(stvBaseBalance: BN, stvJlxBalance: BN, exchangeRate: bigint, baseLoaned: BN, reservedBase?: BN): BN;
|
|
3237
3851
|
/**
|
|
3238
3852
|
* Calculate PPS from NAV and total jvX supply
|
|
3239
3853
|
* PPS = NAV * PPS_DECIMALS / total_jvx_supply
|
|
@@ -3394,6 +4008,7 @@ interface InitializeStvParams {
|
|
|
3394
4008
|
perfFeeBps: number;
|
|
3395
4009
|
maxDeposit: BN;
|
|
3396
4010
|
minDeposit: BN;
|
|
4011
|
+
epochSec: number;
|
|
3397
4012
|
}
|
|
3398
4013
|
interface UpdateStvParams {
|
|
3399
4014
|
mgmtFeeBps: number;
|
|
@@ -3405,6 +4020,7 @@ interface UpdateStvParams {
|
|
|
3405
4020
|
pps: BN | null;
|
|
3406
4021
|
hwm: BN | null;
|
|
3407
4022
|
baseLoaned: BN | null;
|
|
4023
|
+
epochSec: number | null;
|
|
3408
4024
|
}
|
|
3409
4025
|
interface InitOrUpdateJlpVaultAccounts {
|
|
3410
4026
|
admin: PublicKey;
|
|
@@ -3439,17 +4055,27 @@ interface DepositAccounts {
|
|
|
3439
4055
|
stvJlxAta: PublicKey;
|
|
3440
4056
|
tokenProgram: PublicKey;
|
|
3441
4057
|
}
|
|
3442
|
-
interface
|
|
4058
|
+
interface RequestWithdrawAccounts {
|
|
3443
4059
|
user: PublicKey;
|
|
3444
4060
|
jlpVault: PublicKey;
|
|
3445
4061
|
stv: PublicKey;
|
|
4062
|
+
jvMint: PublicKey;
|
|
4063
|
+
userJvxAta: PublicKey;
|
|
4064
|
+
withdrawRequest: PublicKey;
|
|
4065
|
+
requestJvxAta: PublicKey;
|
|
4066
|
+
tokenProgram: PublicKey;
|
|
4067
|
+
associatedTokenProgram: PublicKey;
|
|
4068
|
+
systemProgram: PublicKey;
|
|
4069
|
+
}
|
|
4070
|
+
interface ClaimWithdrawAccounts {
|
|
4071
|
+
user: PublicKey;
|
|
4072
|
+
stv: PublicKey;
|
|
3446
4073
|
baseMint: PublicKey;
|
|
3447
|
-
jlMint: PublicKey;
|
|
3448
4074
|
jvMint: PublicKey;
|
|
3449
4075
|
userBaseAta: PublicKey;
|
|
3450
|
-
userJvxAta: PublicKey;
|
|
3451
4076
|
stvBaseAta: PublicKey;
|
|
3452
|
-
|
|
4077
|
+
withdrawRequest: PublicKey;
|
|
4078
|
+
requestJvxAta: PublicKey;
|
|
3453
4079
|
tokenProgram: PublicKey;
|
|
3454
4080
|
}
|
|
3455
4081
|
/**
|
|
@@ -3457,9 +4083,18 @@ interface WithdrawAccounts {
|
|
|
3457
4083
|
*/
|
|
3458
4084
|
declare function createDepositInstruction(program: Program<JlpDProgram>, amount: BN, accounts: DepositAccounts, remainingAccounts?: AccountMeta[]): Promise<TransactionInstruction>;
|
|
3459
4085
|
/**
|
|
3460
|
-
* Create a
|
|
4086
|
+
* Create a request_withdraw instruction.
|
|
4087
|
+
* Escrows the user's jvX shares into the WithdrawRequest PDA's ATA for the current epoch.
|
|
3461
4088
|
*/
|
|
3462
|
-
declare function
|
|
4089
|
+
declare function createRequestWithdrawInstruction(program: Program<JlpDProgram>, params: {
|
|
4090
|
+
shares: BN;
|
|
4091
|
+
epochId: number;
|
|
4092
|
+
}, accounts: RequestWithdrawAccounts): Promise<TransactionInstruction>;
|
|
4093
|
+
/**
|
|
4094
|
+
* Create a claim_withdraw instruction.
|
|
4095
|
+
* Claims base tokens for a processed WithdrawRequest, closing the PDA.
|
|
4096
|
+
*/
|
|
4097
|
+
declare function createClaimWithdrawInstruction(program: Program<JlpDProgram>, accounts: ClaimWithdrawAccounts): Promise<TransactionInstruction>;
|
|
3463
4098
|
|
|
3464
4099
|
interface JupEarnParams {
|
|
3465
4100
|
direction: JupEarnDirection;
|
|
@@ -3530,6 +4165,18 @@ interface SettleYieldInstructionParams {
|
|
|
3530
4165
|
declare function createJupEarnInstruction(program: Program<JlpDProgram>, params: JupEarnParams, accounts: JupEarnAccounts, remainingAccounts?: AccountMeta[]): Promise<TransactionInstruction>;
|
|
3531
4166
|
declare function createMoveJlxInstruction(program: Program<JlpDProgram>, params: MoveJlxParams, accounts: MoveStvAccounts, remainingAccounts?: AccountMeta[]): Promise<TransactionInstruction>;
|
|
3532
4167
|
declare function createSwapJlxJlpInstruction(program: Program<JlpDProgram>, params: SwapJlxJlpParams, accounts: SwapJlxJlpAccounts, remainingAccounts?: AccountMeta[]): Promise<TransactionInstruction>;
|
|
4168
|
+
interface ProcessEpochAccounts {
|
|
4169
|
+
payer: PublicKey;
|
|
4170
|
+
jlpVault: PublicKey;
|
|
4171
|
+
stv: PublicKey;
|
|
4172
|
+
baseMint: PublicKey;
|
|
4173
|
+
jlMint: PublicKey;
|
|
4174
|
+
jvMint: PublicKey;
|
|
4175
|
+
stvBaseAta: PublicKey;
|
|
4176
|
+
stvJlxAta: PublicKey;
|
|
4177
|
+
tokenProgram: PublicKey;
|
|
4178
|
+
}
|
|
4179
|
+
declare function createProcessEpochInstruction(program: Program<JlpDProgram>, accounts: ProcessEpochAccounts, remainingAccounts?: AccountMeta[]): Promise<TransactionInstruction>;
|
|
3533
4180
|
declare function createSettleYieldInstruction(program: Program<JlpDProgram>, params: SettleYieldInstructionParams, accounts: SettleYieldAccounts, remainingAccounts?: AccountMeta[]): Promise<TransactionInstruction>;
|
|
3534
4181
|
|
|
3535
4182
|
interface ClaimFeesAccounts {
|
|
@@ -3549,4 +4196,4 @@ interface ClaimFeesAccounts {
|
|
|
3549
4196
|
*/
|
|
3550
4197
|
declare function createClaimFeesInstruction(program: Program<JlpDProgram>, accounts: ClaimFeesAccounts, remainingAccounts?: AccountMeta[]): Promise<TransactionInstruction>;
|
|
3551
4198
|
|
|
3552
|
-
export { type AccountMeta, AdminContext, type ClaimFeesAccounts, type ClaimFeesParams, type DepositAccounts, type DepositParams, EXCHANGE_RATE_PRECISION, type ExchangeRateResult, FLAG_DEPOSITS_DISABLED, FLAG_JLP_DISABLED, FLAG_PAUSED, FLAG_REBALANCE_DISABLED, FLAG_WITHDRAWALS_DISABLED, type InitOrUpdateJlpVaultAccounts, type InitOrUpdateJlpVaultParams, type InitializeStvAccounts, type InitializeStvParams$1 as InitializeStvParams, JLPD_PROGRAM_ID, type JLPVault, JLP_POOL_PUBKEY, JLP_VAULT_ACCOUNT_SIZE, JLP_VAULT_DATA_SIZE, JLP_VAULT_DISCRIMINATOR, JUPITER_LEND_PROGRAM_ID$1 as JUPITER_LEND_PROGRAM_ID, JUPITER_PERPS_PROGRAM_ID, JUPITER_SWAP_PROGRAM_ID, JUPUSD_POOL, JUPITER_LEND_PROGRAM_ID as JUP_LEND_PROGRAM_ID, type JlpDProgram, JlpdClient, JlpdClientError, type JupEarnAccounts, type JupEarnDirection, type JupEarnParams$1 as JupEarnParams, type JupiterLendPool, type JupiterPriceData, type JupiterPriceResponse, type JupiterQuoteResponse, type JupiterSwapInstructionsResponse, LENDING_ADMIN, LIQUIDITY_PROGRAM_ID, LIQUIDITY_SINGLETON, type LendingAccountData, MINTS, type MoveDirection, type MoveJlxParams$1 as MoveJlxParams, type MoveStvAccounts, ORACLES, POOLS, PPS_DECIMALS, PoolContext, type PoolName, type RewardsRateModelData, SEED_JLP_VAULT, SEED_STV, type STV, STV_ACCOUNT_SIZE, STV_DATA_SIZE, STV_DISCRIMINATOR, STV_INDEX, type SerializedInstruction, type SettleYieldAccounts, type SettleYieldInstructionParams, type SettleYieldParams, SwapContext, type SwapDirection, type SwapJlxJlpAccounts, type SwapJlxJlpParams$1 as SwapJlxJlpParams, type SwapQuote, USDC_POOL, type UpdateStvAccounts, type UpdateStvParams$1 as UpdateStvParams, type UpdateVaultParams, WBTC_POOL, WETH_POOL,
|
|
4199
|
+
export { type AccountMeta, AdminContext, type ClaimFeesAccounts, type ClaimFeesParams, type ClaimWithdrawAccounts, type ClaimWithdrawParams, type DepositAccounts, type DepositParams, EXCHANGE_RATE_PRECISION, type ExchangeRateResult, FLAG_DEPOSITS_DISABLED, FLAG_JLP_DISABLED, FLAG_PAUSED, FLAG_REBALANCE_DISABLED, FLAG_WITHDRAWALS_DISABLED, type InitOrUpdateJlpVaultAccounts, type InitOrUpdateJlpVaultParams, type InitializeStvAccounts, type InitializeStvParams$1 as InitializeStvParams, JLPD_PROGRAM_ID, type JLPVault, JLP_POOL_PUBKEY, JLP_VAULT_ACCOUNT_SIZE, JLP_VAULT_DATA_SIZE, JLP_VAULT_DISCRIMINATOR, JUPITER_LEND_PROGRAM_ID$1 as JUPITER_LEND_PROGRAM_ID, JUPITER_PERPS_PROGRAM_ID, JUPITER_SWAP_PROGRAM_ID, JUPUSD_POOL, JUPITER_LEND_PROGRAM_ID as JUP_LEND_PROGRAM_ID, type JlpDProgram, JlpdClient, JlpdClientError, type JupEarnAccounts, type JupEarnDirection, type JupEarnParams$1 as JupEarnParams, type JupiterLendPool, type JupiterPriceData, type JupiterPriceResponse, type JupiterQuoteResponse, type JupiterSwapInstructionsResponse, LENDING_ADMIN, LIQUIDITY_PROGRAM_ID, LIQUIDITY_SINGLETON, type LendingAccountData, MINTS, type MoveDirection, type MoveJlxParams$1 as MoveJlxParams, type MoveStvAccounts, ORACLES, POOLS, PPS_DECIMALS, PoolContext, type PoolName, type ProcessEpochAccounts, type ProcessEpochParams, type RequestWithdrawAccounts, type RequestWithdrawParams, type RewardsRateModelData, SEED_JLP_VAULT, SEED_STV, SEED_WITHDRAW_REQUEST, type STV, STV_ACCOUNT_SIZE, STV_DATA_SIZE, STV_DISCRIMINATOR, STV_INDEX, type SerializedInstruction, type SettleYieldAccounts, type SettleYieldInstructionParams, type SettleYieldParams, SwapContext, type SwapDirection, type SwapJlxJlpAccounts, type SwapJlxJlpParams$1 as SwapJlxJlpParams, type SwapQuote, USDC_POOL, type UpdateStvAccounts, type UpdateStvParams$1 as UpdateStvParams, type UpdateVaultParams, WBTC_POOL, WETH_POOL, WITHDRAW_REQUEST_ACCOUNT_SIZE, WITHDRAW_REQUEST_DATA_SIZE, WITHDRAW_REQUEST_DISCRIMINATOR, WSOL_POOL, type WithdrawRequest, baseToJlx, baseToShares, buildExchangeRateAccounts, buildJupEarnDepositAccounts, buildJupEarnWithdrawAccounts, buildSwapData, calculateExchangeRate, calculateNav, calculatePps, clearAtaCache, clearPdaCache, createClaimFeesInstruction, createClaimWithdrawInstruction, createDepositInstruction, createInitOrUpdateVaultInstruction, createInitializeStvInstruction, createJupEarnInstruction, createMoveJlxInstruction, createProcessEpochInstruction, createProgram, createRequestWithdrawInstruction, createSettleYieldInstruction, createSwapJlxJlpInstruction, createUpdateStvInstruction, deriveAta, deriveStvAtas, deriveStvPda, deriveUserAtas, deriveVaultAtas, deriveVaultPda, deriveWithdrawRequestPda, fetchAddressLookupTables, fetchJlpRate, fetchJupiterPriceUsd, getJupiterQuote, getJupiterSwapInstructions, getPoolByMint, getPoolByName, jlxToBase, parseLendingAccount, parseRewardsRateModel, parseStv, parseSwapRemainingAccounts, parseVault, parseWithdrawRequest, sharesToBase };
|