-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description
Implement emergency pause mechanism to temporarily halt all token operations during security incidents or maintenance periods.
Files to Modify
contracts/manage_hub/src/lib.rs- Add pause/unpause endpointscontracts/manage_hub/src/state.rs- Add pause state managementcontracts/manage_hub/src/membership_token.rs- Add pause checkscontracts/manage_hub/src/guards.rs- Add pause guard middleware
Key Changes Required
- Pause State - Add global and per-token pause states
- Pause Guards - Implement guards to block operations when paused
- Admin Controls - Add admin-only pause/unpause functions
- Event Logging - Emit events for pause state changes
- Granular Control - Support pausing specific operations
- Time-based Unpause - Add automatic unpause after specified duration
Acceptance Criteria
- Implement pause and unpause functions with admin authorization
- Add pause state to contract storage
- Block token transfers when paused
- Block minting operations when paused
- Emit PauseStateChanged events
- Add query function to check pause status
- Support per-token pause functionality
- Implement emergency pause with time lock
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program