Each list item is linked to it's installation page.
- Rust
- NodeJS using NVM, version 14.0.0 or more.
- Solana CLI Toolsuite
- solana-test-validator
-
Install npm dependencies with
npm i
. -
Ensure you have the stable RUST toolchain with
rustup default stable
. BPF toolchain will be installed by cargo as a dependency of the project. -
The program can be build with
npm run build:program
. This will output the.so
shared object file and the program ids totarget/bpfel-unknown-unknown/release
folder.
-
Host based and
solana-test-validator
based testing can be triggered withnpm test
, this will spin upsolana-test-validator
itself. -
Host and
solana-test-validator
test can be done individually bynpm run test-host
andnpm run test-client
respectfully.
Deployment payer, target network, and the program id's of the deployment are subject to the configuration of your solana CLI.
solana config get
will display your current configuration.
Detailed steps to configure said CLI are provided by Solana here.
Once your Solana CLI config is set as desired, npm run deploy
will deploy all programs in this repository.