Skip to content

Add integration test for the contract correctly restoring a creator's state after a RESTORING lifecycle transition #709

Description

@Chucks1093

Summary

The RESTORING lifecycle state covers the period when a creator's archived state is being copied back to active storage. During this window the contract should continue serving read calls and queue write calls until restoration is complete. An integration test should simulate the RESTORING transition and confirm reads succeed while writes are correctly gated.

Scope

  • Transition a creator's archive manifest to RESTORING state
  • Call get_price and get_balance during RESTORING — assert both return current values
  • Attempt a buy during RESTORING — assert it panics with state_restoring
  • Complete the restoration and assert a buy succeeds immediately after
  • Assert the restored state matches the pre-archive state

Acceptance Criteria

  • Read calls succeed during RESTORING
  • Buy panics with state_restoring during RESTORING
  • Buy succeeds immediately after restoration completes
  • Restored state matches pre-archive values

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions