PupperCoin_Crowdsale – 傀儡集市区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,PupperCoin_Crowdsale – 傀儡集市区块链毕设代写 是一篇很好的国外资料

PupperCoin_Crowdsale - 傀儡集市


Project Background

A 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. The company has already worked with the necessary legal bodies and has the green light on creating a crowdsale open to the public. However, they 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.

Some crowdsale contract features:

  • An ERC20 token will be created and be minted through a Crowdsale contract that can be leveraged from the OpenZeppelin Solidity library.
  • This crowdsale contract manages 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.
  • The crowdsale contract inherits from Crowdsale, CappedCrowdsale, TimedCrowdsale, RefundableCrowdsale, and MintedCrowdsale.
  • The crowdsale will be conducted on the Kovan testnet in order to get a real-world pre-production test in.

PupperCoin.sol file creates a standard ERC20Mintable token. It uses an ERC20Detailed contract.

Crowdsale.sol file takes in the following parameters:

  • rate – rate in TKNbits
  • wallet – sale beneficiary
  • goal – cap of the crowdsale
  • openingTime – is set equal to now
  • closingTime – is set equal to now + 24 weeks

As mentioned previously, this contract inherits from the following OpenZeppelin contracts:

  • Crowdsale – takes in rate, wallet, and token as parameters
  • CappedCrowdsale – takes in goal as a parameter
  • TimedCrowdsale – takes in openingTime and closingTime as parameters
  • RefundableCrowdsale – takes in goal as a parameter
  • MintedCrowdsale

It is important to note that the RefundableCrowdsale constructor is called instead of the RefundablePostDeliveryCrowdsalecontract because RefundablePostDeliveryCrowdsale inherits the RefundableCrowdsale constructor.

Testing the Crowdsale

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.

PupperCoin_Crowdsale - 傀儡集市





  • 将创建一个ERC20代币,并通过可从OpenZeppelin Solidity中利用的众包合同进行铸造图书馆。
  • 这个众包合同管理整个过程,允许用户发送ETH并取回PupperCoin。
  • 此合同将自动生成代币,并在一次交易中将其分发给买家。
  • 众筹合同继承自众筹、封顶众筹、TimedCrowdsale、可退款众筹和MintedCrowdsale。
  • 众包销售将在Kovan testnet上进行,以便在中进行真实的预生产测试。



  • 费率-TKNbits中的费率
  • 钱包-销售受益人
  • 目标-众包销售的上限
  • 开放时间-设置为现在
  • 结束时间-设置为现在+24周,而token作为参数


  • CappedCrowdsale-以入站目标为参数
  • TimedCrowdsale-以openingTime和closingTime为参数
  • TimedCrowdsale – takes in openingTime and closingTime as parameters
  • RefundableCrowdsale – takes in goal as a parameter
  • MintedCrowdsale







区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » PupperCoin_Crowdsale – 傀儡集市区块链毕设代写


立即查看 了解详情