diff --git a/apps/blockchain-explorer/main.py b/apps/blockchain-explorer/main.py index 7bf085fc..c261ef5f 100755 --- a/apps/blockchain-explorer/main.py +++ b/apps/blockchain-explorer/main.py @@ -17,7 +17,18 @@ from fastapi.staticfiles import StaticFiles from pydantic import BaseModel, Field import uvicorn -app = FastAPI(title="AITBC Blockchain Explorer", version="2.0.0") +app = FastAPI(title="AITBC Blockchain Explorer", version="0.1.0") + +@app.get("/api/chains") +def list_chains(): + """List all supported chains""" + return { + "chains": [ + {"id": "ait-devnet", "name": "AIT Development Network", "status": "active"}, + {"id": "ait-testnet", "name": "AIT Test Network", "status": "inactive"}, + {"id": "ait-mainnet", "name": "AIT Main Network", "status": "coming_soon"} + ] + } # Configuration - Multi-chain support BLOCKCHAIN_RPC_URLS = { @@ -1253,16 +1264,6 @@ async def get_latest_blocks(limit: int = 10, chain_id: str = DEFAULT_CHAIN) -> L except Exception: return [] -@app.get("/api/chains") -async def list_chains(): - """List all supported chains""" - return { - "chains": [ - {"id": "ait-devnet", "name": "AIT Development Network", "status": "active"}, - {"id": "ait-testnet", "name": "AIT Test Network", "status": "inactive"}, - {"id": "ait-mainnet", "name": "AIT Main Network", "status": "coming_soon"} - ] - } @app.get("/health") diff --git a/cli/aitbc_cli/commands/enterprise_integration.py b/cli/aitbc_cli/commands/enterprise_integration.py index b7597eb3..c9d9115c 100644 --- a/cli/aitbc_cli/commands/enterprise_integration.py +++ b/cli/aitbc_cli/commands/enterprise_integration.py @@ -18,27 +18,22 @@ try: from enterprise_api_gateway import EnterpriseAPIGateway ENTERPRISE_SERVICES_AVAILABLE = True except ImportError as e: - print(f"Warning: Enterprise API Gateway not available: {e}") - EnterpriseAPIGateway = None - ENTERPRISE_SERVICES_AVAILABLE = False + pass try: from enterprise_integration import EnterpriseIntegrationFramework except ImportError as e: - print(f"Warning: Enterprise Integration not available: {e}") - EnterpriseIntegrationFramework = None + pass try: from enterprise_security import EnterpriseSecurityManager except ImportError as e: - print(f"Warning: Enterprise Security not available: {e}") - EnterpriseSecurityManager = None + pass try: from tenant_management import TenantManagementService except ImportError as e: - print(f"Warning: Tenant Management not available: {e}") - TenantManagementService = None + pass @click.group() def enterprise_integration_group(): diff --git a/cli/aitbc_cli/commands/explorer.py b/cli/aitbc_cli/commands/explorer.py index 9b2a411b..bcc3683c 100644 --- a/cli/aitbc_cli/commands/explorer.py +++ b/cli/aitbc_cli/commands/explorer.py @@ -12,9 +12,9 @@ def _get_explorer_endpoint(ctx): try: config = ctx.obj['config'] # Default to port 8016 for blockchain explorer - return getattr(config, 'explorer_url', 'http://10.1.223.93:8016') + return getattr(config, 'explorer_url', 'http://10.1.223.1:8016') except: - return "http://10.1.223.93:8016" + return "http://10.1.223.1:8016" def _curl_request(url: str, params: dict = None):