Skip to content

Add deterministic contract version metadata and release manifest #33

Description

@grantfox-oss

The contract package lacks a discoverable release manifest or deterministic version metadata, making it hard to correlate deployed WASM artifacts with source code and contract schemas.

Affected areas: app/contract/contracts/Cargo.toml, app/contract/contracts//src/lib.rs, app/contract/contracts/src/metadata.rs, CI workflows, backend contract registry.

Implementation scope:

  • Add contract version metadata and build-time manifest generation.
  • Embed version, build timestamp, source hash, and schema version in the WASM artifact.
  • Make the backend registry consume the manifest for deployment and compatibility checks.
  • Add tests to verify manifest contents and contract version invariants.

Acceptance criteria:

  • Every built contract artifact includes deterministic metadata.
  • Backend and CI can verify the deployed artifact against source metadata.
  • Version drift is detectable by automated checks.

Metadata

Metadata

Assignees

Labels

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