feat: Add comprehensive event system to Jackpot Wall contract#2
Open
syed-ghufran-hassan wants to merge 1 commit intocryptoflops:mainfrom
Open
feat: Add comprehensive event system to Jackpot Wall contract#2syed-ghufran-hassan wants to merge 1 commit intocryptoflops:mainfrom
syed-ghufran-hassan wants to merge 1 commit intocryptoflops:mainfrom
Conversation
- Add post-created event for every new post with metadata - Add jackpot-won event with jackpot ID, amount, and pot details - Add pot-updated event for tracking pot balance changes - Add emergency-withdrawal event for admin actions - Add new-post event for non-jackpot posts feat: Add protocol statistics and tracking - Add total-stx-collected counter - Add total-stx-paid counter - Add last-jackpot-height and last-jackpot-amount tracking - Add jackpot-count for total jackpots awarded - Add get-protocol-stats read-only function feat: Add user statistics tracking - Add user-stats-map for tracking user activity - Track posts made, jackpots won, total earned, total spent - Add get-user-stats read-only function feat: Add jackpot history tracking - Add jackpot-history map for complete jackpot records - Track post ID, winner, amount, block height, total posts at time - Add get-jackpot-history read-only function feat: Enhance post data structure - Add timestamp to posts - Add is-jackpot flag - Add jackpot-amount field for winning posts fix: Resolve naming conflict in user-stats map - Rename user-stats map to user-stats-map to avoid conflict with let binding variable - Update all references to user-stats-map accordingly - Fix variable naming in let bindings for clarity
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.
feat: Add protocol statistics and tracking
feat: Add user statistics tracking
feat: Add jackpot history tracking
feat: Enhance post data structure
fix: Resolve naming conflict in user-stats map