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
Develop the raffle realm to facilitate a transparent and verifiable raffle mechanism. The aim is to operate primarily on-chain, but we should consider off-chain solutions as a backup.
Requirements
1. gno.land/r/demo/chess Realm Enhancements:
On-chain Metrics Fetching:
Add a call to fetch a list of players, the number of finished games, the number of won games, and the count of moves.
Design for read-optimized calls. While write operations can bear slightly higher costs, the emphasis should be on efficient read operations.
To prevent overwhelming the system, either optimize for a large number of accounts or implement a pagination mechanism. Given that this is a primary realm, all enhancements should be finalized before the competition begins.
2. New Realm: demo/manual-rewards:
Manual Points Entry:
Allow whitelisted staff wallets to add entries. Each entry should record the address, associated points, and the reason for the reward.
This mechanism will be used to manually reward points during workshops or to acknowledge other notable contributions.
3. Development of demo/raffle Realm:
Import Data:
Fetch data from both demo/chess and demo/manual-rewards.
First call: Snapshot metrics:
An exclusive call for admins to compute scores based on live data from the other realms. Results should be saved persistently in a global variable.
Second call: Raffle computing:
Use a blend of hard-to-predict metrics (like height, timestamp, moves count, player data, etc.) to derive a seed for the raffle.
Ensure this method upholds fairness and randomness.
Result Rendering:
Develop a render function that displays:
The computed numbers (from the first call).
The winners of the raffle (from the second call).
Conclusion
While our primary focus is a fully on-chain solution, we should be adaptable and ready to pivot if needed. Timely completion, especially for primary realms, is essential to ensure a smooth competition experience for participants.
The text was updated successfully, but these errors were encountered:
Objective
Develop the
raffle
realm to facilitate a transparent and verifiable raffle mechanism. The aim is to operate primarily on-chain, but we should consider off-chain solutions as a backup.Requirements
1.
gno.land/r/demo/chess
Realm Enhancements:2. New Realm:
demo/manual-rewards
:3. Development of
demo/raffle
Realm:demo/chess
anddemo/manual-rewards
.Conclusion
While our primary focus is a fully on-chain solution, we should be adaptable and ready to pivot if needed. Timely completion, especially for primary realms, is essential to ensure a smooth competition experience for participants.
The text was updated successfully, but these errors were encountered: