Skip to content

jorisbontje/maker-otc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d5f6abe · Jun 10, 2016
Apr 24, 2016
Apr 15, 2016
Jun 10, 2016
Apr 26, 2016
May 12, 2016
Apr 9, 2016
Apr 24, 2016
Apr 18, 2016
Apr 24, 2016
May 18, 2016
Apr 27, 2016
Apr 19, 2016
May 11, 2016

Repository files navigation

MMRKT Header

Slack Status Stories in Ready Build Status

This is a simple on-chain OTC market for MKR. You can either pick an order from the order book (in which case delivery will happen instantly), or submit a new order yourself.

MakerOTC is undergoing alpha testing: Proceed at your own risk, and use only small amounts of ETH and MKR.

Overview

This dapp uses Meteor as frontend; the contract side can be tested and deployed using dapple.

Usage (for Users)

Ensure you have a locally running ethereum node.

Installation (for Developers)

Requirements:

Clone and install:

git clone https://github.com/MakerDAO/maker-otc
cd maker-otc
git submodule update --init --recursive
npm install

Usage (for Developers)

There is a helpful blockchain script for development, which will use a clever mining script similar to Embark. This is entirely optional; you can use any testnet config via RPC on port 8545 and deploy via dapple as normal.

To start the blockchain script:

npm run blockchain

In a new terminal window, you can then build and deploy the dapp:

npm run deploy

Now that the contracts are deployed to the blockchain, you need to build the JS wrappers:

npm run build

To run the frontend, start meteor:

cd frontend && meteor

If you got the error message File not found: build/meteor.js, then you forgot to run the build step from above.

You can access the user interface on http://localhost:3000/

If you find that dapple is deploying to EVM rather than geth, please modify ~/.dapplerc:

environments:
  default:
    # comment out default config
    # ethereum: internal
    # replace with real ethereum node
    ethereum:
      host: localhost
      port: '8545'

To deploy the frontend to Github Pages:

gulp deploy

Gas Costs

new SimpleMarket:   927556 gas
SimpleMarket.offer: 140395-186235 gas
SimpleMarket.cancel: 33882 gas
SimpleMarket.buy:    49306-51707 gas

TODOs

See https://waffle.io/MakerDAO/maker-otc

Acknowledgements

About

simple on-chain "exchange"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published