fix(contracts): add pause/unpause mechanism across all contracts (#253) - #358
Open
Kami-no-san wants to merge 4 commits into
Open
fix(contracts): add pause/unpause mechanism across all contracts (#253)#358Kami-no-san wants to merge 4 commits into
Kami-no-san wants to merge 4 commits into
Conversation
AetherEdu#253) Add circuit-breaker-style pause mechanism allowing administrators to halt sensitive contract operations in emergencies: - Create contracts/src/utils/pause.rs with PauseUtils implementing is_paused, require_not_paused, pause, and unpause with admin-only access control and event emission - Add Paused variant to StorageKey in utils/storage.rs - Add PauseUtils import and pause checks to 17 mutating functions in lib.rs (issue_credential, create_course, verify_credential, issue_credential_with_expiration, renew_credential, revoke_credential_registry, batch_update_expiration_status, mint_dynamic_nft, evolve_nft, fuse_nfts, transfer_nft, register_attester, attest_credential, revoke_attestation, deactivate_attester, reactivate_attester, issue_credentials_batch) - Add pause, unpause, is_paused governance functions - Add comprehensive pause_test.rs with 10 tests covering admin/non-admin pause, mutating methods blocked, read methods working, pause persistence, credential/NFT/attestation operations Closes AetherEdu#253
Kami-no-san
force-pushed
the
fix/253-pause-unpause-mechanism
branch
from
July 26, 2026 23:48
71a4aa7 to
a5283ac
Compare
Kami-no-san
force-pushed
the
fix/253-pause-unpause-mechanism
branch
2 times, most recently
from
July 27, 2026 00:21
786b382 to
a5e3ce0
Compare
Kami-no-san
force-pushed
the
fix/253-pause-unpause-mechanism
branch
from
July 27, 2026 00:24
a5e3ce0 to
53d1d35
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #253