Giter Site home page Giter Site logo

steptan / token-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sovrin-foundation/token-plugin

0.0 1.0 0.0 1004 KB

source code and tests for Sovrin Ledger plugins

License: Apache License 2.0

Makefile 3.19% Shell 2.56% Groovy 3.10% Dockerfile 2.15% Ruby 0.45% Python 88.56%

token-plugin's Introduction

./banner.png

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 cant I use my own local machine as my enviroment?

Due to some compatibility issues we have decided that a docker enviroment would 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 is 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 tests call it like this:

./run-test.sh token

To run all tests in a file, call it like this:

./run-test.sh token test_token_req_handler

How To Contribute

Please follow the guide here.

token-plugin's People

Contributors

mac-arrap avatar lovesh avatar brentzundel avatar andkononykhin avatar kdenhartog avatar jerrysims07 avatar kithat avatar mattraffel avatar ryanwwest avatar mikelodder7 avatar steptan avatar sergeykupryushin avatar burdettadam avatar felippeb avatar jerrysen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.