@ignitionfi/spl-stake-pool 1.1.18 → 1.1.19
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 +2 -1
- 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 +2 -1
- 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 -1
- package/package.json +1 -1
- package/src/instructions.ts +4 -2
package/dist/instructions.d.ts
CHANGED
|
@@ -287,10 +287,10 @@ export declare class StakePoolInstruction {
|
|
|
287
287
|
programSigner: PublicKey;
|
|
288
288
|
tokenProgramId: PublicKey;
|
|
289
289
|
programId: PublicKey;
|
|
290
|
-
payer?: PublicKey;
|
|
291
290
|
userWallet: PublicKey;
|
|
292
291
|
lamportsIn: number;
|
|
293
292
|
minimumPoolTokensOut: number;
|
|
293
|
+
payer?: PublicKey;
|
|
294
294
|
}): TransactionInstruction;
|
|
295
295
|
/**
|
|
296
296
|
* Creates a transaction instruction to withdraw active stake from a stake pool.
|
package/package.json
CHANGED
package/src/instructions.ts
CHANGED
|
@@ -964,10 +964,10 @@ export class StakePoolInstruction {
|
|
|
964
964
|
programSigner: PublicKey
|
|
965
965
|
tokenProgramId: PublicKey
|
|
966
966
|
programId: PublicKey
|
|
967
|
-
payer?: PublicKey
|
|
968
967
|
userWallet: PublicKey
|
|
969
968
|
lamportsIn: number
|
|
970
969
|
minimumPoolTokensOut: number
|
|
970
|
+
payer?: PublicKey
|
|
971
971
|
}): TransactionInstruction {
|
|
972
972
|
const type = STAKE_POOL_INSTRUCTION_LAYOUTS.DepositWsolWithSession
|
|
973
973
|
const data = encodeData(type, {
|
|
@@ -993,7 +993,6 @@ export class StakePoolInstruction {
|
|
|
993
993
|
{ pubkey: params.wsolTransientAccount, isSigner: false, isWritable: true },
|
|
994
994
|
{ pubkey: params.programSigner, isSigner: false, isWritable: true },
|
|
995
995
|
{ pubkey: params.payer ?? params.fundingAccount, isSigner: true, isWritable: true },
|
|
996
|
-
{ pubkey: ASSOCIATED_TOKEN_PROGRAM_ID, isSigner: false, isWritable: false },
|
|
997
996
|
{ pubkey: params.userWallet, isSigner: false, isWritable: false },
|
|
998
997
|
]
|
|
999
998
|
|
|
@@ -1005,6 +1004,9 @@ export class StakePoolInstruction {
|
|
|
1005
1004
|
})
|
|
1006
1005
|
}
|
|
1007
1006
|
|
|
1007
|
+
// Associated Token Program must be last - only needed in transaction for CPI routing
|
|
1008
|
+
keys.push({ pubkey: ASSOCIATED_TOKEN_PROGRAM_ID, isSigner: false, isWritable: false })
|
|
1009
|
+
|
|
1008
1010
|
return new TransactionInstruction({
|
|
1009
1011
|
programId: params.programId,
|
|
1010
1012
|
keys,
|