use std::sync::Arc;
use yedad_eye::{aggregator::EyeAggregator, providers::NetworkEyeProvider};
#[tokio::main]
async fn main() {
let provider = Arc::new(NetworkEyeProvider::new("http://127.0.0.1:8080"));
let aggregator = EyeAggregator::new(provider);
println!("👁️ [YEDAD EYE] Connecting to network timeline and matrix layer...");
match aggregator.reconstruct_matrix().await {
Ok(matrix) => {
println!(
"
✅ Successfully compiled matrix. Total Nodes Spotted: {}",
matrix.len()
);
for row in matrix {
println!("--------------------------------------------------");
println!("📌 Node Addr: {}", row.address);
println!(
"💰 Live Balance: {} | Remaining Steps: {}",
row.balance, row.step_number
);
println!("📊 Total Notepad 2 Entries: {}", row.history.len());
for (pulse, cell) in row.history.iter().take(3) {
println!(" |- Pulse [{}]: State CRC -> {:X}", pulse, cell.state_crc);
}
}
}
Err(e) => println!("❌ Matrix compilation halted: {}", e),
}
}