/anchor-stake

Stake program implemented in Anchor

Primary LanguageRust

Anchor Stake Program

  • This codebase is evolved from this Stake program developed by Serum with some changes:
    • Upgrade Anchor to latest version
    • Replace to-be-deprecated syntax such as #[state]
    • Optimize some function invocation to avoid stack frame limit
  • See this doc to learn more on the architecture of this program

Build, Deploy and Test

Run the test validator:

$ solana-test-validator -r

Run the test:

$ anchor test --skip-local-validator