@elmntl/jlpd-sdk 0.1.0 → 1.0.8
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.js +76 -76
- package/dist/index.mjs +76 -76
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -791,34 +791,34 @@ async function fetchJlpRate(jlpMint, fallbackPrice = 4.6, apiKey = DEFAULT_API_K
|
|
|
791
791
|
// src/instructions/admin.ts
|
|
792
792
|
var import_web38 = require("@solana/web3.js");
|
|
793
793
|
var INIT_OR_UPDATE_VAULT_DISCRIMINATOR = Buffer.from([
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
794
|
+
234,
|
|
795
|
+
24,
|
|
796
|
+
218,
|
|
797
|
+
120,
|
|
798
|
+
213,
|
|
799
|
+
149,
|
|
800
|
+
245,
|
|
801
|
+
213
|
|
802
802
|
]);
|
|
803
803
|
var INITIALIZE_STV_DISCRIMINATOR = Buffer.from([
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
804
|
+
136,
|
|
805
|
+
8,
|
|
806
|
+
178,
|
|
807
|
+
176,
|
|
808
|
+
57,
|
|
809
|
+
33,
|
|
810
|
+
1,
|
|
811
|
+
106
|
|
812
812
|
]);
|
|
813
813
|
var UPDATE_STV_DISCRIMINATOR = Buffer.from([
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
814
|
+
72,
|
|
815
|
+
173,
|
|
816
|
+
200,
|
|
817
|
+
203,
|
|
818
|
+
74,
|
|
819
|
+
83,
|
|
820
|
+
242,
|
|
821
|
+
43
|
|
822
822
|
]);
|
|
823
823
|
function serializeOptionPubkey(value) {
|
|
824
824
|
if (value === null) {
|
|
@@ -910,14 +910,14 @@ function createUpdateStvInstruction(params, accounts, programId = JLPD_PROGRAM_I
|
|
|
910
910
|
// src/instructions/user.ts
|
|
911
911
|
var import_web39 = require("@solana/web3.js");
|
|
912
912
|
var DEPOSIT_DISCRIMINATOR = Buffer.from([
|
|
913
|
-
|
|
913
|
+
242,
|
|
914
|
+
35,
|
|
914
915
|
198,
|
|
915
|
-
|
|
916
|
-
|
|
916
|
+
137,
|
|
917
|
+
82,
|
|
917
918
|
225,
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
200
|
|
919
|
+
242,
|
|
920
|
+
182
|
|
921
921
|
]);
|
|
922
922
|
var WITHDRAW_DISCRIMINATOR = Buffer.from([
|
|
923
923
|
183,
|
|
@@ -974,54 +974,54 @@ function createWithdrawInstruction(sharesToBurn, accounts, remainingAccounts = [
|
|
|
974
974
|
// src/instructions/manager.ts
|
|
975
975
|
var import_web310 = require("@solana/web3.js");
|
|
976
976
|
var JUP_EARN_DISCRIMINATOR = Buffer.from([
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
977
|
+
124,
|
|
978
|
+
60,
|
|
979
|
+
71,
|
|
980
|
+
122,
|
|
981
|
+
162,
|
|
980
982
|
212,
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
7,
|
|
984
|
-
24
|
|
983
|
+
164,
|
|
984
|
+
191
|
|
985
985
|
]);
|
|
986
986
|
var MOVE_STV_DISCRIMINATOR = Buffer.from([
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
92,
|
|
991
|
-
109,
|
|
987
|
+
60,
|
|
988
|
+
104,
|
|
989
|
+
8,
|
|
992
990
|
126,
|
|
993
|
-
|
|
994
|
-
|
|
991
|
+
254,
|
|
992
|
+
244,
|
|
993
|
+
95,
|
|
994
|
+
221
|
|
995
995
|
]);
|
|
996
996
|
var SWAP_JLX_JLX_DISCRIMINATOR = Buffer.from([
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
997
|
+
24,
|
|
998
|
+
52,
|
|
999
|
+
70,
|
|
1000
|
+
107,
|
|
1001
|
+
160,
|
|
1002
|
+
96,
|
|
1003
|
+
155,
|
|
1004
|
+
62
|
|
1005
1005
|
]);
|
|
1006
1006
|
var SWAP_JLX_JLP_DISCRIMINATOR = Buffer.from([
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1007
|
+
229,
|
|
1008
|
+
185,
|
|
1009
|
+
136,
|
|
1010
|
+
170,
|
|
1011
|
+
210,
|
|
1012
|
+
189,
|
|
1013
|
+
172,
|
|
1014
|
+
241
|
|
1015
1015
|
]);
|
|
1016
1016
|
var SETTLE_YIELD_DISCRIMINATOR = Buffer.from([
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1017
|
+
64,
|
|
1018
|
+
28,
|
|
1019
|
+
44,
|
|
1020
|
+
24,
|
|
1021
|
+
43,
|
|
1022
|
+
204,
|
|
1023
|
+
58,
|
|
1024
|
+
215
|
|
1025
1025
|
]);
|
|
1026
1026
|
function serializeU8(value) {
|
|
1027
1027
|
const buf = Buffer.alloc(1);
|
|
@@ -1155,14 +1155,14 @@ function createSettleYieldInstruction(params, accounts, remainingAccounts = [],
|
|
|
1155
1155
|
// src/instructions/fees.ts
|
|
1156
1156
|
var import_web311 = require("@solana/web3.js");
|
|
1157
1157
|
var CLAIM_FEES_DISCRIMINATOR = Buffer.from([
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1158
|
+
82,
|
|
1159
|
+
251,
|
|
1160
|
+
233,
|
|
1161
|
+
156,
|
|
1162
|
+
12,
|
|
1163
|
+
52,
|
|
1164
|
+
184,
|
|
1165
|
+
202
|
|
1166
1166
|
]);
|
|
1167
1167
|
function createClaimFeesInstruction(accounts, remainingAccounts = [], programId = JLPD_PROGRAM_ID) {
|
|
1168
1168
|
const data = CLAIM_FEES_DISCRIMINATOR;
|
package/dist/index.mjs
CHANGED
|
@@ -702,34 +702,34 @@ async function fetchJlpRate(jlpMint, fallbackPrice = 4.6, apiKey = DEFAULT_API_K
|
|
|
702
702
|
// src/instructions/admin.ts
|
|
703
703
|
import { TransactionInstruction } from "@solana/web3.js";
|
|
704
704
|
var INIT_OR_UPDATE_VAULT_DISCRIMINATOR = Buffer.from([
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
705
|
+
234,
|
|
706
|
+
24,
|
|
707
|
+
218,
|
|
708
|
+
120,
|
|
709
|
+
213,
|
|
710
|
+
149,
|
|
711
|
+
245,
|
|
712
|
+
213
|
|
713
713
|
]);
|
|
714
714
|
var INITIALIZE_STV_DISCRIMINATOR = Buffer.from([
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
715
|
+
136,
|
|
716
|
+
8,
|
|
717
|
+
178,
|
|
718
|
+
176,
|
|
719
|
+
57,
|
|
720
|
+
33,
|
|
721
|
+
1,
|
|
722
|
+
106
|
|
723
723
|
]);
|
|
724
724
|
var UPDATE_STV_DISCRIMINATOR = Buffer.from([
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
725
|
+
72,
|
|
726
|
+
173,
|
|
727
|
+
200,
|
|
728
|
+
203,
|
|
729
|
+
74,
|
|
730
|
+
83,
|
|
731
|
+
242,
|
|
732
|
+
43
|
|
733
733
|
]);
|
|
734
734
|
function serializeOptionPubkey(value) {
|
|
735
735
|
if (value === null) {
|
|
@@ -821,14 +821,14 @@ function createUpdateStvInstruction(params, accounts, programId = JLPD_PROGRAM_I
|
|
|
821
821
|
// src/instructions/user.ts
|
|
822
822
|
import { TransactionInstruction as TransactionInstruction2 } from "@solana/web3.js";
|
|
823
823
|
var DEPOSIT_DISCRIMINATOR = Buffer.from([
|
|
824
|
-
|
|
824
|
+
242,
|
|
825
|
+
35,
|
|
825
826
|
198,
|
|
826
|
-
|
|
827
|
-
|
|
827
|
+
137,
|
|
828
|
+
82,
|
|
828
829
|
225,
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
200
|
|
830
|
+
242,
|
|
831
|
+
182
|
|
832
832
|
]);
|
|
833
833
|
var WITHDRAW_DISCRIMINATOR = Buffer.from([
|
|
834
834
|
183,
|
|
@@ -885,54 +885,54 @@ function createWithdrawInstruction(sharesToBurn, accounts, remainingAccounts = [
|
|
|
885
885
|
// src/instructions/manager.ts
|
|
886
886
|
import { TransactionInstruction as TransactionInstruction3 } from "@solana/web3.js";
|
|
887
887
|
var JUP_EARN_DISCRIMINATOR = Buffer.from([
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
888
|
+
124,
|
|
889
|
+
60,
|
|
890
|
+
71,
|
|
891
|
+
122,
|
|
892
|
+
162,
|
|
891
893
|
212,
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
7,
|
|
895
|
-
24
|
|
894
|
+
164,
|
|
895
|
+
191
|
|
896
896
|
]);
|
|
897
897
|
var MOVE_STV_DISCRIMINATOR = Buffer.from([
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
92,
|
|
902
|
-
109,
|
|
898
|
+
60,
|
|
899
|
+
104,
|
|
900
|
+
8,
|
|
903
901
|
126,
|
|
904
|
-
|
|
905
|
-
|
|
902
|
+
254,
|
|
903
|
+
244,
|
|
904
|
+
95,
|
|
905
|
+
221
|
|
906
906
|
]);
|
|
907
907
|
var SWAP_JLX_JLX_DISCRIMINATOR = Buffer.from([
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
908
|
+
24,
|
|
909
|
+
52,
|
|
910
|
+
70,
|
|
911
|
+
107,
|
|
912
|
+
160,
|
|
913
|
+
96,
|
|
914
|
+
155,
|
|
915
|
+
62
|
|
916
916
|
]);
|
|
917
917
|
var SWAP_JLX_JLP_DISCRIMINATOR = Buffer.from([
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
918
|
+
229,
|
|
919
|
+
185,
|
|
920
|
+
136,
|
|
921
|
+
170,
|
|
922
|
+
210,
|
|
923
|
+
189,
|
|
924
|
+
172,
|
|
925
|
+
241
|
|
926
926
|
]);
|
|
927
927
|
var SETTLE_YIELD_DISCRIMINATOR = Buffer.from([
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
928
|
+
64,
|
|
929
|
+
28,
|
|
930
|
+
44,
|
|
931
|
+
24,
|
|
932
|
+
43,
|
|
933
|
+
204,
|
|
934
|
+
58,
|
|
935
|
+
215
|
|
936
936
|
]);
|
|
937
937
|
function serializeU8(value) {
|
|
938
938
|
const buf = Buffer.alloc(1);
|
|
@@ -1066,14 +1066,14 @@ function createSettleYieldInstruction(params, accounts, remainingAccounts = [],
|
|
|
1066
1066
|
// src/instructions/fees.ts
|
|
1067
1067
|
import { TransactionInstruction as TransactionInstruction4 } from "@solana/web3.js";
|
|
1068
1068
|
var CLAIM_FEES_DISCRIMINATOR = Buffer.from([
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1069
|
+
82,
|
|
1070
|
+
251,
|
|
1071
|
+
233,
|
|
1072
|
+
156,
|
|
1073
|
+
12,
|
|
1074
|
+
52,
|
|
1075
|
+
184,
|
|
1076
|
+
202
|
|
1077
1077
|
]);
|
|
1078
1078
|
function createClaimFeesInstruction(accounts, remainingAccounts = [], programId = JLPD_PROGRAM_ID) {
|
|
1079
1079
|
const data = CLAIM_FEES_DISCRIMINATOR;
|