NAC_Blockchain/system_status.sh

60 lines
1.6 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "========================================="
echo "NAC公链系统状态评估"
echo "========================================="
echo ""
echo "1. 模块统计"
echo "---"
module_count=$(find . -maxdepth 1 -type d -name "nac-*" -o -name "charter-*" -o -name "cnnl-*" -o -name "cargo-*" -o -name "xtzh-*" -o -name "nvm_v2" | wc -l)
echo "总模块数: $module_count"
echo ""
echo "2. NAC Lens状态"
echo "---"
if [ -d "nac-lens" ]; then
echo "✅ nac-lens 模块存在"
ls -1 nac-lens/src/*.rs 2>/dev/null | wc -l | xargs echo "源文件数:"
else
echo "❌ nac-lens 模块不存在"
fi
echo ""
echo "3. VISION钱包状态"
echo "---"
if [ -d "nac-vision-wallet" ]; then
echo "✅ nac-vision-wallet 模块存在"
ls -1 nac-vision-wallet/src/*.rs 2>/dev/null | wc -l | xargs echo "源文件数:"
fi
if [ -d "nac-vision-cli" ]; then
echo "✅ nac-vision-cli 模块存在"
if [ -f "nac-vision-cli/target/release/vision" ]; then
echo "✅ vision CLI已编译"
else
echo "⚠️ vision CLI未编译"
fi
fi
echo ""
echo "4. 磁盘空间"
echo "---"
df -h / | grep -v Filesystem
echo ""
echo "5. 待完善功能"
echo "---"
echo "NAC Lens:"
echo " - L4 宪法层(全息编码、分片存储)"
echo " - L5 价值层XIC/XTZH跨文明交换"
echo " - L6 应用层AA-PE、FTAN、UCA"
echo ""
echo "VISION钱包:"
echo " - AI助手'雅典娜'"
echo " - GNACS 3D DNA浏览器"
echo " - 宪法收据可视化"
echo " - 数据持久化SQLite/RocksDB"
echo " - TEE安全集成"
echo ""
echo "========================================="