Unit 21: You sure can attract a crowd! – 第二十一单元:你一定能吸引一大群人!区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Unit 21: You sure can attract a crowd! – 第二十一单元:你一定能吸引一大群人!区块链毕设代写 是一篇很好的国外资料

Unit 21: You sure can attract a crowd!

Your company has decided to crowdsale their PupperCoin token in order to help fund the network development. This network will be used to track the dog breeding activity across the globe in a decentralized way, and allow humans to track the genetic trail of their pets. You have already worked with the necessary legal bodies and have the green light on creating a crowdsale open to the public. However, you are required to enable refunds if the crowdsale is successful and the goal is met, and you are only allowed to raise a maximum of 300 Ether. The crowdsale will run for 24 weeks.

This crowdsale contract will manage the entire process, allowing users to send ETH and get back PUP (PupperCoin). This contract will mint the tokens automatically and distribute them to buyers in one transaction.

PupperCoinCrowdsale

  • RefundablePostDeliveryCrowdsale inherits the RefundableCrowdsale contract, which requires a goal parameter.
  • Call the RefundableCrowdsale constructor from the PupperCoinCrowdsale constructor as well as the others.
  • RefundablePostDeliveryCrowdsale does not have its own constructor and thus use the RefundableCrowdsale constructor that it inherits.
  • Pass the open and close times by using now and now + 24 weeks to set the times properly from PupperCoinCrowdsaleDeployer contract.

Deploying the Crowdsale

Unit 21: You sure can attract a crowd! - 第二十一单元:你一定能吸引一大群人!


Unit 21: You sure can attract a crowd!

Your company has decided to crowdsale their PupperCoin token in order to help fund the network development. This network will be used to track the dog breeding activity across the globe in a decentralized way, and allow humans to track the genetic trail of their pets. You have already worked with the necessary legal bodies and have the green light on creating a crowdsale open to the public. However, you are required to enable refunds if the crowdsale is successful and the goal is met, and you are only allowed to raise a maximum of 300 Ether. The crowdsale will run for 24 weeks.

This crowdsale contract will manage the entire process, allowing users to send ETH and get back PUP (PupperCoin). This contract will mint the tokens automatically and distribute them to buyers in one transaction.

PupperCoinCrowdsale

  • RefundablePostDeliveryCrowdsale inherits the RefundableCrowdsale contract, which requires a goal parameter.
  • Call the RefundableCrowdsale constructor from the PupperCoinCrowdsale constructor as well as the others.
  • RefundablePostDeliveryCrowdsale does not have its own constructor and thus use the RefundableCrowdsale constructor that it inherits.
  • Pass the open and close times by using now and now + 24 weeks to set the times properly from PupperCoinCrowdsaleDeployer contract.

Deploying the Crowdsale

Unit 21: You sure can attract a crowd! - 第二十一单元:你一定能吸引一大群人!

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/21978.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Unit 21: You sure can attract a crowd! – 第二十一单元:你一定能吸引一大群人!区块链毕设代写

提供最优质的资源集合

立即查看 了解详情