@ignitionfi/spl-stake-pool 1.1.16 → 1.1.17

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.
@@ -288,6 +288,7 @@ export declare class StakePoolInstruction {
288
288
  tokenProgramId: PublicKey;
289
289
  programId: PublicKey;
290
290
  payer?: PublicKey;
291
+ userWallet: PublicKey;
291
292
  lamportsIn: number;
292
293
  minimumPoolTokensOut: number;
293
294
  }): TransactionInstruction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignitionfi/spl-stake-pool",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "Ignition Stake Pool SDK for FOGO",
5
5
  "contributors": [
6
6
  "Anza Maintainers <maintainers@anza.xyz>",
package/src/index.ts CHANGED
@@ -369,6 +369,7 @@ export async function depositWsolWithSession(
369
369
  tokenProgramId: stakePool.tokenProgramId,
370
370
  programSigner,
371
371
  payer,
372
+ userWallet: userPubkey,
372
373
  }),
373
374
  )
374
375
  return {
@@ -1,5 +1,5 @@
1
1
  import * as BufferLayout from '@solana/buffer-layout'
2
- import { ASSOCIATED_TOKEN_PROGRAM_ID, TOKEN_PROGRAM_ID } from '@solana/spl-token'
2
+ import { TOKEN_PROGRAM_ID } from '@solana/spl-token'
3
3
  import {
4
4
  PublicKey,
5
5
  STAKE_CONFIG_ID,
@@ -965,6 +965,7 @@ export class StakePoolInstruction {
965
965
  tokenProgramId: PublicKey
966
966
  programId: PublicKey
967
967
  payer?: PublicKey
968
+ userWallet: PublicKey
968
969
  lamportsIn: number
969
970
  minimumPoolTokensOut: number
970
971
  }): TransactionInstruction {
@@ -992,7 +993,7 @@ export class StakePoolInstruction {
992
993
  { pubkey: params.wsolTransientAccount, isSigner: false, isWritable: true },
993
994
  { pubkey: params.programSigner, isSigner: false, isWritable: true },
994
995
  { pubkey: params.payer ?? params.fundingAccount, isSigner: true, isWritable: true },
995
- { pubkey: ASSOCIATED_TOKEN_PROGRAM_ID, isSigner: false, isWritable: false },
996
+ { pubkey: params.userWallet, isSigner: false, isWritable: false },
996
997
  ]
997
998
 
998
999
  if (params.depositAuthority) {