Energy reference
2 pages, 17 routes, 17 connections and 7 CLI commands, generated from the declarations of Energy without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 3
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Dashboard | energy.dashboard | dashboard | /view/energy | 0 | in navigation | ||
| Create | energy.site.create | editor | /view/energy/create | 80 | energy.dashboard | EnergySite | in navigation |
| Energy site | energy.site | detail | /view/energy/{site_id} | 110 | energy.dashboard | EnergySite | hidden |
Connections · 17
Energy.CreateSite
Commission a virtual generation site (solar array or wind turbine) at a lat/lon. Ownership follows the commerce rule: gateway-verified caller wins, input owner/actor is the devnet path; ownerless sites meter but never mint.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | required | |||
| kind | required | |||
| latitude | required | |||
| longitude | required | |||
| capacity_w | required |
- Output keyenergy.result
- Classificationreal
- POST /energy/site/createHTTP route
- energy createCLI command
Energy.Forecast
Deterministic forward curve for one site — because the model IS the meter, the forecast is exactly what will mint.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| site_id | required |
- Output keyenergy.result
- Classificationroute_handler
- POST /energy/forecastHTTP route
- energy forecastCLI command
Energy.Get
Fetch one energy site with live model conditions and the owner's cre8/energy holdings.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| site_id | required |
- Output keyenergy.result
- Classificationroute_handler
- POST /energy/getHTTP route
Energy.List
List every energy site with live output, fleet totals, and minted/skipped watt-hours.
- Output keyenergy.result
- Classificationroute_handler
- GET /energy/listHTTP route
- energy listCLI command
Energy.ListMeters
List registered meter devices with their public keys, owners, and accepted/rejected interval counters.
- Output keyenergy.result
- Classificationroute_handler
- GET /energy/metersHTTP route
Energy.OfferCancel
Retract an open lot and release its escrow back to the seller's available balance. Seller-gated: the gateway-verified caller wins, input seller/actor is the devnet path.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| offer_id | required | |||
| seller | optional |
- Output keyenergy.result
- Classificationreal
- POST /energy/market/cancelHTTP route
Energy.OfferCreate
List a lot of cre8/energy/* credits for a CRE8 price, escrowing the watt-hours under the offer id so the same energy cannot back two offers or be spent out from under a buyer. Seller identity follows the commerce rule (gateway-verified caller wins, input seller/actor is the devnet path); anonymous peers cannot list.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| asset | required | |||
| wh | required | |||
| price_cre8 | required | |||
| seller | optional |
- Output keyenergy.result
- Classificationreal
- POST /energy/market/offerHTTP route
- energy offerCLI command
Energy.OfferFill
Take a listed lot: the seller's escrowed watt-hours and the buyer's CRE8 move as ONE all-or-none settlement group, so both balances change or neither does. Refill of the same offer is caught three ways (offer status, deterministic group id, deterministic receipt hash) and pays exactly once. Self-fill is refused.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| offer_id | required | |||
| buyer | optional |
- Output keyenergy.result
- Classificationreal
- POST /energy/market/fillHTTP route
- energy buyCLI command
Energy.OfferGet
One market offer, with the watt-hours the LEDGER actually holds in its escrow alongside the offer's own claim.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| offer_id | required |
- Output keyenergy.result
- Classificationroute_handler
- POST /energy/market/offer/getHTTP route
Energy.OfferList
The energy market board: open cre8/energy/* lots with their watt-hours, CRE8 price, price per kWh, and seller. Filterable by status (open | filled | cancelled | all), seller, and asset.
- Output keyenergy.result
- Classificationroute_handler
- GET /energy/market/offersHTTP route
- energy marketCLI command
Energy.ProveInterval
Devnet/demo prover: run the canonical RV64 meter firmware over a sample log and return the STARK + step-Merkle envelope Energy.SubmitProvenInterval verifies. Pure function; writes nothing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| samples_mw | required |
- Output keyenergy.result
- Classificationroute_handler
- POST /energy/interval/proveHTTP route
Energy.RegisterMeter
Bind a meter id to a device Ed25519 public key and an owner (Rung 2, the attested-sensor half of the trust split). Once registered, Energy.SubmitProvenInterval requires a valid reading signature under this key and mints to this owner. Re-registration (key rotation) is owner-gated; ownership follows the commerce rule (gateway-verified caller wins, input owner/actor is the devnet path).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| public_key | required |
- Output keyenergy.result
- Classificationreal
- POST /energy/meter/registerHTTP route
Energy.Settle
Advance every site's meter and mint whole watt-hours of cre8/energy/{vsolar|vwind} to owners through the manifold chokepoint. Deterministic, replay-guarded, autotick target.
- Output keyenergy.result
- Classificationreal
- POST /energy/tickHTTP route
- energy settleCLI command
Energy.Status
Energy-credit lane status: kill switch, asset prefix, meter model, fleet totals.
- Output keyenergy.result
- Classificationroute_handler
- GET /energy/statusHTTP route
Energy.SubmitProvenInterval
Verify-then-mint gate for the proven meter (Rungs 1+2): a registered meter's Ed25519 reading signature is checked first (identity), then the sample log's artifact binding, the memory STARK, and the step-Merkle receipt weld — only then do whole watt-hours of cre8/energy/metered mint, to the meter's REGISTERED owner. A reading that fails any check moves no value, with the failing check named.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| meter_id | required | |||
| interval_start_s | required | |||
| samples_mw | required | |||
| envelope | required | |||
| reading | optional |
- Output keyenergy.result
- Classificationreal
- POST /energy/interval/submitHTTP route
Energy.ViewPatch
Live-slot poll target for the /view/energy dashboard: re-renders the fleet snapshot pills as a patch frame.
- Output keyenergy.result
- Classificationroute_handler
- GET /energy/document/patchHTTP route
Energy.VirtualSync
Project the grid into the virtual world: one VirtualEntity per site (turbine mast / solar panel on the R3F workbench canvas, live output riding state.energy) and one per registered meter (a cabinet on the inner ring whose verdict lamp rides state.energy.verdict), plus energy_site / energy_meter bridge lines into the running CRE8VIRTUAL action inbox. All halves best-effort and individually reported. Also links each entity into space/virtual-sim (a VirtualContains edge, internal world-store wiring).
- Output keyenergy.result
- Classificationreal
- POST /energy/virtual-syncHTTP route
CLI commands · 7
energy buy
Fill a listed energy lot — both legs settle atomically or neither does
energy buy {"offer_id":"eoffer-...","buyer":"peer-you"}energy create
Commission a virtual generation site (solar / wind) at a lat/lon
energy create {"name":"Mesa Array","kind":"solar","latitude":35.0,"longitude":-100.0,"capacity_w":5000,"owner":"peer-me"}energy forecast
Deterministic generation forecast for one site
energy forecast {"site_id":"esite-...","hours":24}energy list
List energy sites with live conditions and minted totals
energy list
energy market
The energy market board — open lots of cre8/energy/* credits priced in CRE8
energy market
energy offer
List watt-hours of an energy credit for sale (escrows the lot)
energy offer {"asset":"cre8/energy/vsolar","wh":5000,"price_cre8":250,"seller":"peer-me"}energy settle
Advance every site's meter and mint accrued watt-hours
energy settle
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerEnergy
- SQL projectionnone · DDL declarations: 0
- EnergyMeter
- EnergyOffer
- EnergySite
- EnergyMeter
- EnergyOffer
- EnergySite
- VirtualEntity
- None declared.
- cre8/energy
- cre8/energy
- No model warnings were reported.
Capabilities and dependencies
- Protocol
Structure review · 1
- Energy · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)