Skip to content

Add governance SDK view methods #427

Description

@Levi-Ojukwu

Description:

The governance contract exposes several view functions that the SDK does not wrap:

  • get_delegate(env, addr)Option<Address> — direct delegate for an address
  • get_min_quorum_bps(env)u32 — minimum quorum in basis points
  • get_min_proposal_balance(env)i128 — minimum token balance to submit proposals
  • get_execution_delay(env)u32 — execution delay in ledgers
  • is_veto_power_enabled(env)bool — whether admin veto is active

Why it matters: Frontend governance dashboards need to display these configuration values.

Acceptance Criteria:

  • Create SDK methods for each view function
  • Add types and tests for each

Relevant Files: contracts/iln_governance/src/lib.rs, sdk/src/methods/governance.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