Skip to content

rojosnow/MARKETProtocol

 
 

Repository files navigation

Build Status Coverage Status

MARKET Protocol has been created to provide a secure, flexible, open source foundation for decentralized trading on the Ethereum blockchain. We provide the pieces necessary to create a decentralized exchange, including the requisite clearing and collateral pool infrastructure, enabling third parties to build applications for trading. Take a look at our FAQ or docs for a little more explanation.

Join our Discord Community to interact with members of our dev staff and other contributors.

Getting Started

Assuming you have npm already, Install truffle

$ npm install -g truffle

Clone this repository and use npm to install needed dependencies

$ git clone https://github.com/MARKETProtocol/MARKETProtocol.git
$ cd MARKETProtocol
$ npm install

If you get an error on the node-gyp rebuild line during npm install, node-gyp doesn't support Python v3.x.x; v2.7 is recommended. There are several solutions based upon your platform.

The easiest solution? Use npm install --python=python2.7 above to specify the Python version, see stack overflow or the npm node-gyp project for details.

Tests

To run the tests locally via truffle you must have oraclize's bridge running. Information on installation can be found here

Start truffle and its development blockchain with

$ truffle develop

and then start the ethereum bridge (in a separate console) to run connected to the development blockchain you just started, note the account you use (in this example account 9 is used)

$ cd ethereum-bridge/
$ node bridge -H localhost:9545 -a 9 --dev

Once the bridge has fully initialized, you should be able to run the example migrations as well as the accompanying tests inside the truffle console

truffle(develop)> migrate
truffle(develop)> test

If this fails due to a revert , please be sure the bridge is listening prior to attempting the migration.

Contact us

We would love to hear your feedback and suggestions. We are also actively seeking community members who want to get involved in the project. Please reach out to us at [email protected]

About

Decentralized and trust-less ethereum based derivatives trading protocol

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.0%
  • Shell 2.0%
  • Makefile 1.0%