Skip to content

Add SDK reputation bonus getConfig and getReputation methods #426

Description

@Levi-Ojukwu

Description:

The reputation_bonus contract has two view functions not exposed by the SDK:

  • get_config(env)Config — returns high_rep_threshold, bonus_bps, min_discount_rate_bps
  • get_reputation(env, address)ReputationScore — returns invoices_submitted, invoices_paid, invoices_defaulted, score

Why it matters: Frontend applications need to display reputation configuration and participant scores.

Acceptance Criteria:

  • Create getReputationBonusConfig() returning Config
  • Create getReputationBonusReputation(address) returning ReputationScore
  • Add TypeScript types
  • Add tests

Relevant Files: contracts/reputation_bonus/src/lib.rs, sdk/src/index.ts


Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions