Skip to content

Add sharded payment history loader #294

Description

@Kingsman-99

Labels: complexity: high

The contract stores payments in up to 8 shards per invoice (issue #177). Add getPaymentHistory(invoiceId) to the SDK that fetches all shards in parallel and returns a merged, chronologically sorted payment list.

Acceptance criteria:

  • Fetches all 8 shards concurrently via Promise.all
  • Merges and sorts by ledger sequence
  • Returns Payment[] with payer, amount, tip, attestation_hash, donate_on_failure
  • Returns empty array when no payments exist
  • Works with both persistent and instance storage layouts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions