feat: add setDistributionContract SDK method, insurance pool health check, governance & dispute/appeal docs - #586
Merged
Conversation
…heck, governance delegation examples, and dispute/appeal SDK examples - Issue Invoice-Liquidity-Network#518: expose set_distribution_contract as setDistributionContract admin method in sdk/src/methods/admin.ts, export from index.ts, add tests - Issue Invoice-Liquidity-Network#454: add checkInsurancePool to scripts/check-contract-health.ts verifying Admin storage key presence; wired into runHealthChecks - Issue Invoice-Liquidity-Network#452: add delegateVotes/undelegateVotes examples and governance event listening to docs/sdk-integration.md - Issue Invoice-Liquidity-Network#453: add appealInvoice example and dispute/appeal event subscription examples to docs/sdk-integration.md
|
@DeborahOlaboye Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Issue #518 — Add SDK method for
setDistributionContractsetDistributionContract(server, contractAddress, distributionContract, sourceAccount, signTransaction, networkPassphrase)tosdk/src/methods/admin.tsvalidateContractIdbefore building the transactionsdk/src/index.tssdk/tests/setDistributionContract.test.tsIssue #454 — Add contract health check for insurance pool
checkInsurancePoolfunction toscripts/check-contract-health.tsgetLedgerEntriesfor theAdminstorage key to verify initializationinsurancePoolRpcUrlandinsurancePoolIdtoHealthConfigandloadConfig(env vars:INSURANCE_POOL_RPC_URL,INSURANCE_POOL_ID)runHealthChecksalongside existing checksIssue #452 — Add
docs/sdk-integration.mdexamples for governance methodsdelegateVotes/undelegateVotesexamples with full parameter walkthroughproposal_created,vote_cast,proposal_executed)Issue #453 — Add
docs/sdk-integration.mdexamples for dispute and appealappealInvoiceexample with error documentationinvoice_disputed,dispute_resolved,invoice_appealed,appeal_resolvedCloses #518
Closes #454
Closes #452
Closes #453