This repository provides an Ethereum-based crowdfunding solution implemented in Solidity, using Chainlink Oracles for price conversions and precise timing controls.
.
├── Campaign.sol
├── CampaignFactory.sol
├── GetTime.sol
└── PriceConvertor.sol
Handles individual crowdfunding campaigns:
- Campaign creation, funding, withdrawal, refunds
- Automatic campaign state management (Active, Completed, Refunded)
- Uses
PriceConvertorfor real-time ETH/USD conversions
Factory contract to:
- Deploy multiple crowdfunding campaigns
- Keep track of campaigns created by users
- Emit events on new campaign creation
- Integrates with Chainlink price feeds for reliable ETH/USD conversions
- Provides utility functions for accurate fundraising calculations
- Manages campaign timing with countdown utilities
- Provides detailed time left breakdown (days, hours, minutes, seconds)
- Solidity Compiler
- Remix IDE or other development frameworks (e.g., Hardhat, Foundry)
- Clone the repository:
git clone https://github.com/nemanull/CampaignFactory.git-
Compile using your preferred development environment (e.g., Remix, Hardhat, or Foundry).
-
Deploy
CampaignFactory.solfirst and then use it to deployCampaign.solcontracts.
- Chainlink Oracles (
AggregatorV3Interface)
Ensure correct Chainlink Price Feed address for your target blockchain.
This repository is provided as-is, with no warranty or guarantees. Use responsibly and perform your own due diligence.