// Minimal EnergiBridge implementation: convert DeltaMesh primitives into a CatOpt-like structure. #include "EnergiBridge.h" void EnergiBridge_map_LocalMarket_to_CatOpt(const LocalMarket* lm, CatOpt_Object* out) { if (!lm || !out) return; // Direct field mapping for toy MVP; in a real bridge this would be richer and versioned out->venue = lm->venue; out->inventory = lm->inventory; out->risk_budget = lm->risk_budget; // Best-effort: initialize a simple static version; in a real system this would be a per-message counter out->version = 1; } void EnergiBridge_map_SharedSignals_to_CatOpt(const SharedSignals* ss, CatOpt_Signal* out) { if (!ss || !out) return; out->aggregated_greeks = ss->aggregated_greeks; out->implied_vol = ss->implied_vol; out->version = 1; } void EnergiBridge_map_PlanDelta_to_CatOpt(const PlanDelta* pd, CatOpt_PlanDelta* out) { if (!pd || !out) return; out->quote = pd->quote; out->hedge = pd->hedge; out->timestamp = pd->timestamp; out->version = 1; }