jharvey09 / For_The_Cause

For The Cause is a project based using a ERC20 token for crowd funding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For The Cause

pexels-worldspectrum-844124 Photo by Worldspectrum from Pexels

Outline

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.

You will need to create an ERC20 token that will be minted through a Crowdsale contract that you can leverage from the OpenZeppelin Solidity library.

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.

It will need to inherit Crowdsale, CappedCrowdsale, TimedCrowdsale, RefundableCrowdsale, and MintedCrowdsale.

You will conduct the crowdsale on the Kovan or Ropsten testnet in order to get a real-world pre-production test in.

ERC20 PupperCoin You will need to simply use a standard ERC20Mintable and ERC20Detailed contract, hardcoding 18 as the decimals parameter, and leaving the initial_supply parameter alone.

You don't need to hardcode the decimals, however since most use-cases match Ethereum's default, you may do so.

Simply fill in the PupperCoin.sol file with this starter code, which contains the complete contract you'll need to work with in the Crowdsale.

PupperCoinCrowdsale Leverage the Crowdsale starter code, saving the file in Remix as Crowdsale.sol.

You will need to bootstrap the contract by inheriting the following OpenZeppelin contracts:

Crowdsale

MintedCrowdsale

CappedCrowdsale

TimedCrowdsale

RefundablePostDeliveryCrowdsale

ERC20 PupperCoin You will need to simply use a standard ERC20Mintable and ERC20Detailed contract, hardcoding 18 as the decimals parameter, and leaving the initial_supply parameter alone.

You don't need to hardcode the decimals, however since most use-cases match Ethereum's default, you may do so.

Simply fill in the PupperCoin.sol file with this starter code, which contains the complete contract you'll need to work with in the Crowdsale.

PupperCoinCrowdsale Leverage the Crowdsale starter code, saving the file in Remix as Crowdsale.sol.

You will need to bootstrap the contract by inheriting the following OpenZeppelin contracts:

Crowdsale

MintedCrowdsale

CappedCrowdsale

TimedCrowdsale

Images

Compling and deploying contract 2021-11-06 (4)

2021-11-06 (6)

2021-11-06 (8)

2021-11-06 (17)

2021-11-06 (18)

2021-11-06 (19)

2021-11-06 (20)

2021-11-06 (21)

2021-11-06 (22)

2021-11-06 (23)

2021-11-06 (24)

About

For The Cause is a project based using a ERC20 token for crowd funding


Languages

Language:Solidity 100.0%