Skip to content

Feature/subscriber analytics events - #75

Merged
elizabetheonoja-art merged 2 commits into
SubStream-Protocol:mainfrom
AlAfiz:feature/subscriber-analytics-events
Mar 25, 2026
Merged

Feature/subscriber analytics events#75
elizabetheonoja-art merged 2 commits into
SubStream-Protocol:mainfrom
AlAfiz:feature/subscriber-analytics-events

Conversation

@AlAfiz

@AlAfiz AlAfiz commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Description: This PR resolves Issue #5 by introducing standard analytics events to the Soroban smart contract, allowing external indexers and the frontend to track subscription lifecycle changes.

Changes Included:

Defined Subscribed and Unsubscribed structs using the #[contractevent] macro.
Integrated Subscribed and Unsubscribed emissions into the start and cancel lifecycle methods.
Updated all existing events (TierChanged, TipReceived) to use the new Soroban v25 .publish(&env) syntax.
Cleaned up dead code and compiler warnings for a perfectly clean Wasm build.
Acceptance Criteria Met:

[x] Emit Subscribed(user, creator, tier)
[x] Emit Unsubscribed(user, creator)
[x] Emit TierChanged(user, old_tier, new_tier)
Resolves: #5

@drips-wave

drips-wave Bot commented Mar 25, 2026

Copy link
Copy Markdown

@AlAfiz 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 11ee617 into SubStream-Protocol:main Mar 25, 2026
1 check failed
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.

#5 Issue: [Events] Subscriber Analytics Events

2 participants