Skip to content

Update bitstake.clar#2

Open
syed-ghufran-hassan wants to merge 1 commit intoola-usman:mainfrom
syed-ghufran-hassan:patch-1
Open

Update bitstake.clar#2
syed-ghufran-hassan wants to merge 1 commit intoola-usman:mainfrom
syed-ghufran-hassan:patch-1

Conversation

@syed-ghufran-hassan
Copy link
Copy Markdown

feat: Add comprehensive event system to BitStake Protocol

  • Add 11 event constants for all protocol actions
  • Implement event emission in initialize-contract function
  • Add stake-created event with user details and tier info
  • Add tier-upgraded event when users reach higher tiers
  • Add unstake-initiated and unstake-completed events
  • Add rewards-claimed event with reward calculations
  • Add proposal-created and vote-cast events for governance
  • Add contract-paused and contract-resumed events for admin actions
  • Fix print statement syntax to use proper tuple format
  • Fix claim-rewards function to properly handle ft-mint? response

feat: Add comprehensive event system to BitStake Protocol

- Add 11 event constants for all protocol actions
- Implement event emission in initialize-contract function
- Add stake-created event with user details and tier info
- Add tier-upgraded event when users reach higher tiers
- Add unstake-initiated and unstake-completed events
- Add rewards-claimed event with reward calculations
- Add proposal-created and vote-cast events for governance
- Add contract-paused and contract-resumed events for admin actions
- Fix print statement syntax to use proper tuple format
- Fix claim-rewards function to properly handle ft-mint? response
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