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
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:
Promise.allPayment[]withpayer,amount,tip,attestation_hash,donate_on_failure