feat: add public draw verification and private prize claims - #7
Merged
Conversation
## Summary Adds public round verification and a private prize-claim workflow for Sortis, including encrypted claim handling in the pool contract and refreshed Sepolia deployment metadata. ## Changes - Added `SortisPool.claim` for encrypted partial or full prize claims. - Clamps encrypted claim requests to the caller’s available claimable balance. - Keeps claim amounts confidential during balance updates and token transfers. - Added the `/app/prizes` route for privately revealing and claiming prizes. - Added distinct UI states for winnings, no prizes, rollovers, and unavailable claims. - Reused the existing encrypted session authorization and FHEVM user-decryption flow. - Added the `/verify/[roundId]` route for wallet-free public draw verification. - Reads draw event history to display ticket counts, published totals, random values, prizes, and settlement status. - Added verification helpers with bounded public RPC history. - Published the updated pool ABI for frontend contract calls. - Added the Prizes entry to application navigation. - Updated Sepolia contract addresses and deployment metadata. - Updated documentation and contract configuration to reflect the new functionality. ## Validation - Contract compilation completed successfully. - Web type generation, typecheck, ESLint, and diff checks pass. - Existing uncommitted changes were preserved on the new branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds public round verification and a private prize-claim workflow for Sortis, including encrypted claim handling in the pool contract and refreshed Sepolia deployment metadata.
Changes
SortisPool.claimfor encrypted partial or full prize claims./app/prizesroute for privately revealing and claiming prizes./verify/[roundId]route for wallet-free public draw verification.Validation