FundMe helps users raise funding for Projects using ETH Blockchain. Visit webapp here: https://gabrielassanuma.github.io/
This project was designed to work on ETH blockchain, using MetaMask Wallets. The contract has been deployed on Goerli Testnet(ETH): https://goerli.etherscan.io/address/0xaac35864D0C9e4baFD840A75307Af12F4a5DcA81
Version 1.0.0
This dapps uses chainlink oracle to convert ETH to USD by AgregatorV3 8.0. Mock created to simulate oracle functionallity on local network.
List of scripts:
"scripts": {
"test": "yarn hardhat test",
"test-staging": "yarn hardhat test --network goerli",
"lint": "yarn solhint contracts/*.sol",
"lint:fix": "yarn solhitn contracts/*.sol --fix",
"formatter": "yarn prettier --write",
"coverage": "yarn hardhat coverage"
},
All test run in local network
FundMe
constructor
✓ sets the aggregator address correctly
fund
✓ Fails if amount of ETH is under 50USD
✓ updated amount funded
✓ address fund to array getFunder
withdraw
✓ withdraw ETH single funder
✓ withdraw with multiple getFunder
✓ only allows the owner to withdraw
✓ cheaper withdraw testing