{"id":13620807,"url":"https://github.com/thirdweb-dev/contracts","last_synced_at":"2025-05-13T20:11:06.079Z","repository":{"id":37023588,"uuid":"407328947","full_name":"thirdweb-dev/contracts","owner":"thirdweb-dev","description":"Collection of smart contracts deployable via thirdweb","archived":false,"fork":false,"pushed_at":"2025-04-21T11:25:53.000Z","size":22753,"stargazers_count":1041,"open_issues_count":45,"forks_count":548,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-04-28T13:58:42.644Z","etag":null,"topics":["ethereum","smart-contracts","solidity","web3"],"latest_commit_sha":null,"homepage":"https://docs.thirdweb.com/contracts","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thirdweb-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":"audit-reports/audit-1.pdf","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-16T22:14:16.000Z","updated_at":"2025-04-23T10:19:37.000Z","dependencies_parsed_at":"2024-01-12T14:39:53.751Z","dependency_job_id":"6e1cd176-7459-45b4-b89e-6b2eaa8ac881","html_url":"https://github.com/thirdweb-dev/contracts","commit_stats":null,"previous_names":[],"tags_count":305,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-dev%2Fcontracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-dev%2Fcontracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-dev%2Fcontracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-dev%2Fcontracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thirdweb-dev","download_url":"https://codeload.github.com/thirdweb-dev/contracts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020611,"owners_count":22000754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum","smart-contracts","solidity","web3"],"created_at":"2024-08-01T21:00:59.622Z","updated_at":"2025-05-13T20:11:06.063Z","avatar_url":"https://github.com/thirdweb-dev.png","language":"Solidity","readme":"\u003cp align=\"center\"\u003e\n\u003cbr /\u003e\n\u003ca href=\"https://thirdweb.com\"\u003e\u003cimg src=\"https://github.com/thirdweb-dev/typescript-sdk/blob/main/logo.svg?raw=true\" width=\"200\" alt=\"\"/\u003e\u003c/a\u003e\n\u003cbr /\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003ethirdweb Contracts\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/package/@thirdweb-dev/contracts\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@thirdweb-dev/contracts?color=red\u0026logo=npm\" alt=\"npm version\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/thirdweb-dev/contracts/actions\"\u003e\u003cimg alt=\"Build Status\" src=\"https://github.com/thirdweb-dev/contracts/actions/workflows/tests.yml/badge.svg\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/thirdweb\"\u003e\u003cimg alt=\"Join our Discord!\" src=\"https://img.shields.io/discord/834227967404146718.svg?color=7289da\u0026label=discord\u0026logo=discord\u0026style=flat\"/\u003e\u003c/a\u003e\n\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cstrong\u003eCollection of smart contracts deployable via the thirdweb SDK, dashboard and CLI\u003c/strong\u003e\u003c/p\u003e\n\u003cbr /\u003e\n\n## Installation\n\n```shell\n# Forge projects\nforge install https://github.com/thirdweb-dev/contracts\n\n# Hardhat / npm based projects\nnpm i @thirdweb-dev/contracts\n```\n\n```bash\ncontracts\n|\n|-- extension: \"extensions that can be inherited by NON-upgradeable contracts\"\n|   |-- interface: \"interfaces of all extension contracts\"\n|   |-- upgradeable: \"extensions that can be inherited by upgradeable contracts\"\n|   |-- [$prebuilt-category]: \"legacy extensions written specifically for a prebuilt contract\"\n|\n|-- base: \"NON-upgradeable base contracts to build on top of\"\n|   |-- interface: \"interfaces for all base contracts\"\n|   |--  upgradeable: \"upgradeable base contracts to build on top of\"\n|\n|-- prebuilt: \"audited, ready-to-deploy thirdweb smart contracts\"\n|   |-- interface: \"interfaces for all prebuilt contracts\"\n|   |--[$prebuilt-category]: \"feature-based group of prebuilt contracts\"\n|   |-- unaudited: \"yet-to-audit thirdweb smart contracts\"\n|       |-- [$prebuilt-category]: \"feature-based group of prebuilt contracts\"\n|\n|-- infra: \"onchain infrastructure contracts\"\n|   |-- interface: \"interfaces for all infrastructure contracts\"\n|\n|-- eip: \"implementations of relevant EIP standards\"\n|   |-- interface \"all interfaces of relevant EIP standards\"\n|\n|-- lib: \"Solidity libraries\"\n|\n|-- external-deps: \"modified / copied over external dependencies\"\n|   |-- openzeppelin: \"modified / copied over openzeppelin dependencies\"\n|   |-- chainlink: \"modified / copied over chainlink dependencies\"\n|\n|-- legacy-contracts: \"maintained legacy thirdweb 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 [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\nTo run tests:\n\n```bash\nforge test\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\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## Contract Audits\n\n- [Audit 1](audit-reports/audit-1.pdf)\n- [Audit 2](audit-reports/audit-2.pdf)\n- [Audit 3](audit-reports/audit-3.pdf)\n- [Audit 4](audit-reports/audit-4.pdf)\n- [Audit 5](audit-reports/audit-5.pdf)\n- [Audit 6](audit-reports/audit-6.pdf)\n- [Audit 7](audit-reports/audit-7.pdf)\n- [Audit 8](audit-reports/audit-8.pdf)\n- [Audit 9](audit-reports/audit-9.pdf)\n- [Audit 10](audit-reports/audit-10.pdf)\n- [Audit 11](audit-reports/audit-11.pdf)\n- [Audit 12](audit-reports/audit-12.pdf)\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","funding_links":[],"categories":["Libraries","By Language","Solidity","六、开发模板（快速启动项目）"],"sub_categories":["Solidity","2. 主网真实项目（抄作业）"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-dev%2Fcontracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthirdweb-dev%2Fcontracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-dev%2Fcontracts/lists"}