Skip to content

Latest commit

 

History

History
 
 

12-token-crowdfund

English / 中文

Crowdfunding Contract

This sample demonstrates the basic process of a crowdfunding contract, including the deployment of the contract, the contract, and the launch of a crowdfunding project.

Operation Process

  • Config .env
cp .env.example .env

## Modify .env to the actual values of INFURA_ID and PRIVATE_KEY
PRIVATE_KEY=xxxxxxxxxxxxxxxx
INFURA_ID=yyyyyyyy
  • Install Dependencies
yarn
  • Compile Contract
npx hardhat compile
  • Test Contract
npx hardhat test
  • Deploy Contract
npx hardhat run scripts/deploy_crowdfunding.js --network goerli

Crowdsale Type

  • CappedCrowdsale
  • IndividuallyCappedCrowdsale
  • TimedCrowdsale
  • WhitelistedCrowdsale
  • FinalizableCrowdsale
  • PostDeliveryCrowdsale
  • RefundableCrowdsale
  • AllowanceCrowdsale
  • MintedCrowdsale
  • IncreasingPriceCrowdsale

Refer to the link