Davirain 17afe2e7a4 add rust workspace and update crates version (#41) 2 年之前
..
src 17afe2e7a4 add rust workspace and update crates version (#41) 2 年之前
tests 540c9af3e2 counter: add native program example 3 年之前
ts 540c9af3e2 counter: add native program example 3 年之前
Cargo.toml 17afe2e7a4 add rust workspace and update crates version (#41) 2 年之前
README.md 540c9af3e2 counter: add native program example 3 年之前
jest.config.js 540c9af3e2 counter: add native program example 3 年之前
package.json 540c9af3e2 counter: add native program example 3 年之前

README.md

Counter: Solana Native

This example program is written in Solana using only the Solana toolsuite.

Setup

  1. Build the program with cargo build-bpf
  2. Run tests + local validator with yarn test

Debugging

  1. Start test validator with yarn start-validator
  2. Start listening to program logs with solana config set -ul && solana logs
  3. Run tests with yarn run-tests