Code Monkey home page Code Monkey logo

zora-mint-frame's Introduction

Zora Mint Frame

This nextjs app will embed a free mint frame in Warpcast ๐ŸŽ‰

It's powered by the Neynar API that checks like and recast status of the post that embeds this frame.

Zora setup

Any 1155 collection on Zora should be supported, if you need ERC721 support please open an issue!

To be able to do free admin mints you need to add the address of your minter account (corresponding to the private key in MINTER_PRIVATE_KEY) as an admin of your collection: Manage collections > Your collection > Collaborators

Code setup

$ yarn
  1. Copy .env.example to .env.local (or put the variables in your environment) and update the values.
  2. Update the src/config.ts file with your chain, contract address and collection token ID

For added security you might want to enable KV on vercel! This will save any sucessful mint requests and prevent people to spam free mints.

Customize

  • Update the pictures in public/status/ and src/app/opengraph-image.png
  • Go through all the files and update texts as needed. It's not that many I know you can do it!

Gotchas

  • The free mint will run until the minter account is out of funds, then everyone will just get an error :P
  • If you don't add KV people might be able to spam your frame to get multiple free mints! Didn't test tho

Contact

Any questions? Ping me on Farcaster @owl!

If you feel like donating some funds for more fun stuff ๐Ÿ˜˜ 0xFd37f4625CA5816157D55a5b3F7Dd8DD5F8a0C2F

@owl out ๐Ÿซก
  .___.
  (o,o)
  (\+/)
   ^ ^

zora-mint-frame's People

Contributors

maggo avatar michaelmuenzer 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.