Skip to content

Add payment batch scheduling, transaction rollback simulation, invoice forensics, and price oracle helpers - #956

Merged
Kingsman-99 merged 4 commits into
Stellar-split:mainfrom
kodaodife-dev:drips/926-927-928-929
Sep 28, 2026
Merged

Kingsman-99 merged 4 commits into
Stellar-split:mainfrom
kodaodife-dev:drips/926-927-928-929

Conversation

@kodaodife-dev

Copy link
Copy Markdown

Summary

Add payment batch scheduling, transaction rollback simulation, invoice forensics, and price oracle helpers

What was solved

#926 — Implement payment batch scheduling

Implement payment batch scheduling as a new core module in the Stellar SDK codebase, providing the ability to schedule groups of payment operations for future execution with proper event emission and comprehensive test coverage. The feature should follow existing module patterns (e.g., invoiceBatchProcessor, batchVerifier) and integrate with the existing event/telemetry conventions.

Addressed:

  • Changed: src/paymentBatchScheduler.ts
  • Implement core payment batch scheduling functionality (schedule, queue, and execute batches of payments)
  • Add proper event handling for scheduling lifecycle (scheduled, executed, cancelled, failed)
  • Write comprehensive tests covering scheduling, execution, and event emission

#927 — Add SDK transaction rollback simulation

Implement SDK transaction rollback simulation: add a core module that simulates rolling back a Stellar transaction (restoring account/ledger state, emitting rollback lifecycle events), wire it into the existing SDK surface with proper event handling, and add comprehensive tests. Scope is limited to the rollback simulation feature described in the issue; no unrelated refactors.

Addressed:

  • Changed: src/autoRecovery.ts, src/autoResolveSimulator.ts, src/broadcaster.ts
  • Implement core transaction rollback simulation functionality
  • Add proper event handling for rollback lifecycle (start/success/failure)
  • Write comprehensive tests covering rollback scenarios

#928 — Implement invoice forensics tools

Implement invoice forensics tools in the Stellar SDK repo. The issue is high-level and lacks concrete API details, so the contribution should add a focused, self-contained invoice forensics module (e.g., src/invoiceForensics.ts) that analyzes invoice records for tampering/anomalies, plus a matching test file under src/tests/invoiceForensics.test.ts. Scope should stay limited to the new module and its tests, following existing patterns in src/ (TypeScript, typed exports, no new deps).

Addressed:

  • Changed: src/invoiceForensics.ts
  • Implement core invoice forensics functionality (analysis of invoice fields for tampering, mismatches, and anomalies)
  • Add proper event handling (typed events/callbacks for forensic findings)
  • Write comprehensive tests covering the new functionality

#929 — Add SDK price oracle integration helpers

Add SDK price oracle integration helpers to the Stellar SDK codebase. The issue is high-level and asks for core functionality, event handling, and comprehensive tests for price oracle integration. Given the existing module structure (src/ with feature modules and src/tests/), the contribution should introduce a focused price oracle helper module plus its test file, following existing patterns like ammCalculator.ts and its test.

Addressed:

  • Changed: src/priceOracle.ts, src/priceOracle.ts, src/tests/priceOracle.test.ts, src/ammCalculator.ts
  • Implement core price oracle integration helper functionality (fetching/parsing oracle prices)
  • Add proper event handling for oracle price updates
  • Write comprehensive tests covering the new helpers

Changes

  • src/paymentBatchScheduler.ts (create)
  • src/autoRecovery.ts (modify)
  • src/autoResolveSimulator.ts (modify)
  • src/broadcaster.ts (modify)
  • src/invoiceForensics.ts (create)
  • src/priceOracle.ts (modify)
  • src/__tests__/priceOracle.test.ts (create)
  • src/ammCalculator.ts (modify)

Approach

  1. Implement payment batch scheduling #926 — Implement payment batch scheduling (Changed: src/paymentBatchScheduler.ts)
  2. Add SDK transaction rollback simulation #927 — Add SDK transaction rollback simulation (Changed: src/autoRecovery.ts, src/autoResolveSimulator.ts, src/broadcaster.ts)
  3. Implement invoice forensics tools #928 — Implement invoice forensics tools (Changed: src/invoiceForensics.ts)
  4. Add SDK price oracle integration helpers #929 — Add SDK price oracle integration helpers (Changed: src/priceOracle.ts, src/priceOracle.ts, src/tests/priceOracle.test.ts, src/ammCalculator.ts)

Issues

Closes #926
Closes #927
Closes #928
Closes #929

@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@kodaodife-dev 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

@Kingsman-99
Kingsman-99 merged commit 8723338 into Stellar-split:main Sep 28, 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