interlay / interbtc-squid

Subquid GraphQL schema and indexer for the Interlay and Kintsugi networks
Apache License 2.0
4 stars 7 forks source link

feat: adding human readable values #37 #62

Closed jtfirek closed 1 year ago

jtfirek commented 1 year ago

Adding a helper function to _utils for converting from atom to human readable, but having an issue with the currencyIdToMonetaryCurrency api from the lib. I currently hardcoded {token: "DOT"} in the createType api call for testing purposes.

jtfirek commented 1 year ago

I have finished the helper function and tested it with log statements and it seems to be correctly convert values from their atomic form to their human readable form. Only issue is when I run the processor the query node playground does not have any data, all queries return nothing. I would love to look over this with someone tomorrow!

jtfirek commented 1 year ago

This PR is ready for review!

jtfirek commented 1 year ago

I added the code from master to my branch! Should be good to be merged.