Skip to content

Turbin3/pinocchio-stake-program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinocchio Stake

Pinocchio build of Solana’s Stake program with native wire compatibility.

What’s here

  • Native instruction set and data layout
  • Host (std) + SBF (no_std)

Build

Host/dev build:

cd program
cargo build

SBF build:

cargo-build-sbf --no-default-features --features sbf --manifest-path program/Cargo.toml
ls program/target/deploy/pinocchio_stake.so

Test

All tests:

cd program
cargo test --features e2e -- --nocapture

ProgramTest (local)

  • Build SBF: cargo-build-sbf --no-default-features --features sbf --manifest-path program/Cargo.toml
  • Pin bench: make -C program pt-pin
  • Native snapshot: make -C program pt-native

Bench marking

make -C program bench-csv then make -C program bench-diff BASE=program/benchmarks/prev.csv

Notes

  • ProgramTest prefers BPF and loads pinocchio_stake.so under the Stake program ID.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8

Languages