feat: implement missing getter functions #29
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement User Data Fetching and Bounty Calculation Features
📌 Issue Overview
This PR addresses the enhancement requirements for the FortiChain platform by implementing new functionality for user data fetching and comprehensive bounty calculations.
🛠️ Completed Tasks
Fetch User Project and Reports
get_single_project(project_id)- Fetch a specific project by IDget_projects_by_owner(owner_address)- Fetch all projects created by a project ownerget_single_report(report_id)- Fetch a specific report by IDget_reports_by_researcher(researcher_address)- Fetch all reports submitted by a researcherWrite Tests
Calculate Total Bounty Received
get_total_bounty_received()function:Calculate Total Bounty Paid
get_total_bounty_paid()function:Contract Deployment Limitation
Important Note: I was unable to complete the Starknet testnet deployment task as I do not have admin/owner privileges for the contract. The deployment requires contract owner permissions to upgrade the existing contract using the deployment hash specified in
deployment.md.This PR successfully implements all requested functionality except for the contract deployment, which requires elevated permissions. All code is production-ready and thoroughly tested.
If you have any questions about the implementation or need assistance with the deployment process, please don't hesitate to reach out.
closes: #28