hyperledger-labs / blockchain-carbon-accounting

This project implements blockchain applications for climate action and accounting, including emissions calculations, carbon trading, and validation of climate claims. It is part of the Linux Foundation's Hyperledger Climate Action and Accounting SIG.
https://wiki.hyperledger.org/display/CASIG/Carbon+Accounting+and+Certification+WG
Apache License 2.0
195 stars 104 forks source link

Updates to methane app & fix for typescript-app-test #646

Closed brioux closed 2 years ago

brioux commented 2 years ago

See app/methane/README.md for updates to Methane (Oil & Gas Emissions) app

+Fix to fails in test-typescript-app CI. Changes in how GitHub was handling actions prevented docker containers from reaching localhost using docker-compose.yml option.

 extra_hosts:
            - "host.docker.internal:host-gateway"

Fixed by moving all processes to docker, i.e., api-server used by fabric chain-code oracle service to calculate emissions from postgres DB. New environment variable START_SERVER=true used to run the api-server with SKIP_SYNC=true (no need to sync with the local hardhat network)

The oracle also runs as a container attached to Fabric network both api-server and oracle-api container images are hosted under the net-zero-project ghcr.io until hosting permission are granted under hyperledger-labs

Oil & gas portal

emissions and production data points from multiple sources for oil & gas operators. Allow users to view individual asset and aggregate data points for a given operator.

Users can request emission audits for an existing (unverified) carbon tracker token using single or multiple data points to identify discrepancies in different sources.

Single data points are handled as the new industry activity_types using process_industry method of supply-chain-lib

Multiple-data points are submitted using the other activity_type from react-app RequestAudit form. A local file is generated with each row of product data selected for the request, plus the requested carbon tracker ID.

Auditors can also assign production data (oil and gas quantities) as described in the Carbon Tracker contract Readme