Ana içerik geç

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

MethodPathAuth
GET/api/contracts/templatesnone
GET/api/contracts/templates/categoriesnone
GET/api/contracts/templates/:idnone
POST/api/contracts/templates/:id/deployBearer (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:

IDNameCategory
scheduled-computeScheduled Compute (Heartbeat)Foundations
threshold-monitorThreshold Monitor (Generic)Foundations
oracle-feedOracle Feed (External Ingest)Foundations
approval-workflowApproval Workflow (N-of-M)Foundations
timelock-releaseTimelock Release GateFoundations
force-threshold-alarmForce Threshold AlarmMechanics
sla-monitorSLA MonitorOperations
data-pipelineData PipelineOperations
earthquake-early-warningEarthquake Early WarningSeismology
grid-frequency-stabilityGrid Frequency StabilityEnergy & Grid

Fetch the full list with GET /api/contracts/templates, or filter with ?category=Foundations. See State Contracts for the deploy + trigger reference.