Label: complexity: high
Points: 200
Description
Beyond the on-chain per-payer reputation counter (contract issue #24), the SDK should expose a creator-side reputation score combining completion rate, average funding time, and dispute rate, for display in trust indicators.
Technical Context
New src/creatorReputation.ts. Aggregates across Invoice[] for a given creator: completed vs. total, average time-to-fund (reuse Issue 17's SLA tracker), and dispute count (if src/compliance.ts exposes dispute data).
Acceptance Criteria
Label: complexity: high
Points: 200
Description
Beyond the on-chain per-payer reputation counter (contract issue #24), the SDK should expose a creator-side reputation score combining completion rate, average funding time, and dispute rate, for display in trust indicators.
Technical Context
New
src/creatorReputation.ts. Aggregates acrossInvoice[]for a given creator: completed vs. total, average time-to-fund (reuse Issue 17's SLA tracker), and dispute count (ifsrc/compliance.tsexposes dispute data).Acceptance Criteria
computeCreatorReputation(creator, invoices)returns a 0-100 score plus the component breakdown