solana-program-template
solana-program-template copied to clipboard
The best Solana Program Template (No Anchor!)
The Best Solana Program Template
Includes Shank/Solita SDK generation, Amman support, scripts, .github configuration, and more!
Environment Setup
- Install Rust from https://rustup.rs/
- Install Solana from https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool
- Run
yarn install
to install dependencies
Replace default values
$ yarn rename -n cool_program_name -i NewProgramKeypair111111111111111111111111111
Values that will be replaced:
-
my_program_name
(andmy-program-name
) -
MyProgram1111111111111111111111111111111111
Build the rust program alone
$ yarn build:rust
Generate the JS SDK and rebuild IDL only (using shank and solita)
$ yarn solita
Build the JS SDK only (must be generated first)
$ yarn build:sdk
Build the program and generate/build the IDL/SDK/docs
$ yarn build
Start Amman and run the test script
Run the following command in a separate shell
$ amman start
Then, run the Amman script
$ yarn amman