- Install dependencies:
yarn install- (Optional) Set up environment variables:
cp sample.env .envThen edit .env and fill in your values.
- Build the project:
anchor build- Sync program IDs (if you encounter program ID mismatch errors):
anchor keys sync- Rust tests:
anchor testAll Rights Reserved
This code is proprietary and confidential. Unauthorized copying, modification, distribution, or use of this code, via any medium, is strictly prohibited without express written permission.
- To install new solana version
sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.15/install)"Where 2.0.15 is the version you want to install
solana --version solana-cli 2.0.15 (src:f8f3fe31; feat:607245837, client:Agave)