{"_id":"@catalogworks/zorav3-with-types","name":"@catalogworks/zorav3-with-types","dist-tags":{"latest":"1.0.14"},"versions":{"1.0.14":{"name":"@catalogworks/zorav3-with-types","author":{"name":"@catalogworks"},"version":"1.0.14","homepage":"https://github.com/catalogworks/zorav3-with-types","repository":{"type":"git","url":"git+https://github.com/catalogworks/zorav3-with-types.git"},"publishConfig":{"registry":"https://npm.pkg.github.com/"},"dependencies":{"@manifoldxyz/royalty-registry-solidity":"^1.0.9","@openzeppelin/contracts":"^4.5.0","@rari-capital/solmate":"^6.2.0"},"devDependencies":{"@typechain/ethers-v5":"^10.0.0","@types/node":"^18.7.18","ethers":"^5.5.1","husky":"^7.0.0","lint-staged":"^12.3.7","prettier":"^2.6.1","prettier-plugin-solidity":"^1.0.0-beta.19","solhint":"^3.3.7","solhint-plugin-prettier":"^0.0.5","typechain":"^8.0.0","typescript":"^4.6.3"},"lint-staged":{"*.{ts,js,css,md,sol}":"prettier --write","*.sol":"solhint"},"scripts":{"build":"forge build && yarn typechain","clean":"forge clean && rm -rf ./dist","poop":"rm -rf ./dist && forge clean && forge build && yarn typechain && cp -R contracts dist && cp -R addresses dist","test":"forge test","typechain":"rm -rf ./typechain && typechain --target=ethers-v5 'dist/artifacts/*/*.json' --out-dir typechain","prepublishOnly":"rm -rf ./dist && forge clean && forge build && yarn typechain && tsc  && cp -R contracts dist && cp -R addresses dist"},"gitHead":"40f0e5d9e24d77c74e027cf701bf0250edb498e3","description":"This repository is a modified version of `@ourzora/v3` with properly compiled and exported typescript files.","bugs":{"url":"https://github.com/catalogworks/zorav3-with-types/issues"},"_id":"@catalogworks/zorav3-with-types@1.0.14","_nodeVersion":"17.5.0","_npmVersion":"8.4.1","dist":{"integrity":"sha512-sDIm5pOgYedutAEV/eIAiYHfO2F3xhLxcbhnO6x1pk9Jemey5cZQHJGdEsOGGDegr3eMhX0ofIczuolzfYjO0g==","shasum":"5f0d67cadfa1711f8ef5a83465751a666a93bfa3","tarball":"https://registry.npmjs.org/@catalogworks/zorav3-with-types/-/zorav3-with-types-1.0.14.tgz","fileCount":957,"unpackedSize":55380380,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRcVLd9kGS8aM38lfg/5i1QGpK+o1Y1zWYUra2rOZqGAIhAO+Jg9Yef1OGAfAHR2MJNm1VIUHA3byNdm5/CjhCWKwD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpb+oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5SA//QFHhOo8D/BqEGEHV+K64ghGEWb0MrSGKMqmlr2Ml4G2+fQtb\r\nO/kCmrnAj8smDz2M6qf/xE5Qcx5wPG/DPSjA2JHRCMbJ9x3N8h7fqRVhK9V2\r\nFU44EleSd5S7MQIvdi+wT3tcPl021cYG0SpyJD09Mh0wCPKjg9cQVpzDxiu0\r\nn4m+fBZxJ4Y+Vz/Qc7WUQI429QgcxtWktslVmp1DxgFdm1PgJckMw8em1wkV\r\nGWQl1tnQkjpclR/zOzWf9Y9KBNIbZGrKE0BNe5jIJZ3Uq2BXu03R4otFvNcA\r\noIn5y+N43HNEKqIcUSAR7rm90o9HVzJnPGm09NZx6Qdhn2m4UNfLI3DzEpEx\r\n2yvJnGCRopB3KcCRwjTQVO5xfRmVm5YJ3fb4vLFlDYCZdgs0XI42DhxtkFtB\r\nneN0X32Ti+nL4HdlOGssd1RtYBgE0mZxy/mT37RChIZkNRoPAagUJGFcbrg1\r\nTRGkycAZceLyO0vtMO/vvCE2EEuQGM8VzRGMS//IIKYP9rSqTemWzE9ee3a5\r\nK+LLm5fWAeYC/KtX11PLN9uM/1AU2ccz1r2pwEW9sy5N4IowTDcbehrIR9LJ\r\n283RaDxH746V6zwn2ScmuFgDiGIDTvxNKU54sOmQ7eWLLHpdTXKCpjjPXcFz\r\nNwcdaFqodTg3YvkxaZB40dWXqRgDlXo11qY=\r\n=AGRp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bretth18","email":"bretth18@gmail.com"},"directories":{},"maintainers":[{"name":"reefloretto","email":"r@catalog.works"},{"name":"bretth18","email":"bretth18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zorav3-with-types_1.0.14_1671806888513_0.44776497027071227"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-23T14:48:08.444Z","1.0.14":"2022-12-23T14:48:08.812Z","modified":"2022-12-23T14:48:09.244Z"},"maintainers":[{"name":"reefloretto","email":"r@catalog.works"},{"name":"bretth18","email":"bretth18@gmail.com"}],"description":"This repository is a modified version of `@ourzora/v3` with properly compiled and exported typescript files.","homepage":"https://github.com/catalogworks/zorav3-with-types","repository":{"type":"git","url":"git+https://github.com/catalogworks/zorav3-with-types.git"},"author":{"name":"@catalogworks"},"bugs":{"url":"https://github.com/catalogworks/zorav3-with-types/issues"},"readme":"# V3  (WITH TYPES)𓀨\n\nThis repository is a modified version of `@ourzora/v3` with properly compiled and exported typescript files. \n\nThis protocol is a [Hyperstructure](https://www.jacob.energy/hyperstructures.html). It is unstoppable, free, expansive, permissionless, and credibly neutral.\n\nDocumentation is available at [docs.zora.co](https://docs.zora.co)\n\n## Architecture\n\n```\n          ,-.                  ,-.\n          `-'                  `-'\n          /|\\                  /|\\\n           |                    |              ,----------------.          ,-----------------.          ,-----------------------.\n          / \\                  / \\             |ZoraMarketModule|          |ZoraModuleManager|          |ZoraProtocolFeeSettings|\n      Participant            zoraDAO           `-------+--------'          `--------+--------'          `-----------+-----------'\n           |                    |             registers market module               |                               |\n           |                    |-------------------------------------------------->|                               |\n           |                    |                      |                            |                               |\n           |                    |                      |                            |  mints module ownership NFT   |\n           |                    |                      |                            |------------------------------>|\n           |                    |                      |                            |                               |\n           |                    |                      |   transfers module ownership NFT                           |\n           |                    |<----------------------------------------------------------------------------------|\n           |                    |                      |                            |                               |\n           |          approves market module           |                            |                               |\n           |------------------------------------------>|                            |                               |\n           |                    |                      |                            |                               |\n           |            uses market module             |                            |                               |\n           |------------------------------------------>|                            |                               |\n      Participant            zoraDAO           ,-------+--------.          ,--------+--------.          ,-----------+-----------.\n          ,-.                  ,-.             |ZoraMarketModule|          |ZoraModuleManager|          |ZoraProtocolFeeSettings|\n          `-'                  `-'             `----------------'          `-----------------'          `-----------------------'\n          /|\\                  /|\\\n           |                    |\n          / \\                  / \\\n\n```\n\nZORA V3 has many market modules, which are individual containers a user can opt in to. All of these modules share the same approval space, and as such can save ZORA users gas in the long term by not requiring new ERC-20 and ERC-721 approvals for every market.\n\nWhen a new market is registered, a ZORA Module Fee Switch NFT, or ZORF, is minted to the DAO. This fee switch is set to 0 by default. At any time, the holder of the NFT can choose to set a fee, which provides an income stream to the holder on all future transactions in that module.\n\nOnce registered, anyone is able to use the market module by approving it via the ZoraModuleManager.\n\n## Contributing\n\nZORA V3 is meant to be as extensible as possible. As such, there are a number of ways for developers to contribute. This protocol is being developed in the open, and anyone can propose a module, audit a module, or suggest new module types for the community to begin using.\n\nAs the protocol matures, so too will these contribution guidelines. If you have a suggestion on how we can collaborate better on this protocol, [please let us know](#leaving-feedback).\n\n### Registering a New Module\n\nNew modules are added to V3 in three stages. We track which stage each module is in with PR labels:\n\n- Draft / RFC\n- Community Audit\n- Ready for Deployment\n\nNote that we also include a 4th label, \"ZORA Bug Bounty\" for Modules that are created by the ZORA core team and ready for a community audit.\n\n#### Draft / RFC\n\nIn this stage, the ZORA community is able to give design feedback and start discussions about what the module aims to accomplish. A new draft module can be started by [creating a new pull request](https://github.com/ourzora/v3/compare).\n\n#### Community Audit\n\nOnce a module has been designed, built, tested and documented, the module can undergo community audits. If a vulnerability is found during this phase, feel free to leave a comment directly in the PR. If the module has been audited by a third party, the audit report can be included in the PR.\n\nModules that are written by the ZORA core team are open to our bug bounty program, which allows community auditors to claim up to 25 ETH for vulnerabilities that may have been missed during development. The rubric we use to determine bug bounties is inspired by [ImmuneFi](https://immunefi.com/severity-updated/) and is as follows:\n\n| **Level**   | **Example**                                                                                                                                                             | **Maximum Bug Bounty** |\n| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |\n| 5. Critical | - Empty or freeze the protocol's holdings (e.g. economic attacks, flash loans, reentrancy, MEV, logic errors)                                                           | Up to 25 ETH           |\n| 4. High     | - Token holders temporarily unable to transfer holdings<br>- Users spoof each other<br>- Transient Consensus Failures                                                   | Up to 10 ETH           |\n| 3. Medium   | - Contract consumes unbounded gas<br>- Block stuffing<br>- Griefing denial of service (i.e. attacker spends as much in gas as damage to the contract)<br>- Gas griefing | Up to 5 ETH            |\n| 2. Low      | - Contract fails to deliver promised returns, but doesn't lose value                                                                                                    | Up to 1 ETH            |\n| 1. None     | - Best practices                                                                                                                                                        |                        |\n| Not sure?   |                                                                                                                                                                         | Let's talk :~)         |\n\nThe ZORA Core team will commit to publicly disclosing all bug bounty payouts for applicable modules, as defined above.\n\nAlthough not required, developers outside the ZORA core team are able to create and fund their own bug bounty programs, if desired. Feel free to outline your audit program in your PR description.\n\nAfter a module has undergone a community audit (ideally about 3-7 days), the module can be deployed and registered. If a vulnerability is found post-deployment, you can email [t@zora.co](mailto:t@zora.co) directly.\n\n#### Registering a Module\n\nSince the ZORA DAO is currently controlled by a multi-sig, the ZORA Core team will deploy and register audited modules manually. If the module is marked with a \"Ready for Deployment\" label, it will be picked up in the next available deployment window by the ZORA core team. Once deployed, the contract address will be available in the `addresses/` directory.\n\n### Leaving Feedback\n\nIf you have suggestions or comments on how we can better collaborate on this codebase and/or the protocol as a whole, please [create an issue](https://github.com/ourzora/v3/issues/new) outlining your ideas and suggestions. We can then use the issue tracker as an open discussion forum.\n\n## Local Development\n\n1. Install [Foundry](https://github.com/gakonst/foundry#installation)\n2. Install dependencies with `yarn` & `forge update`\n3. Compile the contracts with `yarn build`\n4. Run tests with `yarn test`\n","readmeFilename":"README.md"}