Skip to content

test: implement governance feature tests for issues #221, #223, #222, #224 - #329

Open
okontemple96-dotcom wants to merge 4 commits into
stellar-vortex-protocol:mainfrom
okontemple96-dotcom:feat/implement-governance-features
Open

test: implement governance feature tests for issues #221, #223, #222, #224#329
okontemple96-dotcom wants to merge 4 commits into
stellar-vortex-protocol:mainfrom
okontemple96-dotcom:feat/implement-governance-features

Conversation

@okontemple96-dotcom

Copy link
Copy Markdown

Summary

Implement comprehensive test suites for the governance features across four interconnected issues:

Test Coverage

Issue #221: Pause Guardian Tests (5 tests)

  • Storage and retrieval of guardian address
  • Guardian pause capability
  • Admin-only guardian setting
  • Guardian cannot unpause restriction
  • Guardian replacement scenarios

Issue #223: Admin Audit Trail Tests (6 tests)

  • Admin transfer events
  • Fee recipient proposal and acceptance events
  • Contract pause events
  • Destination token allowlist events
  • Bond multiplier configuration events

Issue #222: Treasury Disbursement Tests (4 tests)

  • Pending disbursement storage
  • Timelock enforcement before execution
  • Execution allowed after timelock elapses
  • Multi-token disbursement tracking

Issue #224: Slashing Appeal Tests (8 tests)

  • Appeal record creation from slash events
  • Appeal window configuration
  • Window expiry enforcement
  • Double appeal rejection
  • Bond restoration from upheld appeals
  • No restoration on dismissed appeals
  • Reputation score restoration
  • Solver active status restoration

Test Plan

  • All tests follow existing patterns in the test suite
  • Tests use the established Ctx fixture for setup
  • Event verification tests validate event emission
  • Timelock tests verify enforce delays and state transitions
  • Appeal tests cover both upheld and dismissed outcomes

Closes #224
Closes #223
Closes #222
Closes #221

…ests

Implement tests for Issue stellar-vortex-protocol#221 (Pause Guardian feature).
Tests cover storing guardian address, pause capability, access control, and multiple guardian scenarios.
…cation tests

Implement tests for Issue stellar-vortex-protocol#223 (Admin Action Audit Trail).
Tests verify that all admin actions emit expected audit events for governance transparency.
…ding policy tests

Implement tests for Issue stellar-vortex-protocol#222 (Protocol Fee Treasury).
Tests cover pending disbursement storage, timelock enforcement, and multi-token tracking.
…cess tests

Implement tests for Issue stellar-vortex-protocol#224 (Slashing Appeal Governance).
Tests cover appeal windows, appeal recording, upheld/dismissed appeals, and reputation restoration.
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@okontemple96-dotcom 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! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant