Skip to content

Aditya-ingole21/FundChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ FundChain - Smart Contract (Foundry) This repository contains the Foundry-based smart contracts for FundChain, a decentralized crowdfunding platform.

๐Ÿ“Œ Table of Contents Overview

Tech Stack

Setup & Installation

Smart Contract Details

Testing

Deployment

Contributing

License

๐Ÿ“œ Overview FundChain is a blockchain-powered crowdfunding platform that allows users to create campaigns and receive funds transparently. It utilizes Foundry for smart contract development and Next.js for the frontend.

๐Ÿ›  Tech Stack Solidity โ†’ Smart contract language

Foundry โ†’ Smart contract development framework

Ethers.js โ†’ Blockchain interaction

Hardhat (Optional) โ†’ Testing & Deployment

Next.js + TailwindCSS โ†’ Frontend

๐Ÿ“ฅ Setup & Installation To set up and run this project locally, follow these steps:

1๏ธโƒฃ Clone the repository sh Copy Edit git clone https://github.com/your-username/fundchain-foundry.git cd fundchain-foundry 2๏ธโƒฃ Install Foundry sh Copy Edit curl -L https://foundry.paradigm.xyz | bash foundryup 3๏ธโƒฃ Install dependencies sh Copy Edit forge install 4๏ธโƒฃ Compile the contracts sh Copy Edit forge build 5๏ธโƒฃ Run tests sh Copy Edit forge test ๐Ÿ“œ Smart Contract Details FundChain.sol (Core Contract) The FundChain contract enables: โœ… Creating campaigns โœ… Funding campaigns โœ… Withdrawing funds โœ… Refunding contributors

Contract Functions Function Description createCampaign() Creates a new campaign fundCampaign() Allows users to donate withdrawFunds() Campaign owner withdraws funds getCampaigns() Fetches all campaigns ๐Ÿš€ Deployment Deploy your contract using Foundry:

sh Copy Edit forge script script/Deploy.s.sol --rpc-url <RPC_URL> --private-key <PRIVATE_KEY> --broadcast OR using Hardhat (if configured):

sh Copy Edit npx hardhat run scripts/deploy.js --network goerli ๐Ÿค Contributing Feel free to fork the repo, create a pull request, or open an issue. ๐Ÿš€

๐Ÿ“œ License This project is MIT Licensed.

You can create a README.md file and paste this content:

sh Copy Edit nano README.md Paste the content and save. Then push it back to GitHub:

sh Copy Edit git add README.md git commit -m "Added README file" git push origin main

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published