Skip to content

kelbelss/mini-primes

Repository files navigation

Mini Primes

ERC721 NFT contract with Foundry tests and a deploy script.

This NFT smart contract project allows users to mint unique NFTs associated with prime numbers. Here's how it works:

  • Minting: Users can mint an NFT associated with a specific number by paying 1 ETH. The number they choose must be available and ideally a prime number.
  • Verification: Once a user has minted an NFT, other users can dispute whether the chosen number is indeed a prime number or not.
  • Dispute Resolution: If a number is disputed, the smart contract will verify whether it's a prime number or not. If it's found to be prime, the NFT remains with the original owner. If not, the NFT will be burnt.

This mechanism encourages users to choose prime numbers for their NFTs and ensures the accuracy of the associated mathematical properties. It adds an interactive and community-driven aspect to the NFT minting process.

Coverage

File % Lines % Statements % Branches % Funcs
src/MiniPrimes.sol green 100.00% (12/12) green 95.83% (23/24) green 90.00% (9/10) green 100.00% (3/3)
Total green 100.00% (12/12) green 95.83% (23/24) green 90.00% (9/10) green 100.00% (3/3)

About

Prime number NFT project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published