/**
 * Tezos L1 relay: listen TezosAdapter TezosBridgeInitiated, perform Tezos mint/transfer, call confirmTransaction.
 * Env: TEZOS_ADAPTER_ADDRESS, RPC_URL_138, TEZOS_RELAY_ORACLE_KEY. See docs/bridge/TEZOS_L1_RELAY_RUNBOOK.md.
 */
import winston from 'winston';
import { TezosRelayService } from './src/TezosRelayService.js';

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

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