Kagome
Polkadot Runtime Engine in C++17
Overview

Getting started

Prerequisites

For now, please refer to the Dockerfile to get a picture of what you need for a local build-environment.

Clone

1 git clone --recurse-submodules https://github.com/soramitsu/kagome
2 cd kagome
3 
4 # Only needed if you did not use `--recurse-submodules` above
5 git submodule update --init --recursive

Build

First build will likely take long time. However, you can cache binaries to hunter-binary-cache or even download binaries from the cache in case someone has already compiled project with the same compiler. To this end, you need to set up two environment variables:

1 GITHUB_HUNTER_USERNAME=<github account name>
2 GITHUB_HUNTER_TOKEN=<github token>

To generate github token follow the instructions. Make sure read:packages and write:packages permissions are granted (step 7 in instructions).

Build all

This project is can be built with

1 mkdir build && cd build
2 cmake -DCMAKE_BUILD_TYPE=Release ..
3 make -j

Tests can be run with:

1 cd build
2 ctest

Build node application

If you'd like to build node use the following instruction

1 mkdir build && cd build
2 cmake -DCMAKE_BUILD_TYPE=Release ..
3 make kagome -j