English / 中文
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.
- 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
npm install
- Compile Contract
npx hardhat compile
- Test Contract
npx hardhat test
- Deploy Contract
npx hardhat run scripts/deploy_crowdfunding.js --network sepolia
- CappedCrowdsale
- IndividuallyCappedCrowdsale
- TimedCrowdsale
- WhitelistedCrowdsale
- FinalizableCrowdsale
- PostDeliveryCrowdsale
- RefundableCrowdsale
- AllowanceCrowdsale
- MintedCrowdsale
- IncreasingPriceCrowdsale
- https://medium.com/openberry/creating-a-simple-crowdfunding-dapp-with-ethereum-solidity-and-vue-js-69ddb8e132dd
- https://medium.com/extropy-io/crowdsales-on-ethereum-with-openzeppelin-57bbdea95390
- https://www.programmersought.com/article/1396206575/
- https://github.com/OpenZeppelin/openzeppelin-contracts/tree/release-v2.3.0/contracts/crowdsale
- Linear Unlock: https://cloud.tencent.com/developer/article/1182701