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
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
Suggested Execution
Branch:
feat/issue-087-soroban-state-snapshot-restoreImplement Changes
Test and Commit
Example Commit Message
Guidelines