{"_id":"@cytoswap/v3-core","_rev":"2-775cd2079de43af3fd6e46b16ad92474","name":"@cytoswap/v3-core","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@cytoswap/v3-core","version":"1.0.1","keywords":["cytoswap","core","v3"],"license":"BUSL-1.1","_id":"@cytoswap/v3-core@1.0.1","maintainers":[{"name":"snap.devs","email":"devs@snapresearch.io"}],"homepage":"https://cytoswap.com","bugs":{"url":"https://github.com/Cytoswap/cytoswap-v3-core/issues"},"dist":{"shasum":"ad00857ba59df5bf0c5957b1916089e015b534be","tarball":"https://registry.npmjs.org/@cytoswap/v3-core/-/v3-core-1.0.1.tgz","fileCount":50,"integrity":"sha512-jiutCQPEdmmTcw0Sb9wat+4d46oqgKo6OZIFJO+Ww+iws7Awssl9TlFJoRUNAl8fwVV4raTKd0Y3T4Ps6M1C0Q==","signatures":[{"sig":"MEUCIQCjqizF0wXpZeIgOKA1rlPFd+/3HjSBq4FNbAAfwTKOSgIgVDOd3zHRfTePhfLMioq8aHdlr9DpAvEPaCZ3Qt7zpnI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":435697},"engines":{"node":">=10"},"gitHead":"487bd7e267eab566c1e28e28382ea2981a41e8a4","scripts":{"test":"hardhat test","compile":"hardhat compile"},"_npmUser":{"name":"snap.devs","email":"devs@snapresearch.io"},"repository":{"url":"git+https://github.com/Cytoswap/cytoswap-v3-core.git","type":"git"},"_npmVersion":"9.6.7","description":"🦄 Core smart contracts of Cytoswap V3","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.2.2","ethers":"^5.0.8","hardhat":"^2.2.0","solhint":"^3.2.1","ts-node":"^8.5.4","prettier":"^2.0.5","typechain":"^4.0.0","decimal.js":"^10.2.1","typescript":"^3.7.3","@types/chai":"^4.2.6","@types/mocha":"^5.2.7","ts-generator":"^0.1.1","ethereum-waffle":"^3.0.2","hardhat-typechain":"^0.3.5","@typechain/ethers-v5":"^4.0.0","solhint-plugin-prettier":"^0.0.5","mocha-chai-jest-snapshot":"^1.1.0","prettier-plugin-solidity":"^1.0.0-alpha.59","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-waffle":"^2.0.1","@nomiclabs/hardhat-etherscan":"^2.1.8"},"_npmOperationalInternal":{"tmp":"tmp/v3-core_1.0.1_1708508485394_0.38742869198846086","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@cytoswap/v3-core","version":"1.0.2","keywords":["cytoswap","core","v3"],"license":"BUSL-1.1","_id":"@cytoswap/v3-core@1.0.2","maintainers":[{"name":"snap.devs","email":"devs@snapresearch.io"}],"homepage":"https://cytoswap.com","dist":{"shasum":"c743f365547a2a23cc396c04e128d5d78f98e5bf","tarball":"https://registry.npmjs.org/@cytoswap/v3-core/-/v3-core-1.0.2.tgz","fileCount":50,"integrity":"sha512-b9EQVBjk54sL4A60yequvrNY0pB3lxArfIUZh7DW7uyygN7SDxW3663Gt5aZ1YuA1014ux/gua3R9I5+U1gCZg==","signatures":[{"sig":"MEQCIFn3Rj90yz1ZcDm1CA9of+7Kew5vpOp13wUgZ5VzMYvxAiB+Padq8dTUjBoYZ682uxGKi7JYnU+Asl3/cBgZHgybCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":434926},"engines":{"node":">=10"},"gitHead":"56fd747e01e30a5fec3306c09719987377319a55","scripts":{"test":"hardhat test","compile":"hardhat compile"},"_npmUser":{"name":"snap.devs","email":"devs@snapresearch.io"},"repository":{"url":"https://gitlab.snapresearch.io/swapnity/cytoswap-v3-core","type":"git"},"_npmVersion":"9.6.7","description":"🦄 Core smart contracts of Cytoswap V3","directories":{},"_nodeVersion":"18.17.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.2.2","ethers":"^5.0.8","hardhat":"^2.2.0","solhint":"^3.2.1","ts-node":"^8.5.4","prettier":"^2.0.5","typechain":"^4.0.0","decimal.js":"^10.2.1","typescript":"^3.7.3","@types/chai":"^4.2.6","@types/mocha":"^5.2.7","ts-generator":"^0.1.1","ethereum-waffle":"^3.0.2","hardhat-typechain":"^0.3.5","@typechain/ethers-v5":"^4.0.0","solhint-plugin-prettier":"^0.0.5","mocha-chai-jest-snapshot":"^1.1.0","prettier-plugin-solidity":"^1.0.0-alpha.59","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-waffle":"^2.0.1","@nomiclabs/hardhat-etherscan":"^2.1.8"},"_npmOperationalInternal":{"tmp":"tmp/v3-core_1.0.2_1708599727782_0.5305862059480428","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@cytoswap/v3-core","description":"Core smart contracts of Cytoswap V3","license":"BUSL-1.1","publishConfig":{"access":"public"},"version":"1.0.3","homepage":"https://cytoswap.com","keywords":["cytoswap","core","v3"],"repository":{"type":"git","url":"git+https://github.com/hela-cytoswap/cytoswap-v3-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":"56fd747e01e30a5fec3306c09719987377319a55","bugs":{"url":"https://github.com/hela-cytoswap/cytoswap-v3-core/issues"},"_id":"@cytoswap/v3-core@1.0.3","_nodeVersion":"18.19.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-+kJQFWuniVk6hX7w53M3ShetkTAF26+IF1zfbhZrAFGf4TjEBMXuz6/gXOOw/Db1udR2gfIKczn2FhptDseLPg==","shasum":"3cbed2d0648f499c8a5d418224dc3a5fa2f37fd9","tarball":"https://registry.npmjs.org/@cytoswap/v3-core/-/v3-core-1.0.3.tgz","fileCount":50,"unpackedSize":438290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdVkzKoYFCkvHE3Tu8qiu6v5Oi9PT2BbyK5uRQSMJ0EQIgCdjte1RkJy2zYpRycs1nEzt5//6v8Uo0B4Mf/XTWeZI="}]},"_npmUser":{"name":"snap.devs","email":"devs@snapresearch.io"},"directories":{},"maintainers":[{"name":"snap.devs","email":"devs@snapresearch.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/v3-core_1.0.3_1734601730425_0.786140893421736"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-21T09:41:25.310Z","modified":"2024-12-19T09:48:50.811Z","1.0.1":"2024-02-21T09:41:25.694Z","1.0.2":"2024-02-22T11:02:08.034Z","1.0.3":"2024-12-19T09:48:50.635Z"},"license":"BUSL-1.1","homepage":"https://cytoswap.com","keywords":["cytoswap","core","v3"],"repository":{"type":"git","url":"git+https://github.com/hela-cytoswap/cytoswap-v3-core.git"},"description":"Core smart contracts of Cytoswap V3","maintainers":[{"name":"snap.devs","email":"devs@snapresearch.io"}],"readme":"# Cytoswap V3\r\n\r\nThis repository contains the core smart contracts for the Cytoswap V3 Protocol.\r\nFor higher level contracts, see the [cytoswap-v3-periphery](https://gitlab.snapresearch.io/swapnity/cytoswap-v3-periphery)\r\nrepository.\r\n\r\n## Bug bounty\r\n\r\nThis repository is subject to the Cytoswap V3 bug bounty program, per the terms defined [here](./bug-bounty.md).\r\n\r\n## Local deployment\r\n\r\nIn order to deploy this code to a local testnet, you should install the npm package\r\n`@cytoswap/v3-core`\r\nand import the factory bytecode located at\r\n`@cytoswap/v3-core/artifacts/contracts/CytoswapV3Factory.sol/CytoswapV3Factory.json`.\r\nFor example:\r\n\r\n```typescript\r\nimport {\r\n  abi as FACTORY_ABI,\r\n  bytecode as FACTORY_BYTECODE,\r\n} from '@cytoswap/v3-core/artifacts/contracts/CytoswapV3Factory.sol/CytoswapV3Factory.json'\r\n\r\n// deploy the bytecode\r\n```\r\n\r\nThis will ensure that you are testing against the same bytecode that is deployed to\r\nmainnet and public testnets, and all Cytoswap code will correctly interoperate with\r\nyour local deployment.\r\n\r\n## Using solidity interfaces\r\n\r\nThe Cytoswap v3 interfaces are available for import into solidity smart contracts\r\nvia the npm artifact `@cytoswap/v3-core`, e.g.:\r\n\r\n```solidity\r\nimport '@cytoswap/v3-core/contracts/interfaces/ICytoswapV3Pool.sol';\r\n\r\ncontract MyContract {\r\n  ICytoswapV3Pool pool;\r\n\r\n  function doSomethingWithPool() {\r\n    // pool.swap(...);\r\n  }\r\n}\r\n\r\n```\r\n\r\n## Licensing\r\n\r\nThe primary license for Cytoswap V3 Core is the Business Source License 1.1 (`BUSL-1.1`), see [`LICENSE`](./LICENSE). However, some files are dual licensed under `GPL-2.0-or-later`:\r\n\r\n- All files in `contracts/interfaces/` may also be licensed under `GPL-2.0-or-later` (as indicated in their SPDX headers), see [`contracts/interfaces/LICENSE`](./contracts/interfaces/LICENSE)\r\n- Several files in `contracts/libraries/` may also be licensed under `GPL-2.0-or-later` (as indicated in their SPDX headers), see [`contracts/libraries/LICENSE`](contracts/libraries/LICENSE)\r\n\r\n### Other Exceptions\r\n\r\n- `contracts/libraries/FullMath.sol` is licensed under `MIT` (as indicated in its SPDX header), see [`contracts/libraries/LICENSE_MIT`](contracts/libraries/LICENSE_MIT)\r\n- All files in `contracts/test` remain unlicensed (as indicated in their SPDX headers).\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/hela-cytoswap/cytoswap-v3-core/issues"}}