Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

stegaBOB/solana-program-template

Repository files navigation

Warning

This Repo is no longer maintained! For an up-to-date (and much more versatile) template, try https://github.com/solana-program/create-solana-program.

The Best Solana Program Template

Includes Shank/Solita SDK generation, Amman support, scripts, .github configuration, and more!

Environment Setup

  1. Install Rust from https://rustup.rs/
  2. Install Solana from https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool
  3. 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 (and my-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

About

The best Solana Program Template (No Anchor!)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published