Development Environment Setup
How to set up a local development environment for Depredict.
Prerequisites
- Node.js and Yarn
- Anchor CLI
- Solana CLI
Localnet
# From repo root
anchor build
# Run tests sequentially until completion
anchor run test-runner-continue
# (Optional) deploy to localnet
anchor deploySDK build:
cd sdk
yarn install
yarn buildDocs site:
cd depredict-docs
yarn install
yarn devIDs and Keys
tests/keys/contains localnet testing keypairstarget/idl/depredict.jsonprovides the IDL used by the SDK- Use
sdk/src/types/depredict-devnet.jsonfor devnet
Tips
- Run individual tests with
anchor run <testname>if needed - Use
tests/setup-localnet.shfor local validator orchestration - For Switchboard and MPL Core, use the provided
.soartifacts intests/
