Skip to content

sal-420/nft-erc721-collection-free-and-paid-mints

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT ERC721 Collection with partial free mint option

A fork of the hashlips ERC721 collection repo modified public sale option to include a hybrid of free and paid mints.

Disclaimer

This project was created for educational purposes, please refer to the LICENCE file for further information.

Main features

A public sale with free and paid mints. When the free mint supply is exhausted the contract switches to paid mints.

Requirements

Software

Please refer to the hashlips ERC721 collection for excellent video's.

Services

Please refer to the hashlips ERC721 collection for excellent video's.

Partial Free Mint Setup

This project follows the hashlips ERC721 collection set-up and deployment process for a seamless free mint to paid mint set-up.

Before deploying the contract update CollectionFonfig.ts

Step Description Field to update
01 Set the free mint supply maxFreeMintSupply: 10
02 Set the mint cost to be used after free mints are exhausted publicSale: { price: 0.0042069,
03 Set the maximum mints per transaction to be used after free mints are exhausted publicSale: { maxMintAmountPerTx: 2,

Deploy the contract with partial free mints set-up, in this order:

Step Description
01 Open the public sale, run script: public-sale-open
02 Head over to your contract on etherscan
03 Set the number of max free mints per transaction using function: setMaxFreeMintAmountPerTxn
04 Active the free mint option using function: setHasFreeMint to set _state to true

The contract is now setup for partial free mints. When the free mint supply is exhausted the contract will switch to the paid mint model

For a detailed start to finish set-up, deploy, and demo checkout the you tube video located here

About

Did 2nd fork to from hashlips to fix a bad commit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 74.6%
  • Solidity 10.1%
  • SCSS 7.5%
  • JavaScript 6.0%
  • Shell 1.2%
  • HTML 0.6%