npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@zoralabs/zora-721-contracts

v1.15.4

Published

ZORA NFT Drops Contracts

Downloads

1,913

Readme

Zora NFT Drop Media Contracts

How do I integrate these in my own site?

  1. Use wagmi/ethers/web3.js with the given artifacts (in the node package) or typechain.
  2. 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)
  3. 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 the saleInfo call.
  4. Find the transfer() or sale() event from the transaction receipt to get the ID that the user minted.

Features these contracts support:

  1. ETH NFT sales
  2. Modular admin access and minting controls
  3. ERC2981 on-chain royalties
  4. Presale merkle trees
  5. On-chain modular rendering architecture
  6. ERC721A Gas savings / linear mint
  7. Limit mints per address when purchasing
  8. Allows for new features with opt-in gated user upgrades
  9. Allows for time-based open mints
  10. Includes a platform royalty fee mechanism
  11. Can admin mint NFTs to addresses and airdrop to lists of addresses

What are these contracts?

  1. ERC721Drop Each drop is a unique contract. This allows for easy royalty collection, clear ownership of the collection, and your own contract 🎉
  2. ZoraNFTCreatorV1 Gas-optimized factory contract allowing you to easily + for a low gas transaction create your own drop contract.
  3. DropMetadataRenderer A flexible metadata renderer architecture that allows for centralised and IPFS metadata group roots to be rendered.
  4. EditionsMetadataRenderer A partially on-chain renderer for editions that encodes name and description on-chain with media metadata off-chain.
  5. UpgradeGate A registry allowing for upgrades to be allowed for child contracts by zora.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

  1. Install Foundry
  2. yarn install
  3. git submodule init && git submodule update
  4. 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.