A decentralized crowdfunding smart contract built using Foundry.
Users can fund the contract with ETH, and only the contract owner can withdraw funds.
Chainlink price feeds are used to enforce a minimum USD contribution.
- Solidity
- Foundry (Forge, Cast)
- Chainlink Price Feeds
- GitHub Actions (CI)
- Accept ETH contributions
- Enforces minimum USD funding amount
- Tracks funders and contributions
- Owner-only withdrawal
- Chainlink oracle integration
- Fully tested using Foundry
.
├── src/
│ └── FundMe.sol
├── script/
│ └── DeployFundMe.s.sol
├── test/
│ └── FundMeTest.t.sol
├── lib/
│ └── chainlink/
├── .github/
│ └── workflows/
│ └── test.yml
├── foundry.toml
└── README.md
- Git
- Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryupClone the repository
git clone git@github.com:Anshul-NSUT41/Foundry-FundMe.git
cd Foundry-FundMe
Install dependencies
forge install
📜 Smart Contract Overview FundMe.sol
Uses Chainlink price feeds
Maps funders to their funded amount
Restricts withdrawals to owner
🛡 Security Notes
Owner-only withdrawal
External oracle dependency
No upgradeability (by design)
📄 License
MIT License
👤 Author
Anshul Engineering @ NSUT Blockchain | Smart Contracts | Foundry