@jup-ag/lend 0.1.10 → 0.2.0-beta.2
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 +102 -11
- package/dist/borrow/index.d.ts +102 -11
- package/dist/borrow/index.mjs +6 -4
- package/dist/dex/index.d.mts +4745 -0
- package/dist/dex/index.d.ts +4745 -0
- package/dist/dex/index.mjs +5789 -0
- package/dist/earn/index.mjs +1 -1
- package/dist/index.d.mts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.mjs +4 -3
- package/dist/refinance/index.mjs +4 -3
- package/dist/shared/{lend.BhQGaP3o.mjs → lend.C3XdrR6R.mjs} +1 -1
- package/dist/shared/{lend.B03stRz0.mjs → lend.DcHJFKzT.mjs} +25 -843
- package/dist/shared/{lend.ByiEG4eI.mjs → lend.a53XYkl5.mjs} +1 -1
- package/dist/shared/lend.s0kjiHy3.mjs +29 -0
- package/dist/shared/lend.siYu8A-9.mjs +845 -0
- package/package.json +5 -1
package/dist/earn/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { getAssociatedTokenAddress, getAccount, createAssociatedTokenAccountInst
|
|
|
3
3
|
import { Program } from '@coral-xyz/anchor';
|
|
4
4
|
import BN$1, { BN } from 'bn.js';
|
|
5
5
|
import { g as getLendingToken, a as getLending, b as getLendingRewardsRateModel, c as getClaimAccount, d as getLendingAdmin } from '../shared/lend.BQkL9C4i.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { a as getLiquidity, d as getRateModel, b as getUserBorrowPosition, c as getUserSupplyPosition, f as getTokenReserveFromAsset, e as getReserve } from '../shared/lend.C3XdrR6R.mjs';
|
|
7
7
|
|
|
8
8
|
const address = "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9";
|
|
9
9
|
const metadata = {
|
package/dist/index.d.mts
CHANGED
|
@@ -118,6 +118,18 @@ declare namespace borrow {
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
declare const getDex: (dexId: number) => PublicKey;
|
|
122
|
+
declare const getDexMetadata: (dexId: number) => PublicKey;
|
|
123
|
+
|
|
124
|
+
declare const dex_getDex: typeof getDex;
|
|
125
|
+
declare const dex_getDexMetadata: typeof getDexMetadata;
|
|
126
|
+
declare namespace dex {
|
|
127
|
+
export {
|
|
128
|
+
dex_getDex as getDex,
|
|
129
|
+
dex_getDexMetadata as getDexMetadata,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
121
133
|
declare const getFlashloanProgramId: (market: "main" | "ethena") => PublicKey;
|
|
122
134
|
declare const getFlashloanAdmin: (market: "main" | "ethena") => PublicKey;
|
|
123
135
|
declare const getLiquidityReserve: (asset: PublicKey, market: "main" | "ethena") => PublicKey;
|
|
@@ -169,4 +181,4 @@ declare namespace merkleDistributor {
|
|
|
169
181
|
|
|
170
182
|
declare const version: string;
|
|
171
183
|
|
|
172
|
-
export { borrow as borrowPda, flashloan as flashloanPda, lending as lendingPda, lendingRewardRateModel as lendingRewardRateModelPda, liquidity as liquidityPda, merkleDistributor as merkleDistributorPda, version };
|
|
184
|
+
export { borrow as borrowPda, dex as dexPda, flashloan as flashloanPda, lending as lendingPda, lendingRewardRateModel as lendingRewardRateModelPda, liquidity as liquidityPda, merkleDistributor as merkleDistributorPda, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,18 @@ declare namespace borrow {
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
declare const getDex: (dexId: number) => PublicKey;
|
|
122
|
+
declare const getDexMetadata: (dexId: number) => PublicKey;
|
|
123
|
+
|
|
124
|
+
declare const dex_getDex: typeof getDex;
|
|
125
|
+
declare const dex_getDexMetadata: typeof getDexMetadata;
|
|
126
|
+
declare namespace dex {
|
|
127
|
+
export {
|
|
128
|
+
dex_getDex as getDex,
|
|
129
|
+
dex_getDexMetadata as getDexMetadata,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
121
133
|
declare const getFlashloanProgramId: (market: "main" | "ethena") => PublicKey;
|
|
122
134
|
declare const getFlashloanAdmin: (market: "main" | "ethena") => PublicKey;
|
|
123
135
|
declare const getLiquidityReserve: (asset: PublicKey, market: "main" | "ethena") => PublicKey;
|
|
@@ -169,4 +181,4 @@ declare namespace merkleDistributor {
|
|
|
169
181
|
|
|
170
182
|
declare const version: string;
|
|
171
183
|
|
|
172
|
-
export { borrow as borrowPda, flashloan as flashloanPda, lending as lendingPda, lendingRewardRateModel as lendingRewardRateModelPda, liquidity as liquidityPda, merkleDistributor as merkleDistributorPda, version };
|
|
184
|
+
export { borrow as borrowPda, dex as dexPda, flashloan as flashloanPda, lending as lendingPda, lendingRewardRateModel as lendingRewardRateModelPda, liquidity as liquidityPda, merkleDistributor as merkleDistributorPda, version };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { b as borrowPda } from './shared/lend.
|
|
1
|
+
export { b as borrowPda } from './shared/lend.a53XYkl5.mjs';
|
|
2
|
+
export { d as dexPda } from './shared/lend.s0kjiHy3.mjs';
|
|
2
3
|
export { f as flashloanPda } from './shared/lend.BXNM1zms.mjs';
|
|
3
4
|
export { l as lendingPda, e as lendingRewardRateModelPda } from './shared/lend.BQkL9C4i.mjs';
|
|
4
|
-
export { l as liquidityPda } from './shared/lend.
|
|
5
|
+
export { l as liquidityPda } from './shared/lend.C3XdrR6R.mjs';
|
|
5
6
|
export { m as merkleDistributorPda } from './shared/lend.CeAr0e-D.mjs';
|
|
6
7
|
import '@solana/web3.js';
|
|
7
8
|
import '@solana/spl-token';
|
|
8
9
|
import 'bn.js';
|
|
9
10
|
|
|
10
|
-
const version = "0.
|
|
11
|
+
const version = "0.2.0-beta.2";
|
|
11
12
|
|
|
12
13
|
export { version };
|
package/dist/refinance/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as vaultsIdl } from '../shared/lend.DcHJFKzT.mjs';
|
|
2
|
+
import { e as getOperateIx } from '../shared/lend.siYu8A-9.mjs';
|
|
2
3
|
import { PublicKey } from '@solana/web3.js';
|
|
3
4
|
import { Program } from '@coral-xyz/anchor';
|
|
4
5
|
import 'bn.js';
|
|
6
|
+
import '../shared/lend.a53XYkl5.mjs';
|
|
5
7
|
import '@solana/spl-token';
|
|
6
|
-
import '../shared/lend.
|
|
7
|
-
import '../shared/lend.BhQGaP3o.mjs';
|
|
8
|
+
import '../shared/lend.C3XdrR6R.mjs';
|
|
8
9
|
|
|
9
10
|
const address = "jup8QcdtqecBGw1iXHW3hQAsHQbTgEqbLbNMvvULmeK";
|
|
10
11
|
const metadata = {
|
|
@@ -66,4 +66,4 @@ const liquidity = {
|
|
|
66
66
|
getUserSupplyPosition: getUserSupplyPosition
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { getLiquidity as a, getUserBorrowPosition as b, getUserSupplyPosition as c, getRateModel as d, getReserve as e, getTokenReserveFromAsset as f, getLiquidityProgramId as g, liquidity as l };
|