mirror of
https://github.com/luxfi/exchange-api.git
synced 2026-10-30 16:56:53 +00:00
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).
17 lines
381 B
JSON
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"]
|
|
}
|