Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .github/workflows/backend-ci.yml

This file was deleted.

4 changes: 4 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ LOG_LEVEL=info
# ── Indexer ───────────────────────────────────────────────────
GENESIS_LEDGER=100000
POLL_INTERVAL_MS=5000
# Ledgers replayed per batch when recovering a startup gap (max 1 batch/sec)
INDEXER_REPLAY_BATCH_SIZE=50
# Ledger gap above which replay is skipped (Sentry warning emitted instead)
INDEXER_MAX_REPLAY_LEDGERS=10000

# ── External Boxing Data API ──────────────────────────────────
BOXING_API_URL=https://api.example-boxing-data.com/v1
Expand Down
1 change: 1 addition & 0 deletions backend/db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ CREATE TABLE IF NOT EXISTS markets (
pool_draw NUMERIC NOT NULL DEFAULT 0,
total_pool NUMERIC NOT NULL DEFAULT 0,
fee_bps INTEGER NOT NULL DEFAULT 200,
lock_before_secs INTEGER NOT NULL DEFAULT 3600,
resolved_at TIMESTAMPTZ,
oracle_used TEXT,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
Expand Down
2 changes: 2 additions & 0 deletions backend/src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const envSchema = z.object({
ENABLE_SWAGGER: z.coerce.boolean().default(false),
GENESIS_LEDGER: z.coerce.number().int().positive().default(100000),
POLL_INTERVAL_MS: z.coerce.number().int().positive().default(5000),
INDEXER_REPLAY_BATCH_SIZE: z.coerce.number().int().positive().default(50),
INDEXER_MAX_REPLAY_LEDGERS: z.coerce.number().int().positive().default(10000),
BOXING_API_URL: z.string().url().optional(),
SENTRY_DSN: z.string().url().optional(),
WS_BUFFER_THRESHOLD_BYTES: z.coerce.number().int().positive().default(16384),
Expand Down
1 change: 0 additions & 1 deletion backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import adminRouter from "./routes/admin.routes";
import disputesRouter from "./routes/disputes.routes";
import { getPortfolio, getPlatformStats, getLeaderboard } from "./api/controllers/MarketController";
import governanceRouter from "./routes/governance.routes";
import { getPortfolio, getPlatformStats } from "./api/controllers/MarketController";
import claimsRouter from "./routes/bet.routes";
import { startAutoResolutionCron, startAutoLockCron } from "./cron/autoResolution.cron";
import { startCleanupCron } from "./cron/cleanup.cron";
Expand Down
Loading