Skip to content

nolanjannotta/Hatch_NFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This contract allows users to mint NFTs with a random incubation period, and then hatch them after the period is over. The deployer can set a range in minutes for the incubation period when deploying the contract. Then, using the chainlink VRF, a random number is generated when a user mints an NFT. The number randomly chooses an amount of minutes within the range. The initial URI is set to "incubating", and can't be changed during the time period. After the incubation period, the NFT owner can call the HatchNft function which uses another random number to pick a random creature URI, thus "hatching" your NFT.

TODO:

  1. [] experiment with chainlink Keepers to automatically hatch the NFT.
  2. [] experiment with Gelato for the same thing
  3. [] add flexibilty for the incubation period (hours or days)
  4. [] clean up code
  5. [] write tests
  6. [] create simple front end

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published