Atomic patterns

Single-concept recipes showing one Backproto primitive in isolation. Each pattern is referenced by full recipes that use it.

CapacityRegistry attestation

CapacityRegistry

EIP-712 signing flow for declaring spare capacity. Covers the typed data structure, signing code, and on-chain registration call.

beginner

CompletionTracker SLO verification

CompletionTracker

Define SLOs (latency, completion rate), track completions, and trigger penalties on violation. Verification flow end-to-end.

advanced

OffchainAggregator telemetry loop

OffchainAggregator

Collect runtime metrics off-chain, aggregate them, and push updated capacity attestations on-chain. Aggregation logic and attestation refresh cycle.

advanced

PricingCurve tuning

PricingCurve

Interactive visualization of pricing curve parameters. Adjust base price, k, and alpha to see the resulting price curve as utilization goes from 0 to 100%.

intermediate

StakeManager bond/slash lifecycle

StakeManager

Full lifecycle: bonding tokens, operating, getting slashed (3x penalty), and withdrawing. Contract calls and state transitions.

intermediate

Superfluid GDA streaming

EscrowBuffer

Initialize a streaming payment via Superfluid General Distribution Agreement. Setup, flow rate calculation, and pool connection.

intermediate