@jup-ag/lend 0.2.0-beta.1 → 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 +162 -4
- package/dist/borrow/index.d.ts +162 -4
- package/dist/borrow/index.mjs +6 -3
- package/dist/dex/index.d.mts +247 -8
- package/dist/dex/index.d.ts +247 -8
- package/dist/dex/index.mjs +356 -27
- 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.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +3 -3
- package/dist/refinance/index.d.mts +1 -2
- package/dist/refinance/index.d.ts +1 -2
- package/dist/refinance/index.mjs +4 -2
- package/dist/shared/lend.B80NmXTG.mjs +2184 -0
- package/dist/shared/lend.CS-bkwRq.mjs +867 -0
- package/dist/shared/{lend.CTcB5yyK.mjs → lend.CVtn-ehf.mjs} +300 -1332
- 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/dist/shared/{lend.ByiEG4eI.mjs → lend.a53XYkl5.mjs} +1 -1
- package/dist/shared/lend.s0kjiHy3.mjs +29 -0
- package/package.json +1 -1
- package/dist/shared/lend.BC5Y1398.mjs +0 -18
|
@@ -202,4 +202,4 @@ const borrow = {
|
|
|
202
202
|
getVaultsProgramId: getVaultsProgramId
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
export {
|
|
205
|
+
export { getPositionMetadata as a, borrow as b, getPositionTokenAccount as c, getPositionMint as d, getPosition as e, getVaultState as f, getVaultAdmin as g, getVaultConfig as h, getVaultMetadata as i, getLiquidity as j, getClaimAccount as k, getRateModel as l, getUserBorrowPosition as m, getUserSupplyPosition as n, getLiquidityReserve as o, getTickHasDebt as p, getTick as q, getBranch as r, getTickIdLiquidation as s };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
|
2
|
+
|
|
3
|
+
const DEX_PROGRAM_ID = new PublicKey(
|
|
4
|
+
"jupZ4m2GqUCJ5iueMfzQf8khFfH31d4XAQt3RzCT9Vd"
|
|
5
|
+
);
|
|
6
|
+
const getDex = (dexId) => {
|
|
7
|
+
const id = Buffer.alloc(2);
|
|
8
|
+
id.writeUInt16LE(dexId);
|
|
9
|
+
return PublicKey.findProgramAddressSync(
|
|
10
|
+
[Buffer.from("dex"), id],
|
|
11
|
+
DEX_PROGRAM_ID
|
|
12
|
+
)[0];
|
|
13
|
+
};
|
|
14
|
+
const getDexMetadata = (dexId) => {
|
|
15
|
+
const id = Buffer.alloc(2);
|
|
16
|
+
id.writeUInt16LE(dexId);
|
|
17
|
+
return PublicKey.findProgramAddressSync(
|
|
18
|
+
[Buffer.from("dex_metadata"), id],
|
|
19
|
+
DEX_PROGRAM_ID
|
|
20
|
+
)[0];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const dex = {
|
|
24
|
+
__proto__: null,
|
|
25
|
+
getDex: getDex,
|
|
26
|
+
getDexMetadata: getDexMetadata
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { getDexMetadata as a, dex as d, getDex as g };
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PublicKey } from '@solana/web3.js';
|
|
2
|
-
|
|
3
|
-
const DEX_PROGRAM_ID = new PublicKey("'jupZ4m2GqUCJ5iueMfzQf8khFfH31d4XAQt3RzCT9Vd");
|
|
4
|
-
const getDex = (dexId) => {
|
|
5
|
-
const id = Buffer.alloc(2);
|
|
6
|
-
id.writeUInt16LE(dexId);
|
|
7
|
-
return PublicKey.findProgramAddressSync(
|
|
8
|
-
[Buffer.from("dex"), id],
|
|
9
|
-
DEX_PROGRAM_ID
|
|
10
|
-
)[0];
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const dex = {
|
|
14
|
-
__proto__: null,
|
|
15
|
-
getDex: getDex
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { dex as d, getDex as g };
|