@jup-ag/lend 0.0.35 → 0.0.37
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/README.md +3 -6
- package/dist/borrow/index.d.mts +71 -3687
- package/dist/borrow/index.d.ts +71 -3687
- package/dist/borrow/index.mjs +100 -650
- package/dist/earn/index.d.mts +14 -9
- package/dist/earn/index.d.ts +14 -9
- package/dist/earn/index.mjs +70 -76
- package/dist/index.d.mts +29 -29
- package/dist/index.d.ts +29 -29
- package/dist/index.mjs +4 -4
- package/dist/shared/{lend.y0JJOvNx.mjs → lend.BpBbTaiH.mjs} +17 -25
- package/dist/shared/{lend.BkuFp_nP.mjs → lend.CL8vvV0X.mjs} +48 -4368
- package/dist/shared/lend.CYujcG7Z.mjs +2963 -0
- package/package.json +1 -1
- package/dist/shared/lend.XApTW37B.mjs +0 -5877
package/README.md
CHANGED
|
@@ -13,9 +13,9 @@ npm install @jup-ag/lend
|
|
|
13
13
|
```ts
|
|
14
14
|
import { getDepositIx, getWithdrawIx } from "@jup-ag/lend/earn";
|
|
15
15
|
|
|
16
|
-
const connection = new Connection("https://api.
|
|
16
|
+
const connection = new Connection("https://api.mainnet-beta.solana.com");
|
|
17
17
|
const signer = new PublicKey("signerAddress");
|
|
18
|
-
const usdc = new PublicKey("
|
|
18
|
+
const usdc = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");
|
|
19
19
|
|
|
20
20
|
const depositIx = await getDepositIx({
|
|
21
21
|
amount: new BN(1000000),
|
|
@@ -23,7 +23,6 @@ const depositIx = await getDepositIx({
|
|
|
23
23
|
|
|
24
24
|
signer,
|
|
25
25
|
connection,
|
|
26
|
-
cluster: "devnet",
|
|
27
26
|
});
|
|
28
27
|
|
|
29
28
|
const withdrawIx = await getWithdrawIx({
|
|
@@ -32,7 +31,6 @@ const withdrawIx = await getWithdrawIx({
|
|
|
32
31
|
|
|
33
32
|
signer,
|
|
34
33
|
connection,
|
|
35
|
-
cluster: "devnet",
|
|
36
34
|
});
|
|
37
35
|
```
|
|
38
36
|
|
|
@@ -41,7 +39,7 @@ const withdrawIx = await getWithdrawIx({
|
|
|
41
39
|
```ts
|
|
42
40
|
import { getOperateIx } from "@jup-ag/lend/borrow";
|
|
43
41
|
|
|
44
|
-
const connection = new Connection("https://api.
|
|
42
|
+
const connection = new Connection("https://api.mainnet-beta.solana.com");
|
|
45
43
|
const signer = new PublicKey("signerAddress");
|
|
46
44
|
|
|
47
45
|
const { ixs, addressLookupTableAccounts } = await getOperateIx({
|
|
@@ -53,6 +51,5 @@ const { ixs, addressLookupTableAccounts } = await getOperateIx({
|
|
|
53
51
|
|
|
54
52
|
signer,
|
|
55
53
|
connection,
|
|
56
|
-
cluster: "devnet",
|
|
57
54
|
});
|
|
58
55
|
```
|