@jup-ag/lend 0.1.10-beta.4 → 0.2.0-beta.1
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 +3 -3
- package/dist/borrow/index.d.ts +3 -3
- package/dist/borrow/index.mjs +4 -4
- package/dist/dex/index.d.mts +4506 -0
- package/dist/dex/index.d.ts +4506 -0
- package/dist/dex/index.mjs +5460 -0
- package/dist/earn/index.mjs +2 -2
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +6 -5
- package/dist/merkle-distributor/index.d.mts +1 -1
- package/dist/merkle-distributor/index.d.ts +1 -1
- package/dist/merkle-distributor/index.mjs +1 -1
- package/dist/refinance/index.d.mts +1 -1
- package/dist/refinance/index.d.ts +1 -1
- package/dist/refinance/index.mjs +3 -3
- package/dist/shared/lend.BC5Y1398.mjs +18 -0
- package/dist/shared/{lend.DovweBeJ.mjs → lend.BQkL9C4i.mjs} +1 -1
- package/dist/shared/{lend.DTV5bfSW.d.ts → lend.BT41yQVJ.d.mts} +2 -2
- package/dist/shared/{lend.DTV5bfSW.d.mts → lend.BT41yQVJ.d.ts} +2 -2
- package/dist/shared/{lend.BsvjWilv.mjs → lend.ByiEG4eI.mjs} +1 -1
- package/dist/shared/{lend.BhQGaP3o.mjs → lend.C3XdrR6R.mjs} +1 -1
- package/dist/shared/{lend.DfKhG_eQ.mjs → lend.CTcB5yyK.mjs} +5 -5
- package/dist/shared/{lend.Bpqe1Iia.mjs → lend.CeAr0e-D.mjs} +1 -1
- package/package.json +15 -11
package/dist/borrow/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { V as Vaults, L as LiquidateParams } from '../shared/lend.
|
|
2
|
-
export { C as ConnectionParams, I as InitPositionIxParams,
|
|
1
|
+
import { V as Vaults, L as LiquidateParams } from '../shared/lend.BT41yQVJ.mjs';
|
|
2
|
+
export { C as ConnectionParams, I as InitPositionIxParams, a as LiquidateContextParams, O as OperateContextParams, b as OperateParams, g as getInitPositionContext, c as getInitPositionIx, d as getLiquidateContext, e as getLiquidateIx, f as getOperateContext, h as getOperateIx } from '../shared/lend.BT41yQVJ.mjs';
|
|
3
3
|
import { Program } from '@coral-xyz/anchor';
|
|
4
4
|
import BN__default from 'bn.js';
|
|
5
5
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
6
|
-
import {
|
|
6
|
+
import { PublicKey, Connection } from '@solana/web3.js';
|
|
7
7
|
|
|
8
8
|
type PositionData = Awaited<ReturnType<Program<Vaults>["account"]["position"]["fetch"]>>;
|
|
9
9
|
type VaultState = Awaited<ReturnType<Program<Vaults>["account"]["vaultState"]["fetch"]>>;
|
package/dist/borrow/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { V as Vaults, L as LiquidateParams } from '../shared/lend.
|
|
2
|
-
export { C as ConnectionParams, I as InitPositionIxParams,
|
|
1
|
+
import { V as Vaults, L as LiquidateParams } from '../shared/lend.BT41yQVJ.js';
|
|
2
|
+
export { C as ConnectionParams, I as InitPositionIxParams, a as LiquidateContextParams, O as OperateContextParams, b as OperateParams, g as getInitPositionContext, c as getInitPositionIx, d as getLiquidateContext, e as getLiquidateIx, f as getOperateContext, h as getOperateIx } from '../shared/lend.BT41yQVJ.js';
|
|
3
3
|
import { Program } from '@coral-xyz/anchor';
|
|
4
4
|
import BN__default from 'bn.js';
|
|
5
5
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
6
|
-
import {
|
|
6
|
+
import { PublicKey, Connection } from '@solana/web3.js';
|
|
7
7
|
|
|
8
8
|
type PositionData = Awaited<ReturnType<Program<Vaults>["account"]["position"]["fetch"]>>;
|
|
9
9
|
type VaultState = Awaited<ReturnType<Program<Vaults>["account"]["vaultState"]["fetch"]>>;
|
package/dist/borrow/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
export { I as INIT_TICK,
|
|
1
|
+
import { g as getVaultsProgram, a as getLiquidateIx } from '../shared/lend.CTcB5yyK.mjs';
|
|
2
|
+
export { I as INIT_TICK, M as MAX_REPAY_AMOUNT, b as MAX_TICK, c as MAX_WITHDRAW_AMOUNT, d as MIN_I128, e as MIN_TICK, T as TICKS_PER_TICK_HAS_DEBT, f as TICK_HAS_DEBT_ARRAY_SIZE, h as TICK_HAS_DEBT_CHILDREN_SIZE, i as TICK_HAS_DEBT_CHILDREN_SIZE_IN_BITS, j as TOTAL_INDICES_NEEDED, Z as ZERO_TICK_SCALED_RATIO, k as findNextTickWithDebt, l as getAccountOwner, m as getCurrentPosition, n as getCurrentPositionState, o as getFinalPosition, p as getFirstTickForIndex, q as getInitPositionContext, r as getInitPositionIx, s as getLiquidateContext, t as getLiquidityProgramId, u as getOperateContext, v as getOperateIx, w as getRatioAtTick, x as getTickAtRatio, y as getTickIndices, z as loadRelevantBranches, A as loadRelevantBranchesForLiquidate, B as loadRelevantTicksHasDebtArrays, C as loadRelevantTicksHasDebtArraysLiquidate, D as readOraclePrice, E as readTickHasDebtArray } from '../shared/lend.CTcB5yyK.mjs';
|
|
3
3
|
import { PublicKey, TransactionMessage, ComputeBudgetProgram, VersionedTransaction } from '@solana/web3.js';
|
|
4
4
|
import BN from 'bn.js';
|
|
5
|
-
import { g as getVaultAdmin } from '../shared/lend.
|
|
5
|
+
import { g as getVaultAdmin } from '../shared/lend.ByiEG4eI.mjs';
|
|
6
6
|
import '@coral-xyz/anchor';
|
|
7
7
|
import '@solana/spl-token';
|
|
8
|
-
import '../shared/lend.
|
|
8
|
+
import '../shared/lend.C3XdrR6R.mjs';
|
|
9
9
|
|
|
10
10
|
const simulateLiquidate = async (params) => {
|
|
11
11
|
const { connection, signer } = params;
|