/protocol

Melon Protocol Specification

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

protocol

Melon Protocol Solidity Implementation

Gitter License: GPL v3 Dependencies Dev Dependencies NSP Status

Installation

  1. Clone this repository

    git clone git@github.com:melonproject/protocol.git
    cd protocol
    
  2. Install dependencies, such as Truffle (requires NodeJS 5.0+) and Testrpc:

    npm install
    

Testing

After installation is complete, go to the above protocol directory, open a terminal and:

  1. Launch a testrpc client:

    node_modules/.bin/testrpc
    
  2. Open a second terminal and run the test framework:

    node_modules/.bin/truffle test
    

Linting

After installation is complete, go to the above protocol directory, open a terminal and run:

npm run lint

Deployment

After installation is complete, go to the above protocol directory, open a terminal and:

  1. Launch a ethereum client. For example something similar to this:

    parity --chain kovan --author <some address> --unlock <some address> --password <some password file>
    
  2. Open a second terminal and deploy contracts using truffle

    truffle migrate --network kovan