Hot reload Solana programs.
Install with cargo:
cargo install watchso --locked
Run in the directory of your project:
watchso
This will:
- Check whether the necessary tools are installed e.g solana-cli-tools.
- Start a Solana test validator if it's not already running.
- Update program id(s) if there is a mismatch between the keypair files and the source code.
- Build the program(s).
- Deploy the program(s).
- Hot reload on changes.