diff --git a/.github/workflows/deploy-config.yml b/.github/workflows/deploy-config.yml index 14970ea29392..601661f13863 100644 --- a/.github/workflows/deploy-config.yml +++ b/.github/workflows/deploy-config.yml @@ -501,6 +501,7 @@ jobs: grep -Fq "NEXT_PUBLIC_METADATA_SERVICE_API_HOST: \"https://doscan.io/metadata-api\"" <<<"${frontend_env}" grep -Fq "NEXT_PUBLIC_CONTRACT_INFO_API_HOST: \"https://doscan.io\"" <<<"${frontend_env}" grep -Fq "NEXT_PUBLIC_DEX_POOLS_ENABLED: \"true\"" <<<"${frontend_env}" + grep -Fq "NEXT_PUBLIC_WEB3_WALLETS: \"['metamask','rabby','coinbase','token_pocket']\"" <<<"${frontend_env}" curl --fail --silent --show-error --retry 6 --retry-delay 5 https://doscan.io/api/v2/stats >/dev/null curl --fail --silent --show-error --retry 6 --retry-delay 5 https://doscan.io/public-metrics >/dev/null @@ -511,6 +512,7 @@ jobs: grep -Fq "NEXT_PUBLIC_METADATA_SERVICE_API_HOST: \"https://doscan.io/metadata-api\"" <<<"${frontend_env}" grep -Fq "NEXT_PUBLIC_CONTRACT_INFO_API_HOST: \"https://doscan.io\"" <<<"${frontend_env}" grep -Fq "NEXT_PUBLIC_DEX_POOLS_ENABLED: \"true\"" <<<"${frontend_env}" + grep -Fq "NEXT_PUBLIC_WEB3_WALLETS: \"['metamask','rabby','coinbase','token_pocket']\"" <<<"${frontend_env}" curl --fail --silent --show-error --retry 6 --retry-delay 5 \ https://doscan.io/api/v1/chains/7979/pools >/dev/null @@ -860,6 +862,11 @@ jobs: grep -Fq "NEXT_PUBLIC_METADATA_SERVICE_API_HOST: \"https://test.doscan.io/metadata-api\"" <<<"${frontend_env}" grep -Fq "NEXT_PUBLIC_CONTRACT_INFO_API_HOST: \"https://test.doscan.io\"" <<<"${frontend_env}" grep -Fq "NEXT_PUBLIC_DEX_POOLS_ENABLED: \"true\"" <<<"${frontend_env}" + grep -Fq "NEXT_PUBLIC_WEB3_WALLETS: \"['metamask','rabby','coinbase','token_pocket']\"" <<<"${frontend_env}" + if grep -F "NEXT_PUBLIC_NETWORK_EXPLORERS:" <<<"${frontend_env}" | grep -Fq "https://test.doscan.io/"; then + echo "Testnet must not link back to itself as an external explorer" >&2 + exit 1 + fi # External GCS, Cloudflare, RPC, or metadata failures must not trigger a destructive database restore. DEPLOYMENT_STARTED=0 @@ -890,6 +897,11 @@ jobs: grep -Fq "NEXT_PUBLIC_METADATA_SERVICE_API_HOST: \"https://test.doscan.io/metadata-api\"" <<<"${frontend_env}" grep -Fq "NEXT_PUBLIC_CONTRACT_INFO_API_HOST: \"https://test.doscan.io\"" <<<"${frontend_env}" grep -Fq "NEXT_PUBLIC_DEX_POOLS_ENABLED: \"true\"" <<<"${frontend_env}" + grep -Fq "NEXT_PUBLIC_WEB3_WALLETS: \"['metamask','rabby','coinbase','token_pocket']\"" <<<"${frontend_env}" + if grep -F "NEXT_PUBLIC_NETWORK_EXPLORERS:" <<<"${frontend_env}" | grep -Fq "https://test.doscan.io/"; then + echo "Testnet must not link back to itself as an external explorer" >&2 + exit 1 + fi curl --fail --silent --show-error --retry 6 --retry-delay 5 \ https://test.doscan.io/api/v1/chains/3939/pools >/dev/null metadata_response="$( diff --git a/docker-compose/envs/common-frontend-scan.env b/docker-compose/envs/common-frontend-scan.env index 08eebac19156..2ec8c493050a 100644 --- a/docker-compose/envs/common-frontend-scan.env +++ b/docker-compose/envs/common-frontend-scan.env @@ -13,4 +13,3 @@ NEXT_PUBLIC_CONTRACT_INFO_API_HOST=https://doscan.io NEXT_PUBLIC_HAS_USER_OPS=true NEXT_PUBLIC_HOMEPAGE_STATS=['total_blocks','average_block_time','total_txs','wallet_addresses','gas_tracker'] -NEXT_PUBLIC_WEB3_WALLETS=none diff --git a/docker-compose/envs/common-frontend-testnet.env b/docker-compose/envs/common-frontend-testnet.env index 3bf903601bc7..f5b2bf5b2dc0 100644 --- a/docker-compose/envs/common-frontend-testnet.env +++ b/docker-compose/envs/common-frontend-testnet.env @@ -25,9 +25,6 @@ NEXT_PUBLIC_FEATURED_NETWORKS=https://raw.githubusercontent.com/DOSLabs/DOScan-F # SEO NEXT_PUBLIC_OG_DESCRIPTION=Blockchain explorer for DOS Chain Testnet. DOScan is an analytics tool for exploring DOS transactions, addresses, statistics, and other platform activities. -# Explorer links -NEXT_PUBLIC_NETWORK_EXPLORERS=[{'title':'DOS Chain Testnet','baseUrl':'https://test.doscan.io/','paths':{'tx':'/tx','address':'/address','token':'/token','block':'/block'}}] - # Testnet-specific: hide native coin price NEXT_PUBLIC_HIDE_NATIVE_COIN_PRICE=true