/**
 * Zedxion relay: 138 LockForZedxion → 83872 releaseOnZedxion; 83872 LockFor138 → 138 releaseOn138.
 * Env: ZEDXION_CUSTOM_BRIDGE_138, ZEDXION_CUSTOM_BRIDGE_83872, ZEDXION_RELAY_PRIVATE_KEY.
 */
import winston from 'winston';
import { ZedxionRelayService } from './src/ZedxionRelayService.js';

const logger = winston.createLogger({
  level: process.env.LOG_LEVEL || 'info',
  format: winston.format.simple(),
  transports: [new winston.transports.Console()],
});

const service = new ZedxionRelayService(logger);
service.start().catch((err) => {
  logger.error('Failed to start', err);
  process.exit(1);
});
