Closed tensojka closed 2 weeks ago
@tensojka let me hop on this
@EjembiEmmanuel Refer to https://github.com/CarmineOptions/konoha/blob/master/CONTRIBUTING.md please, you are missing an estimated delivery timeline. I would also appreciate a brief summary of your relevant skills, though not strictly required.
It would also be nice of you to join the Konoha Dev Telegram group for faster communication.
i will like to jump on it
@vibenedict You are also missing an estimated delivery timeline, see message above.
@tensojka I should be able to get in done in 5 working days.
mplement a comment submission and retrieval feature for proposals in the Konoha governance toolkit. This feature should allow govtoken holders to submit IPFS addresses as comments on proposals and retrieve these comments. Ensure this functionality integrates with the Proposals component to only allow commenting on live proposals and handles only the IPFS hashes, not the actual content.
Step 1: Set up the backend
createComment(ipfsHash: string, proposalId: uint256)
: adds a new comment to the proposal with the given IPFS hash.getComments(proposalId: uint256)
: retrieves all comments associated with the given proposal ID.isAdmin(user: address)
: checks whether the user is an admin, returning a boolean value.Step 2: Integrate with the Proposals component
createComment
function to add a comment with a unique IPFS hash.I will carryout the task in five days
@vibenedict Is this written with chatgpt? The function signatures aren't Cairo 1. there are no strings, we use underscore_case, uint256>u256 and others. Why the admin check??
Integration with Proposals makes no sense.
Hi @tensojka, I would love to give this issue a try.
What I understood form your description is to create a new starknet component(discussion) which would have two functions for adding and retrieving IPFS addresses as comments. Comments should only be added for live proposals.
I will be needing 5 working days to tackle this.
@manlikeHB Assigned you, sorry for missing this!
Thank you @tensojka, is it alright to reach out to you on telegram if I have any issues?
@manlikeHB Yes, please reach out, preferably in the konoha development group (see link in readme)
@manlikeHB You haven't created a draft PR and it's been five days with no update from you, zero commits in your fork. Unassigning you.
Hi @tensojka, I'll make a draft PR today.
@manlikeHB Can you at least push the code you have?
@tensojka Yes, I will.
Implement a comment submission and retrieval feature for proposals in the Konoha governance toolkit. This feature should allow govtoken holders to submit IPFS addresses as comments on proposals and retrieve these comments. Ensure this functionality integrates with the Proposals component to only allow commenting on live proposals and handles only the IPFS hashes, not the actual content.
Expected skill: Cairo developer medior
Steps:
Implement a new component (discussion.cairo) with add and retrieve comment functions, ensuring proposals that are being commented on are live. It should depend on the Proposals component for fetching get_live_proposals(). Implement storage mechanisms for IPFS hashes of comments. Update tests in tests/proposals.cairo to cover the new functionality. This clear and structured approach should help a newcomer understand and implement the feature effectively. For more details, please refer to the repository
Definition of Done
The Cairo code works as expected, has nearly full test coverage, is reasonably documented (docstrings or similar suffice) and readable.
Refer to CONTRIBUTING.md for information on claiming the task.