feat(explorer): dual-chain wallet metadata, native coin pricing, and UI refresh.
Some checks failed
Deploy Explorer Live / deploy (push) Failing after 20s
Validate Explorer / frontend (push) Failing after 24s
Validate Explorer / smoke-e2e (push) Has been skipped

Add Chain 138 wallet network metadata and stats coin-price enrichment; sync frontend explorer SPA, command center, and address/token pages with backend config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-06-19 16:16:17 -07:00
parent 0f02e6e54f
commit b87ebee6a1
94 changed files with 7648 additions and 1124 deletions

View File

@@ -13,6 +13,15 @@ log() { echo "$(date -Iseconds) $*" >> "$LOG" 2>/dev/null || true; }
# 1) Ensure PostgreSQL is running
docker start blockscout-postgres 2>/dev/null || true
# 1b) Keep explorer-config-api DATABASE_URL aligned with blockscout-postgres bridge IP
if [ -x /usr/local/bin/sync-explorer-config-api-database-url.sh ]; then
if /usr/local/bin/sync-explorer-config-api-database-url.sh >>"$LOG" 2>&1; then
:
else
log "sync-explorer-config-api-database-url failed"
fi
fi
# 2) Blockscout API health: if not 200, restart or start container
CODE=$(curl -sS -o /dev/null -w "%{http_code}" --connect-timeout 5 http://127.0.0.1:4000/api/v2/stats 2>/dev/null || echo "000")
if [ "$CODE" != "200" ]; then
@@ -35,6 +44,14 @@ if [ "$NGINX" != "active" ]; then
systemctl start nginx 2>>"$LOG" || true
fi
# 3b) Next.js route guard: /addresses/* must proxy to port 3000 (not nginx 404)
if [ -x /usr/local/bin/ensure-explorer-nginx-next-routes.sh ]; then
if ! /usr/local/bin/ensure-explorer-nginx-next-routes.sh check >>"$LOG" 2>&1; then
log "Explorer nginx /addresses route broken; repairing"
/usr/local/bin/ensure-explorer-nginx-next-routes.sh repair >>"$LOG" 2>&1 || log "ensure-explorer-nginx-next-routes repair failed"
fi
fi
# 4) Safe disk prune (only if env RUN_PRUNE=1 or first run on Sunday 3am - use cron for daily)
# Do NOT prune containers (would remove stopped Blockscout). Prune only unused images and build cache.
if [ "${RUN_PRUNE:-0}" = "1" ]; then