@jup-ag/lend 0.2.0-beta.2 → 0.2.0-beta.3
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/borrow/index.d.mts +91 -24
- package/dist/borrow/index.d.ts +91 -24
- package/dist/borrow/index.mjs +5 -4
- package/dist/dex/index.mjs +1 -1
- package/dist/earn/index.d.mts +23 -14
- package/dist/earn/index.d.ts +23 -14
- package/dist/earn/index.mjs +48 -2215
- package/dist/flashloan/index.d.mts +0 -1
- package/dist/flashloan/index.d.ts +0 -1
- package/dist/flashloan/index.mjs +6 -111
- package/dist/index.mjs +1 -1
- package/dist/refinance/index.d.mts +1 -2
- package/dist/refinance/index.d.ts +1 -2
- package/dist/refinance/index.mjs +3 -2
- package/dist/shared/lend.B80NmXTG.mjs +2184 -0
- package/dist/shared/{lend.siYu8A-9.mjs → lend.CS-bkwRq.mjs} +30 -8
- package/dist/shared/{lend.DcHJFKzT.mjs → lend.CVtn-ehf.mjs} +235 -449
- package/dist/shared/{lend.BT41yQVJ.d.mts → lend.CdoFqRFx.d.mts} +168 -474
- package/dist/shared/{lend.BT41yQVJ.d.ts → lend.CdoFqRFx.d.ts} +168 -474
- package/package.json +1 -1
package/dist/earn/index.d.mts
CHANGED
|
@@ -39,7 +39,6 @@ declare function getDepositContext({ asset, signer, connection, market, }: Depos
|
|
|
39
39
|
liquidityProgram: PublicKey;
|
|
40
40
|
rewardsRateModel: PublicKey;
|
|
41
41
|
tokenProgram: PublicKey;
|
|
42
|
-
associatedTokenProgram: PublicKey;
|
|
43
42
|
systemProgram: PublicKey;
|
|
44
43
|
sysvarInstruction: PublicKey;
|
|
45
44
|
}>;
|
|
@@ -92,7 +91,6 @@ declare function getWithdrawContext({ asset, signer, connection, market, }: With
|
|
|
92
91
|
liquidityProgram: PublicKey;
|
|
93
92
|
rewardsRateModel: PublicKey;
|
|
94
93
|
tokenProgram: PublicKey;
|
|
95
|
-
associatedTokenProgram: PublicKey;
|
|
96
94
|
systemProgram: PublicKey;
|
|
97
95
|
sysvarInstruction: PublicKey;
|
|
98
96
|
}>;
|
|
@@ -127,7 +125,7 @@ type Lending = {
|
|
|
127
125
|
address: "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9";
|
|
128
126
|
metadata: {
|
|
129
127
|
name: "lending";
|
|
130
|
-
version: "0.1.
|
|
128
|
+
version: "0.1.2";
|
|
131
129
|
spec: "0.1.0";
|
|
132
130
|
description: "Created with Anchor";
|
|
133
131
|
};
|
|
@@ -186,7 +184,6 @@ type Lending = {
|
|
|
186
184
|
},
|
|
187
185
|
{
|
|
188
186
|
name: "liquidityProgram";
|
|
189
|
-
writable: true;
|
|
190
187
|
relations: ["lendingAdmin"];
|
|
191
188
|
},
|
|
192
189
|
{
|
|
@@ -197,6 +194,7 @@ type Lending = {
|
|
|
197
194
|
},
|
|
198
195
|
{
|
|
199
196
|
name: "associatedTokenProgram";
|
|
197
|
+
optional: true;
|
|
200
198
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
201
199
|
},
|
|
202
200
|
{
|
|
@@ -266,7 +264,6 @@ type Lending = {
|
|
|
266
264
|
},
|
|
267
265
|
{
|
|
268
266
|
name: "liquidityProgram";
|
|
269
|
-
writable: true;
|
|
270
267
|
relations: ["lendingAdmin"];
|
|
271
268
|
},
|
|
272
269
|
{
|
|
@@ -277,6 +274,7 @@ type Lending = {
|
|
|
277
274
|
},
|
|
278
275
|
{
|
|
279
276
|
name: "associatedTokenProgram";
|
|
277
|
+
optional: true;
|
|
280
278
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
281
279
|
},
|
|
282
280
|
{
|
|
@@ -594,7 +592,6 @@ type Lending = {
|
|
|
594
592
|
},
|
|
595
593
|
{
|
|
596
594
|
name: "liquidityProgram";
|
|
597
|
-
writable: true;
|
|
598
595
|
relations: ["lendingAdmin"];
|
|
599
596
|
},
|
|
600
597
|
{
|
|
@@ -605,6 +602,7 @@ type Lending = {
|
|
|
605
602
|
},
|
|
606
603
|
{
|
|
607
604
|
name: "associatedTokenProgram";
|
|
605
|
+
optional: true;
|
|
608
606
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
609
607
|
},
|
|
610
608
|
{
|
|
@@ -674,7 +672,6 @@ type Lending = {
|
|
|
674
672
|
},
|
|
675
673
|
{
|
|
676
674
|
name: "liquidityProgram";
|
|
677
|
-
writable: true;
|
|
678
675
|
relations: ["lendingAdmin"];
|
|
679
676
|
},
|
|
680
677
|
{
|
|
@@ -685,6 +682,7 @@ type Lending = {
|
|
|
685
682
|
},
|
|
686
683
|
{
|
|
687
684
|
name: "associatedTokenProgram";
|
|
685
|
+
optional: true;
|
|
688
686
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
689
687
|
},
|
|
690
688
|
{
|
|
@@ -808,7 +806,6 @@ type Lending = {
|
|
|
808
806
|
},
|
|
809
807
|
{
|
|
810
808
|
name: "liquidityProgram";
|
|
811
|
-
writable: true;
|
|
812
809
|
relations: ["lendingAdmin"];
|
|
813
810
|
},
|
|
814
811
|
{
|
|
@@ -879,6 +876,7 @@ type Lending = {
|
|
|
879
876
|
{
|
|
880
877
|
name: "claimAccount";
|
|
881
878
|
writable: true;
|
|
879
|
+
optional: true;
|
|
882
880
|
},
|
|
883
881
|
{
|
|
884
882
|
name: "liquidity";
|
|
@@ -886,7 +884,6 @@ type Lending = {
|
|
|
886
884
|
},
|
|
887
885
|
{
|
|
888
886
|
name: "liquidityProgram";
|
|
889
|
-
writable: true;
|
|
890
887
|
relations: ["lendingAdmin"];
|
|
891
888
|
},
|
|
892
889
|
{
|
|
@@ -897,6 +894,7 @@ type Lending = {
|
|
|
897
894
|
},
|
|
898
895
|
{
|
|
899
896
|
name: "associatedTokenProgram";
|
|
897
|
+
optional: true;
|
|
900
898
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
901
899
|
},
|
|
902
900
|
{
|
|
@@ -963,6 +961,7 @@ type Lending = {
|
|
|
963
961
|
{
|
|
964
962
|
name: "claimAccount";
|
|
965
963
|
writable: true;
|
|
964
|
+
optional: true;
|
|
966
965
|
},
|
|
967
966
|
{
|
|
968
967
|
name: "liquidity";
|
|
@@ -970,7 +969,6 @@ type Lending = {
|
|
|
970
969
|
},
|
|
971
970
|
{
|
|
972
971
|
name: "liquidityProgram";
|
|
973
|
-
writable: true;
|
|
974
972
|
relations: ["lendingAdmin"];
|
|
975
973
|
},
|
|
976
974
|
{
|
|
@@ -981,6 +979,7 @@ type Lending = {
|
|
|
981
979
|
},
|
|
982
980
|
{
|
|
983
981
|
name: "associatedTokenProgram";
|
|
982
|
+
optional: true;
|
|
984
983
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
985
984
|
},
|
|
986
985
|
{
|
|
@@ -1174,6 +1173,7 @@ type Lending = {
|
|
|
1174
1173
|
{
|
|
1175
1174
|
name: "claimAccount";
|
|
1176
1175
|
writable: true;
|
|
1176
|
+
optional: true;
|
|
1177
1177
|
},
|
|
1178
1178
|
{
|
|
1179
1179
|
name: "liquidity";
|
|
@@ -1181,7 +1181,6 @@ type Lending = {
|
|
|
1181
1181
|
},
|
|
1182
1182
|
{
|
|
1183
1183
|
name: "liquidityProgram";
|
|
1184
|
-
writable: true;
|
|
1185
1184
|
relations: ["lendingAdmin"];
|
|
1186
1185
|
},
|
|
1187
1186
|
{
|
|
@@ -1192,6 +1191,7 @@ type Lending = {
|
|
|
1192
1191
|
},
|
|
1193
1192
|
{
|
|
1194
1193
|
name: "associatedTokenProgram";
|
|
1194
|
+
optional: true;
|
|
1195
1195
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1196
1196
|
},
|
|
1197
1197
|
{
|
|
@@ -1258,6 +1258,7 @@ type Lending = {
|
|
|
1258
1258
|
{
|
|
1259
1259
|
name: "claimAccount";
|
|
1260
1260
|
writable: true;
|
|
1261
|
+
optional: true;
|
|
1261
1262
|
},
|
|
1262
1263
|
{
|
|
1263
1264
|
name: "liquidity";
|
|
@@ -1265,7 +1266,6 @@ type Lending = {
|
|
|
1265
1266
|
},
|
|
1266
1267
|
{
|
|
1267
1268
|
name: "liquidityProgram";
|
|
1268
|
-
writable: true;
|
|
1269
1269
|
relations: ["lendingAdmin"];
|
|
1270
1270
|
},
|
|
1271
1271
|
{
|
|
@@ -1276,6 +1276,7 @@ type Lending = {
|
|
|
1276
1276
|
},
|
|
1277
1277
|
{
|
|
1278
1278
|
name: "associatedTokenProgram";
|
|
1279
|
+
optional: true;
|
|
1279
1280
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1280
1281
|
},
|
|
1281
1282
|
{
|
|
@@ -1832,7 +1833,11 @@ type Lending = {
|
|
|
1832
1833
|
},
|
|
1833
1834
|
{
|
|
1834
1835
|
name: "withdrawalLimit";
|
|
1835
|
-
type: "
|
|
1836
|
+
type: "u64";
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
name: "decayAmount";
|
|
1840
|
+
type: "u64";
|
|
1836
1841
|
},
|
|
1837
1842
|
{
|
|
1838
1843
|
name: "lastUpdate";
|
|
@@ -1844,7 +1849,11 @@ type Lending = {
|
|
|
1844
1849
|
},
|
|
1845
1850
|
{
|
|
1846
1851
|
name: "expandDuration";
|
|
1847
|
-
type: "
|
|
1852
|
+
type: "u32";
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
name: "decayDuration";
|
|
1856
|
+
type: "u32";
|
|
1848
1857
|
},
|
|
1849
1858
|
{
|
|
1850
1859
|
name: "baseWithdrawalLimit";
|
package/dist/earn/index.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ declare function getDepositContext({ asset, signer, connection, market, }: Depos
|
|
|
39
39
|
liquidityProgram: PublicKey;
|
|
40
40
|
rewardsRateModel: PublicKey;
|
|
41
41
|
tokenProgram: PublicKey;
|
|
42
|
-
associatedTokenProgram: PublicKey;
|
|
43
42
|
systemProgram: PublicKey;
|
|
44
43
|
sysvarInstruction: PublicKey;
|
|
45
44
|
}>;
|
|
@@ -92,7 +91,6 @@ declare function getWithdrawContext({ asset, signer, connection, market, }: With
|
|
|
92
91
|
liquidityProgram: PublicKey;
|
|
93
92
|
rewardsRateModel: PublicKey;
|
|
94
93
|
tokenProgram: PublicKey;
|
|
95
|
-
associatedTokenProgram: PublicKey;
|
|
96
94
|
systemProgram: PublicKey;
|
|
97
95
|
sysvarInstruction: PublicKey;
|
|
98
96
|
}>;
|
|
@@ -127,7 +125,7 @@ type Lending = {
|
|
|
127
125
|
address: "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9";
|
|
128
126
|
metadata: {
|
|
129
127
|
name: "lending";
|
|
130
|
-
version: "0.1.
|
|
128
|
+
version: "0.1.2";
|
|
131
129
|
spec: "0.1.0";
|
|
132
130
|
description: "Created with Anchor";
|
|
133
131
|
};
|
|
@@ -186,7 +184,6 @@ type Lending = {
|
|
|
186
184
|
},
|
|
187
185
|
{
|
|
188
186
|
name: "liquidityProgram";
|
|
189
|
-
writable: true;
|
|
190
187
|
relations: ["lendingAdmin"];
|
|
191
188
|
},
|
|
192
189
|
{
|
|
@@ -197,6 +194,7 @@ type Lending = {
|
|
|
197
194
|
},
|
|
198
195
|
{
|
|
199
196
|
name: "associatedTokenProgram";
|
|
197
|
+
optional: true;
|
|
200
198
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
201
199
|
},
|
|
202
200
|
{
|
|
@@ -266,7 +264,6 @@ type Lending = {
|
|
|
266
264
|
},
|
|
267
265
|
{
|
|
268
266
|
name: "liquidityProgram";
|
|
269
|
-
writable: true;
|
|
270
267
|
relations: ["lendingAdmin"];
|
|
271
268
|
},
|
|
272
269
|
{
|
|
@@ -277,6 +274,7 @@ type Lending = {
|
|
|
277
274
|
},
|
|
278
275
|
{
|
|
279
276
|
name: "associatedTokenProgram";
|
|
277
|
+
optional: true;
|
|
280
278
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
281
279
|
},
|
|
282
280
|
{
|
|
@@ -594,7 +592,6 @@ type Lending = {
|
|
|
594
592
|
},
|
|
595
593
|
{
|
|
596
594
|
name: "liquidityProgram";
|
|
597
|
-
writable: true;
|
|
598
595
|
relations: ["lendingAdmin"];
|
|
599
596
|
},
|
|
600
597
|
{
|
|
@@ -605,6 +602,7 @@ type Lending = {
|
|
|
605
602
|
},
|
|
606
603
|
{
|
|
607
604
|
name: "associatedTokenProgram";
|
|
605
|
+
optional: true;
|
|
608
606
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
609
607
|
},
|
|
610
608
|
{
|
|
@@ -674,7 +672,6 @@ type Lending = {
|
|
|
674
672
|
},
|
|
675
673
|
{
|
|
676
674
|
name: "liquidityProgram";
|
|
677
|
-
writable: true;
|
|
678
675
|
relations: ["lendingAdmin"];
|
|
679
676
|
},
|
|
680
677
|
{
|
|
@@ -685,6 +682,7 @@ type Lending = {
|
|
|
685
682
|
},
|
|
686
683
|
{
|
|
687
684
|
name: "associatedTokenProgram";
|
|
685
|
+
optional: true;
|
|
688
686
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
689
687
|
},
|
|
690
688
|
{
|
|
@@ -808,7 +806,6 @@ type Lending = {
|
|
|
808
806
|
},
|
|
809
807
|
{
|
|
810
808
|
name: "liquidityProgram";
|
|
811
|
-
writable: true;
|
|
812
809
|
relations: ["lendingAdmin"];
|
|
813
810
|
},
|
|
814
811
|
{
|
|
@@ -879,6 +876,7 @@ type Lending = {
|
|
|
879
876
|
{
|
|
880
877
|
name: "claimAccount";
|
|
881
878
|
writable: true;
|
|
879
|
+
optional: true;
|
|
882
880
|
},
|
|
883
881
|
{
|
|
884
882
|
name: "liquidity";
|
|
@@ -886,7 +884,6 @@ type Lending = {
|
|
|
886
884
|
},
|
|
887
885
|
{
|
|
888
886
|
name: "liquidityProgram";
|
|
889
|
-
writable: true;
|
|
890
887
|
relations: ["lendingAdmin"];
|
|
891
888
|
},
|
|
892
889
|
{
|
|
@@ -897,6 +894,7 @@ type Lending = {
|
|
|
897
894
|
},
|
|
898
895
|
{
|
|
899
896
|
name: "associatedTokenProgram";
|
|
897
|
+
optional: true;
|
|
900
898
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
901
899
|
},
|
|
902
900
|
{
|
|
@@ -963,6 +961,7 @@ type Lending = {
|
|
|
963
961
|
{
|
|
964
962
|
name: "claimAccount";
|
|
965
963
|
writable: true;
|
|
964
|
+
optional: true;
|
|
966
965
|
},
|
|
967
966
|
{
|
|
968
967
|
name: "liquidity";
|
|
@@ -970,7 +969,6 @@ type Lending = {
|
|
|
970
969
|
},
|
|
971
970
|
{
|
|
972
971
|
name: "liquidityProgram";
|
|
973
|
-
writable: true;
|
|
974
972
|
relations: ["lendingAdmin"];
|
|
975
973
|
},
|
|
976
974
|
{
|
|
@@ -981,6 +979,7 @@ type Lending = {
|
|
|
981
979
|
},
|
|
982
980
|
{
|
|
983
981
|
name: "associatedTokenProgram";
|
|
982
|
+
optional: true;
|
|
984
983
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
985
984
|
},
|
|
986
985
|
{
|
|
@@ -1174,6 +1173,7 @@ type Lending = {
|
|
|
1174
1173
|
{
|
|
1175
1174
|
name: "claimAccount";
|
|
1176
1175
|
writable: true;
|
|
1176
|
+
optional: true;
|
|
1177
1177
|
},
|
|
1178
1178
|
{
|
|
1179
1179
|
name: "liquidity";
|
|
@@ -1181,7 +1181,6 @@ type Lending = {
|
|
|
1181
1181
|
},
|
|
1182
1182
|
{
|
|
1183
1183
|
name: "liquidityProgram";
|
|
1184
|
-
writable: true;
|
|
1185
1184
|
relations: ["lendingAdmin"];
|
|
1186
1185
|
},
|
|
1187
1186
|
{
|
|
@@ -1192,6 +1191,7 @@ type Lending = {
|
|
|
1192
1191
|
},
|
|
1193
1192
|
{
|
|
1194
1193
|
name: "associatedTokenProgram";
|
|
1194
|
+
optional: true;
|
|
1195
1195
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1196
1196
|
},
|
|
1197
1197
|
{
|
|
@@ -1258,6 +1258,7 @@ type Lending = {
|
|
|
1258
1258
|
{
|
|
1259
1259
|
name: "claimAccount";
|
|
1260
1260
|
writable: true;
|
|
1261
|
+
optional: true;
|
|
1261
1262
|
},
|
|
1262
1263
|
{
|
|
1263
1264
|
name: "liquidity";
|
|
@@ -1265,7 +1266,6 @@ type Lending = {
|
|
|
1265
1266
|
},
|
|
1266
1267
|
{
|
|
1267
1268
|
name: "liquidityProgram";
|
|
1268
|
-
writable: true;
|
|
1269
1269
|
relations: ["lendingAdmin"];
|
|
1270
1270
|
},
|
|
1271
1271
|
{
|
|
@@ -1276,6 +1276,7 @@ type Lending = {
|
|
|
1276
1276
|
},
|
|
1277
1277
|
{
|
|
1278
1278
|
name: "associatedTokenProgram";
|
|
1279
|
+
optional: true;
|
|
1279
1280
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
1280
1281
|
},
|
|
1281
1282
|
{
|
|
@@ -1832,7 +1833,11 @@ type Lending = {
|
|
|
1832
1833
|
},
|
|
1833
1834
|
{
|
|
1834
1835
|
name: "withdrawalLimit";
|
|
1835
|
-
type: "
|
|
1836
|
+
type: "u64";
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
name: "decayAmount";
|
|
1840
|
+
type: "u64";
|
|
1836
1841
|
},
|
|
1837
1842
|
{
|
|
1838
1843
|
name: "lastUpdate";
|
|
@@ -1844,7 +1849,11 @@ type Lending = {
|
|
|
1844
1849
|
},
|
|
1845
1850
|
{
|
|
1846
1851
|
name: "expandDuration";
|
|
1847
|
-
type: "
|
|
1852
|
+
type: "u32";
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
name: "decayDuration";
|
|
1856
|
+
type: "u32";
|
|
1848
1857
|
},
|
|
1849
1858
|
{
|
|
1850
1859
|
name: "baseWithdrawalLimit";
|