Skip to content

Build Soroban Contract State Snapshot and Restore Capability for Testnet Debugging #623

@temma02

Description

@temma02

Description

Implement the ability to snapshot and restore Soroban contract state on testnet, enabling developers to debug deployed contracts by capturing and reproducing specific state configurations.

Requirements and Context

  • Debugging: Testnet contract state must be capturable and restorable
  • Testing: Test snapshot and restore round-trip
  • Documentation: Document the snapshot/restore workflow

Suggested Execution

Branch: feat/issue-087-soroban-state-snapshot-restore

Implement Changes

  • Add contract state snapshot logic to the Stellar package (testnet only)
  • Serialize contract storage entries into a portable snapshot format
  • Implement restore logic that reapplies a snapshot to a testnet contract
  • Guard snapshot/restore operations to testnet only

Test and Commit

  • Test snapshot capture and restore round-trip
  • Test that snapshot/restore is rejected on mainnet
  • Document the snapshot/restore workflow

Example Commit Message

feat(soroban): add contract state snapshot and restore for testnet debugging

- Serialize contract storage into portable snapshots
- Implement restore to reapply snapshots
- Guard operations to testnet only

Guidelines

  • Restrict snapshot/restore strictly to testnet
  • Use a portable, versioned snapshot format
  • Never allow restore on mainnet

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions