From 48a5ec9d885158bfd543387e7ead8fa188127b18 Mon Sep 17 00:00:00 2001 From: Bertrand Rioux Date: Tue, 1 Aug 2023 12:22:48 -0600 Subject: [PATCH] Update carbon-tracker.md Signed-off-by: Bertrand Rioux --- hardhat/docs/carbon-tracker.md | 40 +++++++++++----------------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/hardhat/docs/carbon-tracker.md b/hardhat/docs/carbon-tracker.md index 28c1c034d..8b6b16566 100644 --- a/hardhat/docs/carbon-tracker.md +++ b/hardhat/docs/carbon-tracker.md @@ -2,32 +2,26 @@ ## Deploying the emission certificate contract and interface -Here we summarize the deployment process deploying the CarbonTracker contract and DAPP interface. This covers installation and configuration of software in different subdirectoreis of blockchain-carbon-accouting repository. You'll need to make sure you are running version of node >= 16.x.x +Here we summarize the deployment for the CarbonTracker contract as an extension of the Net Emissions Token (NET) Network. This covers installation and configuration of software in different subdirectoreis of blockchain-carbon-accouting repository. You'll need to make sure you are running version of node >= 16.x.x First run `npm install` of dependency libraries in the following subdirectories -- [data](https://github.com/hyperledger-labs/blockchain-carbon-accounting/blob/main/data)This is where the postgres server and tables are configured for convenient storage for on and off-chain data. Follow the [readme](https://github.com/hyperledger-labs/blockchain-carbon-accounting/blob/main/data/README.md) for instructions on setting up and seeding the postgres database. +- [data](https://github.com/hyperledger-labs/blockchain-carbon-accounting/blob/main/data). This is where the postgres server and tables are configured for convenient storage for on and off-chain data. Follow the [readme](https://github.com/hyperledger-labs/blockchain-carbon-accounting/blob/main/data/README.md) for instructions on setting up and seeding the postgres database. -- Next run the hardhat node in hardhat subdirectory where the contracts (NET &CarbonTracker) are deployed -``` -npx hardhat node -``` +- Next run a hardhat node where the contracts (NET & CarbonTracker) are deployed +`npx hardhat node` from hardhat\ directory or `npm run hardhat` from project root. [using-the-react-applicaiton readme](https://github.com/hyperledger-labs/blockchain-carbon-accounting/blob/main/hardhat/docs/using-the-contracts.md) provides instructions on seeding the network, e.g.: ```npx hardhat setTestAccountRoles --network localhost --contract ``` to assign roles to network addresses. - ```npx hardhat issueOilAndGasTrackers --network localhost --contract --contract ``` -to issue example tracker tokens for oil and gas producers. +to issue tracker tokens for oil and gas producers. - Run the api-server for synchronizing postgres database with contract state in app/api-server -```npm run dev``` +`npm run dev` from app/api-server or `npm run frontend` from root [README](https://github.com/hyperledger-labs/blockchain-carbon-accounting/blob/main/app/api-server/README.md) provides instructions on seeding the postgres database with user and other data. - Run the node.js react UI -``` -cd app/frontend/react-app -npm run build -``` +`npm run build` from app/frontend/react-app directory or `npm run api-server` from root ## Setup demo tokens for U.S. Oil & Gas production data @@ -42,7 +36,6 @@ hardhat oilAndGasBenchmarkBasins --network localhost --contract