Table of Contents
- Sovrin Token Plugins
Sovrin Token Plugins
This repo contains the plugins to create the Sovrin payment ledger plugins: Token and Fees
run the following command:
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.
gem install docker-sync
Starting Dev Env
PLEASE OPEN TWO TERMINAL WINDOWS
In the first window:
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:
when you're all done using sync just use:
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.
To run all sovtoken tests call it like this:
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.