Skip to content

Encode question_id health: idempotent updates, deprecation, version #35

Description

@mercy60

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea:contractsImported from ISSUES.mdtech-debtImported from ISSUES.md

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions