bitflow-market-maker-public/package.json
Bought ea8e6895fa
fix: name the BFF host and cause on fetch failures; refresh audited deps (#13)
**BFF reachability (#12)**
- `fetchJson` / `fetchJsonAllowMissing` now report the host and Node's hidden
  `err.cause` (e.g. `ERR_SSL_WRONG_VERSION_NUMBER`) instead of a bare
  "fetch failed", so a VPN, proxy or web filter is distinguishable from an outage
- One un-retried `probeBff` at startup logs `BFF reachable` or
  `BFF unreachable` with the host and cause; startup stays tolerant and ticks
  still hold until the BFF answers
- README Prerequisites lists the hosts the bot needs (BFF, Hiro, CoinGecko)
  and their override variables

**Dependency audit (#11)**
- vitest 2.1.9 -> 4.1.12, plus `npm audit fix` for the rest of the dev chain
- vite pinned to ^6.4.6 as a root dev dependency: vitest 4 otherwise pulls
  vite 8, which needs Node >=20.19, and the kit supports Node 20+
- ui: react-router-dom 6.28 -> 7.18.5 (every 6.x release is in the advisory
  range); no code changes needed

typecheck, build, ui build and 224 tests pass; npm audit reports 0 findings
for root (full and --omit=dev) and ui.

Fixes #12
Closes #11
2026-11-11 14:37:13 -07:00

44 lines
1.3 KiB
JSON

{
"name": "bitflow-market-maker-public",
"version": "0.1.0",
"description": "Bitflow DLMM curve market maker for sBTC/USDCx and STX/USDCx.",
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit",
"start": "node dist/index.js",
"dev": "tsx watch src/index.ts",
"tick": "tsx src/index.ts --once",
"analyze": "tsx scripts/analyze-metrics.ts",
"backtest": "tsx scripts/backtest-width.ts",
"watch": "tsx scripts/pnl-watch.ts",
"curve": "tsx scripts/curve-view.ts",
"fees": "tsx scripts/fee-report.ts",
"test": "vitest run",
"test:watch": "vitest",
"ui": "tsx src/console/main.ts",
"ui:demo": "CONSOLE_BRIDGE_DEMO=1 tsx src/console/main.ts"
},
"dependencies": {
"@noble/hashes": "^1.8.0",
"@scure/bip32": "^1.7.0",
"@scure/bip39": "^1.6.0",
"@scure/btc-signer": "^1.8.1",
"@stacks/network": "^6.16.0",
"@stacks/transactions": "^6.17.0",
"dotenv": "^17.2.3",
"pino": "^9.14.0",
"sbtc": "^0.3.2",
"stacks-tx-v7": "npm:@stacks/transactions@^7.5.0"
},
"devDependencies": {
"@types/node": "^20.11.0",
"pino-pretty": "^13.1.3",
"tsx": "^4.22.4",
"typescript": "^5.3.3",
"vite": "^6.4.6",
"vitest": "^4.1.12"
},
"engines": {
"node": ">=20.0.0"
}
}