Giter VIP home page Giter VIP logo

hardhat-fund-me's Introduction

Hardhat Fund Me

Hardhat Fund Me is a simple Blockchain application for crowd funding, a showcase of using Hardhat framework along with Node.js.

Quick Overview

Smart contracts written in Solidity allowing funders to contribute and only the owner can withdraw

Can be deployed to different networks by updating hardhat.config.js file, and store additional information in helper-hardhat-config.js file

For testing, 2 types of tests are developed configured:

  • Unit test
  • Staging test

Mocks are also created for testing

Use different kinds of storage in different scenerios

Apply Solidity code convention

Getting Started

Requirements

  • git
  • Node.js
  • yarn

Quick Start

git clone [email protected]:nvtrinh2001/hardhat-fund-me.git
cd hardhat-fund-me
yarn
yarn hardhat

Deploy

Hardhat Deployment

yarn hardhat deploy

Local Deployment

Create your local hardhat network:

yarn hardhat node

And, in a different terminal:

yarn hardhat deploy --network localhost

Testnet or Mainnet

Setup environment variables:

  • PRIVATE_KEY
  • RINKEBY_RPC_URL

Get testnet ETH from faucets.chain.link

Deploy:

yarn hardhat deploy --network rinkeby

Test

Unit tests

yarn run test

Staging tests

yarn run test:staging

Test coverage

yarn run coverage

Estimate Gas

Run:

yarn hardhat test

Gas estimation will be saved in gas-report.txt

Verify on Etherscan

Get your API key from Etherscan, then deploying the application will automatically verify the contracts for you.

hardhat-fund-me's People

Contributors

nvtrinh2001 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.