-
Notifications
You must be signed in to change notification settings - Fork 111
Add event emission integrity tests for emergency actions #334
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:emergency-killswitchRemitWise contracts labelRemitWise contracts labelcontractsRemitWise contracts labelRemitWise contracts labeleventsRemitWise contracts labelRemitWise contracts labelpriority:mediumRemitWise contracts labelRemitWise contracts labelqualityRemitWise contracts labelRemitWise contracts labeltype:testRemitWise contracts labelRemitWise contracts label
Description
Description
Add tests ensuring emergency activation and deactivation actions emit complete and parseable event metadata.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Verify event topic/data consistency for contract event consumers
Suggested execution
- Fork the repo and create a branch
git checkout -b test/emergency-killswitch-event-integrity- Implement changes
- Write contract:
emergency_killswitch/src/lib.rs - Write comprehensive tests:
emergency_killswitch/tests/test_killswitch.rs - Add documentation:
README.md - Include NatSpec-style comments
- Validate security assumptions
Test and commit
- Run tests:
cargo test -p emergency_killswitch - Cover edge cases
- Include test output and security notes
Example commit message
test: add event integrity coverage for emergency actions
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:emergency-killswitchRemitWise contracts labelRemitWise contracts labelcontractsRemitWise contracts labelRemitWise contracts labeleventsRemitWise contracts labelRemitWise contracts labelpriority:mediumRemitWise contracts labelRemitWise contracts labelqualityRemitWise contracts labelRemitWise contracts labeltype:testRemitWise contracts labelRemitWise contracts label