Files
zeekay ca45a04378 feat: trading-api — swappable_tokens/quote/swap/check_approval over Lux AMM
The lux.exchange swap selector + swaps use the Uniswap trading-api REST
surface, which had no backend (exchange-api was GraphQL-only). Add:
- dexRouter.ts: pure on-chain routing/quoting over the Lux V3 pools
  (QuoterV2 0x15C729, SwapRouter02 0x939bC0), single + 2-hop via WLUX/LUSD
  hubs. Pure module = the reusable 'Lux DEX venue' for luxfi/broker.
- trading.ts: GET /v1/swappable_tokens, POST /v1/quote, POST /v1/swap,
  POST /v1/check_approval in exact Uniswap trading-api shapes.
All amounts are live QuoterV2/pool/ERC20 eth_calls; no Permit2 (Lux
SwapRouter02 uses direct approval).
2026-06-22 04:40:37 -07:00

17 lines
381 B
JSON

{
"compilerOptions": {
"target": "ES2022",
"module": "commonjs",
"lib": ["ES2022"],
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
},
"include": ["src"],
"exclude": ["src/**/*.test.ts", "src/test-graph-env.ts"]
}