Skip to content

Add custody withdrawal approval workflows, SDK data migration utilities, and advanced compression caching - #955

Merged
Kingsman-99 merged 5 commits into
Stellar-split:mainfrom
levi0005:drips/930-931-932-933
Sep 28, 2026
Merged

Kingsman-99 merged 5 commits into
Stellar-split:mainfrom
levi0005:drips/930-931-932-933

Conversation

@levi0005

Copy link
Copy Markdown

Summary

Add custody withdrawal approval workflows, SDK data migration utilities, and advanced compression caching

What was solved

#930 — Implement custody withdrawal approval workflows

Implement custody withdrawal approval workflows in the Stellar SDK codebase, adding core approval-workflow functionality, event handling, and tests. The repo already contains related modules (src/approvalWorkflowSequencer.ts, src/accessControl.ts, src/auditLogger.ts), so the implementation should extend existing patterns rather than introduce a parallel subsystem.

Addressed:

  • Changed: src/approvalWorkflowSequencer.ts, src/accessControl.ts, src/auditLogger.ts
  • Implement core custody withdrawal approval workflow functionality (multi-step approval state machine for withdrawals)
  • Add proper event handling for approval lifecycle events (submission, approval, rejection, execution)
  • Write comprehensive tests covering the new workflow

#931 — Add SDK data migration utilities

Add SDK data migration utilities to the Stellar SDK codebase. The issue is high-level and asks for core migration functionality, event handling, and comprehensive tests, with acceptance criteria around implementation, passing tests, TypeScript compilation, and ESLint. Given the existing structure (src/ modules with tests), the contribution should introduce a focused migration utility module plus its test file, following existing patterns.

Addressed:

  • Changed: src/accountDataManager.ts, src/adapters/types.ts
  • Implement core SDK data migration utility functionality
  • Add proper event handling for migration lifecycle (e.g., start/progress/complete/error events)
  • Write comprehensive tests covering the migration utilities

#932 — Implement advanced SDK caching with compression

Implement advanced SDK caching with compression by extending the existing cache layer (src/cache.ts and src/cache/OptimisticCache.ts) with a compression-aware caching mechanism, including event handling for cache lifecycle events and comprehensive tests. The issue is broad but the concrete deliverable is a compression-enabled cache implementation with tests, scoped to the existing cache modules rather than a repo-wide refactor.

Addressed:

  • Changed: src/cache.ts, src/cache/OptimisticCache.ts
  • Implement core advanced caching functionality with compression support
  • Add proper event handling for cache operations (hits, misses, evictions, compression events)
  • Write comprehensive tests covering compression caching behavior

#933 — Add webhook signature validation library

Implement a webhook signature validation library in the existing TypeScript SDK, providing core HMAC-based signature verification, event handling for incoming webhook payloads, and comprehensive tests. The repo already has webhook middleware and security docs, so this should integrate with existing patterns rather than duplicate them.

Addressed:

  • Changed: src/webhookSignatureValidator.ts, src/webhookMiddleware.ts, docs/WEBHOOK_SECURITY_FLOW.md, docs/WEBHOOK_SECURITY_FLOW.md
  • Implement core webhook signature validation functionality (e.g., HMAC signing/verification of payloads)
  • Add proper event handling for webhook events (dispatch/emit validated events)
  • Write comprehensive tests covering valid, invalid, and tampered signatures

Changes

  • src/approvalWorkflowSequencer.ts (modify)
  • src/accessControl.ts (modify)
  • src/auditLogger.ts (modify)
  • src/accountDataManager.ts (modify)
  • src/adapters/types.ts (modify)
  • src/cache.ts (modify)
  • src/cache/OptimisticCache.ts (modify)
  • src/webhookSignatureValidator.ts (create)
  • src/webhookMiddleware.ts (modify)
  • docs/WEBHOOK_SECURITY_FLOW.md (modify)

Approach

  1. Implement custody withdrawal approval workflows #930 — Implement custody withdrawal approval workflows (Changed: src/approvalWorkflowSequencer.ts, src/accessControl.ts, src/auditLogger.ts)
  2. Add SDK data migration utilities #931 — Add SDK data migration utilities (Changed: src/accountDataManager.ts, src/adapters/types.ts)
  3. Implement advanced SDK caching with compression #932 — Implement advanced SDK caching with compression (Changed: src/cache.ts, src/cache/OptimisticCache.ts)
  4. Add webhook signature validation library #933 — Add webhook signature validation library (Changed: src/webhookSignatureValidator.ts, src/webhookMiddleware.ts, docs/WEBHOOK_SECURITY_FLOW.md, docs/WEBHOOK_SECURITY_FLOW.md)

Issues

Closes #930
Closes #931
Closes #932
Closes #933

@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@levi0005 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 88a390f 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