move ponder
This commit is contained in:
parent
a9207de195
commit
36b7b429ef
22 changed files with 50 additions and 14 deletions
22
services/ponder/scripts/test-local.sh
Executable file
22
services/ponder/scripts/test-local.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/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=BASE_SEPOLIA_LOCAL_FORK
|
||||
timeout 30 npm run dev
|
||||
|
||||
# Cleanup
|
||||
kill $ANVIL_PID 2>/dev/null
|
||||
|
||||
echo "Test completed!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue