@jup-ag/lend 0.1.10-beta.4 → 0.1.10
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 +3 -3
- package/dist/earn/index.mjs +1 -1
- package/dist/index.mjs +5 -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 +2 -2
- package/dist/shared/{lend.DfKhG_eQ.mjs → lend.B03stRz0.mjs} +4 -4
- package/dist/shared/{lend.DovweBeJ.mjs → lend.BQkL9C4i.mjs} +1 -1
- package/dist/shared/{lend.DTV5bfSW.d.mts → lend.BT41yQVJ.d.mts} +2 -2
- package/dist/shared/{lend.DTV5bfSW.d.ts → lend.BT41yQVJ.d.ts} +2 -2
- package/dist/shared/{lend.BsvjWilv.mjs → lend.ByiEG4eI.mjs} +1 -1
- package/dist/shared/{lend.Bpqe1Iia.mjs → lend.CeAr0e-D.mjs} +1 -1
- package/package.json +11 -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,8 +1,8 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
export { I as INIT_TICK,
|
|
1
|
+
import { g as getVaultsProgram, a as getLiquidateIx } from '../shared/lend.B03stRz0.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.B03stRz0.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
8
|
import '../shared/lend.BhQGaP3o.mjs';
|
package/dist/earn/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { PublicKey, SYSVAR_INSTRUCTIONS_PUBKEY, SystemProgram } from '@solana/we
|
|
|
2
2
|
import { getAssociatedTokenAddress, getAccount, createAssociatedTokenAccountInstruction, ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync } from '@solana/spl-token';
|
|
3
3
|
import { Program } from '@coral-xyz/anchor';
|
|
4
4
|
import BN$1, { BN } from 'bn.js';
|
|
5
|
-
import { g as getLendingToken,
|
|
5
|
+
import { g as getLendingToken, a as getLending, b as getLendingRewardsRateModel, c as getClaimAccount, d as getLendingAdmin } from '../shared/lend.BQkL9C4i.mjs';
|
|
6
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';
|
|
7
7
|
|
|
8
8
|
const address = "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9";
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { l as liquidityPda } from './shared/lend.BhQGaP3o.mjs';
|
|
3
|
-
export { b as borrowPda } from './shared/lend.BsvjWilv.mjs';
|
|
1
|
+
export { b as borrowPda } from './shared/lend.ByiEG4eI.mjs';
|
|
4
2
|
export { f as flashloanPda } from './shared/lend.BXNM1zms.mjs';
|
|
5
|
-
export {
|
|
3
|
+
export { l as lendingPda, e as lendingRewardRateModelPda } from './shared/lend.BQkL9C4i.mjs';
|
|
4
|
+
export { l as liquidityPda } from './shared/lend.BhQGaP3o.mjs';
|
|
5
|
+
export { m as merkleDistributorPda } from './shared/lend.CeAr0e-D.mjs';
|
|
6
6
|
import '@solana/web3.js';
|
|
7
7
|
import '@solana/spl-token';
|
|
8
8
|
import 'bn.js';
|
|
9
9
|
|
|
10
|
-
const version = "0.1.10
|
|
10
|
+
const version = "0.1.10";
|
|
11
11
|
|
|
12
12
|
export { version };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SystemProgram } from '@solana/web3.js';
|
|
2
|
-
import {
|
|
2
|
+
import { a as merkleDistributor, g as getMerkleAdmin, b as getClaimStatus, c as getRewardsDistributor } from '../shared/lend.CeAr0e-D.mjs';
|
|
3
3
|
import { Program } from '@coral-xyz/anchor';
|
|
4
4
|
import { ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync } from '@solana/spl-token';
|
|
5
5
|
import 'bn.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey } from '@solana/web3.js';
|
|
3
|
-
import { O as OperateContextParams } from '../shared/lend.
|
|
3
|
+
import { O as OperateContextParams } from '../shared/lend.BT41yQVJ.mjs';
|
|
4
4
|
import 'bn.js';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
2
|
import { PublicKey } from '@solana/web3.js';
|
|
3
|
-
import { O as OperateContextParams } from '../shared/lend.
|
|
3
|
+
import { O as OperateContextParams } from '../shared/lend.BT41yQVJ.js';
|
|
4
4
|
import 'bn.js';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
|
package/dist/refinance/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as getOperateIx, F as vaultsIdl } from '../shared/lend.B03stRz0.mjs';
|
|
2
2
|
import { PublicKey } from '@solana/web3.js';
|
|
3
3
|
import { Program } from '@coral-xyz/anchor';
|
|
4
4
|
import 'bn.js';
|
|
5
5
|
import '@solana/spl-token';
|
|
6
|
-
import '../shared/lend.
|
|
6
|
+
import '../shared/lend.ByiEG4eI.mjs';
|
|
7
7
|
import '../shared/lend.BhQGaP3o.mjs';
|
|
8
8
|
|
|
9
9
|
const address = "jup8QcdtqecBGw1iXHW3hQAsHQbTgEqbLbNMvvULmeK";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PublicKey, Transaction,
|
|
1
|
+
import { PublicKey, Transaction, SYSVAR_RENT_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SystemProgram } from '@solana/web3.js';
|
|
2
2
|
import BN from 'bn.js';
|
|
3
3
|
import { Program, AnchorProvider } from '@coral-xyz/anchor';
|
|
4
|
-
import {
|
|
5
|
-
import { a as getTickHasDebt, c as getPosition, d as getTick, e as getTickIdLiquidation, f as getVaultConfig, h as getBranch, i as getVaultState, j as
|
|
4
|
+
import { ASSOCIATED_TOKEN_PROGRAM_ID, TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, NATIVE_MINT } from '@solana/spl-token';
|
|
5
|
+
import { a as getTickHasDebt, c as getPosition, d as getTick, e as getTickIdLiquidation, f as getVaultConfig, h as getBranch, i as getVaultState, j as getPositionMetadata, k as getPositionTokenAccount, l as getPositionMint, g as getVaultAdmin, m as getVaultMetadata, n as getLiquidity, o as getClaimAccount, p as getRateModel, q as getUserBorrowPosition, r as getUserSupplyPosition, s as getLiquidityReserve } from './lend.ByiEG4eI.mjs';
|
|
6
6
|
import { e as getReserve } from './lend.BhQGaP3o.mjs';
|
|
7
7
|
|
|
8
8
|
const address$1 = "jupnw4B6Eqs7ft6rxpzYLJZYSnrpRgPcr589n5Kv4oc";
|
|
@@ -7932,4 +7932,4 @@ async function getRemainingAccountsLiquidate(vaultId, vaultState, vaultConfig, o
|
|
|
7932
7932
|
};
|
|
7933
7933
|
}
|
|
7934
7934
|
|
|
7935
|
-
export {
|
|
7935
|
+
export { loadRelevantBranchesForLiquidate as A, loadRelevantTicksHasDebtArrays as B, loadRelevantTicksHasDebtArraysLiquidate as C, readOraclePrice as D, readTickHasDebtArray as E, vaultsIdl as F, INIT_TICK as I, MAX_REPAY_AMOUNT as M, TICKS_PER_TICK_HAS_DEBT as T, ZERO_TICK_SCALED_RATIO$1 as Z, getLiquidateIx as a, MAX_TICK$1 as b, MAX_WITHDRAW_AMOUNT as c, MIN_I128 as d, MIN_TICK$1 as e, TICK_HAS_DEBT_ARRAY_SIZE as f, getVaultsProgram as g, TICK_HAS_DEBT_CHILDREN_SIZE as h, TICK_HAS_DEBT_CHILDREN_SIZE_IN_BITS as i, TOTAL_INDICES_NEEDED as j, findNextTickWithDebt as k, getAccountOwner as l, getCurrentPosition as m, getCurrentPositionState as n, getFinalPosition as o, getFirstTickForIndex as p, getInitPositionContext as q, getInitPositionIx as r, getLiquidateContext as s, getLiquidityProgramId as t, getOperateContext as u, getOperateIx as v, getRatioAtTick as w, getTickAtRatio as x, getTickIndices as y, loadRelevantBranches as z };
|
|
@@ -65,4 +65,4 @@ const lendingRewardRateModel = {
|
|
|
65
65
|
getLendingRewardsRateModel: getLendingRewardsRateModel
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export {
|
|
68
|
+
export { getLending as a, getLendingRewardsRateModel as b, getClaimAccount as c, getLendingAdmin as d, lendingRewardRateModel as e, getLendingToken as g, lending as l };
|
|
@@ -4242,5 +4242,5 @@ declare const getLiquidateIx: ({ vaultId, debtAmount, colPerUnitDebt, absorb, si
|
|
|
4242
4242
|
addressLookupTableAccounts: _solana_web3_js.AddressLookupTableAccount[];
|
|
4243
4243
|
}>;
|
|
4244
4244
|
|
|
4245
|
-
export { getInitPositionIx as
|
|
4246
|
-
export type { ConnectionParams as C, InitPositionIxParams as I, LiquidateParams as L, OperateContextParams as O, Vaults as V,
|
|
4245
|
+
export { getInitPositionIx as c, getLiquidateContext as d, getLiquidateIx as e, getOperateContext as f, getInitPositionContext as g, getOperateIx as h };
|
|
4246
|
+
export type { ConnectionParams as C, InitPositionIxParams as I, LiquidateParams as L, OperateContextParams as O, Vaults as V, LiquidateContextParams as a, OperateParams as b };
|
|
@@ -4242,5 +4242,5 @@ declare const getLiquidateIx: ({ vaultId, debtAmount, colPerUnitDebt, absorb, si
|
|
|
4242
4242
|
addressLookupTableAccounts: _solana_web3_js.AddressLookupTableAccount[];
|
|
4243
4243
|
}>;
|
|
4244
4244
|
|
|
4245
|
-
export { getInitPositionIx as
|
|
4246
|
-
export type { ConnectionParams as C, InitPositionIxParams as I, LiquidateParams as L, OperateContextParams as O, Vaults as V,
|
|
4245
|
+
export { getInitPositionIx as c, getLiquidateContext as d, getLiquidateIx as e, getOperateContext as f, getInitPositionContext as g, getOperateIx as h };
|
|
4246
|
+
export type { ConnectionParams as C, InitPositionIxParams as I, LiquidateParams as L, OperateContextParams as O, Vaults as V, LiquidateContextParams as a, OperateParams as b };
|
|
@@ -202,4 +202,4 @@ const borrow = {
|
|
|
202
202
|
getVaultsProgramId: getVaultsProgramId
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
export { getTickHasDebt as a, borrow as b, getPosition as c, getTick as d, getTickIdLiquidation as e, getVaultConfig as f, getVaultAdmin as g, getBranch as h, getVaultState as i,
|
|
205
|
+
export { getTickHasDebt as a, borrow as b, getPosition as c, getTick as d, getTickIdLiquidation as e, getVaultConfig as f, getVaultAdmin as g, getBranch as h, getVaultState as i, getPositionMetadata as j, getPositionTokenAccount as k, getPositionMint as l, getVaultMetadata as m, getLiquidity as n, getClaimAccount as o, getRateModel as p, getUserBorrowPosition as q, getUserSupplyPosition as r, getLiquidityReserve as s };
|
|
@@ -1849,4 +1849,4 @@ const merkleDistributor = {
|
|
|
1849
1849
|
getRole: getRole
|
|
1850
1850
|
};
|
|
1851
1851
|
|
|
1852
|
-
export {
|
|
1852
|
+
export { merkleDistributor$1 as a, getClaimStatus as b, getRewardsDistributor as c, getMerkleAdmin as g, merkleDistributor as m };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jup-ag/lend",
|
|
3
|
-
"version": "0.1.10
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/bn.js": "^5.1.6",
|
|
43
|
-
"@types/node": "^22.
|
|
44
|
-
"@vitest/coverage-v8": "^3.
|
|
45
|
-
"automd": "^0.4.
|
|
43
|
+
"@types/node": "^22.20.0",
|
|
44
|
+
"@vitest/coverage-v8": "^3.2.6",
|
|
45
|
+
"automd": "^0.4.3",
|
|
46
46
|
"changelogen": "^0.6.1",
|
|
47
|
-
"eslint": "^9.
|
|
47
|
+
"eslint": "^9.39.4",
|
|
48
48
|
"eslint-config-unjs": "^0.4.2",
|
|
49
|
-
"prettier": "^3.
|
|
50
|
-
"typescript": "^5.
|
|
51
|
-
"unbuild": "^3.
|
|
49
|
+
"prettier": "^3.8.4",
|
|
50
|
+
"typescript": "^5.9.3",
|
|
51
|
+
"unbuild": "^3.6.1",
|
|
52
52
|
"vitest": "^3.0.9"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@coral-xyz/anchor": "^0.31.1",
|
|
56
56
|
"@solana/spl-token": "^0.4.13",
|
|
57
|
-
"@solana/web3.js": "^1.98.
|
|
58
|
-
"axios": "^1.
|
|
59
|
-
"bn.js": "^5.2.
|
|
57
|
+
"@solana/web3.js": "^1.98.4",
|
|
58
|
+
"axios": "^1.18.0",
|
|
59
|
+
"bn.js": "^5.2.3"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "unbuild",
|