Skip to content

Implement account activity reporting and compliance analysis utilities #503

Description

@Just-Bamford

Description

Problem

Account activity can be retrieved, but there is no structured reporting layer for categorizing transactions or preparing account-level compliance data. Consumers must independently transform raw activity into audit-friendly records.

Solution

Introduce a reporting pipeline that normalizes account activity, categorizes transaction behavior, and produces framework-specific report structures. The design should allow additional compliance rules to be introduced without changing the underlying activity retrieval APIs.

Acceptance Criteria

  • generateComplianceReport(account, framework) is introduced
  • Activity is normalized into a consistent reporting structure
  • Transaction categories include transfers, payments, swaps, and contract interactions
  • Framework-specific rule sets can be selected without duplicating retrieval logic
  • Reports include configurable date ranges and account metadata
  • Unsupported or incomplete activity is reported explicitly
  • Tests cover categorization, date filtering, framework selection, and incomplete data
  • Reporting APIs are exported through src/account/index.ts and src/index.ts

Note for Contributors

Treat this as a reporting abstraction rather than a legal compliance engine. Keep framework rules configurable and avoid embedding assumptions about jurisdiction-specific regulatory requirements.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend / SDK logicenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions