Skip to content

Commit abbb940

Browse files
authored
Merge pull request #16 from lippytm/copilot/add-sandboxes-for-transparency
2 parents 38d6dc6 + 4cb7f4f commit abbb940

10 files changed

Lines changed: 1594 additions & 0 deletions

File tree

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ A comprehensive full-stack starter bundle combining AI capabilities with Web3 te
1212
- **Hardhat Smart Contracts**: Professional Solidity development environment
1313
- **AI Integration**: OpenAI GPT-5.1-Codex-Max support via LangChain
1414
- **Web3 Libraries**: ethers.js, viem, and wagmi for blockchain interactions
15+
- **Diagnostic Sandboxes**: Transparent testing environments for AI, blockchain, and Web3 interactions
1516
- **Production Ready**: Comprehensive testing, linting, and CI/CD pipelines
1617
- **Config Validation**: Runtime configuration validation with Pydantic and Zod
1718
- **Optional Telemetry**: OpenTelemetry integration for observability
@@ -176,6 +177,11 @@ Web3AI/
176177
│ │ └── Lock.test.js # Contract tests
177178
│ ├── hardhat.config.js
178179
│ └── package.json
180+
├── sandboxes/ # Diagnostic and simulation sandboxes
181+
│ ├── backend/ # Backend diagnostics
182+
│ ├── frontend/ # Frontend component sandboxes
183+
│ ├── contracts/ # Contract testing sandboxes
184+
│ └── README.md # Sandbox documentation
179185
├── .github/
180186
│ └── workflows/
181187
│ └── ci-cd.yml # GitHub Actions CI/CD
@@ -210,6 +216,57 @@ npm test # Run Hardhat tests
210216
npm run compile # Compile contracts
211217
```
212218

219+
## 🔬 Sandboxes - Diagnostics & Simulations
220+
221+
The project includes comprehensive sandboxes for transparent testing and validation:
222+
223+
### Backend Sandboxes
224+
225+
```bash
226+
# AI Model Diagnostics
227+
python sandboxes/backend/ai_diagnostics.py
228+
229+
# Blockchain Interaction Simulation
230+
python sandboxes/backend/blockchain_simulation.py
231+
232+
# Custom AI prompt testing
233+
python sandboxes/backend/ai_diagnostics.py --prompt "Your custom prompt"
234+
```
235+
236+
### Frontend Sandboxes
237+
238+
```bash
239+
# Web3 wallet connection testing (interactive UI)
240+
# Copy sandboxes/frontend/Web3Sandbox.tsx to your app
241+
242+
# AI chat simulation (interactive UI)
243+
# Copy sandboxes/frontend/AIChatSimulation.tsx to your app
244+
```
245+
246+
### Contract Sandboxes
247+
248+
```bash
249+
cd contracts
250+
251+
# Copy sandbox files
252+
cp ../sandboxes/contracts/SimpleStorage.sol contracts/
253+
cp ../sandboxes/contracts/SimpleStorage.test.js test/
254+
255+
# Run sandbox tests
256+
npm test test/SimpleStorage.test.js
257+
258+
# Deploy with diagnostics
259+
npx hardhat run ../sandboxes/contracts/deploy_sandbox.js --network localhost
260+
```
261+
262+
**For detailed documentation**, see [sandboxes/README.md](sandboxes/README.md)
263+
264+
**Purpose**: Sandboxes provide transparency in:
265+
- AI model behavior and responses
266+
- Blockchain connectivity and transactions
267+
- Web3 wallet interactions
268+
- Smart contract execution and gas usage
269+
213270
## 🎨 Linting & Formatting
214271

215272
### Backend (Python)

0 commit comments

Comments
 (0)