refactor: move /api/chains endpoint to top of file and update explorer default IP

- Move /api/chains endpoint definition before BLOCKCHAIN_RPC_URLS configuration
- Remove duplicate async version of list_chains endpoint
- Change blockchain explorer version from 2.0.0 to 0.1.0
- Update default explorer IP from 10.1.223.93 to 10.1.223.1
- Remove warning messages from enterprise integration import errors
This commit is contained in:
oib
2026-03-07 19:01:03 +01:00
parent 7341808f01
commit 532523b139
3 changed files with 18 additions and 22 deletions

View File

@@ -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():

View File

@@ -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):