@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.
@@ -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 { g as getLiquidity, a as getRateModel, b as getUserBorrowPosition, c as getUserSupplyPosition, d as getTokenReserveFromAsset, e as getReserve } from '../shared/lend.BhQGaP3o.mjs';
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.ByiEG4eI.mjs';
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.BhQGaP3o.mjs';
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.1.10";
11
+ const version = "0.2.0-beta.2";
11
12
 
12
13
  export { version };
@@ -1,10 +1,11 @@
1
- import { v as getOperateIx, F as vaultsIdl } from '../shared/lend.B03stRz0.mjs';
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.ByiEG4eI.mjs';
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 { getRateModel as a, getUserBorrowPosition as b, getUserSupplyPosition as c, getTokenReserveFromAsset as d, getReserve as e, getLiquidity as g, liquidity as l };
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 };