AIRA (Autonomous Intelligent Robot Agent) project implements the standard of economic interaction between human-robot and robot-robot via liability smart contract. AIRA makes it possible to connect a variety of different robots to the market of robot liabilities for the direct sale of data from robot sensors, ordering of logistics services, and organization ordering of personalized products at fully automated enterprises.
This source is a part of AIRA project. It implements their purposes using Substrate technologies.
-
Import custom data types at Substrate UI: Developer settings
-
Open Substrate UI: General settings
-
Set
custom
node endpoint towss://robonomics.akru.me/
-
Save and reload
-
Get test tokens https://faucets.blockxlabs.com
When connection is success you can explore Robonomics testnet
using Substrate UI. Just create account and request test XRT in our Matrix room.
-
Accounts management: https://polkadot.js.org/apps/#/accounts
-
Looking for network events: https://polkadot.js.org/apps/#/explorer
-
Transfer test XRT: https://polkadot.js.org/apps/#/transfer
-
Send extrinsics to robonomics module: https://polkadot.js.org/apps/#/extrinsics
Robonomics on Substrate binary blobs available as an assets in releases. Latest version you can try to build from source code.
Ensure you have Rust and the support software installed:
curl https://sh.rustup.rs -sSf | sh
# on Windows download and run rustup-init.exe
# from https://rustup.rs instead
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup update stable
cargo install --git https://github.com/alexcrichton/wasm-gc
You will also need to install the following packages:
-
Linux:
sudo apt install cmake pkg-config libssl-dev git clang libclang-dev
-
Mac:
brew install cmake pkg-config openssl git llvm
-
Windows (PowerShell):
# Install LLVM # Download and install the Pre Build Windows binaries # of LLVM from http://releases.llvm.org/download.html # Install OpenSSL (through vcpkg) mkdir \Tools cd \Tools git clone https://github.com/Microsoft/vcpkg.git cd vcpkg .\bootstrap-vcpkg.bat .\vcpkg.exe install openssl:x64-windows-static $env:OPENSSL_DIR = 'C:\Tools\vcpkg\installed\x64-windows-static' $env:OPENSSL_STATIC = 'Yes' [System.Environment]::SetEnvironmentVariable('OPENSSL_DIR', $env:OPENSSL_DIR, [System.EnvironmentVariableTarget]::User) [System.Environment]::SetEnvironmentVariable('OPENSSL_STATIC', $env:OPENSSL_STATIC, [System.EnvironmentVariableTarget]::User)
Install robonomics node from git source:
cargo install --force --git https://github.com/airalab/substrate-node-robonomics --tag v0.10.2
Run node in Robonomics testnet:
robonomics
Or run your local development network:
robonomics --dev
Currently Robonomics on Substrate testnet is maintained by developers but anyone can support the project by several ways described below.
You can support the network just by launch the node. Every additional full node of blockchain helps it to be more sustainable and fault tolerant. Robonomics node binaries is available on releases or could be build from source.
For nodes that can be online 24/7 also available most important role on chain - block producers or briefly validator. Robonomics on Substrate use NPoS algorithm for choosing block production accounts. For this reason if you have any stake in test XRT you can try self in block production. You can request test XRT in our Matrix room.
-
Generate accounts at Account page:
-
session
usingEdwards (ed25519)
crypto; -
stash
usignSchnorrkel (sr25519)
crypto; -
controller
usingSchnorrkel (sr25519)
crypto.
-
-
Transfer full amount of test XRT to
stash
and a little bit tocontroller
account. -
Send extrinsic from
controller
account with modulesession
and methodsetKey()
:-
session
account address as parameter.
-
-
-
Run Bond action from
stash
account tocontroller
account; -
Run Validate action from
controller
account.
-
-
Launch Robonomics node (set
session
account seed as parameter):robonomics --validator --key %SESSION_SEED%
-
Check validator list, at new Era validator set will updated.
Special feature ros
helps to use Robonomics Substrate modules in ROS-enabled cyber-physical systems.
-
Install ROS using instruction.
-
Import ROS environment:
source /opt/ros/melodic/setup.bash
-
Build with
ros
feature:cargo build --release --features ros