Activate cross-chain bridge service in coordinator API
- Fix import paths in cross_chain_integration.py (relative to absolute imports) - Add cross-chain router to coordinator API main.py - Fix storage.db import path to use app.storage.db - Restart coordinator-api service on aitbc - Deploy changes to aitbc1 and restart coordinator-api - Verify chain isolation is maintained with bridge active - Bridge whitelist remains empty (default) - no unauthorized transfers allowed
This commit is contained in:
@@ -12,26 +12,26 @@ from sqlmodel import Session
|
||||
|
||||
from aitbc.rate_limiting import rate_limit
|
||||
|
||||
from ...agent_identity.manager import AgentIdentityManager
|
||||
from ...agent_identity.wallet_adapter_enhanced import (
|
||||
from app.agent_identity.manager import AgentIdentityManager
|
||||
from app.agent_identity.wallet_adapter_enhanced import (
|
||||
SecurityLevel,
|
||||
TransactionStatus,
|
||||
WalletAdapterFactory,
|
||||
WalletStatus,
|
||||
)
|
||||
from ..reputation.engine import CrossChainReputationEngine
|
||||
from ..services.cross_chain.bridge_enhanced import (
|
||||
from app.reputation.engine import CrossChainReputationEngine
|
||||
from app.contexts.cross_chain.services.cross_chain.bridge_enhanced import (
|
||||
BridgeProtocol,
|
||||
BridgeSecurityLevel,
|
||||
CrossChainBridgeService,
|
||||
)
|
||||
from ...services.multi_chain_transaction_manager import (
|
||||
from app.services.multi_chain_transaction_manager import (
|
||||
MultiChainTransactionManager,
|
||||
RoutingStrategy,
|
||||
TransactionPriority,
|
||||
TransactionType,
|
||||
)
|
||||
from ..storage.db import get_session
|
||||
from app.storage.db import get_session
|
||||
|
||||
router = APIRouter(prefix="/cross-chain", tags=["Cross-Chain Integration"])
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ from .contexts.marketplace.routers import (
|
||||
from .contexts.payments.routers import payments
|
||||
from .contexts.blockchain.routers import blockchain
|
||||
from .contexts.agent_identity.routers import agent_identity
|
||||
from .contexts.cross_chain.routers.cross_chain_integration import router as cross_chain
|
||||
|
||||
# Skip optional routers with missing dependencies
|
||||
try:
|
||||
@@ -361,6 +362,7 @@ def create_app() -> FastAPI:
|
||||
app.include_router(agent_identity, prefix="/v1")
|
||||
app.include_router(developer_platform, prefix="/v1")
|
||||
app.include_router(governance_enhanced, prefix="/v1")
|
||||
app.include_router(cross_chain, prefix="/v1")
|
||||
|
||||
# Include marketplace_offers AFTER global_marketplace to override the /offers endpoint
|
||||
app.include_router(marketplace_offers, prefix="/v1")
|
||||
|
||||
Reference in New Issue
Block a user