- User connects Solana wallet (Phantom, Solflare, etc.)
- SDK verifies wallet connection and balance
- User approves token allowance for Glitch Gremlin operations
- User selects test parameters:
- Target program address
- Test type (Fuzz, Load, Exploit, Concurrency)
- Duration (60-3600 seconds)
- Intensity (1-10 scale)
- SDK validates parameters
- User approves token transfer for test fee
- On-chain:
- ChaosRequest account created
- Tokens escrowed
- Request marked as Pending
- AI Engine picks up request from queue
- Spins up test environment:
- Local test validator
- Forked mainnet environment
- Containerized malicious traffic simulation
- Executes test scenario based on parameters
- Records metrics:
- Transaction throughput
- CPU usage
- Error logs
- Discovered vulnerabilities
- AI Engine signs proof of completion
- On-chain:
- ChaosRequest status updated
- Tokens released/refunded
- Results reference stored (IPFS/Arweave)
- Off-chain:
- Detailed logs stored
- Metrics analyzed
- Vulnerability report generated
- SDK monitors request status
- User receives notification when complete
- Results available through:
- SDK methods
- CLI tools
- Web interface
sequenceDiagram
participant User
participant Wallet
participant SDK
participant Blockchain
participant AIEngine
User->>Wallet: Connect
Wallet->>SDK: Approve connection
User->>SDK: Create chaos request
SDK->>Blockchain: Validate & create request
Blockchain->>SDK: Request created
SDK->>AIEngine: Add to queue
AIEngine->>AIEngine: Execute test scenario
AIEngine->>Blockchain: Finalize request
Blockchain->>SDK: Update status
SDK->>User: Notify completion
User->>SDK: Retrieve results
- Max 10 requests per minute per user
- Minimum 2 seconds between requests
- Max 1M tokens escrowed per request
- Multisig control for critical operations
- Signed proofs from AI engine
- Comprehensive error handling
- Real-time status updates
- Detailed test metrics
- Vulnerability reports