Skip to content

fix: add marketplace emergency pause#521

Closed
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:security/marketplace-pausable-491
Closed

fix: add marketplace emergency pause#521
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:security/marketplace-pausable-491

Conversation

@dangelo352

Copy link
Copy Markdown

Summary

  • add admin-only pause/unpause/is_paused controls to commitment_marketplace
  • gate list_nft, buy_nft, accept_offer, place_bid, and end_auction while paused
  • keep read-only marketplace getters callable during pause
  • document marketplace incident-response pause/unpause in emergency/security docs

Closes #491.

Validation

  • CARGO_TARGET_DIR=/tmp/commitlabs-marketplace-pause-target cargo test -p commitment-marketplace pause -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-marketplace-pause-target cargo test -p commitment-marketplace -- --nocapture
  • git diff --check

Notes: the marketplace test run passes with the repo's existing warnings for an unused seller variable and unused set_contract_reentrancy_guard helper.

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.

Add emergency-pause gating to commitment_marketplace settlement entrypoints

2 participants