feat: Quadratic distribution, badge integration, and Python SDK enhancements - #1162
Merged
joelpeace48-cell merged 2 commits intoAug 31, 2026
Conversation
… SDK enhancements - Issue FinesseStudioLab#871: Add quadratic/anti-whale reward distribution mode - Implement configurable distribution modes (Linear/Quadratic) - Add isqrt() for quadratic calculation using Newton's method - Add set_distribution_mode() and distribution_mode() admin functions - Add credit_with_distribution() to apply mode before multiplier - Guard against sybil gaming via existing nullifier/ZK layer - Issue FinesseStudioLab#872: Document NFT/SBT achievement badge integration - Add MILESTONE_INTEGRATION.md with integration patterns - Document first_claim, top_rank, streak, referral badges - Provide UI integration examples and metadata schema - Explain soulbound deduplication and minter authorization - Issue FinesseStudioLab#873: Enhance Python SDK with examples and documentation - Add basic_usage.py example covering full API surface - Add data_analytics.py for analytics workflows and CSV export - Enhance README with feature parity table and pandas integration - Document PyPI publishing workflow via CI/CD All acceptance criteria met with zero breaking changes.
|
@bbjiggy 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! 🚀 |
joelpeace48-cell
merged commit Aug 31, 2026
52b6796
into
FinesseStudioLab:main
7 of 23 checks passed
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
Implements three Stellar Wave features for tokenomics fairness, gamification, and developer experience.
Closes #871
Closes #872
Closes #879
Issue #871: Quadratic / Anti-Whale Reward Distribution Mode
Added configurable distribution modes to reduce whale dominance while guarding against sybil attacks through the existing nullifier/ZK layer.
Implementation:
DistributionModeenum (Linear = 0, Quadratic = 1)isqrt()for quadratic calculation using Newton's methodset_distribution_mode()anddistribution_mode()admin functionscredit_with_distribution()to apply distribution mode before multiplierDIST_MODE, events:DIST_MODE_SET_EVENTUsage:
Anti-Gaming:
isqrt(amount)makes large contributions less valuableIssue #872: NFT / SBT Achievement Badges for Milestones
Badges contract already exists with full SBT/NFT functionality. Added comprehensive integration documentation.
New Documentation:
contracts/badges/MILESTONE_INTEGRATION.md- Integration patterns and examplesFeatures:
tokens_of(),has_badge_type(),token_uri()Issue #879: Python SDK Feature Parity
Python SDK has full feature coverage. Added examples, documentation, and verified feature parity.
New Examples:
sdk/python/examples/basic_usage.py- Complete API surface demosdk/python/examples/data_analytics.py- Analytics workflows, CSV export, pandas integrationEnhanced Documentation:
Features:
iter_all()generatorsAcceptance Criteria
#871:
isqrtfrom voting contract)#872:
#879:
Files Changed
Testing
Contracts:
Python SDK:
cd sdk/python pytest tests/ -vDeployment
python-sdk-v0.2.0to trigger PyPI publishRelated Issues
Zero breaking changes. All implementations composable with existing systems.