@0dotxyz/p0-ts-sdk 2.2.0-alpha.2 → 2.2.0-alpha.4

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/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 },