@zoralabs/zora-721-contracts
v1.15.4
Published
ZORA NFT Drops Contracts
Downloads
1,913
Maintainers
Keywords
Readme
Zora NFT Drop Media Contracts
How do I integrate these in my own site?
- Use wagmi/ethers/web3.js with the given artifacts (in the node package) or typechain.
- Use our subgraph to find media / metadata information (goerli: https://api.thegraph.com/subgraphs/name/iainnash/erc721drop-goerli) (rinkeby: https://thegraph.com/hosted-service/subgraph/iainnash/erc721droprinkeby) (mainnet: https://thegraph.com/hosted-service/subgraph/iainnash/zora-editions-mainnet)
- For your edition, call
address(edition).purchase(quantity, {value: price * quantity})
. Price and availability can be found from the subgraph or from the blockchain with thesaleInfo
call. - Find the transfer() or sale() event from the transaction receipt to get the ID that the user minted.
- ✨
Features these contracts support:
- ETH NFT sales
- Modular admin access and minting controls
- ERC2981 on-chain royalties
- Presale merkle trees
- On-chain modular rendering architecture
- ERC721A Gas savings / linear mint
- Limit mints per address when purchasing
- Allows for new features with opt-in gated user upgrades
- Allows for time-based open mints
- Includes a platform royalty fee mechanism
- Can admin mint NFTs to addresses and airdrop to lists of addresses
What are these contracts?
ERC721Drop
Each drop is a unique contract. This allows for easy royalty collection, clear ownership of the collection, and your own contract 🎉ZoraNFTCreatorV1
Gas-optimized factory contract allowing you to easily + for a low gas transaction create your own drop contract.DropMetadataRenderer
A flexible metadata renderer architecture that allows for centralised and IPFS metadata group roots to be rendered.EditionsMetadataRenderer
A partially on-chain renderer for editions that encodes name and description on-chain with media metadata off-chain.UpgradeGate
A registry allowing for upgrades to be allowed for child contracts byzora.eth
.
Flexibility and safety
All drops contracts are wholly owned by their creator and allow for extensibility with rendering and minting. The root drops contract can be upgraded to allow for product upgrades with new contracts and Zora gates allowed upgrade paths for deployed contracts to be upgraded by the users of the platform to opt into new features.
The metadata renderer abstraction allows these drops contracts to power a variety of on-chain powered projects and also.
Local development
- Install Foundry
yarn install
git submodule init && git submodule update
yarn build
Bug Bounty
5 ETH for any critical bugs that could result in loss of funds. Rewards will be given for smaller bugs or ideas.