Complete markdown files cleanup and organization

- Organized 252 files across project
- Root directory: 187 → 2 files (98.9% reduction)
- Moved configuration guides to docs/04-configuration/
- Moved troubleshooting guides to docs/09-troubleshooting/
- Moved quick start guides to docs/01-getting-started/
- Moved reports to reports/ directory
- Archived temporary files
- Generated comprehensive reports and documentation
- Created maintenance scripts and guides

All files organized according to established standards.
This commit is contained in:
defiQUG
2026-01-06 01:46:25 -08:00
parent 1edcec953c
commit cb47cce074
1327 changed files with 217220 additions and 801 deletions

View File

@@ -0,0 +1,33 @@
#!/usr/bin/env bash
# Check contract bytecode on-chain
# Usage: ./check-contract-bytecode.sh [address]
set -euo pipefail
RPC_URL="${RPC_URL:-https://rpc-core.d-bis.org}"
ADDRESS="${1:-}"
if [ -z "$ADDRESS" ]; then
echo "Usage: $0 <contract-address>"
echo ""
echo "Example: $0 0x3304b747e565a97ec8ac220b0b6a1f6ffdb837e6"
exit 1
fi
echo "Checking contract bytecode for: $ADDRESS"
echo "RPC: $RPC_URL"
echo ""
BYTECODE=$(cast code "$ADDRESS" --rpc-url "$RPC_URL" 2>/dev/null || echo "")
if [ -z "$BYTECODE" ] || [ "$BYTECODE" = "0x" ]; then
echo "❌ Contract has no bytecode (not deployed or empty)"
exit 1
else
BYTECODE_LENGTH=$((${#BYTECODE} - 2)) # Subtract "0x" prefix
echo "✅ Contract has bytecode"
echo " Length: $BYTECODE_LENGTH characters ($((BYTECODE_LENGTH / 2)) bytes)"
echo " First 100 chars: ${BYTECODE:0:100}..."
echo ""
echo "✅ Contract is deployed and has code"
fi