Skip to content
1 viewer
View

Energy reference

2 pages, 17 routes, 17 connections and 7 CLI commands, generated from the declarations of Energy without reading storage or running anything.

AboutCode

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

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Dashboardenergy.dashboarddashboard/view/energy0in navigation
Createenergy.site.createeditor/view/energy/create80energy.dashboardEnergySitein navigation
Energy siteenergy.sitedetail/view/energy/{site_id}110energy.dashboardEnergySitehidden
3 rows

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.

Energy.CreateSite input
FieldTypeRequiredDescriptionAllowed
namerequired
kindrequired
latituderequired
longituderequired
capacity_wrequired
5 rows
Calls and output

Energy.Forecast

Deterministic forward curve for one site — because the model IS the meter, the forecast is exactly what will mint.

Energy.Forecast input
FieldTypeRequiredDescriptionAllowed
site_idrequired
1 row
Calls and output

Energy.Get

Fetch one energy site with live model conditions and the owner's cre8/energy holdings.

Energy.Get input
FieldTypeRequiredDescriptionAllowed
site_idrequired
1 row
Calls and output
  • 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.

Calls and output

Energy.ListMeters

List registered meter devices with their public keys, owners, and accepted/rejected interval counters.

Calls and output
  • 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.

Energy.OfferCancel input
FieldTypeRequiredDescriptionAllowed
offer_idrequired
selleroptional
2 rows
Calls and output
  • 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.

Energy.OfferCreate input
FieldTypeRequiredDescriptionAllowed
assetrequired
whrequired
price_cre8required
selleroptional
4 rows
Calls and output

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.

Energy.OfferFill input
FieldTypeRequiredDescriptionAllowed
offer_idrequired
buyeroptional
2 rows
Calls and output

Energy.OfferGet

One market offer, with the watt-hours the LEDGER actually holds in its escrow alongside the offer's own claim.

Energy.OfferGet input
FieldTypeRequiredDescriptionAllowed
offer_idrequired
1 row
Calls and output
  • 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.

Calls and output

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.

Energy.ProveInterval input
FieldTypeRequiredDescriptionAllowed
samples_mwrequired
1 row
Calls and output
  • 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).

Energy.RegisterMeter input
FieldTypeRequiredDescriptionAllowed
public_keyrequired
1 row
Calls and output
  • 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.

Calls and output

Energy.Status

Energy-credit lane status: kill switch, asset prefix, meter model, fleet totals.

Calls and output
  • 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.

Energy.SubmitProvenInterval input
FieldTypeRequiredDescriptionAllowed
meter_idrequired
interval_start_srequired
samples_mwrequired
enveloperequired
readingoptional
5 rows
Calls and output
  • 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.

Calls and output
  • 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).

Calls and output
  • 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.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerEnergy
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • cre8/energy
Asset namespaces minted
  • cre8/energy
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Protocol

Structure review · 1

Warnings · 1
  • Energy · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)