Skip to content
Aashi Shukla edited this page Sep 5, 2024 · 2 revisions

Donation DAPP

This application is hosted at the following URL: https://codergirl247donationdapp.netlify.app/ . Please visit the site to explore its features.

Walkthrough

Hii, this is Aashi and Welcome to the Donation-DAPP wiki!

This DAPP was created to support flood relief efforts in Tripura. Built on the Ethereum blockchain, it allows users to make donations securely and transparently.

It has 3 main pages: Login, User Panel and Admin Panel.

  1. The USER panel lets you donate and withdraw ETH (based on certain conditions) after connecting your metamask wallet. The donation feature also checks if the user has sufficient balance in his/her account and displays the message accordingly. Likewise, the withdraw feature checks if the user trying to withdraw funds has donated something or not. It also accounts for various edge cases like withdrawal period expiry and checking upper and lower limits of donation. This ensures that no single donor has a major influence on the contract.

Donation_DAPP_001

  1. Also the TARGET SECTION contains real-time tracking of total amount raised and the number of donors. The User contribution also gets updated after every donation / withdrawal, along with a circular progress bar that keeps a track of how much TARGET has been achieved and a receipt that contains details like Transaction Hash and address.

  2. Only Admin has the access to the ADMIN panel. It contains 5 features: PAUSE CONTRACT, UNPAUSE CONTRACT, TOTAL DONATIONS, WITHDRAW FUNDS and LIST DONORS. As the name suggests, the "PAUSE CONTRACT" button pauses the entire contract, i.e. when the contract is paused, no transactions will be allowed. The "DONATE" and "WITHDRAW" feature from USER PANEL and "WITHDRAW FUNDS" from the ADMIN panel won't work. Instead, they will display messages like "CONTRACT IS PAUSED. YOU CANNOT DONATE/WITHDRAW ETH".

Donation_DAPP_002

  1. The "UNPAUSE CONTRACT" button resumes the contract. You can see the total amount raised with the "TOTAL DONATIONS" button and use "WITHDRAW FUNDS" to withdraw all ETH from the contract. Last but not least, the "LIST DONORS" function provides you with an entire table of Donors and the amount they have contributed. The BACK button in both USER and ADMIN page simply takes you back to the Login page.

Hope you found this helpful!

Please note that this DApp operates on the Sepolia testnet and requires Sepolia ETH to function.