Skip to content

Add SDK getInsurancePoolInfo method #424

Description

@Levi-Ojukwu

Description:

The insurance pool contract exposes four view functions that the SDK does not wrap:

  • get_pool_balance(env)i128 — current pool balance
  • get_coverage(env)i128 — configured coverage cap
  • is_enrolled(env, lp)bool — LP enrollment status
  • get_premiums_paid(env, lp)i128 — total premiums paid by an LP

Why it matters: Frontend applications need to display insurance pool status and LP enrollment.

Acceptance Criteria:

  • Create methods for each view function
  • Add TypeScript types for insurance pool data
  • Add tests

Relevant Files: contracts/insurance_pool/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