Project Structure
Sunya runs on Linux, macOS, and Windows. It scans your contracts directory recursively. Here's how your project is typically organized:
Your project
your-project/
├── src/ ← Foundry: contracts go here
│ └── *.sol
├── contracts/ ← Or Hardhat/standard layout
│ └── *.sol
└── sunya.config.json ← Optional: set contractsDirKey files
contracts/orsrc/— Sunya finds all.solfiles recursively. Foundry usessrc/, others often usecontracts/.sunya.config.json— Optional. SetcontractsDirandoutputformat.
Run sunya install to set up Slither. Then sunya scan analyzes your contracts and reports vulnerabilities.