Example Workflow
Here's a complete workflow for scanning a Foundry project.
1. Install Sunya
Linux & macOS:
curl -sSL https://raw.githubusercontent.com/13x54n/sunya-v1/main/package/bin/install | shWindows (PowerShell):
irm https://raw.githubusercontent.com/13x54n/sunya-v1/main/package/bin/install.ps1 | iex2. Initialize Foundry project
forge init my-token
cd my-token3. Create config
Create sunya.config.json in the project root (Foundry uses ./src):
{
"contractsDir": "./src",
"output": { "format": "table" }
}4. Run scan
sunya scanSunya uses Slither with Foundry—it runs forge build to compile, then analyzes for vulnerabilities (reentrancy, unsafe calls, etc.).