Skip to content

Latest commit

Β 

History

History
98 lines (73 loc) Β· 1.59 KB

File metadata and controls

98 lines (73 loc) Β· 1.59 KB

πŸš€ Quick Start - Localnet Development

Get up and running with Boring Vault on localnet in under 2 minutes!

Prerequisites

  • βœ… Node.js & Yarn installed
  • βœ… Rust & Anchor CLI installed
  • βœ… Solana CLI installed

One-Command Setup

./scripts/localnet-dev.sh

That's it! This single command will:

  1. βœ… Start localnet validator
  2. βœ… Build all programs
  3. βœ… Deploy to localnet
  4. βœ… Run tests

What You Get

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)

Next Steps

View Logs

solana logs

Deploy a Test Vault

yarn ts-node scripts/deploy.ts

Run Tests Manually

anchor test --skip-local-validator

Check Your Balance

solana balance

Stop When Done

./scripts/localnet-stop.sh

Daily Workflow

# Morning: Start fresh
./scripts/localnet-dev.sh

# During development: Quick redeploy
./scripts/localnet-deploy.sh

# Evening: Clean up
./scripts/localnet-stop.sh

Troubleshooting

Validator won't start?

pkill -9 solana-test-validator
./scripts/localnet-start.sh

Build fails?

anchor clean
anchor build

Need more details?

  • See scripts/README.md for full documentation
  • Run any script with --help flag

Happy coding! πŸŽ‰