Ares Wikipedia

Ares Wikipedia

  • Docs
  • Contribute
  • Languages iconEnglish
    • 中文

›Node

General

  • Overview
  • Supplementary
  • Glossary

WhitePaper

  • Introduction
  • Technical Architecture
  • Data market
  • Economic Model

Learn

    Stake Mining

    • Trojan Stake Mining
    • Iliad Stake Mining
    • Asset cross-chain bridge
  • Liquidity mining
  • Gladios

    • Account
    • Claim Test Coins
    • Transfer
    • Set Online Identity

    Oracle

    • Ares Oracle
    • Ares Oracle Provider Support
    • Oracle Finance
    • Staking Extend

    Slot Auction

    • Kusama
    • Dot
  • Get Price
  • Get Symbol Fraction

Build

    Basic

    • Obtain Price Through Cross-Chain

    Gladios Guide

    • Set Up the Verifier Node
    • Quotation node rpc tools

Node

  • Hardware environment
  • Run Node
  • Run Validator Node
  • Run Validator Node Q&A
  • Start the Oracle Service
  • Start The Warehouse Service
  • Warehouse Api

Mainnet

    Validator Tutorial

    • Account
    • Map ERC20/BEP20 ARES
    • How to bond stash & controller account
    • Validator node program upgrade/deployment
    • Set Session Keys
    • Validator node verification
    • Punishment verification & Extraction of assets

    Nominator Tutorial

    • Create Odyssey Account & Stake
    • Nominate for any one or more nodes
    • Check penalties & withdraw assets

Start The Warehouse Service

Build and Run

Getting the source

Your can get the source from github, run

 git clone https://github.com/aresprotocols/warehouse.git

Building the source

Building project requires a go.

Install with ubuntu

## install
wget https://studygolang.com/dl/golang/go1.13.4.linux-amd64.tar.gz
tar xfz go1.13.4.linux-amd64.tar.gz -C /usr/local
## config
vim ~/.bashrc
export GOPATH=/usr/local/go
export PATH=$GOPATH/bin:$PATH
source ~/.bashrc

Install with mac

brew install go

Once you install, then

cd price_server
go build

That's all

Configuration

Before run, you should config your project. Using editor you like, such as

vim conf.toml

There is some config you need know.

port = 5566 # server listen, default is 5566

proxy = "http://127.0.0.1:7890/" # your proxy ip and port, or

proxy = "" # Not use proxy

symbols = ["btc-usdt", "eth-usdt", "dot-usdt", "xrp-usdt"] #Transaction pair you interesting

[mysql] # add your mysql config in here,db mean database name, just use a name you like

Configure mysql

Install mysql server and start.

Install with ubuntu

sudo apt update
sudo apt install mysql-server

Install with mac

brew install mysql

If version >= 8.0, config with:

mysql -u root -p
use mysql;
GRANT ALL ON *.* TO 'root'@'%';
flush privileges;
ALTER USER 'root'@'localhost' IDENTIFIED BY '$yourpassword$' PASSWORD EXPIRE NEVER;
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '$yourpassword$';
FLUSH PRIVILEGES;

Start

Run

./start.sh

Docker Run

Getting the source

Your can get the source from github, run

 git clone https://github.com/aresprotocols/warehouse.git

go to the deploy folder

 cd warehouse/price_server/deploy

Configuration

Copy env_example to .env

 cp env_example .env

Modify the .env file and change your mysql password

MYSQL_ROOT_PASSWORD='xxx'

If you want to modify others configs,you can follow section Configuration to modify the configs/config.toml file

Up service

Use docker-compose to up service

docker-compose up -d

Down service

Use docker-compose to down service

docker-compose down
← Start the Oracle ServiceWarehouse Api →
  • Build and Run
    • Getting the source
    • Building the source
    • Configuration
    • Configure mysql
    • Start
  • Docker Run
    • Getting the source
    • go to the deploy folder
    • Configuration
    • Up service
    • Down service
About Us

Ares is an on-chain-verified oracle platform that provides secure and reliable data services for the Polkadot DeFi ecosystem.

Email   info@aresprotocol.io
Quick links
WebsiteBlogTokenomicsBuy TokenFarms
Resources
DocumentationGithubBlockchain Explorer
Social Media
Copyright © 2023 The Ares Protocol All rights reserved