Skip to content

SC-11: Implement Pausable extension for emergency halts across all co… - #922

Merged
chinweobtagaz merged 1 commit into
OpenKnight-Foundation:mainfrom
nede110:sc-11-pausable-extension
Jul 30, 2026
Merged

SC-11: Implement Pausable extension for emergency halts across all co…#922
chinweobtagaz merged 1 commit into
OpenKnight-Foundation:mainfrom
nede110:sc-11-pausable-extension

Conversation

@nede110

@nede110 nede110 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

…re contracts

  • game_contract: Add PAUSED storage key, ContractPaused error (39), pause()/unpause()/is_paused() restricted to CONTRACT_ADMIN, and check_not_paused() guard on all 25 state-mutating functions.

  • ai_nft: Add PAUSED storage key, ContractPaused error (7), pause()/unpause()/is_paused() restricted to ADMIN, and check_not_paused() guard on mint() and transfer().

  • game_registry: Add DataKey::Paused, ContractPaused error (10), symbol_short import, pause()/unpause()/is_paused() restricted to DataKey::Admin, and check_not_paused() guard on record_game(), set_server(), set_admin(), create_tournament(), register_tournament().

  • emergency_circuit_breaker: already had full Pausable implementation, no changes required.

All 65 existing tests pass.

Closes #889

…re contracts

- game_contract: Add PAUSED storage key, ContractPaused error (39),
  pause()/unpause()/is_paused() restricted to CONTRACT_ADMIN, and
  check_not_paused() guard on all 25 state-mutating functions.

- ai_nft: Add PAUSED storage key, ContractPaused error (7),
  pause()/unpause()/is_paused() restricted to ADMIN, and
  check_not_paused() guard on mint() and transfer().

- game_registry: Add DataKey::Paused, ContractPaused error (10),
  symbol_short import, pause()/unpause()/is_paused() restricted to
  DataKey::Admin, and check_not_paused() guard on record_game(),
  set_server(), set_admin(), create_tournament(), register_tournament().

- emergency_circuit_breaker: already had full Pausable implementation,
  no changes required.

All 65 existing tests pass.

Closes OpenKnight-Foundation#889
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@nede110 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

@chinweobtagaz
chinweobtagaz merged commit f66a206 into OpenKnight-Foundation:main Jul 30, 2026
1 check passed
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.

SC-11: Implement Pausable extension for emergency halts across all core contracts

2 participants