Public Deployment of Gladios- Testnet Nodes (Second phase/third part)

Ares Protocol
6 min readJan 13, 2022

--

Deploy Nodes

(Complete Node deployment =100 ARES/perday)

  • If you want to be a validator node, please see the following content Run Validator Nodes

1.Pull the latest image of the program

docker pull aresprotocollab/ares_gladios:latest

2.Open the command line tool and run the command execution node program

docker run -d --name ares_gladios aresprotocollab/ares_gladios:latest gladios-node --name your-name --chain gladios --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0'
  • Please type your-name in the format of Ares_TelegramUsername_bsc.
    Please ensure the name validity for reward counting and distribution;

for example: name Ares_Emily0626(your username in telegram node group)_0xA86ed7899330DF48316E2A2842D5aD13F031Ab11(bsc address)

In above command: aresprotocollab/ares_gladios:latest
could be altered to other versions:
aresprotocollab/ares_gladios:alpha;
for more versions please reach out to:https://hub.docker.com/r/aresprotocollab/ares_gladios/tags

3.Check program run logs

docker logs -f ares_gladios  -n 1000

4.Stop and delete node program

docker stop ares_gladios
docker rm ares_gladios

Mehod B: Download Node Execution Program

Download node binary execution program:
Download address: gladios-node-linux-amd64–1.1.2–39df776

1.executable gladios-node binary file

wget -c https://github.com/aresprotocols/ares/releases/download/v1.1.2/gladios-node-linux-amd64-1.1.2-39df776

2. Add execution permit

chmod +777  gladios-node-linux-amd64-1.1.2-39df776

3. Execute Nodes

./gladios-node-linux-amd64-1.1.2-39df776 --base-path data   --name your-name --chain gladios --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0'
  • Please type your name in (Ares_TelegramUsername_bsc) format. Please ensure the name validity for reward counting and distribution;
    for example: name Ares_Emily0626(username in telegram node group)_0xA86ed7899330DF48316E2A2842D5aD13F031Ab11(BSC address).

Mehtod C: Compile Source Code
1.Instal Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

2.Instal dependent libraries

sudo apt install make clang pkg-config libssl-dev build-essential

3. Download Ares Code

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

4. Switch to the Release1.0.1 branch

git checkout release1.0.1

5.Compile source code

cargo build --release
Note if you run into compile errors, you may have to switch to a less recent nightly. This can be done by running:
rustup install nightly-2021-06-09
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-09
cargo +nightly-2021-06-09 build --release

Verify Deployment Status

Log in Polkadot Telemetry

https://telemetry.polkadot.io/#list/0xcc07acbee59e89a8bc99d87a24364b514d6ae657551338547b713444583eaac2

If your name is displayed in above page, then congrats, you have successfully deployed nodes on testnet, to obtain 100 ARES/per day, if you want to increase the reward please continue to follow further contents.

Log in polkadot.js to check more block updates.
http://js.aresprotocol.io/?rpc=wss%3A%2F%2Fgladios.aresprotocol.io#/explorer

Run Validator Nodes

(Deploy nodes+be a candidate for price quotation nodes=200 ARES/perday)

Stake

First Step

As shown above, enter staking page, click [Account actions], click Stash button.

Second Step:

Select the stach account (for staking) and relevant controller account. Stash and controller could be one account, but for practical purpose, we highly do not recommend to use one account. Please fill out the staking amount according to your personal interest, The staked mount will be deducted from your stach account.

  • A Stash account can be perceived as your cold wallet, where the operation of funds is controlled by a Stash account
  • Controller account, other non-fund operations are done by controller (such as: setting sessionKeys, setting commission, participating in voting, releasing pledge, etc.)
  • Staking amount. Do not pledge all available balances, but set aside some for transaction fees.

After fulfilling the above info, click Bond button to complete the staking procedure.

Produce Block (be a validator node)

First step: run node

CLI

./target/release/gladios-node --base-path data --name ocw_one  --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --warehouse http://api.aresprotocol.io  --validator 

If use docker

docker run -d --name ares_gladios aresprotocollab/ares_gladios:latest gladios-node --name your-name --chain gladios --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --warehouse http://api.aresprotocol.io  --validator

parameters:(compulsory) — warehouse specifies IP address of ares price quotation server.
parameters:(compulsory) — validator specifies running a validator node.

Second step: Set Session Keys

If use docker

docker exec -it ares_gladios bash -c "apt update && apt install -y curl && curl -X POST http://localhost:9933 -H 'Content-Type: application/json' -d '{\"id\":1, \"jsonrpc\":\"2.0\", \"method\": \"author_rotateKeys\"}'"

CLI

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933

Output

{"jsonrpc":"2.0","result":"0x865cec2b50d8a16bff955c3f83501d7ed178a769f410c8557920964227cf55262be48db19f5ec8fc30706f68c7949768d9f9e943b5e4d019295b4da579618848b68b116b6e42dfd62162971efed83729f09582abd729b935a35dece66fb34615","id":1}
  • 「result」is your「rotateKeys」save them, you will use it in「session key」

Enter Staking page and click on the Account Actions tab; Select the account you want to operate, click Change Session Keys, enter the pasted result “rotateKeys”, and click the Set Session Key button to confirm the submission.

Step 3: Become the validator

Enter Staking page and click on the Account Actions tab; Select the account you want to operate, click Validate, and on the pop-up page set reward commission percentage and allow new nominations.

  • Reward Commission Percentage
    Set a commission percentage for reward(for block producing); for example, 10 percent, then 10 percent of the reward(for block producing) is earned by the node and the rest is distributed proportionally to the nominee. The commission setting is suggested to be set in moderate percentage to attract more people to nominate the node, so as to win the competition to become the validator node(blockproducing node).
  • Do you allow new nominations?
    The default is to allow nominations. If you choose to not allow nomination, then you are supposed to compete with others only by the amount you staked.

After completing the above operations, if you win from nomination, you will be authorised to become a block producer(as a validator node).

Instructions for Receiving Rewards

After [deploying node + be a candidate for validator nodes]is complete, be sure to set up your on-chain identity. This ensures efficient reward distribution and live review your node operating status .

Last Note:

3. Paste the short link in web section of on-chain identity session in gladios testnet. (for vivid explanation please check the pinned twitter and its comment section.)

THE END! CONGRATULATIONS, MISSION COMPLETED

Ares Protocol-decentralised cross-chain oracle platform in Polkadot ecosystem.

Ares Protocol is a decentralized cross-chain Oracle that truly implements a new generation of cross-chain Oracle service protocol for data on-chain verification, and is the first to open a compensation channel for data users who suffer business losses from using Oracle data.
Ares Protocol is a stochastic secure Oracle solution developed based on the Substrate framework, supporting hybrid Babe and off-chain workhorses, incorporating Polkadot’s latest on-chain governance, bringing the Optimistic Rollup challenge model into the Oracle space, supporting the Ink contract ecosystem, and bringing better quality Oracle services to Defi developers.

🌐 Ares Protocol Social Media Telegram Group:

Telegram Group: https://t.me/aresprotocollab
Telegram Channel:
https://t.me/AresProtocolAnnouncements
Twitter:
https://twitter.com/AresProtocolLab
Facebook:
https://www.facebook.com/aresprotocollab
Instagram:
https://www.instagram.com/aresprotocollab/
Medium:
https://aresprotocollab.medium.com
Discord:
https://discord.gg/cqduK4ZNaY
Reddit:
https://www.reddit.com/r/AresProtocolLabs/
Email:
info@aresprotocol.io
Youtube:
https://www.youtube.com/channel/UCgwY4NwkoP8Hx1Fqmp_rJUw

--

--

Ares Protocol
Ares Protocol

Written by Ares Protocol

The first chain-verified decentralised cross-chain oracle service protocol, please visit this link www.aresprotocol.io.

No responses yet