@0dotxyz/p0-ts-sdk 2.2.0-alpha.0 → 2.2.0-alpha.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/index.cjs +615 -781
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +386 -508
- package/dist/index.d.ts +386 -508
- package/dist/index.js +615 -781
- 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
|
@@ -28840,7 +28840,7 @@ var SEED_RATE_MODEL = "rate_model";
|
|
|
28840
28840
|
var SEED_USER_SUPPLY_POSITION = "user_supply_position";
|
|
28841
28841
|
var SEED_USER_CLAIM = "user_claim";
|
|
28842
28842
|
var SEED_LENDING_REWARDS_RATE_MODEL = "lending_rewards_rate_model";
|
|
28843
|
-
function getAllDerivedJupLendAccounts(mint) {
|
|
28843
|
+
function getAllDerivedJupLendAccounts(mint, tokenProgram) {
|
|
28844
28844
|
const [fTokenMint] = deriveJupLendFTokenMint(mint);
|
|
28845
28845
|
const [lending] = deriveJupLendLending(mint, fTokenMint);
|
|
28846
28846
|
const [liquidity] = deriveJupLendLiquidity();
|
|
@@ -28850,7 +28850,7 @@ function getAllDerivedJupLendAccounts(mint) {
|
|
|
28850
28850
|
supplyTokenReservesLiquidity: deriveJupLendTokenReserve(mint)[0],
|
|
28851
28851
|
lendingSupplyPositionOnLiquidity: deriveJupLendLiquiditySupplyPositionPda(mint, lending)[0],
|
|
28852
28852
|
rateModel: deriveJupLendRateModel(mint)[0],
|
|
28853
|
-
vault: deriveJupLendLiquidityVaultAta(mint, liquidity),
|
|
28853
|
+
vault: deriveJupLendLiquidityVaultAta(mint, liquidity, tokenProgram),
|
|
28854
28854
|
liquidity,
|
|
28855
28855
|
rewardsRateModel: deriveJupLendLendingRewardsRateModel(mint)[0]
|
|
28856
28856
|
};
|