Skip to content

Feature/dispute resolution tests#177

Closed
Haroldwonder wants to merge 3 commits intoNetwalls:mainfrom
Haroldwonder:feature/dispute-resolution-tests
Closed

Feature/dispute resolution tests#177
Haroldwonder wants to merge 3 commits intoNetwalls:mainfrom
Haroldwonder:feature/dispute-resolution-tests

Conversation

@Haroldwonder
Copy link
Contributor

@Haroldwonder Haroldwonder commented Feb 22, 2026

No description provided.

…warnings

- Document all acceptance criteria for reveal_prediction tests
- Fix unused variable warning (commit_hash2)
- Fix unused import warning (Ledger)
- All 13 reveal tests passing successfully
- Tests cover: valid reveal, invalid salt, double-reveal, after closing time
- Add REVEAL_PREDICTION_TESTS.md with detailed test documentation
- Implemented uphold_dispute() and dismiss_dispute() functions
- Added DisputeResolvedEvent for tracking resolution outcomes
- Updated claim_winnings() to block claims during disputes
- Added comprehensive test coverage:
  * test_uphold_dispute_happy_path - Tests dispute upheld with stake return
  * test_dismiss_dispute_happy_path - Tests dispute dismissed with stake slashing
  * test_uphold_dispute_not_disputed - Tests error when no dispute exists
  * test_dismiss_dispute_not_disputed - Tests error when no dispute exists
  * test_claim_winnings_blocked_during_dispute - Tests payout freeze during dispute
  * test_claim_winnings_after_dispute_dismissed - Tests claims work after dismissal
  * test_claim_winnings_after_dispute_upheld_corrected_outcome - Tests outcome correction

All acceptance criteria met:
 Test dispute submission with stake
 Test dispute resolution (uphold/dismiss)
 Test payout freeze during dispute
@GoSTEAN GoSTEAN closed this Feb 25, 2026
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.

2 participants