New @settlekit/routing: RouteProvider interface; hand-written Relay REST client (EXACT_OUTPUT quote to the merchant payTo, refundTo = buyer, app fees, strict deposit addresses, /intents/status/v3); LI.FI fallback (quote/toAmount, status by origin tx); policy (max fee bps, max slippage, origin allowlist, quote TTL, guaranteed destination amount, recipient/token/chain match); PaymentNetwork -> destination map (Solana/Base/Arbitrum/Ethereum/HyperEVM USDC, Robinhood USDG, Tempo USDC.e or pathUSD, HyperCore 1337 perps USDC); session route record helpers; ROUTING_* env. Tests replay Relay/LI.FI responses recorded live on 2026-09-29 (no network). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
750 B
JSON
29 lines
750 B
JSON
{
|
|
"name": "@settlekit/routing",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"description": "Any-token checkout routing: Relay (primary) and LI.FI (fallback) quotes and status behind one RouteProvider interface, plus fee/slippage/origin policy and per-network destinations.",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"build": "tsc -b",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@settlekit/chains": "workspace:*",
|
|
"@settlekit/common": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.0",
|
|
"typescript": "^5.5.4",
|
|
"vitest": "^2.0.5"
|
|
}
|
|
}
|