{"_id":"@claude3month/universal-router-sdk","name":"@claude3month/universal-router-sdk","dist-tags":{"latest":"4.19.6"},"versions":{"4.19.6":{"name":"@claude3month/universal-router-sdk","description":"sdk for integrating with the Universal Router contracts","repository":{"type":"git","url":"git+https://github.com/Uniswap/sdks.git"},"keywords":["uniswap","ethereum"],"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"build":"tsdx build","docs":"typedoc","forge:fix":"forge fmt","lint":"yarn prettier","lint:fix":"yarn prettier:fix && yarn forge:fix","prettier":"prettier --check '**/*.ts' && prettier --check '**/*.json'","prettier:fix":"prettier --write '**/*.ts' && prettier --write '**/*.json'","release":"semantic-release","test":"yarn test:hardhat && yarn test:forge","test:forge":"forge test","test:hardhat":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' hardhat test"},"dependencies":{"@openzeppelin/contracts":"4.7.0","@uniswap/permit2-sdk":"^1.3.0","@uniswap/router-sdk":"^2.0.2","@uniswap/sdk-core":"^7.7.1","@uniswap/universal-router":"2.0.0-beta.2","@uniswap/v2-core":"^1.0.1","@uniswap/v2-sdk":"^4.15.2","@uniswap/v3-core":"1.0.0","@uniswap/v3-sdk":"^3.25.2","@uniswap/v4-sdk":"^1.21.2","bignumber.js":"^9.0.2","ethers":"^5.7.0"},"devDependencies":{"@types/chai":"^4.3.3","@types/mocha":"^9.1.1","@types/node":"^18.7.16","@types/node-fetch":"^2.6.2","chai":"^4.3.6","dotenv":"^16.0.3","eslint-plugin-prettier":"^3.4.1","hardhat":"^2.25.0","prettier":"^2.4.1","ts-node":"^10.9.1","tsdx":"^0.14.1","tslib":"^2.3.0","typedoc":"^0.21.2","typescript":"^4.3.3"},"prettier":{"printWidth":120,"semi":false,"singleQuote":true,"trailingComma":"es5"},"publishConfig":{"access":"public"},"release":{"extends":"semantic-release-monorepo","branches":[{"name":"main","prerelease":false}],"plugins":[["@semantic-release/commit-analyzer",{"preset":"angular","releaseRules":"../../publishing/release-rules.cjs"}],"@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github",["@semantic-release/exec",{"successCmd":"git restore yarn.lock && yarn","failCmd":"git restore yarn.lock && yarn","execCwd":"../.."}]]},"installConfig":{"hoistingLimits":"workspaces"},"sideEffects":false,"version":"4.19.6","_id":"@claude3month/universal-router-sdk@4.19.6","gitHead":"cdf432ce004cc536f50c7285ffdba99f18605e0f","bugs":{"url":"https://github.com/Uniswap/sdks/issues"},"homepage":"https://github.com/Uniswap/sdks#readme","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-6PyzDH//UiHo+m9TX6tUloZxnqZk/2ZpGVR1cqBQQX2OREVP8O/TyxtcfnWwL9G2VDjUhioUiy3h1JOWqMhsZw==","shasum":"4ed9923fe4536fe8975c57023ad07c4adb367664","tarball":"https://registry.npmjs.org/@claude3month/universal-router-sdk/-/universal-router-sdk-4.19.6.tgz","fileCount":29,"unpackedSize":543343,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF15UyKY4YDb/kPdoG74liZKSZ2w8RrwAEUBgpevel5bAiEAw/ObRuf1Zw+FEI9hZoEMzzbZ0cz1PzUHqLkIC8pwlzE="}]},"_npmUser":{"name":"claude3month","email":"claude3month@gmail.com"},"directories":{},"maintainers":[{"name":"claude3month","email":"claude3month@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/universal-router-sdk_4.19.6_1757385011996_0.3641563873074256"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-09T02:30:11.914Z","4.19.6":"2025-09-09T02:30:12.217Z","modified":"2025-09-09T02:30:12.510Z"},"maintainers":[{"name":"claude3month","email":"claude3month@gmail.com"}],"description":"sdk for integrating with the Universal Router contracts","homepage":"https://github.com/Uniswap/sdks#readme","keywords":["uniswap","ethereum"],"repository":{"type":"git","url":"git+https://github.com/Uniswap/sdks.git"},"bugs":{"url":"https://github.com/Uniswap/sdks/issues"},"license":"MIT","readme":"# universal-router-sdk\nThis SDK facilitates interactions with the contracts in [Universal Router](https://github.com/Uniswap/universal-router)\n\n## Usage\nInstall latest version of universal-router-sdk. Then import the corresponding Trade class and Data object for each protocol you'd like to interact with.\n\n### Trading on Uniswap\nwarning: `swapERC20CallParameters()` to be deprecated in favor of `swapCallParameters()`\n```typescript\nimport { TradeType } from '@uniswap/sdk-core'\nimport { Trade as V2TradeSDK } from '@uniswap/v2-sdk'\nimport { Trade as V3TradeSDK } from '@uniswap/v3-sdk'\nimport { MixedRouteTrade, MixedRouteSDK, Trade as RouterTrade } from '@uniswap/router-sdk'\n\nconst options = { slippageTolerance, recipient }\nconst routerTrade = new RouterTrade({ v2Routes, v3Routes, mixedRoutes, tradeType: TradeType.EXACT_INPUT })\n// Use the raw calldata and value returned to call into Universal Swap Router contracts\nconst { calldata, value } = SwapRouter.swapCallParameters(routerTrade, options)\n```\n\n## Running this package\nMake sure you are running `node v18`\nInstall dependencies and run typescript unit tests\n```bash\nyarn install\nyarn test:hardhat\n```\n\nRun forge integration tests\n```bash\nforge install\nyarn test:forge\n```\n","readmeFilename":"README.md","_rev":"1-412a68f8c06c019f8abe5b4e88c47c6f"}