Skip to content

Add EmergencyPause and TimelockUnpause governance proposals#445

Merged
Bridgerz merged 1 commit intomainfrom
emergency-pause-governance
Apr 13, 2026
Merged

Add EmergencyPause and TimelockUnpause governance proposals#445
Bridgerz merged 1 commit intomainfrom
emergency-pause-governance

Conversation

@Bridgerz
Copy link
Copy Markdown
Contributor

@Bridgerz Bridgerz commented Apr 13, 2026

Summary

  • Adds EmergencyPause governance proposal type with a single pause: bool field
  • Pausing requires 51% quorum for fast emergency response
  • Unpausing requires ~67% quorum for broader consensus
  • Full Rust-side support: proposal type parsing, config re-scrape on execute, display formatting, garbage collection

Changes

Move:

  • emergency_pause.move — new proposal type with asymmetric thresholds (5100 BPS to pause, 6667 BPS to unpause)
  • pause_proposal_tests.move — tests for pause and unpause lifecycle
  • test_utils.movecreate_emergency_pause_proposal helper

Rust:

  • ProposalType::EmergencyPause enum variant + as_str(), all_labels(), display
  • Watcher: type tag parsing + config re-scrape on execute
  • BCS deserialization in mod.rs
  • CLI type tag mapping in get_proposal_type_arg
  • Garbage collection support for expired proposals

Test plan

  • sui move test -p packages/hashi — 73/73 pass
  • cargo check -p hashi — compiles clean
  • prettier-move -c — formatting clean

🤖 Generated with Claude Code

@Bridgerz Bridgerz requested a review from bmwill as a code owner April 13, 2026 20:10
@Bridgerz Bridgerz force-pushed the emergency-pause-governance branch from 30d8c45 to a1a99c3 Compare April 13, 2026 20:52
Single proposal type with `pause: bool` field. Pausing requires 51%
quorum for fast emergency response; unpausing requires ~67% for broader
consensus. Full Rust-side support for proposal type parsing, config
re-scrape on execute, display formatting, and garbage collection.
@Bridgerz Bridgerz force-pushed the emergency-pause-governance branch from a1a99c3 to b7cb21a Compare April 13, 2026 21:46
@Bridgerz Bridgerz merged commit 1b5c240 into main Apr 13, 2026
5 checks passed
@Bridgerz Bridgerz deleted the emergency-pause-governance branch April 13, 2026 22:08
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.

2 participants