#!/bin/bash
# Clone Tier 1 Tetherto Repositories
# These are the core WDK modules and wallet implementations
REPOS_DIR="repos"
echo "📦 Cloning Tier 1 Tetherto Repositories..."
echo ""
# Core modules
echo "=== Core Modules ==="
git clone --depth 1 https://github.com/tetherto/wdk-core.git $REPOS_DIR/wdk-core
git clone --depth 1 https://github.com/tetherto/wdk-wallet.git $REPOS_DIR/wdk-wallet
git clone --depth 1 https://github.com/tetherto/pear-wrk-wdk.git $REPOS_DIR/pear-wrk-wdk
# Blockchain wallets
echo ""
echo "=== Blockchain Wallets ==="
git clone --depth 1 https://github.com/tetherto/wdk-wallet-btc.git $REPOS_DIR/wdk-wallet-btc
git clone --depth 1 https://github.com/tetherto/wdk-wallet-evm.git $REPOS_DIR/wdk-wallet-evm
git clone --depth 1 https://github.com/tetherto/wdk-wallet-spark.git $REPOS_DIR/wdk-wallet-spark
git clone --depth 1 https://github.com/tetherto/wdk-wallet-ton.git $REPOS_DIR/wdk-wallet-ton
git clone --depth 1 https://github.com/tetherto/wdk-wallet-tron.git $REPOS_DIR/wdk-wallet-tron
git clone --depth 1 https://github.com/tetherto/wdk-wallet-solana.git $REPOS_DIR/wdk-wallet-solana
# Documentation
echo ""
echo "=== Documentation ==="
git clone --depth 1 https://github.com/tetherto/wdk-docs.git $REPOS_DIR/wdk-docs
echo ""
echo "✅ Tier 1 repositories cloned!"
echo ""
echo "Next steps:"
echo " 1. Run analyze_repos.js to extract API documentation"
echo " 2. Run build_dependency_graph.js to map dependencies"
echo " 3. Check skills/ directory for generated documentation"