add zetachain swagger (#3155)

This commit is contained in:
Igor Stuev
2025-12-01 21:35:42 +07:00
committed by GitHub
parent 238e1e7513
commit 0622296387
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -59,6 +59,6 @@ NEXT_PUBLIC_VIEWS_CONTRACT_LANGUAGE_FILTERS=['solidity','vyper','yul','geas']
NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLED=true
NEXT_PUBLIC_VIEWS_TOKEN_SCAM_TOGGLE_ENABLED=true
NEXT_PUBLIC_VISUALIZE_API_HOST=https://visualizer.services.blockscout.com
NEXT_PUBLIC_ZETACHAIN_EXTERNAL_SEARCH_CONFIG=[{"regex":"^[A-F0-9]{64}$","template":"https://zetachain.exploreme.pro/transactions/{hash}","name":"external transaction hash"},{"regex":"^zeta[a-z0-9]{39}$","template":"https://zetachain.exploreme.pro/account/{hash}","name":"Cosmos style address hash"},{"regex":"^zetavaloper[a-z0-9]{39}$","template":"https://zetachain.exploreme.pro/validators/{hash}","name":"Cosmos style validator hash"}]
NEXT_PUBLIC_ZETACHAIN_EXTERNAL_SEARCH_CONFIG=[{'regex':'^[A-F0-9]{64}\$','template':'https://zetachain.exploreme.pro/transactions/{hash}','name':'external transaction hash'},{'regex':'^zeta[a-z0-9]{39}\$','template':'https://zetachain.exploreme.pro/account/{hash}','name':'Cosmos style address hash'},{'regex':'^zetavaloper[a-z0-9]{39}\$','template':'https://zetachain.exploreme.pro/validators/{hash}','name':'Cosmos style validator hash'}]
NEXT_PUBLIC_ZETACHAIN_SERVICE_API_HOST=https://zetachain-cctx-mainnet.k8s-prod-2.blockscout.com
NEXT_PUBLIC_ZETACHAIN_SERVICE_CHAINS_CONFIG_URL=https://raw.githubusercontent.com/blockscout/frontend-configs/refs/heads/main/configs/cross-chain/zetachain-mainnet.json
+8
View File
@@ -83,4 +83,12 @@ export const REST_API_SECTIONS = [
requestInterceptor: microserviceRequestInterceptorFactory(config.apis.tac),
},
},
config.apis.zetachain && {
id: 'zetachain-api',
title: 'Zetachain CCCTX API',
swagger: {
url: getMicroserviceSwaggerUrl(config.apis.zetachain),
requestInterceptor: microserviceRequestInterceptorFactory(config.apis.zetachain),
},
},
].filter(Boolean);