Adds a local web console for running and managing the market maker, with built-in bridging. **Console** (`npm run ui`, http://127.0.0.1:5191) - Fleet overview with total value, PnL vs HODL, and a Pause all button - Per-bot pages: decisions, settings with validation, manual swap/add/withdraw, cash out to a saved payout address, dry-run to live checklist - New-bot flow: create or import a wallet (key or recovery phrase), back up the key, fund it, pick a pool - Bots are spawned as child processes with argv (no shell); key and phrase stay in the 0600 env file **Bridging** - BTC ↔ sBTC: deposit address per bot (sbtc library defaults), withdrawals via `initiate-withdrawal-request`, status from Emily - USDC ↔ USDCx: deposits from an Ethereum wallet (EIP-6963) through Circle xReserve, withdrawals via `usdcx-v1.burn`; payouts are followed on Ethereum window by window - Activity list with status and per-chain transaction links **Security** - Binds to 127.0.0.1 only; checks Host, Origin and Sec-Fetch-Site; JSON-only writes - Routes that reveal a key or send funds to a typed address answer only the page - Settings writes are allowlisted and validated; secrets are never returned Tested end to end on mainnet in every bridge direction. `npm run build`, `npm test` (215 passing) and the UI build all pass. Docs: README, AGENTS.md, docs/RECOVERY.md, ROADMAP.
17 lines
397 B
JSON
17 lines
397 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
"moduleResolution": "bundler",
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true
|
|
},
|
|
"include": ["src"]
|
|
}
|