Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

renproject/chaosdex

Repository files navigation

💱 ChaosDEX

Trade BTC, ZEC, BCH ⟷ DAI trustlessly.

Powered by RenVM and the RenVM.js SDK. To get started using the SDK, read the Developer Docs or the Getting Started Tutorial.

Preview

Run locally

This will run against testnet.

cd ethereum-contracts
yarn install
yarn run bindings:ts
cd ../
cd react-client
yarn install
NETWORK="testnet" yarn start

If it throws Can't resolve './build/Release/scrypt', run:

rm -r node_modules/scrypt

Deploying

After running the above commands, cd into react-client.

Copy into .env, and fill in the Ethereum Node (first line) and optionally the Sentry DSN:

REACT_APP_ETHEREUM_NODE=""
REACT_APP_ETHERSCAN="https://kovan.etherscan.io"

REACT_APP_NETWORK="testnet"
REACT_APP_SENTRY_DSN=""
REACT_APP_ETHEREUM_NETWORK="Kovan"
REACT_APP_ETHEREUM_NETWORK_ID=42

Deploy to Github Pages:

yarn deploy