Hello everyone,
as a part of Aeternity Hackathon in Sofia, I decided to use JS SDK and to implement the same Smart Oracle that we already implemented in Elixir.
Smart Oracle JS is a console application, made to automate the oracle job. The user will be able to load any account(which, in case if it’s not an oracle yet, will be registered as so) or even existing oracle in it. The following step is, that our oracle will cycle requests to a node and will list all queries made to it, process them(for instance, we decided to implement the communication to Binance API, getting price ratio for given cryptocurrencies) and if the query is in right format(for instance, “BTCLTC” ), the oracle will try to get the information from the provider and if it succeeds, will respond to the query.
My learnings:
It was challenging for me to re-implement it in JS , as I don’t have that much experience with JS. I have learned much about JS and Aeternity JS SDK.