"use strict"; /** * HTTP API process — serves REST, optional WS disabled here by default. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const app_1 = __importDefault(require("../app")); const config_1 = require("../config"); const appBootstrap_1 = require("../bootstrap/appBootstrap"); const sentry_1 = require("../observability/sentry"); (0, sentry_1.initSentry)('api'); async function main() { await (0, appBootstrap_1.bootstrapCore)({ startEngines: config_1.config.engineEnabled, startPlatformMonitors: true, }); app_1.default.listen(config_1.config.port, () => { console.log(`[api] listening on port ${config_1.config.port}`); console.log(`[api] engine inline=${config_1.config.engineEnabled} redis=${config_1.config.redis.enabled}`); console.log(`TRON node: ${config_1.config.blockchain.tron.nodeUrl}`); console.log(`Withdrawals broadcasting enabled: ${config_1.config.withdrawal.allowWithdrawals}`); }); } main().catch((e) => { (0, sentry_1.captureException)(e); console.error(e); process.exit(1); }); process.on('unhandledRejection', (reason) => { (0, sentry_1.captureException)(reason); console.error('[process] Unhandled promise rejection (continuing):', reason); }); process.on('uncaughtException', (err) => { (0, sentry_1.captureException)(err); console.error('[process] Uncaught exception (continuing):', err); }); //# sourceMappingURL=api.js.map