Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A repository for program development using pinocchio, mollusk for testing/benchmarking, and a Rust-based cli, with continuous integration via GH Actions.

License

Notifications You must be signed in to change notification settings

0x7EAB07/counter-pinocchio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinocchio Counter

Rust Pinocchio Mollusk Size Twitter

The Solana program is ~13.85kb, impressive size for what it does.

  • Same example in anchor would be ~190kb.
  • Same example in solana-program is ~100kb.

Features

  • pinocchio for program development.
  • mollusk for testing and benchmarking.
  • GH Action for building, testing and benchmarking.
  • cli rust-based cli using solana-client and solana-sdk.

How To

Build contract

$ cargo build-sbf

Deploy contract

$ solana program deploy -u d --program-id ./program-id.json \
  -k ./deployer.json \
  --upgrade-authority ./deployer.json \
  ./target/deploy/counter_pinocchio.so

Test

$ cargo test --features test-default

Benchmark

$ cargo bench --features bench-default

Attributions

Thanks @nagaprasadvr for his work on http://github.com/Nagaprasadvr/solana-pinocchio-starter

Benches

2025-07-03 05:05:34.478002 UTC

Solana CLI Version: solana-cli 2.1.14 (src:3ad46824; feat:3271415109, client:Agave)

Name CUs Delta
create_counter 3220 - new -
increase_by_1 1698 - new -
increase_by_100 1698 - new -
increase_by_large_number 1698 - new -

About

A repository for program development using pinocchio, mollusk for testing/benchmarking, and a Rust-based cli, with continuous integration via GH Actions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages