Skip to content

gzalz/solana-c-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Install Solana CLI.

sh -c "$(curl -sSfL https://release.anza.xyz/v3.0.2/install)"

Update the path in your Makefile to point to the platform tools sdk. Find your install path at ~/.local/share/solana/install/releases/ and replace {USER} and {RELEASE} below.

Example:

/Users/{USER}/.local/share/solana/install/releases/{RELEASE}/solana-release/bin/platform-tools-sdk/sbf/c/sbf.mk

Build

make

Test

Testing in C with criterion is supported but Rust's mollusk_svm is recommended. The sbf.mk test target has been overriden to run the mollusk tests in ./tests.

make && make test

Deploy

solana program deploy out/solana.so --program-id out/keypair.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published