@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.
- package/dist/index.browser.cjs.js +2 -1
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.browser.esm.js +3 -2
- package/dist/index.browser.esm.js.map +1 -1
- package/dist/index.cjs.js +2 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +2 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/instructions.d.ts +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/instructions.ts +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TOKEN_PROGRAM_ID,
|
|
1
|
+
import { TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, createAssociatedTokenAccountIdempotentInstruction, NATIVE_MINT, getAccount, createApproveInstruction } from '@solana/spl-token';
|
|
2
2
|
import { PublicKey, LAMPORTS_PER_SOL, StakeProgram, Keypair, SystemProgram, SYSVAR_RENT_PUBKEY, SYSVAR_CLOCK_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY, STAKE_CONFIG_ID, TransactionInstruction, StakeAuthorizationLayout } from '@solana/web3.js';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
4
|
import { Buffer as Buffer$1 } from 'node:buffer';
|
|
@@ -1447,7 +1447,7 @@ class StakePoolInstruction {
|
|
|
1447
1447
|
{ pubkey: params.wsolTransientAccount, isSigner: false, isWritable: true },
|
|
1448
1448
|
{ pubkey: params.programSigner, isSigner: false, isWritable: true },
|
|
1449
1449
|
{ pubkey: (_a = params.payer) !== null && _a !== void 0 ? _a : params.fundingAccount, isSigner: true, isWritable: true },
|
|
1450
|
-
{ pubkey:
|
|
1450
|
+
{ pubkey: params.userWallet, isSigner: false, isWritable: false },
|
|
1451
1451
|
];
|
|
1452
1452
|
if (params.depositAuthority) {
|
|
1453
1453
|
keys.push({
|
|
@@ -1865,6 +1865,7 @@ async function depositWsolWithSession(connection, stakePoolAddress, signerOrSess
|
|
|
1865
1865
|
tokenProgramId: stakePool.tokenProgramId,
|
|
1866
1866
|
programSigner,
|
|
1867
1867
|
payer,
|
|
1868
|
+
userWallet: userPubkey,
|
|
1868
1869
|
}));
|
|
1869
1870
|
return {
|
|
1870
1871
|
instructions,
|