Skip to content

attestate/zora-drops-contracts

 
 

Repository files navigation

SequentialMetadataRenderer for Zora NFT Drop Media Contracts

  • This repository is a fork of ourzora/zora-drops-contracts
  • However, src/metadata/SequentialMetadataRenderer.sol and test/metadata/SequentialMetadataRenderer.t.sol are a modified version of EditionMetadataRenderer.
  • They allow an initializer to set specific MediaURIs for a range of tokenIds, e.g. tokenId=1-10 could have imageURI=https://host.com/firstimage.jpg whereas tokenId=11-20 could have imageURI=https://host.com/anotherimage.jpg.
  • We implemented this to retroactively change our Kiwi News NFT minter's badges as we had frequently changed the imageURI but since Zora then refreshes the entire collection and not just the newly minted NFTs.
  • We used ERC721Drop.setMetadataRender with a custom byte sequence to install the new metadata renderer (you can find the byte sequence generator as a unit test).
  • From now on, our idea is to update the collection's imageURI more often as a way to promote our NFT collection by releasing new collectable badges every now and then
  • Our contract is deployed at eth:0x643198A532A1D5DE706E18E324234d9A6a70562A
  • License: GPL-3.0-only

About

Zora drops contracts (powers create.zora.co)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 78.6%
  • TypeScript 18.3%
  • JavaScript 2.4%
  • Other 0.7%