Skip to content

nemanull/CampaignFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Crowdfunding Smart Contract

This repository provides an Ethereum-based crowdfunding solution implemented in Solidity, using Chainlink Oracles for price conversions and precise timing controls.


Project Structure

.
├── Campaign.sol
├── CampaignFactory.sol
├── GetTime.sol
└── PriceConvertor.sol

Smart Contracts Overview

Campaign.sol

Handles individual crowdfunding campaigns:

  • Campaign creation, funding, withdrawal, refunds
  • Automatic campaign state management (Active, Completed, Refunded)
  • Uses PriceConvertor for real-time ETH/USD conversions

CampaignFactory.sol

Factory contract to:

  • Deploy multiple crowdfunding campaigns
  • Keep track of campaigns created by users
  • Emit events on new campaign creation

PriceConvertor.sol

  • Integrates with Chainlink price feeds for reliable ETH/USD conversions
  • Provides utility functions for accurate fundraising calculations

GetTime.sol

  • Manages campaign timing with countdown utilities
  • Provides detailed time left breakdown (days, hours, minutes, seconds)

Getting Started

Prerequisites:

Installation & Deployment:

  1. Clone the repository:
git clone https://github.com/nemanull/CampaignFactory.git
  1. Compile using your preferred development environment (e.g., Remix, Hardhat, or Foundry).

  2. Deploy CampaignFactory.sol first and then use it to deploy Campaign.sol contracts.


Dependencies

  • Chainlink Oracles (AggregatorV3Interface)

Ensure correct Chainlink Price Feed address for your target blockchain.


Disclaimer

This repository is provided as-is, with no warranty or guarantees. Use responsibly and perform your own due diligence.

About

Every user is able to create their own campaign

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors