Skip to content

gabrielassanuma/hardhat-fund-me-fcc

Repository files navigation

FundMe

FundMe helps users raise funding for Projects using ETH Blockchain. Visit webapp here: https://gabrielassanuma.github.io/

Network

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

Version 1.0.0

ChainLink - Oracle

This dapps uses chainlink oracle to convert ETH to USD by AgregatorV3 8.0. Mock created to simulate oracle functionallity on local network.

Scripts

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"
  },

Tests

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

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published