Skip to content

feat: add public draw verification and private prize claims - #7

Merged
Dominion116 merged 1 commit into
mainfrom
feat/verification-and-private-prizes
Aug 24, 2026
Merged

feat: add public draw verification and private prize claims#7
Dominion116 merged 1 commit into
mainfrom
feat/verification-and-private-prizes

Conversation

@Dominion116

Copy link
Copy Markdown
Owner

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.

## 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.
@Dominion116
Dominion116 merged commit b121d3f into main Aug 24, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant