# Quantum Polygon Demo Contracts

This folder contains demo-only smart contracts that show how Quantum maintenance records could be anchored on Polygon.

These contracts are:

- reference implementations
- not audited
- not production-ready
- intended to illustrate record anchoring and archival flows

## Contracts

- `contracts/QuantumMaintenanceRecord1155.sol`
  Demo ERC-1155 contract for minting one tokenized maintenance record per anchored intervention.
- `contracts/QuantumMaintenanceRegistry.sol`
  Demo registry for archiving issued maintenance record tokens and tracking beneficiary claims.

## Intended Flow

1. Quantum registers an intervention in the application layer.
2. The backend calls `mintRecord()` on Polygon.
3. Metadata, record hash, traceability hash, period, and technical impact are anchored on-chain.
4. A holder can later archive the record through the registry.

## Notes

- The contracts use OpenZeppelin imports as a standard base.
- They are designed for Polygon PoS style deployment.
- Before any real deployment, add tests, access control review, upgrade strategy review, and metadata hosting decisions.
