feat: explorer API, wallet, CCIP scripts, and config refresh
- Backend REST/gateway/track routes, analytics, Blockscout proxy paths. - Frontend wallet and liquidity surfaces; MetaMask token list alignment. - Deployment docs, verification scripts, address inventory updates. Check: go build ./... under backend/ (pass). Made-with: Cursor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Test tiered architecture API endpoints
|
||||
|
||||
set -e
|
||||
set -euo pipefail
|
||||
|
||||
BASE_URL="${API_BASE_URL:-http://localhost:8080}"
|
||||
echo "=== Testing Tiered Architecture API ==="
|
||||
@@ -17,6 +17,15 @@ NC='\033[0m' # No Color
|
||||
PASSED=0
|
||||
FAILED=0
|
||||
|
||||
print_auth_hint_if_needed() {
|
||||
local body="${1:-}"
|
||||
local message
|
||||
message=$(echo "$body" | jq -r '.error.message // empty' 2>/dev/null || true)
|
||||
if [[ "$message" == *wallet_nonces* ]] || [[ "$message" == *"storage is not initialized"* ]]; then
|
||||
echo " Hint: wallet auth storage is missing. Run bash scripts/run-migration-0010.sh and restart the backend."
|
||||
fi
|
||||
}
|
||||
|
||||
# Test function
|
||||
test_endpoint() {
|
||||
local method=$1
|
||||
@@ -46,6 +55,7 @@ test_endpoint() {
|
||||
echo -e "${RED}✗ FAIL${NC} (Expected $expected_status, got $http_code)"
|
||||
echo " Response: $body" | head -c 200
|
||||
echo ""
|
||||
print_auth_hint_if_needed "$body"
|
||||
((FAILED++))
|
||||
return 1
|
||||
fi
|
||||
@@ -91,4 +101,3 @@ else
|
||||
echo -e "${RED}❌ Some tests failed${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user