Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems with storing emissions on goerli from fabric #75

Closed
sichen1234 opened this issue Feb 4, 2021 · 1 comment
Closed

problems with storing emissions on goerli from fabric #75

sichen1234 opened this issue Feb 4, 2021 · 1 comment
Assignees

Comments

@sichen1234
Copy link
Contributor

Trying the http://localhost:9000/api-docs/#/emissionscontract/recordAuditedEmissionsToken to store emissions on goerli from fabric, I noticed a few issues:

  1. Why is this API GET and not PUT?
  2. It should have utilityId and partyId to store only the emissions of one party
  3. The API should display emissionsAmount not energyUseAmount here in the log file:
  4. The quantity of tokens issued is wrong: The emissions amount in from the response is 0.07397955129208716 but on Goerli it shows a quantity of 7000

Screen Shot 2021-02-04 at 1 17 13 PM

Screen Shot 2021-02-04 at 1 18 27 PM

Screen Shot 2021-02-04 at 1 27 07 PM

@sichen1234
Copy link
Contributor Author

A couple of changes after today's testing:

  1. store emissions records with UUID as ID instead of taking ID as a paramter of recordEmissions
  2. change recordAuditedEmissionsToken to accept a list of these UUID's (or a string separated by ",") and then find those emissions records and tokenize them, and remove all the party id, utility id, from date, thru date in the lookup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants