{"_id":"@aetherswap/swap-router","name":"@aetherswap/swap-router","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aetherswap/swap-router","description":"Smart contracts for swapping on Aetherswap Protocol","license":"GPL-2.0-or-later","publishConfig":{"access":"public"},"version":"1.0.0","homepage":"https://aetherswap.org","keywords":["aetherswap","defi","solidity"],"repository":{"type":"git","url":"git+https://github.com/aetherswap/swap-router.git"},"engines":{"node":">=10"},"dependencies":{"@openzeppelin/contracts":"3.4.2-solc-0.7","@uniswap/v2-core":"^1.0.1","@aetherswap/core-contracts":"^1.0.0","@aetherswap/periphery":"^1.0.0","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"},"main":"index.js","directories":{"test":"test"},"author":"","bugs":{"url":"https://github.com/aetherswap/swap-router/issues"},"_id":"@aetherswap/swap-router@1.0.0","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-Sx3wd1YddkJeq55OQRhGp9bfxcYj1ulz2QQnLHMg6SgZjhhgj16esvaKXsa/WTMWdrOQ94+6fFcjMTqdModw1w==","shasum":"6d3f59f39fca76a08e8a0b5279e5db5c4a163cdb","tarball":"https://registry.npmjs.org/@aetherswap/swap-router/-/swap-router-1.0.0.tgz","fileCount":51,"unpackedSize":397295,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkpmiHGmKgzzUYzt3bTXJJPzn+786/9gjNVeMoFPQETQIhALRX5CxzNdqKHXzINFczCquyvndo0dVLsprSROKYUCZw"}]},"_npmUser":{"name":"aetherdex","email":"aetherswap15@gmail.com"},"maintainers":[{"name":"aetherdex","email":"aetherswap15@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-router_1.0.0_1728722644562_0.9998544170035637"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-12T08:44:04.492Z","1.0.0":"2024-10-12T08:44:04.764Z","modified":"2024-10-12T08:44:05.029Z"},"maintainers":[{"name":"aetherdex","email":"aetherswap15@gmail.com"}],"description":"Smart contracts for swapping on Aetherswap Protocol","homepage":"https://aetherswap.org","keywords":["aetherswap","defi","solidity"],"repository":{"type":"git","url":"git+https://github.com/aetherswap/swap-router.git"},"bugs":{"url":"https://github.com/aetherswap/swap-router/issues"},"license":"GPL-2.0-or-later","readme":"# Aetherswap Swap Router\n\n[![npm version](https://img.shields.io/npm/v/@aetherswap/swap-router/latest.svg)](https://www.npmjs.com/package/@aetherswap/swap-router/v/latest)\n\nThis repository contains smart contracts for swapping on the Aetherswap protocols.\n\n## Local deployment\n\nIn order to deploy this code to a local testnet, you should install the npm package\n`@aetherswap/swap-router`\nand import bytecode imported from artifacts located at\n`@aetherswap/swap-router/artifacts/contracts/*/*.json`.\nFor example:\n\n```typescript\nimport {\n  abi as SWAP_ROUTER_ABI,\n  bytecode as SWAP_ROUTER_BYTECODE,\n} from '@aetherswap/swap-router/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 Aetherswap 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 `@aetherswap/swap-router`, e.g.:\n\n```solidity\nimport '@aetherswap/swap-router/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"}