Skip to content

Implement batch subscription operations for bulk management #191

@Smartdevs17

Description

@Smartdevs17

Implement batch subscription operations for bulk management

Description

Context: Merchants managing many subscriptions need bulk operations for efficiency.

Current Limitation: Operations are single-subscription only.

Expected Outcome: Implement batch operations for creating, updating, and charging multiple subscriptions at once.

Acceptance Criteria

  • Implement BatchOperation: operation_type, subscription_ids[], params
  • Add batch creation from CSV template
  • Implement batch charging with transaction aggregation
  • Add batch status tracking with progress reporting
  • Support partial batch success handling
  • Implement rollback on batch failure
  • Add batch operation history and audit
  • Create React Native batch operations UI
  • Write tests for batch operations

Technical Scope

Files Likely Affected:

  • contracts/batch/src/lib.rs - New batch module
  • app/stores/batchStore.ts - Batch state
  • app/screens/BatchOperationsScreen.tsx

APIs/Contracts Involved:

  • create_batch_operation(op: BatchOperation) -> BatchId
  • execute_batch(batch_id: BatchId) -> BatchResult
  • get_batch_status(batch_id: BatchId) -> BatchStatus

Edge Cases to Consider:

  • Large batch timeouts
  • Partial success scenarios

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestfeatureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions