diff --git a/configs/envs/.env.zetachain b/configs/envs/.env.zetachain index 6a30db536b..3f20d24248 100644 --- a/configs/envs/.env.zetachain +++ b/configs/envs/.env.zetachain @@ -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 \ No newline at end of file diff --git a/ui/apiDocs/utils.ts b/ui/apiDocs/utils.ts index eb9ef7af24..ec3c67c6ae 100644 --- a/ui/apiDocs/utils.ts +++ b/ui/apiDocs/utils.ts @@ -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);