@0dotxyz/p0-ts-sdk 2.2.0-alpha.1 → 2.2.0-alpha.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 +619 -769
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +388 -497
- package/dist/index.d.ts +388 -497
- package/dist/index.js +619 -769
- package/dist/index.js.map +1 -1
- package/dist/vendor.cjs +6 -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 +6 -2
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
package/dist/vendor.cjs
CHANGED
|
@@ -693,6 +693,7 @@ var SinglePoolInstruction = {
|
|
|
693
693
|
},
|
|
694
694
|
depositStake: async (pool, userStakeAccount, userTokenAccount, userLamportAccount) => {
|
|
695
695
|
const stake = findPoolStakeAddress(pool);
|
|
696
|
+
const onRamp = findPoolOnRampAddress(pool);
|
|
696
697
|
const mint = findPoolMintAddress(pool);
|
|
697
698
|
const stakeAuthority = findPoolStakeAuthorityAddress(pool);
|
|
698
699
|
const mintAuthority = findPoolMintAuthorityAddress(pool);
|
|
@@ -701,6 +702,7 @@ var SinglePoolInstruction = {
|
|
|
701
702
|
[
|
|
702
703
|
{ pubkey: pool, isSigner: false, isWritable: false },
|
|
703
704
|
{ pubkey: stake, isSigner: false, isWritable: true },
|
|
705
|
+
{ pubkey: onRamp, isSigner: false, isWritable: false },
|
|
704
706
|
{ pubkey: mint, isSigner: false, isWritable: true },
|
|
705
707
|
{ pubkey: stakeAuthority, isSigner: false, isWritable: false },
|
|
706
708
|
{ pubkey: mintAuthority, isSigner: false, isWritable: false },
|
|
@@ -717,6 +719,7 @@ var SinglePoolInstruction = {
|
|
|
717
719
|
},
|
|
718
720
|
withdrawStake: async (pool, userStakeAccount, userStakeAuthority, userTokenAccount, tokenAmount) => {
|
|
719
721
|
const stake = findPoolStakeAddress(pool);
|
|
722
|
+
const onRamp = findPoolOnRampAddress(pool);
|
|
720
723
|
const mint = findPoolMintAddress(pool);
|
|
721
724
|
const stakeAuthority = findPoolStakeAuthorityAddress(pool);
|
|
722
725
|
const mintAuthority = findPoolMintAuthorityAddress(pool);
|
|
@@ -731,6 +734,7 @@ var SinglePoolInstruction = {
|
|
|
731
734
|
[
|
|
732
735
|
{ pubkey: pool, isSigner: false, isWritable: false },
|
|
733
736
|
{ pubkey: stake, isSigner: false, isWritable: true },
|
|
737
|
+
{ pubkey: onRamp, isSigner: false, isWritable: false },
|
|
734
738
|
{ pubkey: mint, isSigner: false, isWritable: true },
|
|
735
739
|
{ pubkey: stakeAuthority, isSigner: false, isWritable: false },
|
|
736
740
|
{ pubkey: mintAuthority, isSigner: false, isWritable: false },
|
|
@@ -28865,7 +28869,7 @@ var SEED_RATE_MODEL = "rate_model";
|
|
|
28865
28869
|
var SEED_USER_SUPPLY_POSITION = "user_supply_position";
|
|
28866
28870
|
var SEED_USER_CLAIM = "user_claim";
|
|
28867
28871
|
var SEED_LENDING_REWARDS_RATE_MODEL = "lending_rewards_rate_model";
|
|
28868
|
-
function getAllDerivedJupLendAccounts(mint) {
|
|
28872
|
+
function getAllDerivedJupLendAccounts(mint, tokenProgram) {
|
|
28869
28873
|
const [fTokenMint] = deriveJupLendFTokenMint(mint);
|
|
28870
28874
|
const [lending] = deriveJupLendLending(mint, fTokenMint);
|
|
28871
28875
|
const [liquidity] = deriveJupLendLiquidity();
|
|
@@ -28875,7 +28879,7 @@ function getAllDerivedJupLendAccounts(mint) {
|
|
|
28875
28879
|
supplyTokenReservesLiquidity: deriveJupLendTokenReserve(mint)[0],
|
|
28876
28880
|
lendingSupplyPositionOnLiquidity: deriveJupLendLiquiditySupplyPositionPda(mint, lending)[0],
|
|
28877
28881
|
rateModel: deriveJupLendRateModel(mint)[0],
|
|
28878
|
-
vault: deriveJupLendLiquidityVaultAta(mint, liquidity),
|
|
28882
|
+
vault: deriveJupLendLiquidityVaultAta(mint, liquidity, tokenProgram),
|
|
28879
28883
|
liquidity,
|
|
28880
28884
|
rewardsRateModel: deriveJupLendLendingRewardsRateModel(mint)[0]
|
|
28881
28885
|
};
|