Skip to content

#037: Smart Contract Upgrade Rollback Guard & Timelock Enforcement #37

Description

@bakarezainab

#37: Smart Contract Upgrade Rollback Guard & Timelock Enforcement

Overview

Enforce mandatory timelock delay before executing contract WASM upgrades to allow user inspection.

Objectives

  • Require proposed contract upgrades to sit in a pending state for a configurable timelock period e.g. 48 hours.
  • Allow emergency guardians to veto malicious or buggy upgrades during the timelock window.
  • Store historical WASM hashes to support emergency rollback if needed.

Acceptance Criteria

  • Upgrade proposal state machine with timelock delay check.
  • veto_upgrade method for emergency guardian key.
  • Unit tests for premature upgrade rejection and successful timelock execution.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions