{"_id":"@arth-s/swap-router-contracts","_rev":"4-0753c083a4ffdc82b5860da93304c0b1","name":"@arth-s/swap-router-contracts","dist-tags":{"latest":"1.3.2-beta"},"versions":{"1.3.2":{"name":"@arth-s/swap-router-contracts","description":"Smart contracts for swapping on ArthSwap V2 and V3","license":"GPL-2.0-or-later","publishConfig":{"access":"public"},"version":"1.3.2","homepage":"https://arthswap.org","keywords":["arthswap","v2","v3"],"repository":{"type":"git","url":"git+https://github.com/ArthSwap/swap-router-contracts.git"},"engines":{"node":">=10"},"dependencies":{"@openzeppelin/contracts":"3.4.2-solc-0.7","@arth-s/v2-core":"1.0.6","@arth-s/v3-core":"1.0.3","@arth-s/v3-periphery":"1.4.7","dotenv":"^14.2.0","hardhat-watcher":"^2.1.1"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.1.7","@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"},"bugs":{"url":"https://github.com/ArthSwap/swap-router-contracts/issues"},"_id":"@arth-s/swap-router-contracts@1.3.2","_nodeVersion":"19.4.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-qNizADtrlS+NwS4yxFpJpwP4XwtoVdhPoA2i8rg6SilXzY+HqqKGvSO9xNlkrha8R3UMH/HdInwGqCbcz7rPGw==","shasum":"150615445016d92cbec820c634276a60f2045b30","tarball":"https://registry.npmjs.org/@arth-s/swap-router-contracts/-/swap-router-contracts-1.3.2.tgz","fileCount":51,"unpackedSize":397376,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfbkVQxgvF4sYJUERsg7EmK9XIwnXFV1n/uV9iXWqGyAiEA2/VSAHWGK65RtaKsTp/uCzV4GoPnmPd6Y/7y3hudkUI="}]},"_npmUser":{"name":"arthswap-dev","email":"dev@arthswap.org"},"directories":{},"maintainers":[{"name":"arthswap-dev","email":"dev@arthswap.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-router-contracts_1.3.2_1701669571477_0.44808093847780106"},"_hasShrinkwrap":false},"1.3.3":{"name":"@arth-s/swap-router-contracts","description":"Smart contracts for swapping on ArthSwap V2 and V3","license":"GPL-2.0-or-later","publishConfig":{"access":"public"},"version":"1.3.3","homepage":"https://arthswap.org","keywords":["arthswap","v2","v3"],"repository":{"type":"git","url":"git+https://github.com/ArthSwap/swap-router-contracts.git"},"engines":{"node":">=10"},"dependencies":{"@openzeppelin/contracts":"3.4.2-solc-0.7","@arth-s/v2-core":"^1.0.7","@arth-s/v3-core":"^1.0.3","@arth-s/v3-periphery":"^1.4.8","dotenv":"^14.2.0","hardhat-watcher":"^2.1.1"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.1.7","@nomiclabs/hardhat-waffle":"^2.0.1","@uniswap/v3-sdk":"^3.8.3","@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.12.2","hardhat-typechain":"^0.3.5","patch-package":"^7.0.2","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","postinstall":"patch-package"},"gitHead":"05aefb635a5db36e5e18779d176774f0c3892a56","bugs":{"url":"https://github.com/ArthSwap/swap-router-contracts/issues"},"_id":"@arth-s/swap-router-contracts@1.3.3","_nodeVersion":"19.4.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-LnsoZFYNGOdrCIFnKl28YqCiqQVJkbD2fM7FU4+UC/bMJ8dQOoKxYbAEnLTc6w5ssPXOGpbNm/qrctABAXh+NQ==","shasum":"767a393761e4a631ad390e247e7bfac1641ba5aa","tarball":"https://registry.npmjs.org/@arth-s/swap-router-contracts/-/swap-router-contracts-1.3.3.tgz","fileCount":51,"unpackedSize":397479,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKIBAWc8farMyiUd8ftS3L3xMXw+JCr+tm1feTwJcs4wIhAMNcNSXsivCbHd7mODLpCLlQFuKPniHBxhT2JhMznA0V"}]},"_npmUser":{"name":"arthswap-dev","email":"dev@arthswap.org"},"directories":{},"maintainers":[{"name":"arthswap-dev","email":"dev@arthswap.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-router-contracts_1.3.3_1701696037442_0.41816146678219424"},"_hasShrinkwrap":false},"1.3.4":{"name":"@arth-s/swap-router-contracts","description":"Smart contracts for swapping on ArthSwap V2 and V3","license":"GPL-2.0-or-later","publishConfig":{"access":"public"},"version":"1.3.4","homepage":"https://arthswap.org","keywords":["arthswap","v2","v3"],"repository":{"type":"git","url":"git+https://github.com/ArthSwap/swap-router-contracts.git"},"engines":{"node":">=10"},"dependencies":{"@openzeppelin/contracts":"3.4.2-solc-0.7","@arth-s/v2-core":"^1.0.7","@arth-s/v3-core":"^1.0.3","@arth-s/v3-periphery":"^1.4.8","dotenv":"^14.2.0","hardhat-watcher":"^2.1.1"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.1.7","@nomiclabs/hardhat-waffle":"^2.0.1","@uniswap/v3-sdk":"^3.8.3","@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.12.2","hardhat-typechain":"^0.3.5","patch-package":"^7.0.2","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":"05aefb635a5db36e5e18779d176774f0c3892a56","bugs":{"url":"https://github.com/ArthSwap/swap-router-contracts/issues"},"_id":"@arth-s/swap-router-contracts@1.3.4","_nodeVersion":"19.4.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-oAOCC1eNu415KEiShiTXc+R5XbBxGPQ0xmKzSKTT6ms8LBfQXHW1QJc3FvChutsuXAPyj254qf6Cn0mEvyjngQ==","shasum":"31698f748b5804a1ef7f4bf42dee38b0ee22e87f","tarball":"https://registry.npmjs.org/@arth-s/swap-router-contracts/-/swap-router-contracts-1.3.4.tgz","fileCount":51,"unpackedSize":397443,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpplxkw/a7oLjQGhZrInQmyz3Ic6+N1nWb2lt65VT5/wIhALG5VBf3PD2qiWqNdIwBdIj63frueqR4DaBFfKyhMn0x"}]},"_npmUser":{"name":"arthswap-dev","email":"dev@arthswap.org"},"directories":{},"maintainers":[{"name":"arthswap-dev","email":"dev@arthswap.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-router-contracts_1.3.4_1701696316003_0.4867277789986002"},"_hasShrinkwrap":false},"1.3.2-alpha":{"name":"@arth-s/swap-router-contracts","description":"Smart contracts for swapping on ArthSwap V2 and V3","license":"GPL-2.0-or-later","publishConfig":{"access":"public"},"version":"1.3.2-alpha","homepage":"https://arthswap.org","keywords":["arthswap","v2","v3"],"repository":{"type":"git","url":"git+https://github.com/ArthSwap/swap-router-contracts.git"},"engines":{"node":">=10"},"dependencies":{"@openzeppelin/contracts":"3.4.2-solc-0.7","@arth-s/v2-core":"1.0.6","@arth-s/v3-core":"1.0.3","@arth-s/v3-periphery":"1.4.7","dotenv":"^14.2.0","hardhat-watcher":"^2.1.1"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.1.7","@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"},"_id":"@arth-s/swap-router-contracts@1.3.2-alpha","gitHead":"13c726fea85b811eb4dfabdfe3b76a3ee7ba44a6","bugs":{"url":"https://github.com/ArthSwap/swap-router-contracts/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-MOjrUVGF9QmHBKU7TGURmnrj+lOul3w9yDulU8rqu2EC7coVaSBVmcqEBYJwjr+3quVrfWaF+Q+E6SQNLnhgDA==","shasum":"c415322e26dc183e07f92181bd668453d1aa2544","tarball":"https://registry.npmjs.org/@arth-s/swap-router-contracts/-/swap-router-contracts-1.3.2-alpha.tgz","fileCount":51,"unpackedSize":397382,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQB9PtaD+1df4NtUqnepMXXhKZJswsFUtG/XnU5TU52wIgW51714Aqp5EwsFB6lp60J0f+XnmPT9oh9uFVxFj6ggs="}]},"_npmUser":{"name":"arthswap-dev","email":"dev@arthswap.org"},"directories":{},"maintainers":[{"name":"arthswap-dev","email":"dev@arthswap.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-router-contracts_1.3.2-alpha_1701777081000_0.6208403452915161"},"_hasShrinkwrap":false},"1.3.2-beta":{"name":"@arth-s/swap-router-contracts","description":"Smart contracts for swapping on ArthSwap V2 and V3","license":"GPL-2.0-or-later","publishConfig":{"access":"public"},"version":"1.3.2-beta","homepage":"https://arthswap.org","keywords":["arthswap","v2","v3"],"repository":{"type":"git","url":"git+https://github.com/ArthSwap/swap-router-contracts.git"},"engines":{"node":">=10"},"dependencies":{"@openzeppelin/contracts":"3.4.2-solc-0.7","@arth-s/v2-core":"1.0.6","@arth-s/v3-core":"1.0.3","@arth-s/v3-periphery":"1.4.7-alpha","dotenv":"^14.2.0","hardhat-watcher":"^2.1.1"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.1.7","@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"},"_id":"@arth-s/swap-router-contracts@1.3.2-beta","gitHead":"13c726fea85b811eb4dfabdfe3b76a3ee7ba44a6","bugs":{"url":"https://github.com/ArthSwap/swap-router-contracts/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-81Oy03hc/Gchgr9hKiPDvCqF7s+saOPEKB4B9zCvBDUKvWRBSDR2dZzLTtPsXt3EXbyBKC1wtvn5XcsvcF17tw==","shasum":"eae8a6de932c930ce563ead04d0704e37a477d1a","tarball":"https://registry.npmjs.org/@arth-s/swap-router-contracts/-/swap-router-contracts-1.3.2-beta.tgz","fileCount":51,"unpackedSize":397387,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYDxaYI9m1/0C50+cOObFfheTWMDebNZ+X7U7zt7akjgIhAKT+czXgQbju1fndbuH23CKdOjYf45wBVZqS4Rn0Gmod"}]},"_npmUser":{"name":"arthswap-dev","email":"dev@arthswap.org"},"directories":{},"maintainers":[{"name":"arthswap-dev","email":"dev@arthswap.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swap-router-contracts_1.3.2-beta_1701777340234_0.13829673530833708"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-04T05:59:31.382Z","1.3.2":"2023-12-04T05:59:31.708Z","modified":"2023-12-05T11:55:40.605Z","1.3.3":"2023-12-04T13:20:37.659Z","1.3.4":"2023-12-04T13:25:16.200Z","1.3.2-alpha":"2023-12-05T11:51:21.249Z","1.3.2-beta":"2023-12-05T11:55:40.419Z"},"maintainers":[{"name":"arthswap-dev","email":"dev@arthswap.org"}],"description":"Smart contracts for swapping on ArthSwap V2 and V3","homepage":"https://arthswap.org","keywords":["arthswap","v2","v3"],"repository":{"type":"git","url":"git+https://github.com/ArthSwap/swap-router-contracts.git"},"bugs":{"url":"https://github.com/ArthSwap/swap-router-contracts/issues"},"license":"GPL-2.0-or-later","readme":"# ArthSwap Swap Router\n\n[![Tests](https://github.com/ArthSwap/swap-router-contracts/workflows/Tests/badge.svg)](https://github.com/ArthSwap/swap-router-contracts/actions?query=workflow%3ATests)\n[![Lint](https://github.com/ArthSwap/swap-router-contracts/workflows/Lint/badge.svg)](https://github.com/ArthSwap/swap-router-contracts/actions?query=workflow%3ALint)\n\nThis repository contains smart contracts for swapping on the ArthSwap V2 and V3 protocols.\n\n## Local deployment\n\nIn order to deploy this code to a local testnet, you should install the npm package\n`@arth-s/swap-router-contracts`\nand import bytecode imported from artifacts located at\n`@arth-s/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 '@arth-s/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 ArthSwap 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 `@arth-s/swap-router-contracts`, e.g.:\n\n```solidity\nimport '@arth-s/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"}