Skip to content

Firstset/stake-pool-fogo

 
 

Repository files navigation

Fogo stake-pool program

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.

Audit

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.

Development

Program

cd program
cargo build-sbf
solana program deploy -u $RPC_URL --program-id $PROGRAM_ID ../target/deploy/spl_stake_pool.so

JS SDK

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",

CLI

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

About

The SPL Stake Pool program and its clients

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 77.4%
  • Python 10.7%
  • TypeScript 9.5%
  • JavaScript 1.5%
  • Shell 0.9%