Validate the development environment for Odra smart contract development. Use when the user says "check env", "check setup", "check prerequisites", "verify environment", or "check-env".
Validates that all prerequisites for Odra development are installed.
Run these checks and collect results:
rustc --version
Compare against the version in rust-toolchain file. If the required nightly is not installed:
rustup toolchain install <version>rustup target list --installed | grep wasm32-unknown-unknown
If missing:
rustup target add wasm32-unknown-unknowncargo odra --version
If missing:
cargo install cargo-odra --lockedwasm-opt --version
If missing:
brew install binaryenwasm-strip --version
If missing:
brew install wabtsudo apt install wabtdocker --version
If missing, note it is optional — only needed for local NCTL node testing.
Present a summary table:
| Prerequisite | Status | Action needed |
|--------------------------|--------|-----------------------|
| Rust nightly (YYYY-MM-DD)| OK/MISSING | install command |
| wasm32-unknown-unknown | OK/MISSING | install command |
| cargo-odra | OK/MISSING | install command |
| wasm-opt (binaryen) | OK/MISSING | install command |
| wasm-strip (wabt) | OK/MISSING | install command |
| Docker (optional) | OK/MISSING | install link |
If everything is OK, report: "Environment is ready for Odra development."
If items are missing, list the install commands and explain what each tool is for: