Skip to content

feat(sdk): add governance SDK view methods - #435

Merged
Levi-Ojukwu merged 2 commits into
Invoice-Liquidity-Network:mainfrom
Junman140:main
Jul 30, 2026
Merged

feat(sdk): add governance SDK view methods#435
Levi-Ojukwu merged 2 commits into
Invoice-Liquidity-Network:mainfrom
Junman140:main

Conversation

@Junman140

Copy link
Copy Markdown
Contributor

Closes #427

Description

Adds SDK wrapper methods for the governance contract view functions that the SDK was missing:

  • \getDelegate(server, contractAddress, addr, sourceAccount, networkPassphrase)\ → \string | null\ — direct delegate for an address
  • \getMinQuorumBps(server, contractAddress, sourceAccount, networkPassphrase)\ →
    umber\ — minimum quorum in basis points
  • \getMinProposalBalance(server, contractAddress, sourceAccount, networkPassphrase)\ → \�igint\ — minimum token balance to submit proposals
  • \getExecutionDelay(server, contractAddress, sourceAccount, networkPassphrase)\ →
    umber\ — execution delay in ledgers
  • \isVetoPowerEnabled(server, contractAddress, sourceAccount, networkPassphrase)\ → \�oolean\ — whether admin veto is active

Changes

  • \sdk/src/methods/governance.ts: Added 5 new view methods and a shared \simulateView\ helper
  • \sdk/src/methods/governance.test.ts: Added 7 test cases for new methods
  • \sdk/src/index.ts: Exported the new methods

@Levi-Ojukwu

Copy link
Copy Markdown
Contributor

@Junman140 please resolve the conflict

@Levi-Ojukwu
Levi-Ojukwu merged commit b147731 into Invoice-Liquidity-Network:main Jul 30, 2026
@grantfox-oss grantfox-oss Bot mentioned this pull request Jul 30, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add governance SDK view methods

2 participants