{"_id":"@chaoswap/chaoswap-core","_rev":"3-9eb2cad5ce9a798a3921287024e41310","name":"@chaoswap/chaoswap-core","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"@chaoswap/chaoswap-core","description":"Core smart contracts of Chaoswap","license":"GPL-3.0-or-later","publishConfig":{"access":"public"},"version":"0.0.1","homepage":"https://chaoiswap.org","keywords":["chaoiswap","core"],"repository":{"type":"git","url":"git+https://github.com/Chaoswap/chaoswap-core.git"},"engines":{"node":">=10"},"dependencies":{},"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.2.0","hardhat-typechain":"^0.3.5","mocha":"^6.2.2","mocha-chai-jest-snapshot":"^1.1.0","prettier":"^2.0.5","prettier-plugin-solidity":"^1.0.0-alpha.59","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":"ed88be38ab2032d82bf10ac6f8d03aa631889d48","bugs":{"url":"https://github.com/Chaoswap/chaoswap-core/issues"},"_id":"@chaoswap/chaoswap-core@0.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-CvRbHU+CEjMEk274n/ls6LIIGm+6RfbdrUrYvDcIsfBgvIUuUmKzAwSpp+y0nRxcJgucdmvApNT0WEtpfA0YBA==","shasum":"1847fdba2e8fac90ace25b41db32e425900c8f56","tarball":"https://registry.npmjs.org/@chaoswap/chaoswap-core/-/chaoswap-core-0.0.1.tgz","fileCount":50,"unpackedSize":426293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCJw+CRA9TVsSAnZWagAAcHsP/ikIwtqwGRr7zWKRTeLS\nOhC1a6Ic9RzEevbhB+QRsYu3bBvKMA5zLL/MntCRWcJ7VsuPvwDAGghQKbme\nJqzfrAO6jzmyhy5iv2ZuAPM8lcNK3WflHvUjy6PcEhiXrcEfisA/waqjErv9\n5TYPqRxcGvDrUCBvCI2EayaTTWTU63MFn9hriXcnLhgdcsXQu/0gSEkClq/t\nnBK4YV0QOoLk97piz82ckpis6Y9LSLfqNFJLAywFHZfZcljxvCIf5l6VUfwT\nEH6MJk1Shwd3TBRMMd2h2ieFOIlFByE5NKxAcjmRpP3m+TYc+LZWcl9tiI2x\nvo+XUXYTSgSIdsbmrGPEFLhTs0lYn+3TejsOEWdBWwLd938Drn2PhFcGVVB9\nhAiQAFFhF+VHacsIpg7KbU0UE/RWTjJ8V4qBpl9c9Kp0tqxRdGs0WNgDBcC1\nqGGl62FZF+TMCYhC/Z9R4AxRC4QLzJP+kOgoAgP9khDCh09xAOU/Uzbuw3Nh\nDAWNXRhpIJ23G1GSXr7yzTlFLiSk9TwUUBsv47l4jMTfGKOaFcZ0sUeQj+6M\nMeRhXA5VEwB6V5N1Wt/SCZCek1/0t7eLoqBanbCHeNS1djxM9UtEBd5mHQNF\nP/c2z84zLtSFRwcaE5I4E05q74G2xq/oQh59wqjq7+P3nl6IiOcbKTcsNoNB\n/+P/\r\n=8jUk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7KHjUU2p290Xi7de/YQx2dtifUY5KCslcqVwZ0scn0gIgLtbOGpl7B5tvWIFYEm+hIDmnbNnRuLlCwVyy88pWLeQ="}]},"_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/chaoswap-core_0.0.1_1644731454039_0.5110608935714231"},"_hasShrinkwrap":false},"0.0.2":{"name":"@chaoswap/chaoswap-core","description":"Core smart contracts of Chaoswap","license":"GPL-3.0-or-later","publishConfig":{"access":"public"},"version":"0.0.2","homepage":"https://chaoiswap.org","keywords":["chaoiswap","core"],"repository":{"type":"git","url":"git+https://github.com/Chaoswap/chaoswap-core.git"},"engines":{"node":">=10"},"dependencies":{},"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.2.0","hardhat-typechain":"^0.3.5","mocha":"^6.2.2","mocha-chai-jest-snapshot":"^1.1.0","prettier":"^2.0.5","prettier-plugin-solidity":"^1.0.0-alpha.59","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":"ed88be38ab2032d82bf10ac6f8d03aa631889d48","bugs":{"url":"https://github.com/Chaoswap/chaoswap-core/issues"},"_id":"@chaoswap/chaoswap-core@0.0.2","_nodeVersion":"16.14.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-NrEBUexBYOAJU6P+5MJ0cs4OFN8A42gfbDtjmBwiGnki7a7hAk6TOCNlHIQlWZKs0mmfHtJTMbSSGN/MNxBlgQ==","shasum":"c0ab4c39454c23ed1ce662bcd4db3ee02401c383","tarball":"https://registry.npmjs.org/@chaoswap/chaoswap-core/-/chaoswap-core-0.0.2.tgz","fileCount":50,"unpackedSize":426293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCf/uCRA9TVsSAnZWagAAPlAP/R9nPvEluuwI4GYN7k06\nQc56Gmm/vxCfQOOApbi4GMES/pn3AvMzJFXoksSmsv1bTV5odNfPlxzpx4C+\nw5PDJ+LBWtfZg1UxkiqbneQPA4sMcwzk24WO/23cljObY9bTM5YRB1RpBkv9\n0lb6IclxoQGxMSHKx3kH7TroevlAS5QZY/VOiFPaeuNM1ih5Kt72FlWO5w5R\nHFuxRtpda6RiGpEgYIskdTiSS0BrHlP5a1NQHOoqYXtahNJS2bcV0qIcAvPN\nx4Fbd8ofCw6QuGHL+0oraALURvanojPWoCSxWtZIV5HiDhSlZa2XgHUUHrEN\nf5YXd5Sr/+4KDpTLScvQ5FdsxFIjtN/H0VozYYbwb8FNhSrhzCDm3UI+SCrD\nlESkhm1MokUizDSZKxK9URJYhUPXlmf9CBxrZS/2Zo3ebYBzKd3Obt5upKVt\nOzgGKFzk5lnAv5vMMINUD2heUAtI85JyeM7cHWvF+jPxRzOZR+eyszlT601P\n+atxn4Ce6qCO2malti9mTmCS2tRE8GNQbMpnpCxwNjDBk35ibHKJxwliwJVP\nNPT0DZYprvp6Sj4tKFsWi6d3qbo14PvNp1SeFiC4dQXLm+LJyQLN/SCyMkpu\npf2AeFwGW3X+GJBwJXmw6t898gX60jpPLy4TbD5nOWDuyHyQ8+xT0/Xh7WM4\n93bd\r\n=05pV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpThc4SQhG80T5M7U2s7w70DT8SsC37zN08qL48I7bZAiBXu3UfK1v5HkjKZ2PUj5sJcah56QTw0Z0W76h7uxUZRA=="}]},"_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/chaoswap-core_0.0.2_1644822509905_0.2945922119340616"},"_hasShrinkwrap":false},"0.0.6":{"name":"@chaoswap/chaoswap-core","description":"Core smart contracts of Chaoswap","license":"GPL-3.0-or-later","publishConfig":{"access":"public"},"version":"0.0.6","homepage":"https://chaoiswap.org","keywords":["chaoiswap","core"],"repository":{"type":"git","url":"git+https://github.com/Chaoswap/chaoswap-core.git"},"engines":{"node":">=10"},"dependencies":{},"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.2.0","hardhat-typechain":"^0.3.5","mocha":"^6.2.2","mocha-chai-jest-snapshot":"^1.1.0","prettier":"^2.0.5","prettier-plugin-solidity":"^1.0.0-alpha.59","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":"ed88be38ab2032d82bf10ac6f8d03aa631889d48","bugs":{"url":"https://github.com/Chaoswap/chaoswap-core/issues"},"_id":"@chaoswap/chaoswap-core@0.0.6","_nodeVersion":"16.14.0","_npmVersion":"8.5.0","dist":{"integrity":"sha512-UYZCq7RKMFxzgocWZwPKB8fwICXpjLPzzQjg7/u0sakuMyG6IJWcU9jO/ng3qrNao9fZEOJDOaPADOjOlNZd7Q==","shasum":"58c304988d2cf212f17c98e3bac7ded01aef98c1","tarball":"https://registry.npmjs.org/@chaoswap/chaoswap-core/-/chaoswap-core-0.0.6.tgz","fileCount":50,"unpackedSize":426293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCg8YCRA9TVsSAnZWagAAuYIP+gIO2hQ6LLLlPuUUnRiQ\nPho+KZCPcbJbfhNicg9KYa9Fo43WqcVdP5w+dwSV/TdLCSFKesyCsWptOkZF\nXXB76535ZDFixUUC8NpimxirtU8xkESsd5nWUenmWMZYDJqOxSISnWfT5yfG\nuOveMYkmtyjmYj6WEAIbLRpPMIYOhIK4Y0476AkWqY7vLBYt8tlq11pRB///\nGTaXUMp2DWBGlFTgi641mLG6NsFW6/e8gE5EFl9JcXaX/t5nn3NbR2tPwHll\n00e4+UGwFrONmExMUwdormG1ksthAjgEgG4R3RuVckYk/813DNV+E8mXvRhm\ntAHzYqhDOzBnexyWqhoTri/R7MBy8KzYx7fF1++NHEwhrHszQKNHMyQbsV+m\n1XyyzZmjLVh2h6QRtmCzWDh1KOydUuLigGERe6ZU/kCI1bjDrUDadY8jw6zY\ngVoNB5kEd3ILSzMTgr4W28DLM1ENmtLnjMn5LePBPEpkPup7l7VGhSK44qrX\nSTKRk/0KL4DojNIIkJaUHf0XOqr0XcXmPxzH0h3M6CA72mw8TjZhSPjysqyl\nxp/p7tIy2Y2T18vS6yU0rV7NhwQP0bF6+6pkk6O7dd29P/XbD2laVTvEQxkM\n60HforRA1w3E7R3V/FR4a+0Pw+pdohPwUNnFjDEchqjbAWz/d42lEh9NWY1U\nF+YI\r\n=AwWN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeQ9lhkT5ksyg5oAwebbgl7AJK/ez8Da7m/AL491nWqAIgI6IDHcHyEZnRLRlR97Tb9PRvL3aU4ropnggcqK4ruKk="}]},"_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/chaoswap-core_0.0.6_1644826392013_0.6857842431726666"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-13T05:50:53.975Z","0.0.1":"2022-02-13T05:50:54.177Z","modified":"2022-04-04T22:31:17.349Z","0.0.2":"2022-02-14T07:08:30.027Z","0.0.6":"2022-02-14T08:13:12.243Z"},"maintainers":[{"name":"oliverstone","email":"oliver.w.stone@gmail.com"}],"description":"Core smart contracts of Chaoswap","homepage":"https://chaoiswap.org","keywords":["chaoiswap","core"],"repository":{"type":"git","url":"git+https://github.com/Chaoswap/chaoswap-core.git"},"bugs":{"url":"https://github.com/Chaoswap/chaoswap-core/issues"},"license":"GPL-3.0-or-later","readme":"# Chaoswap\n\n[![Lint](https://github.com/Chaoswap/chaoswap-core/actions/workflows/lint.yml/badge.svg)](https://github.com/Chaoswap/chaoswap-core/actions/workflows/lint.yml)\n[![Tests](https://github.com/Chaoswap/chaoswap-core/actions/workflows/tests.yml/badge.svg)](https://github.com/Chaoswap/chaoswap-core/actions/workflows/tests.yml)\n[![Fuzz Testing](https://github.com/Chaoswap/chaoswap-core/actions/workflows/fuzz-testing.yml/badge.svg)](https://github.com/Chaoswap/chaoswap-core/actions/workflows/fuzz-testing.yml)\n[![Mythx](https://github.com/Chaoswap/chaoswap-core/actions/workflows/mythx.yml/badge.svg)](https://github.com/Chaoswap/chaoswap-core/actions/workflows/mythx.yml)\n[![npm version](https://img.shields.io/npm/v/@chaoswap/chaoswap-core/latest.svg)](https://www.npmjs.com/package/@chaoswap/chaoswap-core/v/latest)\n\nThis repository contains the core smart contracts for the Chaoswap Protocol.\nFor higher level contracts, see the [chaoswap-periphery](https://github.com/Chaoswap/chaoswap-periphery)\nrepository.\n\n## Bug bounty\n\nThis repository is subject to the Chaoswap bug bounty program, per 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/chaoswap-core`\nand import the factory bytecode located at\n`@chaoswap/chaoswap-core/artifacts/contracts/ChaoswapFactory.sol/ChaoswapFactory.json`.\nFor example:\n\n```typescript\nimport {\n  abi as FACTORY_ABI,\n  bytecode as FACTORY_BYTECODE,\n} from '@chaoswap/chaoswap-core/artifacts/contracts/ChaoswapFactory.sol/ChaoswapFactory.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 interfaces are available for import into solidity smart contracts\nvia the npm artifact `@chaoswap/chaoswap-core`, e.g.:\n\n```solidity\nimport '@chaoswap/chaoswap-core/contracts/interfaces/IChaoswapPool.sol';\n\ncontract MyContract {\n  IChaoswapPool pool;\n\n  function doSomethingWithPool() {\n    // pool.swap(...);\n  }\n}\n\n```\n\n## Licensing\n\nThe primary license for Chaoswap Core is the Business Source License 1.1 (`BUSL-1.1`), see [`LICENSE`](./LICENSE).\n\n### Exceptions\n\n- All files in `contracts/interfaces/` are licensed under `GPL-2.0-or-later` (as indicated in their SPDX headers), see [`contracts/interfaces/LICENSE`](./contracts/interfaces/LICENSE)\n- Several files in `contracts/libraries/` are licensed under `GPL-2.0-or-later` (as indicated in their SPDX headers), see [`contracts/libraries/LICENSE_GPL`](contracts/libraries/LICENSE_GPL)\n- `contracts/libraries/FullMath.sol` is licensed under `MIT` (as indicated in its SPDX header), see [`contracts/libraries/LICENSE_MIT`](contracts/libraries/LICENSE_MIT)\n- All files in `contracts/test` remain unlicensed.\n","readmeFilename":"README.md"}