harb/services/ponder/scripts/test-local.sh

23 lines
462 B
Bash
Raw Normal View History

2025-09-23 14:18:04 +02:00
#!/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..."
2025-09-23 19:24:05 +02:00
export PONDER_NETWORK=BASE_SEPOLIA_LOCAL_FORK
2025-09-23 14:18:04 +02:00
timeout 30 npm run dev
# Cleanup
kill $ANVIL_PID 2>/dev/null
2025-09-23 19:24:05 +02:00
echo "Test completed!"