gnosis/dx-services

Name: dx-services

Owner: GNOSIS

Description: Services, repositories and bots to interact with DX

Created: 2018-02-05 10:28:22.0

Updated: 2018-05-24 16:14:06.0

Pushed: 2018-05-24 16:23:18.0

Homepage: null

Size: 7199

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Coverage Status

Dutch X Services

Dutch X Services, is a project that contains services and other goodies to make easier the interaction with the Duch Exchange smart contracts.

Scope and maing parts of dx-services

It contains five main elements:

For aditional information and for reference, check out the following repositories:

Run it in Rinkeby

Cli - Command Line Interface

Use the CLI:

er run \
 NODE_ENV=pre \
 ETHEREUM_RPC_URL=https://rinkeby.infura.io \
 MARKETS=WETH-RDN,WETH-OMG \
 RDN_TOKEN_ADDRESS=0x7e2331beaec0ded82866f4a1388628322c8d5af0 \
 OMG_TOKEN_ADDRESS=0xc57b5b272ccfd0f9e4aa8c321ec22180cbb56054 \
osispm/dx-services:staging \
rn cli -- \
state WETH-RDN

In the previous command, notice that:

Public API

Start API:

er run \
 NODE_ENV=pre \
 ETHEREUM_RPC_URL=https://rinkeby.infura.io \
 MARKETS=WETH-RDN,WETH-OMG \
 RDN_TOKEN_ADDRESS=0x7e2331beaec0ded82866f4a1388628322c8d5af0 \
 OMG_TOKEN_ADDRESS=0xc57b5b272ccfd0f9e4aa8c321ec22180cbb56054 \
 8080:8080 \
osispm/dx-services:staging \
rn api

To check out the Public API, just open http://localhost:8080 in any Browser.

In the previous command, notice that it has a similar configuration as in the CLI run, with the difference of:

For more information about the Public API, checkout:

Liquidity Bots

Start bots:

er run \
 MNEMONIC="super secret thing that nobody should know ..." \
 NODE_ENV=pre \
 ETHEREUM_RPC_URL=https://rinkeby.infura.io \
 MARKETS=WETH-RDN,WETH-OMG \
 RDN_TOKEN_ADDRESS=0x7e2331beaec0ded82866f4a1388628322c8d5af0 \
 OMG_TOKEN_ADDRESS=0xc57b5b272ccfd0f9e4aa8c321ec22180cbb56054 \
 8081:8081 \
osispm/dx-services:staging \
rn bots

To check out the Bots API, just open http://localhost:8081 in any Browser.

In the previous command, notice that it has a similar configuration as in the Public API run, with the difference of:

For more information about the Bots, check out the dx-examples-liquidity-bots project.

Develop

Run a local node and setup
 install
run rpc
run setup
Public API

Start API:

run api
Liquidity Bots

Start Bots:

run bots
CLI - Command Line Interface

Use the bot-cli:

run cli

Some examples:

cli2 (Deprecated)

The cli2, is deprectated, but it still has some methods that were not migrated to the new cli (they are methods used testing during development).

Use the bot-cli2:

run cli2

Some examples:

License

This project is released under MIT License

Security and Liability

All the code is provided WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Feedback, suggestions, collaborations

Please, let us know any typo or error in the project or documentation.

Any idea, proposal or colaboration will be welcome.

Also, you are encouraged to participate in the Gitter Channel for the Dutch X.

Contributors


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.