Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/deploy-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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="$(
Expand Down
1 change: 0 additions & 1 deletion docker-compose/envs/common-frontend-scan.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions docker-compose/envs/common-frontend-testnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down