{"_id":"@basex-fi/swap-router-contracts","_rev":"1-0f63a1369f1d5b34899063ad0d9a4645","name":"@basex-fi/swap-router-contracts","dist-tags":{"latest":"1.3.2"},"versions":{"1.3.1":{"name":"@basex-fi/swap-router-contracts","description":"Smart contracts for swapping on BaseX","license":"GPL-2.0-or-later","publishConfig":{"access":"public"},"version":"1.3.1","homepage":"https://basex.fi","keywords":["basex","basex.fi","uniswap","v3"],"repository":{"type":"git","url":"git+https://github.com/basex-fi/swap-router-contracts.git"},"engines":{"node":">=10"},"dependencies":{"@openzeppelin/contracts":"3.4.2-solc-0.7","@uniswap/v2-core":"^1.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"^1.4.4","dotenv":"^14.2.0","hardhat-watcher":"^2.1.1"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^2.1.8","@nomiclabs/hardhat-waffle":"^2.0.1","@typechain/ethers-v5":"^4.0.0","@types/chai":"^4.2.6","@types/mocha":"^5.2.7","chai":"^4.2.0","decimal.js":"^10.2.1","ethereum-waffle":"^3.0.2","ethers":"^5.0.8","hardhat":"^2.6.8","hardhat-typechain":"^0.3.5","is-svg":"^4.3.1","mocha":"^6.2.2","mocha-chai-jest-snapshot":"^1.1.0","prettier":"^2.0.5","prettier-plugin-solidity":"^1.0.0-beta.10","solhint":"^3.2.1","solhint-plugin-prettier":"^0.0.5","ts-generator":"^0.1.1","ts-node":"^8.5.4","typechain":"^4.0.0","typescript":"^3.7.3"},"scripts":{"compile":"hardhat compile","test":"hardhat test"},"gitHead":"550c0f20373a487996fcc957075377b67af9df07","bugs":{"url":"https://github.com/basex-fi/swap-router-contracts/issues"},"_id":"@basex-fi/swap-router-contracts@1.3.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-kcpQYIVtO3zTCgmAuPRynGT50yY8MYO5X9RO1GwRQlFQcFWKVBAhR9Z4reXn6fXhE2LFxAkpJcRHmU+Q2vzrWw==","shasum":"3bb569e5abfa487f48069b71dff0b109cfbfe734","tarball":"https://registry.npmjs.org/@basex-fi/swap-router-contracts/-/swap-router-contracts-1.3.1.tgz","fileCount":27,"unpackedSize":76039,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+HXKh3PDVPf+9vqygaJVZ5Ov7TxPX6jYiNiEj2YknDQIgT5kk/eh04QieuaoiNBIsOnck6vhx0cWDFvdXvo+ZSxg="}]},"_npmUser":{"name":"seesea2021","email":"seesea2021@protonmail.com"},"directories":{},"maintainers":[{"name":"seesea2021","email":"seesea2021@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-router-contracts_1.3.1_1699325692914_0.3142552218323731"},"_hasShrinkwrap":false},"1.3.2":{"name":"@basex-fi/swap-router-contracts","description":"Smart contracts for swapping on BaseX","license":"GPL-2.0-or-later","publishConfig":{"access":"public"},"version":"1.3.2","homepage":"https://basex.fi","keywords":["basex","basex.fi","uniswap","v3"],"repository":{"type":"git","url":"git+https://github.com/basex-fi/swap-router-contracts.git"},"engines":{"node":">=10"},"dependencies":{"@openzeppelin/contracts":"3.4.2-solc-0.7","@uniswap/v2-core":"^1.0.1","@uniswap/v3-core":"^1.0.0","@uniswap/v3-periphery":"^1.4.4","dotenv":"^14.2.0","hardhat-watcher":"^2.1.1"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^2.1.8","@nomiclabs/hardhat-waffle":"^2.0.1","@typechain/ethers-v5":"^4.0.0","@types/chai":"^4.2.6","@types/mocha":"^5.2.7","chai":"^4.2.0","decimal.js":"^10.2.1","ethereum-waffle":"^3.0.2","ethers":"^5.0.8","hardhat":"^2.6.8","hardhat-typechain":"^0.3.5","is-svg":"^4.3.1","mocha":"^6.2.2","mocha-chai-jest-snapshot":"^1.1.0","prettier":"^2.0.5","prettier-plugin-solidity":"^1.0.0-beta.10","solhint":"^3.2.1","solhint-plugin-prettier":"^0.0.5","ts-generator":"^0.1.1","ts-node":"^8.5.4","typechain":"^4.0.0","typescript":"^3.7.3"},"scripts":{"compile":"hardhat compile","test":"hardhat test"},"gitHead":"e905ee0a43df8b4d7aa8437998846b66ee52619d","bugs":{"url":"https://github.com/basex-fi/swap-router-contracts/issues"},"_id":"@basex-fi/swap-router-contracts@1.3.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-QXBtlQ/F2E6y4qRqCIyjPSw2ytJD+xKVbjD96fC0bT+1/HerG8JfoB9dqOLcbyCO3MEE+LWtN9ihGDy3Vu8fDA==","shasum":"b2ebbf4c6eb834030dc6e35b9ccf676ae1a2131c","tarball":"https://registry.npmjs.org/@basex-fi/swap-router-contracts/-/swap-router-contracts-1.3.2.tgz","fileCount":51,"unpackedSize":397505,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+Yvh6MHTN814Bae6cq6XFmx8qU0D9vnBHtxMl5mZSUgIhAMRV8A099otAVwvkCmzvV4N2dYiha/O1R5DONlvuarpm"}]},"_npmUser":{"name":"seesea2021","email":"seesea2021@protonmail.com"},"directories":{},"maintainers":[{"name":"seesea2021","email":"seesea2021@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-router-contracts_1.3.2_1699335554356_0.3816164035445959"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-07T02:54:52.853Z","1.3.1":"2023-11-07T02:54:53.100Z","modified":"2023-11-07T05:39:14.707Z","1.3.2":"2023-11-07T05:39:14.522Z"},"maintainers":[{"name":"seesea2021","email":"seesea2021@protonmail.com"}],"description":"Smart contracts for swapping on BaseX","homepage":"https://basex.fi","keywords":["basex","basex.fi","uniswap","v3"],"repository":{"type":"git","url":"git+https://github.com/basex-fi/swap-router-contracts.git"},"bugs":{"url":"https://github.com/basex-fi/swap-router-contracts/issues"},"license":"GPL-2.0-or-later","readme":"# Uniswap Swap Router\n\n[![Tests](https://github.com/Uniswap/swap-router-contracts/workflows/Tests/badge.svg)](https://github.com/Uniswap/swap-router-contracts/actions?query=workflow%3ATests)\n[![Lint](https://github.com/Uniswap/swap-router-contracts/workflows/Lint/badge.svg)](https://github.com/Uniswap/swap-router-contracts/actions?query=workflow%3ALint)\n\nThis repository contains smart contracts for swapping on the Uniswap V2 and V3 protocols.\n\n## Bug bounty\n\nThis repository is subject to the Uniswap V3 bug bounty program,\nper the terms defined [here](./bug-bounty.md).\n\n## Local deployment\n\nIn order to deploy this code to a local testnet, you should install the npm package\n`@uniswap/swap-router-contracts`\nand import bytecode imported from artifacts located at\n`@uniswap/swap-router-contracts/artifacts/contracts/*/*.json`.\nFor example:\n\n```typescript\nimport {\n  abi as SWAP_ROUTER_ABI,\n  bytecode as SWAP_ROUTER_BYTECODE,\n} from '@uniswap/swap-router-contracts/artifacts/contracts/SwapRouter02.sol/SwapRouter02.json'\n\n// deploy the bytecode\n```\n\nThis will ensure that you are testing against the same bytecode that is deployed to\nmainnet and public testnets, and all Uniswap code will correctly interoperate with\nyour local deployment.\n\n## Using solidity interfaces\n\nThe swap router contract interfaces are available for import into solidity smart contracts\nvia the npm artifact `@uniswap/swap-router-contracts`, e.g.:\n\n```solidity\nimport '@uniswap/swap-router-contracts/contracts/interfaces/ISwapRouter02.sol';\n\ncontract MyContract {\n  ISwapRouter02 router;\n\n  function doSomethingWithSwapRouter() {\n    // router.exactInput(...);\n  }\n}\n\n```\n\n## Tests\n\nSome tests use Hardhat mainnet forking and therefore require an archive node.\nEither create a `.env` file in the workspace root containing:\n\n```\nARCHIVE_RPC_URL='...'\n```\n\nOr set the variable when running tests:\n\n```\nexport ARCHIVE_RPC_URL='...' && npm run test\n```\n","readmeFilename":"README.md"}