@0dotxyz/p0-ts-sdk 2.1.2 → 2.1.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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/vendor.cjs +2 -2
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.d.cts +1 -1
- package/dist/vendor.d.ts +1 -1
- package/dist/vendor.js +2 -2
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
package/dist/vendor.d.cts
CHANGED
|
@@ -23271,7 +23271,7 @@ declare const SEED_RATE_MODEL = "rate_model";
|
|
|
23271
23271
|
declare const SEED_USER_SUPPLY_POSITION = "user_supply_position";
|
|
23272
23272
|
declare const SEED_USER_CLAIM = "user_claim";
|
|
23273
23273
|
declare const SEED_LENDING_REWARDS_RATE_MODEL = "lending_rewards_rate_model";
|
|
23274
|
-
declare function getAllDerivedJupLendAccounts(mint: PublicKey): {
|
|
23274
|
+
declare function getAllDerivedJupLendAccounts(mint: PublicKey, tokenProgram?: PublicKey): {
|
|
23275
23275
|
fTokenMint: PublicKey;
|
|
23276
23276
|
lendingAdmin: PublicKey;
|
|
23277
23277
|
supplyTokenReservesLiquidity: PublicKey;
|
package/dist/vendor.d.ts
CHANGED
|
@@ -23271,7 +23271,7 @@ declare const SEED_RATE_MODEL = "rate_model";
|
|
|
23271
23271
|
declare const SEED_USER_SUPPLY_POSITION = "user_supply_position";
|
|
23272
23272
|
declare const SEED_USER_CLAIM = "user_claim";
|
|
23273
23273
|
declare const SEED_LENDING_REWARDS_RATE_MODEL = "lending_rewards_rate_model";
|
|
23274
|
-
declare function getAllDerivedJupLendAccounts(mint: PublicKey): {
|
|
23274
|
+
declare function getAllDerivedJupLendAccounts(mint: PublicKey, tokenProgram?: PublicKey): {
|
|
23275
23275
|
fTokenMint: PublicKey;
|
|
23276
23276
|
lendingAdmin: PublicKey;
|
|
23277
23277
|
supplyTokenReservesLiquidity: PublicKey;
|
package/dist/vendor.js
CHANGED
|
@@ -28816,7 +28816,7 @@ var SEED_RATE_MODEL = "rate_model";
|
|
|
28816
28816
|
var SEED_USER_SUPPLY_POSITION = "user_supply_position";
|
|
28817
28817
|
var SEED_USER_CLAIM = "user_claim";
|
|
28818
28818
|
var SEED_LENDING_REWARDS_RATE_MODEL = "lending_rewards_rate_model";
|
|
28819
|
-
function getAllDerivedJupLendAccounts(mint) {
|
|
28819
|
+
function getAllDerivedJupLendAccounts(mint, tokenProgram) {
|
|
28820
28820
|
const [fTokenMint] = deriveJupLendFTokenMint(mint);
|
|
28821
28821
|
const [lending] = deriveJupLendLending(mint, fTokenMint);
|
|
28822
28822
|
const [liquidity] = deriveJupLendLiquidity();
|
|
@@ -28826,7 +28826,7 @@ function getAllDerivedJupLendAccounts(mint) {
|
|
|
28826
28826
|
supplyTokenReservesLiquidity: deriveJupLendTokenReserve(mint)[0],
|
|
28827
28827
|
lendingSupplyPositionOnLiquidity: deriveJupLendLiquiditySupplyPositionPda(mint, lending)[0],
|
|
28828
28828
|
rateModel: deriveJupLendRateModel(mint)[0],
|
|
28829
|
-
vault: deriveJupLendLiquidityVaultAta(mint, liquidity),
|
|
28829
|
+
vault: deriveJupLendLiquidityVaultAta(mint, liquidity, tokenProgram),
|
|
28830
28830
|
liquidity,
|
|
28831
28831
|
rewardsRateModel: deriveJupLendLendingRewardsRateModel(mint)[0]
|
|
28832
28832
|
};
|