codec
Pure SPL Stake Pool mechanics: decoders, arithmetic, PDAs and instruction encoders.
Variables
Section titled “Variables”- ATA_PROGRAM
- COMPUTE_BUDGET_PROGRAM
- POOL_MINIMUM_ACTIVE_STAKE
- STAKE_ACCOUNT_SPACE
- STAKE_POOL_PROGRAM
- STAKE_PROGRAM
- SYSTEM_PROGRAM
- SYSVAR_CLOCK
- SYSVAR_STAKE_HISTORY
- TOKEN_PROGRAM
Functions
Section titled “Functions”- addressToBytes
- applyFee
- bytesToAddress
- decodeStakeAccount
- decodeStakePool
- decodeValidatorList
- feePercent
- findAta
- findUnstakeAccount
- findValidatorStakeAccount
- findWithdrawAuthority
- ixCreateAccountWithSeed
- ixCreateAtaIdempotent
- ixDepositSol
- ixSetComputeUnitLimit
- ixSetComputeUnitPrice
- ixStakeDeactivate
- ixStakeWithdraw
- ixTransferWithSeed
- ixWithdrawSol
- ixWithdrawStake
- lamportsForPoolTokens
- minimumStakeLamports
- poolRate
- poolTokensForLamports
- quoteDepositSol
- quoteWithdrawSol
- quoteWithdrawStake
- selectWithdrawSource
- stakeActivation
- unstakeSeed