Skip to content

Feature/pause resume functionality#31

Closed
zachyo wants to merge 4 commits into
MettaChain:mainfrom
zachyo:feature/pause-resume-functionality
Closed

Feature/pause resume functionality#31
zachyo wants to merge 4 commits into
MettaChain:mainfrom
zachyo:feature/pause-resume-functionality

Conversation

@zachyo

@zachyo zachyo commented Jan 24, 2026

Copy link
Copy Markdown

Contract Pause/Resume Functionality

Closes #6

Summary

Implements emergency pause/resume functionality for PropertyRegistry with role-based permissions, multi-sig resume, and auto-resume scheduling.

Key Features

  • Emergency pause - Authorized pausers halt critical operations (register_property, transfer_property, create_escrow, release_escrow)
  • Multi-sig resume - Configurable approval threshold with admin override
  • Auto-resume - Schedule automatic contract resumption
  • Audit trail - Complete event history with 11 event types

Implementation

  • 18 new public functions
  • 23 comprehensive tests (all passing ✅)
  • Complete documentation in docs/pause-resume-functionality.md

Usage

contract.pause()?;
contract.schedule_auto_resume(timestamp)?;
contract.approve_resume()?;
contract.resume()?;

@LaGodxy

LaGodxy commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

@zachyo resolve conflicts.

@LaGodxy

LaGodxy commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

@zachyo please, resolve conflict.

@LaGodxy LaGodxy closed this Jan 31, 2026
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.

Contract Pause/Resume Functionality

2 participants