As mention in the title i'm looking for advice to build an NFT ERC721 smart contract for an NFT collection. I hope this topic can help a lot of peoples !!
My goal is the smart contract to be gas efficient and safe with those features:
Ownable / Pauseable
.1 - There will be 2 sales, one pre-sale for whitelisted and a public sale they'll be a week apart, so I have to set up two prices and two max amount per wallet.
Do I have to specify this on the SC ? Or can I just change the price as I'm the owner ?
.2 How I can see in advance how much the cost of deployment of the smart contract?
.3 In the future I would like to create Airdrops for the holders
Do I need to specify this in the SC, or I can just look for the wallet holders on Etherscan to do so ?
.4 I need to keep 50 NFT from the sales for giveaways, etc?
If thereβs someone experimented and available to review the smart contract, let me know.
1- you can use the standard nft contract, and create 2 contracts 1 for public pre-sale and another for private, and in them you establish their characteristics and prices
2- the implementation cost you can see when you try to implement the contracts
3- For an airdrop of holders you could several tools, from oracles, to do it manually
Thank you @asmel, ok I've see the cost of deployment
Is there a more simple way such as adding the both type of sale in the smart contract with the ability to switch one of them off with a true or false function ?
For the withheld of the 50 NFTs I meant: from the smart contract minting the first 50 automatically during the smart contract deployment to the owner wallet.
This is for an NFT collection, 2 smart contracts for pre-sale and public sale but will this create two collections? How will it work for the connection with ipfs ?
I would avoid any manual steps like "come back in a week and change the price"; do it in code.
A 721 was one of the first contracts I ever wrote and I did not have a lot of trouble with it though I discovered later that I had made several noob mistakes but I kept learning.
I strongly recommend the openzeppelin imports and their contract generator.
I've had vastly more trouble with solc versions than with contracts, I got mine to deploy after three days of work and an absolutely unsuitable hack.