@jup-ag/lend 0.0.105 → 0.0.107-beta.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.
@@ -103,116 +103,10 @@ type Lending = {
103
103
  {
104
104
  name: "depositorTokenAccount";
105
105
  writable: true;
106
- pda: {
107
- seeds: [
108
- {
109
- kind: "account";
110
- path: "signer";
111
- },
112
- {
113
- kind: "account";
114
- path: "tokenProgram";
115
- },
116
- {
117
- kind: "account";
118
- path: "mint";
119
- }
120
- ];
121
- program: {
122
- kind: "const";
123
- value: [
124
- 140,
125
- 151,
126
- 37,
127
- 143,
128
- 78,
129
- 36,
130
- 137,
131
- 241,
132
- 187,
133
- 61,
134
- 16,
135
- 41,
136
- 20,
137
- 142,
138
- 13,
139
- 131,
140
- 11,
141
- 90,
142
- 19,
143
- 153,
144
- 218,
145
- 255,
146
- 16,
147
- 132,
148
- 4,
149
- 142,
150
- 123,
151
- 216,
152
- 219,
153
- 233,
154
- 248,
155
- 89
156
- ];
157
- };
158
- };
159
106
  },
160
107
  {
161
108
  name: "recipientTokenAccount";
162
109
  writable: true;
163
- pda: {
164
- seeds: [
165
- {
166
- kind: "account";
167
- path: "signer";
168
- },
169
- {
170
- kind: "account";
171
- path: "tokenProgram";
172
- },
173
- {
174
- kind: "account";
175
- path: "fTokenMint";
176
- }
177
- ];
178
- program: {
179
- kind: "const";
180
- value: [
181
- 140,
182
- 151,
183
- 37,
184
- 143,
185
- 78,
186
- 36,
187
- 137,
188
- 241,
189
- 187,
190
- 61,
191
- 16,
192
- 41,
193
- 20,
194
- 142,
195
- 13,
196
- 131,
197
- 11,
198
- 90,
199
- 19,
200
- 153,
201
- 218,
202
- 255,
203
- 16,
204
- 132,
205
- 4,
206
- 142,
207
- 123,
208
- 216,
209
- 219,
210
- 233,
211
- 248,
212
- 89
213
- ];
214
- };
215
- };
216
110
  },
217
111
  {
218
112
  name: "mint";
@@ -289,116 +183,10 @@ type Lending = {
289
183
  {
290
184
  name: "depositorTokenAccount";
291
185
  writable: true;
292
- pda: {
293
- seeds: [
294
- {
295
- kind: "account";
296
- path: "signer";
297
- },
298
- {
299
- kind: "account";
300
- path: "tokenProgram";
301
- },
302
- {
303
- kind: "account";
304
- path: "mint";
305
- }
306
- ];
307
- program: {
308
- kind: "const";
309
- value: [
310
- 140,
311
- 151,
312
- 37,
313
- 143,
314
- 78,
315
- 36,
316
- 137,
317
- 241,
318
- 187,
319
- 61,
320
- 16,
321
- 41,
322
- 20,
323
- 142,
324
- 13,
325
- 131,
326
- 11,
327
- 90,
328
- 19,
329
- 153,
330
- 218,
331
- 255,
332
- 16,
333
- 132,
334
- 4,
335
- 142,
336
- 123,
337
- 216,
338
- 219,
339
- 233,
340
- 248,
341
- 89
342
- ];
343
- };
344
- };
345
186
  },
346
187
  {
347
188
  name: "recipientTokenAccount";
348
189
  writable: true;
349
- pda: {
350
- seeds: [
351
- {
352
- kind: "account";
353
- path: "signer";
354
- },
355
- {
356
- kind: "account";
357
- path: "tokenProgram";
358
- },
359
- {
360
- kind: "account";
361
- path: "fTokenMint";
362
- }
363
- ];
364
- program: {
365
- kind: "const";
366
- value: [
367
- 140,
368
- 151,
369
- 37,
370
- 143,
371
- 78,
372
- 36,
373
- 137,
374
- 241,
375
- 187,
376
- 61,
377
- 16,
378
- 41,
379
- 20,
380
- 142,
381
- 13,
382
- 131,
383
- 11,
384
- 90,
385
- 19,
386
- 153,
387
- 218,
388
- 255,
389
- 16,
390
- 132,
391
- 4,
392
- 142,
393
- 123,
394
- 216,
395
- 219,
396
- 233,
397
- 248,
398
- 89
399
- ];
400
- };
401
- };
402
190
  },
403
191
  {
404
192
  name: "mint";
@@ -723,116 +511,10 @@ type Lending = {
723
511
  {
724
512
  name: "depositorTokenAccount";
725
513
  writable: true;
726
- pda: {
727
- seeds: [
728
- {
729
- kind: "account";
730
- path: "signer";
731
- },
732
- {
733
- kind: "account";
734
- path: "tokenProgram";
735
- },
736
- {
737
- kind: "account";
738
- path: "mint";
739
- }
740
- ];
741
- program: {
742
- kind: "const";
743
- value: [
744
- 140,
745
- 151,
746
- 37,
747
- 143,
748
- 78,
749
- 36,
750
- 137,
751
- 241,
752
- 187,
753
- 61,
754
- 16,
755
- 41,
756
- 20,
757
- 142,
758
- 13,
759
- 131,
760
- 11,
761
- 90,
762
- 19,
763
- 153,
764
- 218,
765
- 255,
766
- 16,
767
- 132,
768
- 4,
769
- 142,
770
- 123,
771
- 216,
772
- 219,
773
- 233,
774
- 248,
775
- 89
776
- ];
777
- };
778
- };
779
514
  },
780
515
  {
781
516
  name: "recipientTokenAccount";
782
517
  writable: true;
783
- pda: {
784
- seeds: [
785
- {
786
- kind: "account";
787
- path: "signer";
788
- },
789
- {
790
- kind: "account";
791
- path: "tokenProgram";
792
- },
793
- {
794
- kind: "account";
795
- path: "fTokenMint";
796
- }
797
- ];
798
- program: {
799
- kind: "const";
800
- value: [
801
- 140,
802
- 151,
803
- 37,
804
- 143,
805
- 78,
806
- 36,
807
- 137,
808
- 241,
809
- 187,
810
- 61,
811
- 16,
812
- 41,
813
- 20,
814
- 142,
815
- 13,
816
- 131,
817
- 11,
818
- 90,
819
- 19,
820
- 153,
821
- 218,
822
- 255,
823
- 16,
824
- 132,
825
- 4,
826
- 142,
827
- 123,
828
- 216,
829
- 219,
830
- 233,
831
- 248,
832
- 89
833
- ];
834
- };
835
- };
836
518
  },
837
519
  {
838
520
  name: "mint";
@@ -909,116 +591,10 @@ type Lending = {
909
591
  {
910
592
  name: "depositorTokenAccount";
911
593
  writable: true;
912
- pda: {
913
- seeds: [
914
- {
915
- kind: "account";
916
- path: "signer";
917
- },
918
- {
919
- kind: "account";
920
- path: "tokenProgram";
921
- },
922
- {
923
- kind: "account";
924
- path: "mint";
925
- }
926
- ];
927
- program: {
928
- kind: "const";
929
- value: [
930
- 140,
931
- 151,
932
- 37,
933
- 143,
934
- 78,
935
- 36,
936
- 137,
937
- 241,
938
- 187,
939
- 61,
940
- 16,
941
- 41,
942
- 20,
943
- 142,
944
- 13,
945
- 131,
946
- 11,
947
- 90,
948
- 19,
949
- 153,
950
- 218,
951
- 255,
952
- 16,
953
- 132,
954
- 4,
955
- 142,
956
- 123,
957
- 216,
958
- 219,
959
- 233,
960
- 248,
961
- 89
962
- ];
963
- };
964
- };
965
594
  },
966
595
  {
967
596
  name: "recipientTokenAccount";
968
597
  writable: true;
969
- pda: {
970
- seeds: [
971
- {
972
- kind: "account";
973
- path: "signer";
974
- },
975
- {
976
- kind: "account";
977
- path: "tokenProgram";
978
- },
979
- {
980
- kind: "account";
981
- path: "fTokenMint";
982
- }
983
- ];
984
- program: {
985
- kind: "const";
986
- value: [
987
- 140,
988
- 151,
989
- 37,
990
- 143,
991
- 78,
992
- 36,
993
- 137,
994
- 241,
995
- 187,
996
- 61,
997
- 16,
998
- 41,
999
- 20,
1000
- 142,
1001
- 13,
1002
- 131,
1003
- 11,
1004
- 90,
1005
- 19,
1006
- 153,
1007
- 218,
1008
- 255,
1009
- 16,
1010
- 132,
1011
- 4,
1012
- 142,
1013
- 123,
1014
- 216,
1015
- 219,
1016
- 233,
1017
- 248,
1018
- 89
1019
- ];
1020
- };
1021
- };
1022
598
  },
1023
599
  {
1024
600
  name: "mint";
@@ -1223,116 +799,10 @@ type Lending = {
1223
799
  {
1224
800
  name: "ownerTokenAccount";
1225
801
  writable: true;
1226
- pda: {
1227
- seeds: [
1228
- {
1229
- kind: "account";
1230
- path: "signer";
1231
- },
1232
- {
1233
- kind: "account";
1234
- path: "tokenProgram";
1235
- },
1236
- {
1237
- kind: "account";
1238
- path: "fTokenMint";
1239
- }
1240
- ];
1241
- program: {
1242
- kind: "const";
1243
- value: [
1244
- 140,
1245
- 151,
1246
- 37,
1247
- 143,
1248
- 78,
1249
- 36,
1250
- 137,
1251
- 241,
1252
- 187,
1253
- 61,
1254
- 16,
1255
- 41,
1256
- 20,
1257
- 142,
1258
- 13,
1259
- 131,
1260
- 11,
1261
- 90,
1262
- 19,
1263
- 153,
1264
- 218,
1265
- 255,
1266
- 16,
1267
- 132,
1268
- 4,
1269
- 142,
1270
- 123,
1271
- 216,
1272
- 219,
1273
- 233,
1274
- 248,
1275
- 89
1276
- ];
1277
- };
1278
- };
1279
802
  },
1280
803
  {
1281
804
  name: "recipientTokenAccount";
1282
805
  writable: true;
1283
- pda: {
1284
- seeds: [
1285
- {
1286
- kind: "account";
1287
- path: "signer";
1288
- },
1289
- {
1290
- kind: "account";
1291
- path: "tokenProgram";
1292
- },
1293
- {
1294
- kind: "account";
1295
- path: "mint";
1296
- }
1297
- ];
1298
- program: {
1299
- kind: "const";
1300
- value: [
1301
- 140,
1302
- 151,
1303
- 37,
1304
- 143,
1305
- 78,
1306
- 36,
1307
- 137,
1308
- 241,
1309
- 187,
1310
- 61,
1311
- 16,
1312
- 41,
1313
- 20,
1314
- 142,
1315
- 13,
1316
- 131,
1317
- 11,
1318
- 90,
1319
- 19,
1320
- 153,
1321
- 218,
1322
- 255,
1323
- 16,
1324
- 132,
1325
- 4,
1326
- 142,
1327
- 123,
1328
- 216,
1329
- 219,
1330
- 233,
1331
- 248,
1332
- 89
1333
- ];
1334
- };
1335
- };
1336
806
  },
1337
807
  {
1338
808
  name: "lendingAdmin";
@@ -1373,156 +843,50 @@ type Lending = {
1373
843
  name: "liquidity";
1374
844
  writable: true;
1375
845
  },
1376
- {
1377
- name: "liquidityProgram";
1378
- writable: true;
1379
- relations: ["lendingAdmin"];
1380
- },
1381
- {
1382
- name: "rewardsRateModel";
1383
- },
1384
- {
1385
- name: "tokenProgram";
1386
- },
1387
- {
1388
- name: "associatedTokenProgram";
1389
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1390
- },
1391
- {
1392
- name: "systemProgram";
1393
- address: "11111111111111111111111111111111";
1394
- }
1395
- ];
1396
- args: [
1397
- {
1398
- name: "shares";
1399
- type: "u64";
1400
- }
1401
- ];
1402
- returns: "u64";
1403
- },
1404
- {
1405
- name: "redeemWithMinAmountOut";
1406
- discriminator: [235, 189, 237, 56, 166, 180, 184, 149];
1407
- accounts: [
1408
- {
1409
- name: "signer";
1410
- writable: true;
1411
- signer: true;
1412
- },
1413
- {
1414
- name: "ownerTokenAccount";
1415
- writable: true;
1416
- pda: {
1417
- seeds: [
1418
- {
1419
- kind: "account";
1420
- path: "signer";
1421
- },
1422
- {
1423
- kind: "account";
1424
- path: "tokenProgram";
1425
- },
1426
- {
1427
- kind: "account";
1428
- path: "fTokenMint";
1429
- }
1430
- ];
1431
- program: {
1432
- kind: "const";
1433
- value: [
1434
- 140,
1435
- 151,
1436
- 37,
1437
- 143,
1438
- 78,
1439
- 36,
1440
- 137,
1441
- 241,
1442
- 187,
1443
- 61,
1444
- 16,
1445
- 41,
1446
- 20,
1447
- 142,
1448
- 13,
1449
- 131,
1450
- 11,
1451
- 90,
1452
- 19,
1453
- 153,
1454
- 218,
1455
- 255,
1456
- 16,
1457
- 132,
1458
- 4,
1459
- 142,
1460
- 123,
1461
- 216,
1462
- 219,
1463
- 233,
1464
- 248,
1465
- 89
1466
- ];
1467
- };
1468
- };
1469
- },
1470
- {
1471
- name: "recipientTokenAccount";
1472
- writable: true;
1473
- pda: {
1474
- seeds: [
1475
- {
1476
- kind: "account";
1477
- path: "signer";
1478
- },
1479
- {
1480
- kind: "account";
1481
- path: "tokenProgram";
1482
- },
1483
- {
1484
- kind: "account";
1485
- path: "mint";
1486
- }
1487
- ];
1488
- program: {
1489
- kind: "const";
1490
- value: [
1491
- 140,
1492
- 151,
1493
- 37,
1494
- 143,
1495
- 78,
1496
- 36,
1497
- 137,
1498
- 241,
1499
- 187,
1500
- 61,
1501
- 16,
1502
- 41,
1503
- 20,
1504
- 142,
1505
- 13,
1506
- 131,
1507
- 11,
1508
- 90,
1509
- 19,
1510
- 153,
1511
- 218,
1512
- 255,
1513
- 16,
1514
- 132,
1515
- 4,
1516
- 142,
1517
- 123,
1518
- 216,
1519
- 219,
1520
- 233,
1521
- 248,
1522
- 89
1523
- ];
1524
- };
1525
- };
846
+ {
847
+ name: "liquidityProgram";
848
+ writable: true;
849
+ relations: ["lendingAdmin"];
850
+ },
851
+ {
852
+ name: "rewardsRateModel";
853
+ },
854
+ {
855
+ name: "tokenProgram";
856
+ },
857
+ {
858
+ name: "associatedTokenProgram";
859
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
860
+ },
861
+ {
862
+ name: "systemProgram";
863
+ address: "11111111111111111111111111111111";
864
+ }
865
+ ];
866
+ args: [
867
+ {
868
+ name: "shares";
869
+ type: "u64";
870
+ }
871
+ ];
872
+ returns: "u64";
873
+ },
874
+ {
875
+ name: "redeemWithMinAmountOut";
876
+ discriminator: [235, 189, 237, 56, 166, 180, 184, 149];
877
+ accounts: [
878
+ {
879
+ name: "signer";
880
+ writable: true;
881
+ signer: true;
882
+ },
883
+ {
884
+ name: "ownerTokenAccount";
885
+ writable: true;
886
+ },
887
+ {
888
+ name: "recipientTokenAccount";
889
+ writable: true;
1526
890
  },
1527
891
  {
1528
892
  name: "lendingAdmin";
@@ -1730,116 +1094,10 @@ type Lending = {
1730
1094
  {
1731
1095
  name: "ownerTokenAccount";
1732
1096
  writable: true;
1733
- pda: {
1734
- seeds: [
1735
- {
1736
- kind: "account";
1737
- path: "signer";
1738
- },
1739
- {
1740
- kind: "account";
1741
- path: "tokenProgram";
1742
- },
1743
- {
1744
- kind: "account";
1745
- path: "fTokenMint";
1746
- }
1747
- ];
1748
- program: {
1749
- kind: "const";
1750
- value: [
1751
- 140,
1752
- 151,
1753
- 37,
1754
- 143,
1755
- 78,
1756
- 36,
1757
- 137,
1758
- 241,
1759
- 187,
1760
- 61,
1761
- 16,
1762
- 41,
1763
- 20,
1764
- 142,
1765
- 13,
1766
- 131,
1767
- 11,
1768
- 90,
1769
- 19,
1770
- 153,
1771
- 218,
1772
- 255,
1773
- 16,
1774
- 132,
1775
- 4,
1776
- 142,
1777
- 123,
1778
- 216,
1779
- 219,
1780
- 233,
1781
- 248,
1782
- 89
1783
- ];
1784
- };
1785
- };
1786
1097
  },
1787
1098
  {
1788
1099
  name: "recipientTokenAccount";
1789
1100
  writable: true;
1790
- pda: {
1791
- seeds: [
1792
- {
1793
- kind: "account";
1794
- path: "signer";
1795
- },
1796
- {
1797
- kind: "account";
1798
- path: "tokenProgram";
1799
- },
1800
- {
1801
- kind: "account";
1802
- path: "mint";
1803
- }
1804
- ];
1805
- program: {
1806
- kind: "const";
1807
- value: [
1808
- 140,
1809
- 151,
1810
- 37,
1811
- 143,
1812
- 78,
1813
- 36,
1814
- 137,
1815
- 241,
1816
- 187,
1817
- 61,
1818
- 16,
1819
- 41,
1820
- 20,
1821
- 142,
1822
- 13,
1823
- 131,
1824
- 11,
1825
- 90,
1826
- 19,
1827
- 153,
1828
- 218,
1829
- 255,
1830
- 16,
1831
- 132,
1832
- 4,
1833
- 142,
1834
- 123,
1835
- 216,
1836
- 219,
1837
- 233,
1838
- 248,
1839
- 89
1840
- ];
1841
- };
1842
- };
1843
1101
  },
1844
1102
  {
1845
1103
  name: "lendingAdmin";
@@ -1920,116 +1178,10 @@ type Lending = {
1920
1178
  {
1921
1179
  name: "ownerTokenAccount";
1922
1180
  writable: true;
1923
- pda: {
1924
- seeds: [
1925
- {
1926
- kind: "account";
1927
- path: "signer";
1928
- },
1929
- {
1930
- kind: "account";
1931
- path: "tokenProgram";
1932
- },
1933
- {
1934
- kind: "account";
1935
- path: "fTokenMint";
1936
- }
1937
- ];
1938
- program: {
1939
- kind: "const";
1940
- value: [
1941
- 140,
1942
- 151,
1943
- 37,
1944
- 143,
1945
- 78,
1946
- 36,
1947
- 137,
1948
- 241,
1949
- 187,
1950
- 61,
1951
- 16,
1952
- 41,
1953
- 20,
1954
- 142,
1955
- 13,
1956
- 131,
1957
- 11,
1958
- 90,
1959
- 19,
1960
- 153,
1961
- 218,
1962
- 255,
1963
- 16,
1964
- 132,
1965
- 4,
1966
- 142,
1967
- 123,
1968
- 216,
1969
- 219,
1970
- 233,
1971
- 248,
1972
- 89
1973
- ];
1974
- };
1975
- };
1976
1181
  },
1977
1182
  {
1978
1183
  name: "recipientTokenAccount";
1979
1184
  writable: true;
1980
- pda: {
1981
- seeds: [
1982
- {
1983
- kind: "account";
1984
- path: "signer";
1985
- },
1986
- {
1987
- kind: "account";
1988
- path: "tokenProgram";
1989
- },
1990
- {
1991
- kind: "account";
1992
- path: "mint";
1993
- }
1994
- ];
1995
- program: {
1996
- kind: "const";
1997
- value: [
1998
- 140,
1999
- 151,
2000
- 37,
2001
- 143,
2002
- 78,
2003
- 36,
2004
- 137,
2005
- 241,
2006
- 187,
2007
- 61,
2008
- 16,
2009
- 41,
2010
- 20,
2011
- 142,
2012
- 13,
2013
- 131,
2014
- 11,
2015
- 90,
2016
- 19,
2017
- 153,
2018
- 218,
2019
- 255,
2020
- 16,
2021
- 132,
2022
- 4,
2023
- 142,
2024
- 123,
2025
- 216,
2026
- 219,
2027
- 233,
2028
- 248,
2029
- 89
2030
- ];
2031
- };
2032
- };
2033
1185
  },
2034
1186
  {
2035
1187
  name: "lendingAdmin";