• Hackathons
  • Features
  • Blog

Farcaster Social Whitelist

Turn engagement into value for your followers

  • 6,250 Raised
  • 7 Views
  • 1 Juries

Categories

  • Chainlink Functions

Gallery

Description

Description

This project is intended to allow a creator on Farcaster to cast about an upcoming NFT mint, and reward any follower who likes it with whitelist for the mint.

How it works

  • Creator casts about an upcoming NFT mint
  • Cast hash is recorded and stored in a javascript function which is stored and deployed onchain.
  • Creator deploys a modified ERC721 contract of type FarcasterRestrictedNft which has the .js source code written to storage.
  • When the time comes to mint, a follower calls the whitelistMint function, the contract calls the Chainlink function to verify the msg.sender has liked the contract.


Snippits

  • Modified ERC721 to integrate Chainlink functions


  • Modified whitelist mint function which calls Chainlink function


  • Conditional mint


Deployments

  • FarcasterRestrictedNft - https://mumbai.polygonscan.com/address/0x3e288dc6c12f2a4c55c55aba1e85fddbd125978e
  • Tx where I (whitelisted address) minted https://mumbai.polygonscan.com/tx/0x19eb8b5a835761c4f0fb717872bb14aa35286ff586c3770977223fcf009073bb