Git Product home page Git Product logo

zora-drops-contracts's Introduction

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.
  5. โœจ

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.

zora-drops-contracts's People

Contributors

iainnash avatar tbtstl avatar alikonuk1 avatar jgeary avatar sweetmantech avatar jemgold avatar bjfresh avatar

Stargazers

Buns Enchantress avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.