{"_id":"@bluedex/v3-core","_rev":"3-c14a682962b49c7e5be5344bd089c0fa","name":"@bluedex/v3-core","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.1":{"name":"@bluedex/v3-core","description":"🦄 Core smart contracts of Bluedex V3","license":"BUSL-1.1","publishConfig":{"access":"public"},"version":"1.0.1","homepage":"https://bluedex.org","keywords":["bluedex","core","v3"],"repository":{"type":"git","url":"git+https://github.com/Bluedex/bluedex-v3-core.git"},"engines":{"node":">=10"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.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"},"dependencies":{"dotenv":"^16.4.1"},"_id":"@bluedex/v3-core@1.0.1","bugs":{"url":"https://github.com/Bluedex/bluedex-v3-core/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Lox15zZB3Cmkx0o6dPjM32W1Zs2HS7pF32kYyqMlPdO3Oo2BIdiiInWeFu1L9tuEPRJzMhwr32uyY39C1pyfyw==","shasum":"6143dddb55ce8dad9afb1e82419e0e21f93ec059","tarball":"https://registry.npmjs.org/@bluedex/v3-core/-/v3-core-1.0.1.tgz","fileCount":50,"unpackedSize":438988,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAm+Pz6EmvGOiVgBuaYD04VYr04QM+zdvbnl2jqq6JBsAiArC096VE/oX85Zd0KvoilJYQjdpxe56Lr23Rxhm979bA=="}]},"_npmUser":{"name":"afzalkhan","email":"afjal.khan@speqto.com"},"directories":{},"maintainers":[{"name":"afzalkhan","email":"afjal.khan@speqto.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v3-core_1.0.1_1713784996765_0.5299756305587233"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bluedex/v3-core","description":"Core smart contracts of Bluedex V3","license":"BUSL-1.1","publishConfig":{"access":"public"},"version":"1.0.2","homepage":"https://bluedex.org","keywords":["bluedex","core","v3"],"repository":{"type":"git","url":"git+https://github.com/Bluedex/bluedex-v3-core.git"},"engines":{"node":">=10"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.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"},"dependencies":{"dotenv":"^16.4.1"},"_id":"@bluedex/v3-core@1.0.2","gitHead":"a89b38e65f8c0a5dd68800027b51fdb57c23edc8","bugs":{"url":"https://github.com/Bluedex/bluedex-v3-core/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-RDexlecQ8QYVCdwII1JFdchtlqamvl3Z2ea2FRVng7G+BZHJMPeURknESlByIKKcThmmeKheMtkmC49DbyKhUQ==","shasum":"04930db574f008c0ea74a3305901385d3fce8a72","tarball":"https://registry.npmjs.org/@bluedex/v3-core/-/v3-core-1.0.2.tgz","fileCount":50,"unpackedSize":438983,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP3OVAlf+PF3VkmoPZxyiDVWGuZ2nz2uovAH9WnzCa+gIhAKKz6eOPJNkQ8Nl6p0v3odUEK00iydUmspA97Q/K5iKA"}]},"_npmUser":{"name":"afzalkhan","email":"afjal.khan@speqto.com"},"directories":{},"maintainers":[{"name":"afzalkhan","email":"afjal.khan@speqto.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v3-core_1.0.2_1713785679737_0.05641529905835818"},"_hasShrinkwrap":false},"1.0.3":{"name":"@bluedex/v3-core","description":"Core smart contracts of Bluedex V3","license":"BUSL-1.1","publishConfig":{"access":"public"},"version":"1.0.3","homepage":"https://bluedex.org","keywords":["bluedex","core","v3"],"repository":{"type":"git","url":"git+https://github.com/Bluedex/bluedex-v3-core.git"},"engines":{"node":">=10"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.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"},"dependencies":{"dotenv":"^16.4.1"},"_id":"@bluedex/v3-core@1.0.3","gitHead":"056999920ca84c2c9b210e5476868a21cc01deab","bugs":{"url":"https://github.com/Bluedex/bluedex-v3-core/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-cWR+9ti/ioYYqQnRN2DSlA2LSOvnGm/0LY/7HOeiU0MW1uV2FssQFvgeXkGitYFQHATmDuXJ4T7XOkL1liKM+g==","shasum":"30d43937d4ba76ed4d5163bb5164212964127c57","tarball":"https://registry.npmjs.org/@bluedex/v3-core/-/v3-core-1.0.3.tgz","fileCount":50,"unpackedSize":439569,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDal0IDy2ct8MQYhv2gkOS29mKwIWKCqVLnjd2N745D7wIgXdhot4x6Hv8JhKKR/eI3171Z+EgVrgeBbL+n9iYbVgc="}]},"_npmUser":{"name":"afzalkhan","email":"afjal.khan@speqto.com"},"directories":{},"maintainers":[{"name":"afzalkhan","email":"afjal.khan@speqto.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v3-core_1.0.3_1715149881698_0.6549393480279273"},"_hasShrinkwrap":false},"1.0.4":{"name":"@bluedex/v3-core","description":"Core smart contracts of Bluedex V3","license":"BUSL-1.1","publishConfig":{"access":"public"},"version":"1.0.4","homepage":"https://bluedex.org","keywords":["bluedex","core","v3"],"repository":{"type":"git","url":"git+https://github.com/Bluedex/bluedex-v3-core.git"},"engines":{"node":">=10"},"devDependencies":{"@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.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"},"dependencies":{"dotenv":"^16.4.1"},"_id":"@bluedex/v3-core@1.0.4","gitHead":"0fa2574aa8f22f851c6240697feeb7a570fd440e","bugs":{"url":"https://github.com/Bluedex/bluedex-v3-core/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-rLaF+0g1WRAwRg0iVss4DZqHKgGQ9fVciCb018HHnW8HHS80VaqyPLU/sosGHvN7ZCK/bJLr8ZAfgbyVvS0AGQ==","shasum":"1ab07cbe71d1a309d73089987d0feb8e1ee84210","tarball":"https://registry.npmjs.org/@bluedex/v3-core/-/v3-core-1.0.4.tgz","fileCount":50,"unpackedSize":438983,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICuYz9C8spjgfZIeK+FBfC+FdpgC+RnIX7ggXfED4JCAAiEA330NR6iVjRw4p8QRLsIHd4Rg7xavrzoJxY7IfySyGhc="}]},"_npmUser":{"name":"afzalkhan","email":"afjal.khan@speqto.com"},"directories":{},"maintainers":[{"name":"afzalkhan","email":"afjal.khan@speqto.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v3-core_1.0.4_1715155092019_0.16689008412998008"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-22T11:23:16.542Z","1.0.1":"2024-04-22T11:23:16.973Z","modified":"2024-05-08T07:58:12.474Z","1.0.2":"2024-04-22T11:34:39.920Z","1.0.3":"2024-05-08T06:31:21.844Z","1.0.4":"2024-05-08T07:58:12.288Z"},"maintainers":[{"name":"afzalkhan","email":"afjal.khan@speqto.com"}],"description":"Core smart contracts of Bluedex V3","homepage":"https://bluedex.org","keywords":["bluedex","core","v3"],"repository":{"type":"git","url":"git+https://github.com/Bluedex/bluedex-v3-core.git"},"bugs":{"url":"https://github.com/Bluedex/bluedex-v3-core/issues"},"license":"BUSL-1.1","readme":"# Bluedex V3\r\n\r\n[![Lint](https://github.com/Bluedex/bluedex-v3-core/actions/workflows/lint.yml/badge.svg)](https://github.com/Bluedex/bluedex-v3-core/actions/workflows/lint.yml)\r\n[![Tests](https://github.com/Bluedex/bluedex-v3-core/actions/workflows/tests.yml/badge.svg)](https://github.com/Bluedex/bluedex-v3-core/actions/workflows/tests.yml)\r\n[![Fuzz Testing](https://github.com/Bluedex/bluedex-v3-core/actions/workflows/fuzz-testing.yml/badge.svg)](https://github.com/Bluedex/bluedex-v3-core/actions/workflows/fuzz-testing.yml)\r\n[![Mythx](https://github.com/Bluedex/bluedex-v3-core/actions/workflows/mythx.yml/badge.svg)](https://github.com/Bluedex/bluedex-v3-core/actions/workflows/mythx.yml)\r\n[![npm version](https://img.shields.io/npm/v/@bluedex/v3-core/latest.svg)](https://www.npmjs.com/package/@bluedex/v3-core/v/latest)\r\n\r\nThis repository contains the core smart contracts for the Bluedex V3 Protocol.\r\nFor higher level contracts, see the [bluedex-v3-periphery](https://github.com/Bluedex/bluedex-v3-periphery)\r\nrepository.\r\n\r\n## Bug bounty\r\n\r\nThis repository is subject to the Bluedex 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`@bluedex/v3-core`\r\nand import the factory bytecode located at\r\n`@bluedex/v3-core/artifacts/contracts/BluedexV3Factory.sol/BluedexV3Factory.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 '@bluedex/v3-core/artifacts/contracts/BluedexV3Factory.sol/BluedexV3Factory.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 Bluedex code will correctly interoperate with\r\nyour local deployment.\r\n\r\n## Using solidity interfaces\r\n\r\nThe Bluedex v3 interfaces are available for import into solidity smart contracts\r\nvia the npm artifact `@bluedex/v3-core`, e.g.:\r\n\r\n```solidity\r\nimport '@bluedex/v3-core/contracts/interfaces/IBluedexV3Pool.sol';\r\n\r\ncontract MyContract {\r\n  IBluedexV3Pool 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 Bluedex 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"}