Git Product home page Git Product logo

whackedblocks-greenteam's Introduction

Dependencies

Python >=3.5.3

  • Install pip if it is not available
  • Install virtualenv if it is not available
  • Create a virtual environment
  • Activate your new virtual environment
  • Install dependencies
which pip || curl https://bootstrap.pypa.io/get-pip.py | python
which virtualenv || sudo pip install --upgrade virtualenv
virtualenv -p python3 ~/.venv-py3
source ~/.venv-py3/bin/activate
pip install -r ./requirements.txt

ganache-cli

npm install -g ganache-cli

Available Accounts within ganache blockchain (mnemonic)

  • (0) 0x959fd7ef9089b7142b6b908dc3a8af7aa8ff0fa1 -- Contracts Deployer
  • (1) 0x4e90a36b45879f5bae71b57ad525e817afa54890 -- Borrower
  • (2) 0xb6a8490101a0521677b66866b8052ee9f9975c17 -- Lender
  • (3) 0xb0201641d9b936eb20155a38439ae6ab07d85fbd -- Oracle

Contract Address

  • (0) 0x668ed30aacc7c7c206aaf1327d733226416233e2 -- Loan
  • (1) 0xd2e8d9173584d4daa5c8354a79ef75cec2dfa228 -- DAIMock

Usage

Borrower Client

usage: Loan Borrower client [-h] [-o amountGive amountReturn time token]

optional arguments:
  -h, --help            show this help message and exit
  -o amountGive amountReturn time token, --open amountGive amountReturn time token
                        Open Loans publicly visible on eth blockchain

Lender Client

usage: Loan Lender client [-h] [-t loan_address] [-r loan_address] [loans]

positional arguments:
  loans                 Show loans

optional arguments:
  -h, --help            show this help message and exit
  -t TAKE, --take TAKE  Take loan from `loans` list
  -r RETURN, --return loan_address
                        Return loan amount

whackedblocks-greenteam's People

Contributors

mzalevski 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.