Code Monkey home page Code Monkey logo

protocol's Introduction

Melon Protocol

Build Status

Melon is blockchain software that seeks to enable participants to set up, manage and invest in technology regulated investment funds in a way that reduces barriers to entry, while minimizing the requirements for trust.

The Melon protocol is a set of rules for how digital assets can be spent once held in a Melon smart-contract, or a Melon investment fund. These rules are meant to protect the investor and fund manager from malevolent behaviour of each other, even when both parties remain private.

Contract addresses

For the addresses of the latest deployed contracts, check out the deployments/latest directory on the master branch.

Install

Prerequisites

git clone https://github.com/melonproject/protocol.git
cd protocol
yarn install

Compile contracts

Prerequisites

After installation, go to the above protocol directory, have Docker running, and:

make

Test

After the above "Compile contracts" step, follow the instructions below, depending on if you want to run tests on your computer or on Kovan testnet.

Local blockchain

# first terminal
yarn devchain

# in a second terminal
yarn deploy
yarn test

Kovan testnet

Prerequisites

In order to run these tests on Kovan testnet, you'll need your own kovan_keys.json file with 5 public / private key pairs, each funded with some ETH. You can use kovan_keys.json.template to set up your accounts as follows:

  1. Rename the file to kovan_keys.json
  2. Copy/paste 5 public / private key pairs in place of PUBLIC_KEY_1, PRIVATE_KEY_1, etc
  3. Send Kovan ETH to each account. For Accounts 2-5, 1 or 2 ETH per account should be fine. For account 1 with the default settings, over 200 ETH is required with the default settings, so consider the next step...
  4. (optional) Adjust deployerWethAmount (default: 100 ETH) and kyberReserveAmount (default: 100 ETH) in deploy_in_kovan.json to smaller amounts that total less than the total Kovan ETH of Account 1. 10 ETH each should be fine.

Deploy and test

yarn deploy-kovan
yarn test-kovan

Contribute

See our contributing instructions.

Security Issues

If you find a vulnerability that may affect live or testnet deployments, please send your report privately to [email protected]. Please DO NOT file a public issue.

protocol's People

Contributors

travs avatar gauthamn avatar schmidsi avatar retotrinkler avatar seanjcasey avatar jennazenk avatar luongnt95 avatar fubhy avatar iherger avatar gempi avatar ahmedkareem999 avatar john-0x avatar conor10 avatar makoto avatar chrispaprocki avatar clesaege avatar marciok avatar nud3l avatar

Watchers

James Cloos 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.