harb/ponder/scripts/test-local.sh
2025-09-23 14:18:04 +02:00

22 lines
No EOL
443 B
Bash
Executable file

#!/bin/bash
echo "Testing KRAIKEN Ponder indexer local setup..."
# Kill any existing Anvil instance
pkill -f anvil || true
echo "Starting Anvil fork of Base mainnet..."
anvil --fork-url https://base.llamarpc.com --port 8545 &
ANVIL_PID=$!
# Wait for Anvil to start
sleep 5
echo "Starting Ponder indexer for local network..."
export PONDER_NETWORK=local
timeout 30 npm run dev
# Cleanup
kill $ANVIL_PID 2>/dev/null
echo "Test completed!"