mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
add zetachain swagger (#3155)
This commit is contained in:
@@ -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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user