This repository contains a fork of the SPL Stake Pool program maintained by Firstset AG which adds support for the Fogo blockchain.
Full documentation of the SPL Stake Pool program is available at https://spl.solana.com/stake-pool
The command-line interface tool is available in the ./cli directory.
Javascript bindings are available in the ./js directory.
Python bindings are available in the ./py directory.
The repository README contains information about program audits.
An audit of the changes made by Firstset in this fork was conducted by Neodyme and is available here.
cd program
cargo build-sbf
solana program deploy -u $RPC_URL --program-id $PROGRAM_ID ../target/deploy/spl_stake_pool.so
cd clients/js-legacy
pnpm run build
For local development, you need to import it as a dependency like this: "@firstset/spl-stake-pool": "file:../fogo-stake-pool/clients/js-legacy",
On testnet, to test withdrawals and deposits:
cd clients/cli
cargo install --path . --locked
# deposit with session
spl-stake-pool --url https://testnet.fogo.io --program-id SPRe2ae9JQhySheYsSANX6M8tUZLt5bQonnBJ6Wu6Ud deposit-wsol-with-session 4yoj9HDiL2pujuh2ME5MJJ6roLseTAkFqLmA4SrG7Yi9 0.1
# withdraw with session
spl-stake-pool --url https://testnet.fogo.io --program-id SPRe2ae9JQhySheYsSANX6M8tUZLt5bQonnBJ6Wu6Ud withdraw-wsol-with-session 4yoj9HDiL2pujuh2ME5MJJ6roLseTAkFqLmA4SrG7Yi9 0.1