Documentation

Energy Types

EnergyAS maintains an on-chain registry of energy source types. These are used to classify generator project attestations.

Registered Types

The following energy types are pre-registered at deployment:

IDNameDescription
1solar_pvPhotovoltaic solar
2wind_onshoreLand-based wind turbines
3wind_offshoreOffshore wind turbines
4hydroHydroelectric power
5biomassBiomass combustion or biogas
6geothermalGeothermal energy
7ocean_tidalTidal or wave energy
8nuclearNuclear fission
9natural_gasNatural gas combustion
10coalCoal combustion
11oilOil or diesel combustion
12storage_dischargeBattery storage discharge
13hydrogen_fuel_cellHydrogen fuel cell

Usage Rules

Energy types are only validated for generator projects (projectType = 0). Consumer projects can pass 0 as the energy type and it will not be checked.

Note

New energy types (e.g., fusion, next-generation renewables) can be added on-chain by the Energy Type Admin without redeploying contracts or changing the schema.

Energy Type Admin

The energy type registry is managed by a separate admin role (distinct from the contract owner). This allows delegating type management without granting full contract control.

The admin can register new types, remove existing ones, and transfer the admin role to another address.