Contract Templates — /api/contracts/templates*
The framework ships a catalogue of ready-to-deploy state contracts — physics & engineering domain monitors (Mechanics, Quantum, Relativity, Energy & Grid, Structural, Medical, Seismology, …) plus a domain-agnostic Foundations set (scheduled-compute, threshold-monitor, oracle-feed, approval-workflow, timelock-release, supply-chain-provenance, telemetry-rollup, rate-limiter, subscription-billing, attestation-notary). Browse, fetch, deploy in one call.
Concept: Contracts.
Source: shared/api-core/src/routes/contractTemplates.ts and shared/api-core/src/data/contractTemplates.ts.
Endpoints
| Method | Path | Auth |
|---|---|---|
GET | /api/contracts/templates | none |
GET | /api/contracts/templates/categories | none |
GET | /api/contracts/templates/:id | none |
POST | /api/contracts/templates/:id/deploy | Bearer (operator+) |
A representative slice
The catalogue spans 40+ physics, engineering, and science domains — states are operating regimes, transitions fire when a verbatim operator (≤0.1%, NIST-bound) crosses a declared threshold — plus the domain-agnostic Foundations set that drives the autonomous trigger engine. GET /api/contracts/templates/categories returns the full grouping; a representative slice:
| ID | Name | Category |
|---|---|---|
scheduled-compute | Scheduled Compute (Heartbeat) | Foundations |
threshold-monitor | Threshold Monitor (Generic) | Foundations |
oracle-feed | Oracle Feed (External Ingest) | Foundations |
approval-workflow | Approval Workflow (N-of-M) | Foundations |
timelock-release | Timelock Release Gate | Foundations |
force-threshold-alarm | Force Threshold Alarm | Mechanics |
sla-monitor | SLA Monitor | Operations |
data-pipeline | Data Pipeline | Operations |
earthquake-early-warning | Earthquake Early Warning | Seismology |
grid-frequency-stability | Grid Frequency Stability | Energy & Grid |
Fetch the full list with GET /api/contracts/templates, or filter with ?category=Foundations. See State Contracts for the deploy + trigger reference.