Skip to content

Add computed score integer to rep_updated event data #612

Description

@Kingsman-99

Description

rep_updated in contracts/split/src/events.rs emits the full RepScore struct, but there is no computed score integer field — the struct contains raw counts (paid_on_time, late_pays, etc.). Adding a derived score: u32 to the event data would save indexers from re-computing the score formula off-chain.

Acceptance Criteria

  • Add a score: u32 parameter to rep_updated in contracts/split/src/events.rs
  • Include it in the event data: (score_struct, computed_score)
  • Update all call sites in lib.rs
  • Update existing tests for rep_updated
  • cargo test passes

Context

  • Target file: contracts/split/src/events.rs
  • The computed score formula should be documented inline

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highComplex feature requiring deep knowledge - 200 ptsenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions