Background
If an expert is inactive for a long time, their profile might get archived. Users need a clear interface and script to restore their archived state.
Goal
Provide a TypeScript script and documentation for restoring archived contract keys using Soroban's state restoration transactions.
Acceptance Criteria
- Script in
scripts/restore_state.ts that detects archived keys and submits a StateArchival restoration transaction.
- Integration tests verifying that an archived expert profile can be restored and subsequently read by
get_expert_profile.
- User documentation in
docs/archival_recovery.md.
Key Files
scripts/restore_state.ts, docs/archival_recovery.md
Background
If an expert is inactive for a long time, their profile might get archived. Users need a clear interface and script to restore their archived state.
Goal
Provide a TypeScript script and documentation for restoring archived contract keys using Soroban's state restoration transactions.
Acceptance Criteria
scripts/restore_state.tsthat detects archived keys and submits aStateArchivalrestoration transaction.get_expert_profile.docs/archival_recovery.md.Key Files
scripts/restore_state.ts,docs/archival_recovery.md