Files
dex/sdk/ts/package.json
zeekayandHanzo Dev 91a588ffc7 sdk/ts: describe the surface that exists, not the one it was written against
The clean-room posture is worth keeping; the surface it described had moved.

Settlement is 0x9999, which carries the V4 PoolManager ABI this path already
encodes. The LXPool precompile at 0x9010 it pointed to is deprecated —
eth_getCode returns empty for it on mainnet, so the calls it built went to an
address with no code behind it.

FIX is FIXT.1.1 at the session layer and FIX.5.0SP2 (EP307) at the application
layer. pkg/fix asserts Parse errors on 8=FIX.4.4 and 8=FIX.4.2, so the 4.4
profile advertised here could not open a session.

The ws subpath now says nothing serves it: pkg/api compiles and is tested, but
NewWebSocketServer and NewVenueWS have no caller outside those tests and no
binary in cmd/ imports the package. A client for a listener nobody started is
worth shipping only if it says so.

zap and the precompile path were checked the same way and both reach something
live.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-28 12:48:06 -07:00

70 lines
1.6 KiB
JSON

{
"name": "@luxfi/dex-sdk",
"version": "0.1.0",
"description": "Clean-room BSD-3-Clause TypeScript client for the Lux DEX. One client surface over the four DEX paths: V4 settlement precompile (0x9999), ZAP binary wire, FIXT.1.1/FIX.5.0SP2, and the JSON WebSocket. No GPL/Uniswap-derived code.",
"license": "BSD-3-Clause",
"author": "Lux Industries Inc.",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./precompile": {
"types": "./dist/precompile/index.d.ts",
"import": "./dist/precompile/index.js"
},
"./zap": {
"types": "./dist/zap/index.d.ts",
"import": "./dist/zap/index.js"
},
"./fix": {
"types": "./dist/fix/index.d.ts",
"import": "./dist/fix/index.js"
},
"./ws": {
"types": "./dist/ws/index.d.ts",
"import": "./dist/ws/index.js"
}
},
"files": [
"dist",
"src",
"LICENSE"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"typecheck": "tsc -p tsconfig.json --noEmit",
"clean": "rm -rf dist"
},
"dependencies": {
"@luxfi/exchange": "1.1.0",
"viem": "^2.43.3"
},
"devDependencies": {
"typescript": "5.9.3"
},
"repository": {
"type": "git",
"url": "https://github.com/luxfi/dex.git",
"directory": "sdk/ts"
},
"keywords": [
"lux",
"dex",
"sdk",
"clob",
"amm",
"fix",
"websocket",
"precompile",
"trading"
],
"publishConfig": {
"access": "public"
}
}