Giter Club home page Giter Club logo

protocol.1.0's Introduction

Reloanr package with Lendroid protocol v1.0

The Reloanr package comprises the following tools. Please feel free to use them (in any combination) to deploy your own fixed-interest, p2p lending ecosystem.

Smart contracts

Lendroid Protocol version 1.0

This project is built using the Truffle Framework. The smart contracts, originally written in Solidity, have been migrated to Vyper. The Vyper contracts have been tested using Truper.

Javascript library

Nodejs implementation for user interface to interact with the smart contracts.

UI template

A base template of the user interface.

Kernel server

An API server implementation on Google Cloud (Python) for shared off-chain (lend / borrow) loan offers

Wrangler API server

An API server implementation on Google Cloud (Python) for a simple wrangler

How to use this repo

Installation and setup

  • Clone this repository

    git clone <repo>

  • cd into the cloned repo

    cd protocol.1.0

  • Install dependencies via npm

    npm install

  • Install Vyper. Refer to Vyper's installation instructions for further reference

    • Python 3.6+ is a pre-requisite, and can be installed from here

    • Install virtualenv from pip

      pip install virtualenv or pip3 install virtualenv

    • Create a virtual environment

      virtualenv -p python3.6 --no-site-packages ~/vyper-venv

Test and development

  • Open a new terminal (Terminal 1) and run the Ganache CLI here

    ganache-cli

  • Open a second terminal (Terminal 2) and activate Vyper's virtual environment

    source ~/vyper-venv/bin/activate

  • On Terminal 2, run the truper commmand to compile Vyper contracts. Refer truper's github to know more about the Truper tool

    (vyper-venv) $ truper

  • Open a third terminal (Terminal 3) and run the tests using Truffle test suite

    truffle test

  • To run tests using the Python test suite

    pip install -r requirements.txt

    pytest

Note: When the development / testing session ends, deactivate the virtualenv on Terminal 2: (vyper-venv) $ deactivate

protocol.1.0's People

Contributors

vii-msundaram avatar alonavns avatar

Watchers

Vignesh Sundaresan avatar James Cloos avatar  avatar  avatar  avatar

Forkers

cleancoindev

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.