Coder Social home page Coder Social logo

crowdfunding-erc20's Introduction

Crowdfunding Campaign using ERC20 Tokens

This project implements a crowdfunding platform using Solidity smart contracts and ERC20 tokens. Project owners can create crowdfunding campaigns, users can fund these campaigns, and project owners can withdraw funds if their campaigns reach their funding goals.

Table of Contents

Getting Started

These instructions will help you set up the project on your local machine for development and testing purposes.

Prerequisites

Ensure you have the following software installed on your machine:

  • Node.js v12.0+ and npm (I'm using v18.12.1)
  • Hardhat v2.0+ (for development and testing) (I'm using v2.14.0)
  • An Ethereum wallet such as Metamask (Optional: reuired for testnet/mainnet deployment)

Installation

  1. Clone the repository:
git clone https://github.com/salahawk/crowdfunding-erc20.git
  1. Navigate to the project directory and install the dependencies:
cd crowdfunding-erc20
npm install

Deploying Contracts

  1. Create a .env file in the project root and add your wallet's private key and an Ethereum network RPC URL: (Optional: not required if you want to test locally only)
PRIVATE_KEY=your-private-key
RPC_URL=your-rpc-url
  1. In the project directory, compile the smart contracts:
npx hardhat compile
  1. Deploy the smart contracts to your desired Ethereum network: (or you can deploy locally without specifying the network)
npx hardhat run --network <network-name> scripts/deploy.js

Replace <network-name> with the name of the network you want to deploy to, such as mainnet, goerli, or localhost.

Here's the result of deployment on my end: Test script result

Testing

To run tests on the smart contracts, execute the following command in the project directory:

npx hardhat test

Here's the test result (on my end): Test script result

Security

The smart contracts have been reviewed for security issues, and the code has been analyzed using Slither. However, it's important to conduct a thorough audit before deploying contracts to a production environment.

Here's the security-check result by Slither (on my end): Test script result

Built With

License

This project is licensed under the MIT License - see the LICENSE file for details.

crowdfunding-erc20's People

Contributors

salahawk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

dantegpt

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.