Internal ID: #34
Imported from ISSUES.md via scripts/import-issues.mjs.
Problem Statement. There is no version field on Question. A future data model migration will be unsafe.
Expected Outcome. Add version: u32 to Question and a DataKey::SchemaVersion for migration support.
Acceptance Criteria.
- New tests assert bumping the schema version is a no-op for already-deployed contracts.
Implementation Notes.
- Migration story: read schema_version; on mismatch, error or migrate.
Files / modules affected.
onchain/contracts/stellar_hunts/src/lib.rs
onchain/contracts/stellar_hunts/src/test.rs
Dependencies. #27 (companion: tombstone / retirement lifecycle alongside versioning).
Difficulty / Effort. Medium / S (≈ 3 hours).
Labels. area:contracts, tech-debt
Problem Statement. There is no version field on
Question. A future data model migration will be unsafe.Expected Outcome. Add
version: u32toQuestionand aDataKey::SchemaVersionfor migration support.Acceptance Criteria.
Implementation Notes.
Files / modules affected.
onchain/contracts/stellar_hunts/src/lib.rsonchain/contracts/stellar_hunts/src/test.rsDependencies. #27 (companion: tombstone / retirement lifecycle alongside versioning).
Difficulty / Effort. Medium / S (≈ 3 hours).
Labels.
area:contracts,tech-debt