Files
dex/sdk/ts/package.json
zeekay 41538c46db sdk/ts: add clean-room BSD-3 @luxfi/dex-sdk scaffold
Non-GPL TypeScript client surface over the four DEX paths:
- precompile: V4 on-chain via LXPool 0x9010 (MIT @luxfi/exchange ABIs + viem)
- zap:        binary CLOB wire (pkg/zapwire frozen frame sizes/methods)
- fix:        FIX 4.4 order entry (pkg/fix tags)
- ws:         JSON WebSocket streaming + orders (pkg/api envelope)

Types + path-uniform DexClient interface + frozen wire constants. Typechecks
under TS 5.9 strict. BSD-3-Clause, no Uniswap/GPL-derived code. Not pushed.
2026-06-19 13:03:40 -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 precompile (LXPool 0x9010), ZAP binary wire, FIX 4.4, 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"
}
}