{"_id":"@andskur/contracts","name":"@andskur/contracts","dist-tags":{"latest":"2.3.0-6"},"versions":{"2.3.0-6":{"name":"@andskur/contracts","description":"<p align=\"center\"> <br /> <a href=\"https://thirdweb.com\"><img src=\"https://github.com/thirdweb-dev/typescript-sdk/blob/main/logo.svg?raw=true\" width=\"200\" alt=\"\"/></a> <br /> </p> <h1 align=\"center\">thirdweb Contracts</h1> <p align=\"center\"> <a href=\"http","version":"2.3.0-6","license":"Apache-2.0","source":"typechain/index.ts","devDependencies":{"@chainlink/contracts":"^0.4.0","@nomiclabs/hardhat-ethers":"^2.0.5","@nomiclabs/hardhat-etherscan":"^3.0.3","@nomiclabs/hardhat-waffle":"^2.0.3","@openzeppelin/contracts":"4.7.3","@openzeppelin/contracts-upgradeable":"4.7.3","@primitivefi/hardhat-dodoc":"^0.2.0","@thirdweb-dev/sdk":"^3.4.1","@typechain/ethers-v5":"^10.0.0","@typechain/hardhat":"^4.0.0","@types/fs-extra":"^9.0.13","@types/mocha":"^9.1.0","@types/node":"^17.0.21","@typescript-eslint/eslint-plugin":"^5.13.0","@typescript-eslint/parser":"^5.13.0","dotenv":"^16.0.0","erc721a":"3.3.0","erc721a-upgradeable":"^3.3.0","eslint":"^8.10.0","eslint-config-prettier":"^8.5.0","ethereum-waffle":"^3.4.0","fs-extra":"^10.0.1","hardhat":"^2.9.0","hardhat-abi-exporter":"^2.4.1","hardhat-contract-sizer":"^2.5.0","hardhat-gas-reporter":"^1.0.8","keccak256":"^1.0.6","merkletreejs":"^0.2.31","mocha":"^9.2.1","prettier":"^2.5.1","prettier-plugin-solidity":"^1.0.0-beta.19","solhint":"^3.3.7","solhint-plugin-prettier":"^0.0.5","ts-node":"^10.6.0","tslib":"^2.3.1","tsup":"^5.11.11","typechain":"^8.0.0","typescript":"^4.4.4"},"peerDependencies":{"ethers":"^5.0.0"},"resolutions":{"typescript":"^4.4.4"},"scripts":{"clean":"hardhat clean && rm -rf abi/ && rm -rf artifacts/ && rm -rf dist/ && rm -rf typechain/","compile":"hardhat compile","lint":"solhint \"contracts/**/*.sol\"","prettier":"prettier --config .prettierrc --write \"{contracts,src}/**/*.{js,json,sol,ts}\"","prettier:list-different":"prettier --config .prettierrc --list-different \"**/*.{js,json,sol,ts}\"","prettier:contracts":"prettier --config .prettierrc --list-different \"{contracts,src}/**/*.sol\"","test":"hardhat test","typechain":"hardhat typechain","build":"yarn clean && yarn compile","forge:build":"forge build --hardhat","forge:test":"forge test --hardhat","export-abi":"hardhat export-abi"},"gitHead":"56bec33adc1815a46126e810998cc158a455e76d","_id":"@andskur/contracts@2.3.0-6","_nodeVersion":"19.2.0","_npmVersion":"9.1.3","dist":{"integrity":"sha512-MeYt1RzO66e5McXcDFaBwqQBibsYHxQwxQPhObaKTd3ptrytUpM6qIuZ+yZ8o1pd2uyTfE+Iqh8nUI2olAUmdQ==","shasum":"f07824b8eafa76154fdc75481a9dfa0f04cb2274","tarball":"https://registry.npmjs.org/@andskur/contracts/-/contracts-2.3.0-6.tgz","fileCount":228,"unpackedSize":1070844,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8bdYnygqwbvkdUgQCHi03Qq1vn2BP8++PwYiBawNyyAiAZT+cAvS4d12pojjIAffTA7vfZMn+VW6u3p5kq2V9wCA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJji7KYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyPA//RDhemcHtjpShuLNX606SY4LPAth7wp2LBhiKzekpiZ5uzEwD\r\nqd/4fg1wBILp4J6YRwqjprxXd7LdVRGqQI+a4cUEdl/kx+ITOqxrhnHZMUfd\r\nk7IO9Wr+DcFHDJKgshXPpclEarxsMKPpu9a2fOa6BGXShkwAyYpwEXabSfHD\r\n5j3XvORHcNGpWLSkxWlefd9By0PsrpH+cd2BzeCKfAiddw86eULAL/Y3QYuA\r\nVFKZgYkBylERV2TZQqJyTV3PSvkoFraB6YF9RDfuluUQuZuAiUvnLZuq/ib3\r\n4hHMTDkF2MdY8OrLRY8Aeu4BqcHludG2/MebOTiO87tADGmqQYuDb9lWrG13\r\nJjIXADCqaCQ43lwruKg7xueCLIAvLNhxMfe8i10n/AfPAxkh2BwG0bt19fxh\r\ngrPxPPKKbjoMCLxp3uqEM05PXUqAV21jPWoct55rVa+dUiBXvj7vz95JkrGD\r\n9tzfjrx8S5lVm389dBm3zUrhfGfATbkCwfU1E/qtNgLJqJbpE2iJgUd2kMYf\r\nCSuCfrdYcebgrLl0laFajS19CDnPIpX90NtUZF6u0k6T2E57qIg2ItgiyUud\r\nUiBHhmWhxftDgpinbp2cIUlu0BbTn+RzQ8mhwmjNXIR0CNNsnrZarLWLyfBw\r\nZadIjHtdziN1bTPJacjhT3YZw+OAKb7xSqk=\r\n=SbpF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andskur","email":"a.skurlatov@gmail.com"},"directories":{},"maintainers":[{"name":"andskur","email":"a.skurlatov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/contracts_2.3.0-6_1670099608478_0.5923968554437673"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-03T20:33:28.420Z","2.3.0-6":"2022-12-03T20:33:28.708Z","modified":"2022-12-03T20:33:28.846Z"},"maintainers":[{"name":"andskur","email":"a.skurlatov@gmail.com"}],"description":"<p align=\"center\"> <br /> <a href=\"https://thirdweb.com\"><img src=\"https://github.com/thirdweb-dev/typescript-sdk/blob/main/logo.svg?raw=true\" width=\"200\" alt=\"\"/></a> <br /> </p> <h1 align=\"center\">thirdweb Contracts</h1> <p align=\"center\"> <a href=\"http","license":"Apache-2.0","readme":"<p align=\"center\">\n<br />\n<a href=\"https://thirdweb.com\"><img src=\"https://github.com/thirdweb-dev/typescript-sdk/blob/main/logo.svg?raw=true\" width=\"200\" alt=\"\"/></a>\n<br />\n</p>\n<h1 align=\"center\">thirdweb Contracts</h1>\n<p align=\"center\">\n<a href=\"https://www.npmjs.com/package/@thirdweb-dev/contracts\"><img src=\"https://img.shields.io/npm/v/@thirdweb-dev/contracts?color=red&logo=npm\" alt=\"npm version\"/></a>\n<a href=\"https://github.com/thirdweb-dev/contracts/actions\"><img alt=\"Build Status\" src=\"https://github.com/thirdweb-dev/contracts/actions/workflows/tests.yml/badge.svg\"/></a>\n<a href=\"https://discord.gg/thirdweb\"><img alt=\"Join our Discord!\" src=\"https://img.shields.io/discord/834227967404146718.svg?color=7289da&label=discord&logo=discord&style=flat\"/></a>\n\n</p>\n<p align=\"center\"><strong>Collection of smart contracts deployable via the thirdweb SDK, dashboard and CLI</strong></p>\n<br />\n\n## Installation\n\n```shell\nnpm i @thirdweb-dev/contracts\n```\n\n## Running Tests\n\n1. `yarn`: install contracts dependencies\n2. `forge install`: install tests dependencies\n3. `forge test`: run the tests\n\nThis repository is a hybrid [hardhat](https://hardhat.org/) and [forge](https://github.com/foundry-rs/foundry/tree/master/forge) project.\n\nFirst install the relevant dependencies of the project:\n\n```bash\nyarn\n\nforge install\n```\n\nTo compile contracts, run:\n\n```bash\nforge build\n```\n\nOr, if you prefer hardhat, you can run:\n\n```bash\nnpx hardhat compile\n```\n\nTo run tests:\n\n```bash\nforge test\n```\n\nTo export the ABIs of the contracts in the `/contracts` directory, run:\n\n```\nnpx hardhat export-abi\n```\n\nTo run any scripts in the `/scripts` directory, run:\n\n```\nnpx hardhat run scripts/{path to the script}\n```\n\n## Pre-built Contracts\n\nPre-built contracts are written by the thirdweb team, and cover the most common use cases for smart contracts.\n\nRelease pages for pre-built contracts:\n\n- [DropERC20](https://thirdweb.com/deployer.thirdweb.eth/DropERC20)\n- [DropERC721](https://thirdweb.com/deployer.thirdweb.eth/DropERC721)\n- [DropERC1155](https://thirdweb.com/deployer.thirdweb.eth/DropERC1155)\n- [SignatureDrop](https://thirdweb.com/deployer.thirdweb.eth/SignatureDrop)\n- [Marketplace](https://thirdweb.com/deployer.thirdweb.eth/Marketplace)\n- [Multiwrap](https://thirdweb.com/deployer.thirdweb.eth/Multiwrap)\n- [TokenERC20](https://thirdweb.com/deployer.thirdweb.eth/TokenERC20)\n- [TokenERC721](https://thirdweb.com/deployer.thirdweb.eth/TokenERC721)\n- [TokenERC1155](https://thirdweb.com/deployer.thirdweb.eth/TokenERC1155)\n- [VoteERC20](https://thirdweb.com/deployer.thirdweb.eth/VoteERC20)\n- [Split](https://thirdweb.com/deployer.thirdweb.eth/Split)\n\n[Learn more about pre-built contracts](https://portal.thirdweb.com/pre-built-contracts)\n\n## Extensions\n\nExtensions are building blocks that help enrich smart contracts with features.\n\nSome blocks come packaged together as Base Contracts, which come with a full set of features out of the box that you can modify and extend. These contracts are available at `contracts/base/`.\n\nOther (smaller) blocks are Features, which provide a way for you to pick and choose which individual pieces you want to put into your contract; with full customization of how those features work. These are available at `contracts/extension/`.\n\n[Learn more about extensions](https://portal.thirdweb.com/extensions)\n\n## Deployments\n\nThe thirdweb registry (`TWRegistry`) and factory (`TWFactory`) have been deployed on the following chains:\n\n- [Ethereum mainnet](https://etherscan.io/)\n- [Rinkeby](https://rinkeby.etherscan.io/)\n- [Goerli](https://goerli.etherscan.io/)\n- [Polygon mainnet](https://polygonscan.com/)\n- [Polygon Mumbai testnet](https://mumbai.polygonscan.com/)\n- [Avalanche mainnet](https://snowtrace.io/)\n- [Avalanche Fuji testnet](https://testnet.snowtrace.io/)\n- [Fantom mainnet](https://ftmscan.com/)\n- [Fantom testnet](https://testnet.ftmscan.com/)\n\n`TWRegistry` is deployed to a common address on all mentioned networks. `TWFactory` is deployed to a common address on all mentioned networks except Fantom mainnet.\n\n- `TWRegistry`: [0x7c487845f98938Bb955B1D5AD069d9a30e4131fd](https://blockscan.com/address/0x7c487845f98938Bb955B1D5AD069d9a30e4131fd)\n\n- `TWFactory`: [0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0](https://blockscan.com/address/0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0)\n- `TWFactory` (Fantom mainnet): [0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B](https://blockscan.com/address/0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B)\n\n\n## Bug reports\n\nFound a security issue with our smart contracts? Send bug reports to security@thirdweb.com and we'll continue communicating with you from there. We're actively developing a bug bounty program; bug report payouts happen on a case by case basis, for now.\n\n## Feedback\n\nIf you have any feedback, please reach out to us at support@thirdweb.com.\n\n## Authors\n\n- [thirdweb](https://thirdweb.com)\n\n## License\n\n[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt)\n","readmeFilename":"README.md"}