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
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
design
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
CHANGELOG.md initial pass on conversion Nov 21, 2018
LICENSE Initial commit Feb 1, 2018
Makefile Add make command `test_helpers`. Oct 8, 2018
README.md 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
install_payment_plugins.sh tracker integration Jan 30, 2019
run-test.sh fixes script (#60) Jul 24, 2018

README.md

img

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

Hex.pm GitHub version

Sovrin Token Plugins

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

Install

run the following command:

./build_indy_pool

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.

Requirements

Installing docker-sync

gem install docker-sync

Starting Dev Env

PLEASE OPEN TWO TERMINAL WINDOWS

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 run-test.sh to run individual tests.

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

./run-test.sh 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:

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

    ./run-test.sh token test_token_req_handler
    

How To Contribute

Please follow the guide here.

You can’t perform that action at this time.