You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are to implement the voting system! Here's where judges and stakers cast their votes for artists in any given audition. The judges vote is actually a plus for their evaluation of the artist performance which is based on different skill sets of the artist and their performance, and this has been implemented, ensure to check the current state of the contract. The beauty is in the simplicity - one function that automatically detects if you're a judge or staker and assigns the right voting weight. The Judges vote is to complement a staker's vote.
Note: also provide an implementation to assign more voting weight to a celebrity artist who is a judge, get more voting weight than the regular judge.
Judges get their assigned weights, which is a way super much more bigger weight compared to the stakers, stakers get fixed 0.5 weight. Every vote requires an IPFS hash containing the voter's commentary (validated off-chain before reaching the contract). Real-time scoring updates immediately with each vote.
This makes the voting system transparent, anyone can see current standings at any time. No surprises, no manipulation. we are to achieve transparency with this voting system
📌 Requirements
Unified Voting Function: Single function handles both judge and staker votes
Automatic Role Detection: Contract determines if caller is judge(or a celebrity artist who gets to act as a judge too) or eligible staker
IPFS Commentary Integration: Every vote requires pre-validated IPFS hash for reasoning (the reason for a vote should be given)
Real-Time Score Updates: Artist scores update immediately with each vote
Prevent Double Voting: Each voter can only vote once per artist
Vote Weight Assignment: Judges get assigned weights so also celebrity artist acting as a Judge, stakers get fixed 0.5 weight for example
Voting Window Management: Time-based voting periods with clear start/end
Vote Storage: Comprehensive vote data storage for transparency
Issue Description:
You are to implement the voting system! Here's where judges and stakers cast their votes for artists in any given audition. The judges vote is actually a plus for their evaluation of the artist performance which is based on different skill sets of the artist and their performance, and this has been implemented, ensure to check the current state of the contract. The beauty is in the simplicity - one function that automatically detects if you're a judge or staker and assigns the right voting weight. The Judges vote is to complement a staker's vote.
Note: also provide an implementation to assign more voting weight to a celebrity artist who is a judge, get more voting weight than the regular judge.
Judges get their assigned weights, which is a way super much more bigger weight compared to the stakers, stakers get fixed 0.5 weight. Every vote requires an IPFS hash containing the voter's commentary (validated off-chain before reaching the contract). Real-time scoring updates immediately with each vote.
This makes the voting system transparent, anyone can see current standings at any time. No surprises, no manipulation. we are to achieve transparency with this voting system
📌 Requirements
🔍 Implementation Approach
Note: This is but an example;
considering the psudo code, it's just an example just provide an implementation which will work perfectly
🎯 Testing Requirements
🚀 Expected Outcome
Seamless voting experience with automatic role detection, real-time transparency, and comprehensive vote tracking.
Please reach out to me on telegram https://t.me/MusicStrk_CJ/1
WAGMI