Skip to content

aresprotocols/ares-module

Repository files navigation

ares-module · GitHub license GitLab Status PRs Welcome Discord

It's the pallets repo for Ares Protocol

Example Video

substrate-node-template is substrate node

  • pallet-ares deal aggregator register and unregister
  • pallet-ares oracle request and result callback
  • add pallet-ares test code
  • add pallet-ocw use off-chain worker fetcher price
  • add on chain aggregate price
  • support multi token price

substrate-front-end-template

  • 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

fetch-data is ares oracle scanner

  • transfer token to aggregator
  • listen for Oracle event requests
  • fetch aggregate price and return to oracle

Learn More

aggregate-ares is ares data warehouse

  • it fetch huobi and binance and okex price
  • privide api for oracle visite and use.

Learn More

getPrice

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}}

Build

1. Start Node

Enter substrate-node-template

make build

then start

./target/release/node-template --dev --tmp

2. Start Front

Enter substrate-front-end-template run

yarn start

3. Start Aggregator

Enter fetch-data run

npm index.js

you can use Start Front send register, unregister,initial_request,feed_data action with node-template

About

It's the pallets repo for Ares Protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors