Skip to content

Lakes1 - #167

Merged
elizabetheonoja-art merged 5 commits into
SubStream-Protocol:mainfrom
Lakes41:lakes1
Apr 24, 2026
Merged

Lakes1#167
elizabetheonoja-art merged 5 commits into
SubStream-Protocol:mainfrom
Lakes41:lakes1

Conversation

@Lakes41

@Lakes41 Lakes41 commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

closes #47

Lakes41 added 3 commits April 24, 2026 06:17
- Add FanContribution struct to store fan address and total contributed amount
- Implement update_top_fans function to maintain sorted list of top 50 fans per creator
- Add get_top_fans function to retrieve the leaderboard
- Include comprehensive test verifying ranking, limits, and updates
- Extend storage TTL for top fans data to ensure persistence
- Add new DataKey::TopFans and TopFan struct to store leaderboard data
- Implement update_top_fans function to maintain sorted top 50 fans by contribution
- Expose get_top_fans public function to query the leaderboard
- Integrate leaderboard updates into existing fan contribution logic
- Add required dependencies (ed25519-dalek, stellar-strkey) for address handling
@drips-wave

drips-wave Bot commented Apr 24, 2026

Copy link
Copy Markdown

@Lakes41 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@elizabetheonoja-art
elizabetheonoja-art merged commit 52fc6e3 into SubStream-Protocol:main Apr 24, 2026
0 of 3 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.

#47 Add Leaderboard_Export for Top Fans

2 participants