Skip to content

feat: add NFT badges, i18n metadata, CID standards, and TTL archival …#97

Merged
elizabetheonoja-art merged 2 commits intoSubStream-Protocol:mainfrom
Alhaji-naira:feature/resolve-issues-44-46-50-53
Mar 30, 2026
Merged

feat: add NFT badges, i18n metadata, CID standards, and TTL archival …#97
elizabetheonoja-art merged 2 commits intoSubStream-Protocol:mainfrom
Alhaji-naira:feature/resolve-issues-44-46-50-53

Conversation

@Alhaji-naira
Copy link
Copy Markdown
Contributor

Description

This PR implements solutions for several open issues, enhancing protocol features, standardizing metadata, and optimizing storage:

  • #43 Create Profile_Badges (Stellar NFT Integration) #44 (Stellar NFT Integration): Added logic to automatically detect fans who have supported a creator for over 12 consecutive months and emit a FanNftAwarded event, which can be picked up off-chain to mint "Top 1% Fan" badges.
  • #46 Support for Multi-Language Metadata Fields #46 (Multi-Language Metadata): Introduced set_profile_cid and get_profile_cid functions to allow creators to link localized off-chain metadata (IPFS CIDs) for bios and tier descriptions.
  • #50 Community Issue: "Standardizing Creator CIDs" #50 (Standardizing Creator CIDs): Proposed a standard JSON schema in GOVERNANCE.md (Version 1.0) with robust i18n support to ensure creator profiles are consistently indexed across all Stellar SocialFi apps.
  • #17 Refactor Subscriber_Data for State Archival (TTL Bumping) #53 (State Archival & TTL Bumping): Implemented a strategic refactor utilizing a bump_instance_ttl helper. Active subscriptions and contract instances are dynamically bumped during deposits/withdrawals (subscribe, collect, top_up, cancel), while canceled/exhausted streams safely age out via temporary storage.

Testing

  • Added unit tests for test_set_and_get_profile_cid metadata operations.
  • Added unit tests for test_12_month_nft_badge_event_emission to guarantee gamification fidelity.
  • Compiled and verified all strict Sybil protection and balance depletion edge cases are still passing.

CLOSES #44

CLOSES #46

CLOSES #50

CLOSES #53

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@Alhaji-naira 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 88bc002 into SubStream-Protocol:main Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants