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:
| ID | Name | Description |
|---|---|---|
| 1 | solar_pv | Photovoltaic solar |
| 2 | wind_onshore | Land-based wind turbines |
| 3 | wind_offshore | Offshore wind turbines |
| 4 | hydro | Hydroelectric power |
| 5 | biomass | Biomass combustion or biogas |
| 6 | geothermal | Geothermal energy |
| 7 | ocean_tidal | Tidal or wave energy |
| 8 | nuclear | Nuclear fission |
| 9 | natural_gas | Natural gas combustion |
| 10 | coal | Coal combustion |
| 11 | oil | Oil or diesel combustion |
| 12 | storage_discharge | Battery storage discharge |
| 13 | hydrogen_fuel_cell | Hydrogen 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.
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.