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:
@@ -141,7 +141,7 @@ server {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
# Explorer config API (token list, networks) - serve from /var/www/html/config/
|
||||
# Explorer config API (token list, networks, capabilities) - serve from /var/www/html/config/
|
||||
# Deploy files with: ./scripts/deploy-explorer-config-to-vmid5000.sh
|
||||
location = /api/config/token-list {
|
||||
default_type application/json;
|
||||
@@ -155,6 +155,12 @@ server {
|
||||
add_header Cache-Control "public, max-age=3600";
|
||||
alias /var/www/html/config/DUAL_CHAIN_NETWORKS.json;
|
||||
}
|
||||
location = /api/config/capabilities {
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Cache-Control "public, max-age=3600";
|
||||
alias /var/www/html/config/CHAIN138_RPC_CAPABILITIES.json;
|
||||
}
|
||||
|
||||
# API endpoint (for Blockscout API)
|
||||
location /api/ {
|
||||
@@ -190,13 +196,13 @@ EOF
|
||||
echo "✅ Clean configuration created: $CONFIG_FILE"
|
||||
echo ""
|
||||
|
||||
# Step 5.5: Ensure config directory exists for /api/config/token-list and /api/config/networks
|
||||
# Step 5.5: Ensure config directory exists for /api/config/token-list, /api/config/networks, and /api/config/capabilities
|
||||
echo "=== Step 5.5: Config Directory for Token List ==="
|
||||
mkdir -p /var/www/html/config
|
||||
if [ -f "/var/www/html/config/DUAL_CHAIN_TOKEN_LIST.tokenlist.json" ]; then
|
||||
echo "Config files already present in /var/www/html/config/"
|
||||
else
|
||||
echo "Note: Run deploy-explorer-config-to-vmid5000.sh from repo root to deploy token list. /api/config/* will 404 until then."
|
||||
echo "Note: Run deploy-explorer-config-to-vmid5000.sh from repo root to deploy token list, networks, and capabilities. /api/config/* will 404 until then."
|
||||
fi
|
||||
echo ""
|
||||
|
||||
@@ -273,4 +279,3 @@ echo "To view logs:"
|
||||
echo " tail -f /var/log/nginx/blockscout-access.log"
|
||||
echo " tail -f /var/log/nginx/blockscout-error.log"
|
||||
echo ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user