如何在“阶段”中造成智能合同。
我刚刚开始学习坚固性,以为NFT项目开发智能合同,并遇到了我似乎无法理解的障碍。
目的是铸造几个阶段(例如,明天允许铸造100个,下周再增加100个,而后一周的最后100个)。我该怎么做?
请记住,我不希望NFT被“狙击”,并且在造成了前100个我想揭示NFT图片之后,所以我恐怕这种揭示会使IPFS链接公开,人们可以轻松地看到他们的照片薄荷可以在下一个阶段吗?
不确定我是否有意义,并为成为菜鸟而感到抱歉,但是请让我知道您是否要我澄清并感谢!:)
I just started learning Solidity to develop smart contracts for an NFT project, and have run into a roadblock I can't seem to understand.
The goal is to mint in several phases (e.g. allow for minting 100 tomorrow, 100 more the next week, and the last 100 the week after). How would I go about doing this?
Keep in mind I do not want the NFTs to be "sniped", and after minting the first 100 I want to reveal NFT pictures, so I am afraid that this reveal will make the IPFS link public and that people can easily see what pictures they can mint in the next phase?
Not sure if I make any sense, and sorry for being a noob, but please let me know if you want me to clarify and thanks!:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您绝对可以在阶段进行薄荷。已经有很多项目已经具有这种类型的薄荷结构:
第1阶段:保留薄荷(赠品的数字)
第2阶段:预售(造币厂的数字到WL成员)
第3阶段:在您的情况下,公众(造币厂的数字到公共成员)
每个阶段仅为p1,p2,p3,每个阶段允许造币的数字是100
。不过,图像分阶段。一旦您更新
tokenuri
它将为所有图像更改。即使您确实以某种方式揭示了它们,IPFS链接也将是公开的,这意味着任何人都可以看到罕见的链接。我的第一个建议是查看您希望在Etherscan上建模的项目合同。这些通常会为您提供最佳的开始,即您要如何构建合同。
如果您需要更多帮助,我总是可以在Twitter @_syndk8上使用
You can definitely do your mint in phases. There are plenty of projects out there that have this type of mint structure already:
Phase 1: Reserved Mint (number to mint for giveaways)
Phase 2: Presale (number to mint to WL members)
Phase 3: Public (number to mint to public members)
In your case each phase would just be p1,p2,p3 and the number allowed to mint in each phase would be 100.
From what I know, there is no good way to reveal the images in phases though. As soon as you update the
tokenURI
it will be changed for all images. Even if you did reveal them in phases somehow, the ipfs link would be public which means anyone could see where the rare ones are located.My first suggestion would be to look at the contracts of projects that you want yours to be modeled after on etherscan. These will typically give you the best start as to how you will want to structure your contract.
If you need any more help I'm always available on Twitter @_syndk8