Get up and running with Boring Vault on localnet in under 2 minutes!
- β Node.js & Yarn installed
- β Rust & Anchor CLI installed
- β Solana CLI installed
./scripts/localnet-dev.shThat's it! This single command will:
- β Start localnet validator
- β Build all programs
- β Deploy to localnet
- β Run tests
After running the script, you'll have:
- π’ Local validator running on
http://localhost:8899 - π° 100 SOL in your wallet
- π¦ All 5 programs deployed:
- boring_vault_svm
- boring_onchain_queue
- layer_zero_share_mover
- endpoint (mock)
- state_assert
- β Programs initialized and ready to use
- π§ͺ Tests passing (if all went well)
solana logsyarn ts-node scripts/deploy.tsanchor test --skip-local-validatorsolana balance./scripts/localnet-stop.sh# Morning: Start fresh
./scripts/localnet-dev.sh
# During development: Quick redeploy
./scripts/localnet-deploy.sh
# Evening: Clean up
./scripts/localnet-stop.shValidator won't start?
pkill -9 solana-test-validator
./scripts/localnet-start.shBuild fails?
anchor clean
anchor buildNeed more details?
- See
scripts/README.mdfor full documentation - Run any script with
--helpflag
Happy coding! π