Skip to content

Feat/1190 subscription lifecycle events - #1212

Merged
Calebux merged 3 commits into
Calebux:mainfrom
Jerryvic911:feat/1190-subscription-lifecycle-events
Jul 30, 2026
Merged

Feat/1190 subscription lifecycle events#1212
Calebux merged 3 commits into
Calebux:mainfrom
Jerryvic911:feat/1190-subscription-lifecycle-events

Conversation

@Jerryvic911

Copy link
Copy Markdown
Contributor

Description

Briefly describe what this PR does.


Related Issue

Closes #1190


Test Plan

  • Tested locally
  • Verified expected behavior
  • No regressions introduced

Screenshots (if applicable)


Checklist

  • Code builds successfully
  • Tests pass
  • Follows project conventions
  • No sensitive data exposed

Jerryvic911 added 3 commits July 29, 2026 13:08
- Route renewal payment to contract's own address as escrow custody
- Track escrowed balance per subscription (PersistentKey::EscrowBalance)
- Add claim_escrow() for merchants to withdraw locked funds
- Configurable via set_token_contract/get_token_contract (admin)

Closes Calebux#1188
- New setup-mock-token.sh: issues a mock Stellar asset, deploys its SAC,
  funds test-user identities, and wires it into SubscriptionRenewal via
  set_token_contract
- deploy.sh: opt-in via SETUP_MOCK_TOKEN=true, off by default (never runs
  against mainnet automatically)
- DEPLOYMENT.md: document the new script and its env vars

Closes Calebux#1199
- Add SubscriptionCreated/Renewed/Canceled events to SubscriptionRenewal
- Emit them in init_sub, renew (success path), and cancel_sub
- Follows the (family, action) topic convention; add subscription to
  the canonical families list in docs/contract-event-schema.md

Closes Calebux#1190
@Jerryvic911
Jerryvic911 requested a review from Calebux as a code owner July 29, 2026 21:35
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Jerryvic911 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

@Calebux
Calebux merged commit f945f70 into Calebux:main Jul 30, 2026
15 of 28 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.

[Contract] Develop Soroban Events for subscription lifecycle

2 participants