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
- 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.
- Modified ERC721 to integrate Chainlink functions
- Modified whitelist mint function which calls Chainlink function
- FarcasterRestrictedNft - https://mumbai.polygonscan.com/address/0x3e288dc6c12f2a4c55c55aba1e85fddbd125978e
- Tx where I (whitelisted address) minted https://mumbai.polygonscan.com/tx/0x19eb8b5a835761c4f0fb717872bb14aa35286ff586c3770977223fcf009073bb