๐ปRemote GHG Policy Demo Guide
Last updated
Last updated
Typically, the way we start the demonstration is by logging in as a Standard Registry called "GHG Remote Work". Create a user named "GHG Remote Work."
You'll now be prompted to configure your GHG Remote Work account. Enter the details and then press the Generate button to generate a Hedera Operator ID and an Operator Key and enter the name of your Standard Registry. Press Connect when finished. This will now create Hedera Consensus Service Topics, fill the account with test hBar, create a DID document, create a Verifiable Credential, etc
Now we will be creating the Policy. We have three ways to "create policies." The first way is to actually create the policy from scratch. The second way is to import an existing policy; either the policy file itself or from IPFS. When you import a policy, all schemas and tokens that are required in the policy are automatically populated. To do this, you can find the policy file and the IPFS timestamp on the open-source Guardian policy page here. For this demo guide, we will be using the 3rd way to create a policy, which is through the preloaded drop-down list.
Once it is selected, we can also preview the policy before importing it. After the policy is imported, we can either run the policy in Dry run mode or we can publish it by clicking on publish button from the dropdown. For testing purposes, we will publish the policy.
Once the policy is published, we will log out and create a new user called, "Employer".
In the Profile screen, select โGHG Remote Workโ and then click the โGenerateโ button.
When the Operator ID and Operator Key generates, click the submit button.
When the Employer profile has been created, click on the Policies tab
In the Policies tab, click on the โGoโ button to begin the Remote Work GHG Policy operations.
To create a new Organization Group, select the โorganization group templateโ and provide a Group Label (i.e. organization_group). Click Ok when you are finished.
Fill out the Employer Info. Note that a valid Hedera Treasury Account is required. Enter your Private Key to associate your Organization Account with the GHG token.
In the Employee sub-tab, click on the โGet Inviteโ button to generate the link that Employees will use to join the Organization Group.
Generate the invite for the Employee role.
Copy the invitation and then send the invitation to employees you wish to join the Organization Group.
As Employees join your Organization Group and fill out the Employee Survey, their results will show up in the Policy Screen under the sub-tab Employee Survey column. You can view their results by clicking on โView Document.โ
You can review their Time Tracking submissions in the Policy Screen under the sub-tab Report column. View their results by clicking on โView Document.โ
You can review the total aggregate CO2 emissions in the Policy Screen under the sub-table Total Report column. You can view their results by clicking on โView Document.โ
Note:
The timers in the GHG policy on MGS are set to intervals of hours, so you need to wait ~1.5 hours for minting tokens
You can make changes to this time period by changing time_tracking_timer and report_timer blocks as shown below.
For example : report_timer: 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * *
time_tracking_timer: 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,57,59 * * * *
You can view the number of tokens minted in the Policy Screen under the sub-table Mintโs VP column. You can explore the Trust Chain by clicking on the โView Document.โ
Log in and create a user with the name of your choice. For the demo, we are using the name Employee.
On the Profile screen, select โGHG Remote Workโ and then โGenerateโ the Operator ID and Operator Key information. When the Operator ID and Operator Key generates, click the submit button.
When the Employee profile has been created, click on the Policies tab.
In the Policies tab, click on the โGoโ button to begin the Remote Work GHG Policy operations.
To join the Organization, select โAccept invitationโ and copy and paste the invite link that the Employee sent.
Fill out the Employee Survey.
In the Time Tracking sub-tab, click on the Create New Time Tracking button.
Fill out the form to track working hours. Repeat this step for as many days as you are looking to track. In the screenshot below, we are showing an example of tracking time for two days (Sept. 28 and Sept. 29).