Skip to content
source code and tests for Sovrin Ledger plugins
Branch: master
Clone or download
anikitinDSR Merge pull request #239 from anikitinDSR/public/fix_get_fees
[FIX_GET_FEES] fix result of GET_FEES when fees doesn't exist in the …
Latest commit 1326d91 May 23, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
devops [FIX_GET_FEES] fix test May 23, 2019
docs README changed to markdown and structure improved (#167) Oct 11, 2018
sovtoken Merge remote-tracking branch 'public/master' into public/fix_get_fees May 23, 2019
sovtokenfees Merge remote-tracking branch 'public/master' into public/fix_get_fees May 23, 2019
.dockerignore Correct stack (#47) Jul 20, 2018
.flake8 added flake8 file for future flake8 standards support Feb 1, 2019
.gitignore adds vim swap files to .gitignore Apr 15, 2019 initial pass on conversion Nov 21, 2018
LICENSE Initial commit Feb 1, 2018
Makefile Add make command `test_helpers`. Oct 8, 2018 README changed to markdown and structure improved (#167) Oct 11, 2018
banner.png added banner Sep 18, 2018
build_indy_pool indy pool fix Sep 6, 2018
docker-compose-dev.yml Correct stack (#47) Jul 20, 2018
docker-compose.yml Correct stack (#47) Jul 20, 2018
docker-sync.yml Correct stack (#47) Jul 20, 2018 tracker integration Jan 30, 2019 fixes script (#60) Jul 24, 2018


Table of Contents

  1. Sovrin Token Plugins
    1. Install
    2. Development Environment
      1. Why cant I use my own local machine as my enviroment?
      2. Requirements
      3. Installing docker-sync
      4. Starting Dev Env
      5. Alternative for running tests
    3. How To Contribute GitHub version

Sovrin Token Plugins

This repo contains the plugins to create the Sovrin payment ledger plugins: Token and Fees


run the following command:


Development Environment

Why is a docker environment included?

We provide a docker environment that comes pre-loaded with all required dependencies and consider this to be the easiest way for any new developer to get setup and start testing their code.


Installing docker-sync

gem install docker-sync

Starting Dev Env


In the first window:

make start

This will run docker-sync-stack start. It will compose the docker container and mount your local directory.

In the second window:

make deps
make setup

This will fix config files and install sovtoken and sovtoken fees

Now we run our test:

make test

when you're all done using sync just use:

make clean 

Alternative for running tests

To use this script, you will need to use make as instructed above. Once you have the docker image running and synchronized, you can use to run individual tests.

We have a shell script to assist with running tests. Here's an example:

./ token test_token_req_handler test_token_req_handler_MINT_PUBLIC_validate_missing_output

The first parameter is required. It can be either token or fees. Anything else will return an error.

The remaining parameters are optional.

The second parameter is file name without the .py.

The third parameter is the name of the test.

  1. To run all sovtoken tests call it like this:

    ./ token
  2. To run all sovtoken tests in a file, call it like this:

    ./ token test_token_req_handler

How To Contribute

Please follow the guide here.

You can’t perform that action at this time.