Quickstart
This page is the fastest path to understand and validate the repository.Prerequisites
- Node.js
18+ pnpm- Rust toolchain
- Solana CLI
- Anchor CLI for program deployment and local program work
Install dependencies
Start with offline validation
Run the complete offline suite first:Create your environment file
Validate runtime configuration
Before any live test, run:- RPC URLs
- local signer loading
- protocol owner/signer alignment
- derived vault PDA
- on-chain visibility of the configured program and vault
Recommended validation order
If your goal is to bring the whole vault up on Solana devnet first, follow:1. Protocol build-only checks
Validate that the protocol adapters can build real bundles:2. Direct protocol transaction
ValidateDrift without depending on the vault:
3. Vault bootstrap
Once the program is deployed and wallets are funded:4. Full rebalance path
After the vault exists on-chain:What not to do first
Do not start with a mainnet bootstrap unless these are already true:- the program ID points to a real executable program
- the operator wallets have SOL
VAULT_SHARE_MINT_KEYPAIR_PATHandVAULT_TREASURY_KEYPAIR_PATHare set- the protocol owner addresses match local signers