{"_id":"@chaoswap/v1-periphery","_rev":"1-c7957346f29fa0f9fc3b8ee13f576c77","name":"@chaoswap/v1-periphery","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@chaoswap/v1-periphery","version":"1.0.0","homepage":"https://github.com/chaoswap/v1-periphery#readme","description":"Peripheral smart contracts for interacting with Chaoswap v1","scripts":{"compile":"hardhat compile","test":"hardhat test"},"keywords":["chaoswap","periphery","v1"],"repository":{"type":"git","url":"git+https://github.com/Chaoswap/v1-periphery.git"},"engines":{"node":">=10"},"dependencies":{"@chaoswap/v1-core":"^1.0.0","@openzeppelin/contracts":"3.4.1-solc-0.7-2","base64-sol":"1.0.1","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"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/chaoswap/v1-periphery/issues"},"_id":"@chaoswap/v1-periphery@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-zAqsMdqfR9GYQcxxbL71vaf7OpBFkHkXzpaBKT6nO9/Nnd3qiy3VsRUgPbJB2SJb1crTWhWZvfXZ/8K7R8SGwA==","shasum":"7251b3bc7b0f41eea035115c5d099efcae279004","tarball":"https://registry.npmjs.org/@chaoswap/v1-periphery/-/v1-periphery-1.0.0.tgz","fileCount":91,"unpackedSize":674928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh83I/CRA9TVsSAnZWagAAzREP/1wUVQQtEiI2hIM+mJQ4\njvcqU5Dnbazu9DPum+BLm2O7V1Q7yN12KFU5F2UQD0O2Om7l9wdSNECFqQoU\nxn6rMBY+DMD6mtoO0VHHKSkRrXVIQM6jZCpOjKTHKcWy8tiW08WQHnweeEoL\nACp/AxxKY8B+VQC/DjMKyurhXeLSYd/WLjx7wLiArCsbNRJLWtxNQye8D4lW\nEFUb3uiJvkF4L7MM5zvO1y8HBRhnt/zE7z71iET2pR926wt8LWpCi20Wtoos\nVl0VidrF/lrwCq/Awl/fPYPNV0fufuq8ePo6DaWVpMKcD1/gsAmkwzRbeWkb\nUJyaBfntNg7ooJZzrCcz4a2k4YX09Dycr1GK3iEg+osVigOakqtRW3TeSBJI\nJoVhf7CnyuU90KV4PNcRgaDd1Y4Spo8nz/fXsBZT0Sk8gwL2hZXxzI8pUVNy\ncSGCjELMS3fc1ZkZKjO2I6gP1micPr8mLK8/P9vof6jGaPYgQUxq18NTMZYz\njyueFKYE40bo6AATWFqSuWkaGW6Vs/YVv2dV2DoIhxYxkibIKpY9cE4wokm9\nI97J7i0rYChaQSy5M73/ujdG4EMZqqhc5v5r9sx/csWY73qA79wG2IPkC5T8\ndddt3t2Xw8WzjOBW2N8yxyEPCEaJeJ+qPrgI1F/dgmH8hAM9Y2/IspWYsKsq\n5XnJ\r\n=OBhG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD87Df7wbV3wk363ydZo/00jkBhfwMsy0rAXyhCNGFzxAIhANVO2vi2SmsrCCNF0xsvkl7pQCqKQhejOmB+DSbZnsJ8"}]},"_npmUser":{"name":"oliverstone","email":"oliver.w.stone@gmail.com"},"directories":{},"maintainers":[{"name":"oliverstone","email":"oliver.w.stone@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v1-periphery_1.0.0_1643344447018_0.7752852474216374"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-28T04:34:06.878Z","1.0.0":"2022-01-28T04:34:07.233Z","modified":"2022-04-04T22:31:20.395Z"},"maintainers":[{"name":"oliverstone","email":"oliver.w.stone@gmail.com"}],"description":"Peripheral smart contracts for interacting with Chaoswap v1","homepage":"https://github.com/chaoswap/v1-periphery#readme","keywords":["chaoswap","periphery","v1"],"repository":{"type":"git","url":"git+https://github.com/Chaoswap/v1-periphery.git"},"bugs":{"url":"https://github.com/chaoswap/v1-periphery/issues"},"license":"GPL-3.0-or-later","readme":"# chaoswap V3 Periphery\n\n[![Tests](https://github.com/chaoswap/chaoswap-v1-periphery/workflows/Tests/badge.svg)](https://github.com/chaoswap/chaoswap-v1-periphery/actions?query=workflow%3ATests)\n[![Lint](https://github.com/chaoswap/chaoswap-v1-periphery/workflows/Lint/badge.svg)](https://github.com/chaoswap/chaoswap-v1-periphery/actions?query=workflow%3ALint)\n\nThis repository contains the periphery smart contracts for the chaoswap V3 Protocol.\nFor the lower level core contracts, see the [chaoswap-v1-core](https://github.com/chaoswap/v1-core)\nrepository.\n\n## Bug bounty\n\nThis repository is subject to the chaoswap 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`@chaoswap/v1-periphery`\nand import bytecode imported from artifacts located at\n`@chaoswap/v1-periphery/artifacts/contracts/*/*.json`.\nFor example:\n\n```typescript\nimport {\n  abi as SWAP_ROUTER_ABI,\n  bytecode as SWAP_ROUTER_BYTECODE,\n} from '@chaoswap/v1-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.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 chaoswap code will correctly interoperate with\nyour local deployment.\n\n## Using solidity interfaces\n\nThe chaoswap v3 periphery interfaces are available for import into solidity smart contracts\nvia the npm artifact `@chaoswap/v1-periphery`, e.g.:\n\n```solidity\nimport '@chaoswap/v1-periphery/contracts/interfaces/ISwapRouter.sol';\n\ncontract MyContract {\n  ISwapRouter router;\n\n  function doSomethingWithSwapRouter() {\n    // router.exactInput(...);\n  }\n}\n\n```\n","readmeFilename":"README.md"}