import { createPostgresPool } from './src/lib/postgres.mjs'; import { refreshQuoteOutcomes } from './src/lib/postgres.mjs'; import { deriveInventoryDeltas } from './src/core/quote-outcomes.mjs'; const pool = createPostgresPool({ connectionString: process.env.POSTGRES_URL }); async function main() { console.log("Starting debug run..."); try { const t0 = Date.now(); const records = await refreshQuoteOutcomes(pool, { btcAsset: { assetId: 'nep141:nbtc.bridge.near' }, eureAsset: { assetId: 'nep141:eure.omft.near' } }); console.log(`Returned: ${records.length} in ${Date.now() - t0}ms`); } catch(e) { console.error("Error:", e); } process.exit(0); } main();