aeither / report-dao

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Report DAO

DEMO

reportdao_demo.mp4

Description

ReportDAO is a decentralized crowdfunding platform that empowers users to request and fund web scraping reports. Simply submit a website URL, description, and funding goal to request a new report. Other users can then contribute cryptocurrency to fund the report. Once the funding goal is met, the report is generated and delivered to all contributors. With ReportDAO, you can access valuable data insights through a transparent, community-driven process.

TechStack

  • wagmi, nextjs, shadcn, solidity, arbitrum

User Flow

Request a New Report User visits the ReportDAO website and clicks on the "Request a Report" button. User fills out a form with the website URL to be scraped, a description of the report requirements, and the funding goal (in cryptocurrency). User submits the form, which calls the requestReport function in the smart contract.

function requestReport(string memory _website, string memory _description, uint256 _fundingGoal) public { ... }

Fund the Report The new report request is displayed on the ReportDAO website, along with its funding progress. Other users can contribute funds to the report by clicking the "Fund" button. Users connect their cryptocurrency wallets and specify the amount they want to contribute. The contribution is processed by calling the fundReport function in the smart contract.

function fundReport(uint256 _reportId) public payable { ... }

Report Completion Once the funding goal for a report is met, the ReportDAO team or a designated party can mark the report as completed by calling the completeReport function.

function completeReport(uint256 _reportId) public { ... }

Receive the Report After the report is marked as completed, users who contributed funds can access and download the completed report. Users can view the details of the completed report.

Try it with example: https://x.com/elonmusk

Links

Smart Contract on Arbitrum Sepolia

https://sepolia.arbiscan.io/address/0xa2dd26d1e1b87975692ab9efdd84177bc16fca98

Screenshots

CleanShot 2024-04-21 at 23 34 56@2x

CleanShot 2024-04-21 at 23 37 32@2x

CleanShot 2024-04-21 at 23 29 55@2x

CleanShot 2024-04-21 at 23 31 30@2x

About


Languages

Language:TypeScript 93.5%Language:JavaScript 2.5%Language:Solidity 2.1%Language:CSS 1.9%