The project leverages blockchain to make decentralized donations for the students who have backlogs. This is a sample project and it is not going to be deployed on mainnet. But we deployed it on testnet. You can find the contract here.
Donation.sol
It is a smart contract which have donating and withdrawing functionalities. It also maintains a mapping of addresses to their donations.
Scripts
There are two different script, one is of donating which is hard coded with value of 0.001
. You can put any value when it is integrated with
frontend.
Frontend part is kept pretty simple. It only have two buttons which are Connect to wallet and other is Donate with a placeholder for input from the Dapp user.