@0dotxyz/p0-ts-sdk 2.2.0-alpha.2 → 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 +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/vendor.cjs +4 -0
- package/dist/vendor.cjs.map +1 -1
- package/dist/vendor.js +4 -0
- package/dist/vendor.js.map +1 -1
- package/package.json +1 -1
package/dist/vendor.js
CHANGED
|
@@ -668,6 +668,7 @@ var SinglePoolInstruction = {
|
|
|
668
668
|
},
|
|
669
669
|
depositStake: async (pool, userStakeAccount, userTokenAccount, userLamportAccount) => {
|
|
670
670
|
const stake = findPoolStakeAddress(pool);
|
|
671
|
+
const onRamp = findPoolOnRampAddress(pool);
|
|
671
672
|
const mint = findPoolMintAddress(pool);
|
|
672
673
|
const stakeAuthority = findPoolStakeAuthorityAddress(pool);
|
|
673
674
|
const mintAuthority = findPoolMintAuthorityAddress(pool);
|
|
@@ -676,6 +677,7 @@ var SinglePoolInstruction = {
|
|
|
676
677
|
[
|
|
677
678
|
{ pubkey: pool, isSigner: false, isWritable: false },
|
|
678
679
|
{ pubkey: stake, isSigner: false, isWritable: true },
|
|
680
|
+
{ pubkey: onRamp, isSigner: false, isWritable: false },
|
|
679
681
|
{ pubkey: mint, isSigner: false, isWritable: true },
|
|
680
682
|
{ pubkey: stakeAuthority, isSigner: false, isWritable: false },
|
|
681
683
|
{ pubkey: mintAuthority, isSigner: false, isWritable: false },
|
|
@@ -692,6 +694,7 @@ var SinglePoolInstruction = {
|
|
|
692
694
|
},
|
|
693
695
|
withdrawStake: async (pool, userStakeAccount, userStakeAuthority, userTokenAccount, tokenAmount) => {
|
|
694
696
|
const stake = findPoolStakeAddress(pool);
|
|
697
|
+
const onRamp = findPoolOnRampAddress(pool);
|
|
695
698
|
const mint = findPoolMintAddress(pool);
|
|
696
699
|
const stakeAuthority = findPoolStakeAuthorityAddress(pool);
|
|
697
700
|
const mintAuthority = findPoolMintAuthorityAddress(pool);
|
|
@@ -706,6 +709,7 @@ var SinglePoolInstruction = {
|
|
|
706
709
|
[
|
|
707
710
|
{ pubkey: pool, isSigner: false, isWritable: false },
|
|
708
711
|
{ pubkey: stake, isSigner: false, isWritable: true },
|
|
712
|
+
{ pubkey: onRamp, isSigner: false, isWritable: false },
|
|
709
713
|
{ pubkey: mint, isSigner: false, isWritable: true },
|
|
710
714
|
{ pubkey: stakeAuthority, isSigner: false, isWritable: false },
|
|
711
715
|
{ pubkey: mintAuthority, isSigner: false, isWritable: false },
|