It's the pallets repo for Ares Protocol
pallet-aresdeal aggregator register and unregisterpallet-aresoracle request and result callback- add
pallet-arestest code - add
pallet-ocwuse off-chain worker fetcher price - add
on chain aggregateprice - support
multi tokenprice
- the front end displays the registration and results of events on the chain
- query the oracle price and data warehouse price
- query chain data history
- transfer token to aggregator
- listen for Oracle event requests
- fetch aggregate price and return to oracle
- it fetch huobi and binance and okex price
- privide api for oracle visite and use.
Suppot BTC,ETH, DOT
http://api.aresprotocol.com/api/getPartyPrice/btcusdt
{"msg":"success","code":0,"data":{"market":null,"symbol":"btcusdt","price":18319.72,"nodes":null,"sn":null,"systs":1607528442761,"ts":1607528442761}}
Enter substrate-node-template
make build
then start
./target/release/node-template --dev --tmp
Enter substrate-front-end-template
run
yarn start
Enter fetch-data run
npm index.js
you can use Start Front send register, unregister,initial_request,feed_data action with node-template