Repository navigation
feat: Stellar Wave enhancements - cliff events, trustline reserves, and batch operations - #1213
Merged
Jaydbrown merged 4 commits intoNov 26, 2026
Conversation
…ering Implements conduit-protocol#1134 - Add helper to filter stream cliff reached events by stream ID. Applications listening to streaming payments can now trigger webhooks or notifications when a stream passes its cliff date, enabling real-time alerting for milestone-based compensation contracts. Changes: - Add filterCliffReachedEvents function in src/events.ts - Export function from src/index.ts - Function filters events to return only cliff reached events - Accepts both bigint and string stream IDs Closes conduit-protocol#1134
…alculation Implements conduit-protocol#1133 - Add helper to compute minimum required balance for token trustline setup. Creating accounts or adding trustlines for newly streamed assets requires maintaining Stellar base reserve requirements. This helper warns users if their available XLM balance is insufficient to satisfy ledger entry reserves. Changes: - Add getTrustlineReserveRequirement function in src/token.ts - Export function from src/index.ts - Calculates reserve needed based on account subentries and sponsorship - Returns the additional XLM needed in stroops Closes conduit-protocol#1133
Implements conduit-protocol#1125 and conduit-protocol#1124 - Add helpers for fetching stream status directly and batch canceling multiple streams. conduit-protocol#1125: High-throughput dashboards displaying thousands of streams only need to know if each stream is Active, Paused, or Completed. This adds a getStreamStatus method that returns just the status enum. conduit-protocol#1124: Managing multiple employee or grant streams requires canceling multiple streams sequentially, which is tedious and slow. This adds cancelStreamsBatch to allow senders to prepare and sign cancellations in a structured flow. Changes: - Add StreamsModule.getStreamStatus method in src/streams.ts - Add StreamsModule.cancelStreamsBatch method in src/streams.ts - Both methods support AbortSignal for cancellation - Batch cancel uses bounded concurrency for rate limiting Closes conduit-protocol#1125 Closes conduit-protocol#1124
|
@blackbutterflyy 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! 🚀 |
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
This PR implements four Stellar Wave program enhancements to improve SDK functionality for high-throughput dashboards and batch operations.
Issues Closed
Closes #1134
Closes #1133
Closes #1125
Closes #1124
Changes
Issue #1134: Filter cliff reached events by stream ID
filterCliffReachedEvents()helper insrc/events.tsIssue #1133: Trustline reserve requirement helper
getTrustlineReserveRequirement()insrc/token.tsIssue #1125: Lightweight stream status fetching
StreamsModule.getStreamStatus()method insrc/streams.tsIssue #1124: Batch stream cancellation
StreamsModule.cancelStreamsBatch()method insrc/streams.tsTesting
All functions include JSDoc examples and follow existing SDK patterns. Functions are:
src/index.tsBreaking Changes
None - all additions are backwards compatible.