feat(contracts-stellar): implement error mapping, event integrity, be…#247
Merged
PeterOche merged 4 commits intoApr 28, 2026
Conversation
…nchmarking & cross-chain oracle
|
@Cedarich 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! 🚀 |
PeterOche
approved these changes
Apr 28, 2026
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.
Implement Error Mapping, Event Integrity, Benchmarking & Cross-Chain Oracle
Overview
This PR implements 4 critical issues for the
contracts-stellarpackage, enhancing error handling, event reliability, performance monitoring, and cross-chain interoperability.Changes
🔧 Issue #235: Domain-Specific Error Mapping
Problem: Generic
panic!calls made error handling difficult for frontend SDKs.Solution:
ContractErrorenum with 38 distinct, categorized error codespanic!calls incall_registryandoutcome_managerFiles Modified:
governance/src/errors.rs- Complete rewrite with 38 error codescall_registry/src/lib.rs- 16 error mappingsoutcome_manager/src/lib.rs- 13 error mappingsgovernance/src/timelock.rs- Fixed error reference📊 Issue #233: Event Redundancy & Data Integrity
Problem: Events only emitted deltas, requiring additional queries to verify state.
Solution:
Events Enhanced:
StakeAdded- Now includes: pool state, vault balance, participant countPayoutWithdrawn- Now includes: vault balanceEarlyExit- Now includes: pool state, vault balanceCallFinalized- Now includes: vault balance, settlement stateDividendsDistributed- Now includes: new fees balance (0)⚡ Issue #232: Gas/Resource Benchmarking Suite
Problem: No systematic way to measure Soroban resource consumption.
Solution:
stake_on_callUsage: