@@ -89,8 +89,72 @@ cargo run --example run_file your_script.ovsm
89893 . ** Ranges:** ` [1..10] ` creates range 1-9 (exclusive end)
90904 . ** Comments:** Use ` // ` for single-line comments
9191
92+ ## Real-World Examples (` real_world/ ` )
93+
94+ Production-ready OVSM scripts demonstrating advanced patterns:
95+
96+ ### Async & Streaming
97+ | Script | Description |
98+ | --------| -------------|
99+ | ` async_stream_example.ovsm ` | Async stream processing with backpressure handling |
100+ | ` event_driven_stream.ovsm ` | Event-driven architecture patterns |
101+
102+ ### AI & Agents
103+ | Script | Description |
104+ | --------| -------------|
105+ | ` ai_compatibility_demo.ovsm ` | AI model integration patterns |
106+ | ` onchain_ai_agent.ovsm ` | Fully on-chain AI agent (11KB) |
107+
108+ ### DeFi & Governance
109+ | Script | Description |
110+ | --------| -------------|
111+ | ` dao_simulation.ovsm ` | Complete DAO governance simulation |
112+ | ` pumpfun_graduation_tracker.ovsm ` | Track pump.fun token graduations to Raydium |
113+ | ` grad_tracker_final.ovsm ` | Optimized graduation tracker |
114+ | ` whale_hunter.ovsm ` | Whale wallet detection and tracking (11KB) |
115+
116+ ### Wallet & Token Analysis
117+ | Script | Description |
118+ | --------| -------------|
119+ | ` wallet_discovery_deep.ovsm ` | Multi-hop wallet relationship discovery |
120+ | ` analyze_wallet.ovsm ` | Basic wallet activity analysis |
121+ | ` token_analysis_paginated.ovsm ` | Paginated token flow analysis |
122+ | ` token_flow_analysis.ovsm ` | Track token movement patterns |
123+ | ` working_token_analysis.ovsm ` | Complete token analysis workflow |
124+
125+ ### On-Chain Operations
126+ | Script | Description |
127+ | --------| -------------|
128+ | ` sol_transfer.ovsm ` | Native SOL transfer via system program |
129+ | ` spl_token_transfer_signed.ovsm ` | SPL token transfer with PDA signing |
130+ | ` ovsm_full_analysis.ovsm ` | Comprehensive market analysis |
131+ | ` final_demo.ovsm ` | Feature demonstration script |
132+
133+ ### Running Real-World Examples
134+
135+ ``` bash
136+ # Using OSVM CLI
137+ osvm ovsm run crates/ovsm/examples/real_world/whale_hunter.ovsm
138+
139+ # Check syntax only
140+ osvm ovsm check crates/ovsm/examples/real_world/dao_simulation.ovsm
141+
142+ # Compile to Solana BPF
143+ osvm ovsm compile crates/ovsm/examples/real_world/onchain_ai_agent.ovsm -o agent.so
144+ ```
145+
146+ ## Deployed Programs (Devnet)
147+
148+ These OVSM programs are live on Solana devnet:
149+
150+ | Program | Program ID | Description |
151+ | ---------| -----------| -------------|
152+ | Strategy Registry | ` 1yEJEpCk1cKDmVGC7iFp8pf9EUcvKkczUmgHWKeX7p2 ` | Hot-swappable agent strategies |
153+ | Basic Strategy | ` 2uiPuUnNjh4R1x3bwiX3ZRzqr7gbQyYtZ2PvXwU68xyh ` | Entry-level agent strategy |
154+
92155## See Also
93156
94157- ` ../USAGE_GUIDE.md ` - Complete language reference
95158- ` ../TEST_RESULTS_SUMMARY.md ` - Implementation status
96159- ` ../tests/ ` - Unit test examples
160+ - ` ../../examples/ovsm_scripts/ ` - More OVSM program examples
0 commit comments