Files
smom-dbis-138/services/settlement-middleware/src/index.ts
zaragoza444 4048112461
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 59s
CI/CD Pipeline / Security Scanning (push) Successful in 2m34s
CI/CD Pipeline / Lint and Format (push) Failing after 49s
CI/CD Pipeline / Terraform Validation (push) Failing after 22s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 26s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 19s
Validation / validate-genesis (push) Successful in 31s
Validation / validate-terraform (push) Failing after 27s
Validation / validate-kubernetes (push) Failing after 10s
Validation / validate-smart-contracts (push) Failing after 12s
Validation / validate-security (push) Failing after 1m26s
Validation / validate-documentation (push) Failing after 18s
feat(settlement): production Revolut, Wise, and Binance external rails
Wire Business/Platform/Spot adapters with fail-closed live gates, status/probe/dispatch APIs, smoke script, and portal rails UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-19 12:14:37 -07:00

23 lines
693 B
TypeScript

import * as dotenv from 'dotenv';
import path from 'path';
import { existsSync } from 'fs';
import { startServer } from './server';
const rootEnv = path.resolve(__dirname, '../../../.env');
if (existsSync(rootEnv)) dotenv.config({ path: rootEnv });
dotenv.config();
/** Production rail secrets (gitignored) — Revolut / Wise / Binance */
const repoRoot = path.resolve(__dirname, '../../..');
for (const rel of [
'secrets/revolut/credentials.env',
'secrets/wise/credentials.env',
'secrets/binance/credentials.env',
'config/rails-revolut-wise-binance.env',
]) {
const p = path.join(repoRoot, rel);
if (existsSync(p)) dotenv.config({ path: p, override: false });
}
startServer();