BarterDEX/ReadMe.md

142 lines
6.6 KiB
Markdown
Raw Permalink Normal View History

2017-12-29 23:01:50 -08:00
# Official BarterDEX README
The BarterDEX application created by Komodo Platform allows trading cryptocurrency coins without a counterparty risk.
 The protocol is open-source and trading is available for any coin that any developers choose to connect to The BarterDEX.
 The parent project, Komodo Platform, freely provides BarterDEX technology through open-source philosophy. BarterDEX fully realizes decentralized order matching, trade clearing, and settlement. The order
-matching aspect uses a low-level pubkey-to-pubkey messaging protocol, and the final settlement is executed through an atomic cross-chain swap. 
Komodo Platform Official Site:  https://komodoplatform.com
Komodo BarterDEX Page :  https://www.komodoplatform.com/en/technology/barterdex
2018-03-18 03:48:15 -07:00
BarterDEX Whitepaper :  https://komodoplatform.com/wp-content/uploads/2018/03/2018-03-12-Komodo-White-Paper-Full.pdf
2017-12-29 23:01:50 -08:00
2017-12-05 00:24:14 -08:00
# BarterDEX App
2017-05-15 09:31:38 -07:00
2018-01-02 08:46:02 -08:00
BarterDEX App includes all things required to run. You don't need to do anything else. Just use the following instructions to start using it.
2017-05-15 09:31:38 -07:00
2018-01-02 08:46:02 -08:00
It has the pre-compiled `marketmaker` bundled with it. But in any case you still wish to compile `marketmaker` yourself, you ca follow these instructions:
2017-05-15 09:35:07 -07:00
2018-03-18 03:56:08 -07:00
https://github.com/KomodoPlatform/KomodoPlatform/wiki/Compile-marketmaker-Binary-with-Static-nanomsg-in-Linux https://github.com/KomodoPlatform/KomodoPlatform/wiki/Compile-marketmaker-Binary-with-Static-nanomsg-in-MacOS
2017-05-15 09:34:33 -07:00
2017-08-03 00:59:04 -07:00
### Setup
2018-01-02 08:49:35 -08:00
#### Requirements
- Git
- Node.js - v7.10.0 or above
To get started follow these steps:
2017-05-15 09:31:38 -07:00
```shell
2017-12-23 21:47:54 -08:00
git clone https://github.com/KomodoPlatform/BarterDEX.git
2017-12-05 00:24:14 -08:00
cd BarterDEX
2017-12-21 07:06:30 -08:00
git pull
2017-12-21 06:24:12 -08:00
git checkout v0.8
2017-08-17 05:42:02 -07:00
npm install
npm start
2017-05-15 09:31:38 -07:00
```
2017-12-05 00:24:14 -08:00
It will download "BarterDEX". Open "BarterDEX", and from there open "index.html" file in your web browser.
2017-05-20 06:46:23 -07:00
2017-08-03 00:59:04 -07:00
### Update
To update, follow these steps:
```shell
2017-12-05 00:24:14 -08:00
cd BarterDEX
2017-12-21 07:06:30 -08:00
git pull
2017-12-21 06:24:12 -08:00
git checkout v0.8
git pull
2017-08-17 07:04:16 -07:00
```
2017-08-20 09:13:36 -07:00
#### For end users
To build the production ready app, install `electron-packager` and `electron-prebuilt` packages from npm
```shell
sudo npm install electron-packager -g
sudo npm install -g electron --unsafe-perm=true
2017-08-20 09:13:36 -07:00
```
2017-11-17 17:55:54 -08:00
### Instructions to test
1. Start Komodo Native Wallet
2. Start Monaize Native Wallet
3. Wait for both Komodo and Monaize to sync 100%
2017-12-05 00:24:14 -08:00
4. Start BarterDEX
2017-11-17 17:55:54 -08:00
5. Select 'Monzie (MNZ) dICO' option at the login screen.
6. Login with `passphrase` (either pre-generated or make a new one).
7. Look for the KMD address and send KMDs to it. Once sent, it will start reflecting there in a minute.
8. Give the maximum price that you would like to pay for MNZ. Example: 0.15
9. Give the maximum amount of MNZ you would like to buy. Example: 19
10. Wait and watch the MNZ balance increasing as trades happen.
#### Report Issues
2017-12-23 21:47:54 -08:00
Please feel free to test and post any bugs or issues found here: https://github.com/KomodoPlatform/BarterDEX/issues
2017-11-17 17:55:54 -08:00
#### Testing Notes
If your wallet is encrypted, the app will not work with it. This feature will be made available in coming releases.
### **Build the App**
2017-08-20 09:13:36 -07:00
Refer to the original [electron-packager](https://github.com/electron-userland/electron-packager) repository for more detailed information.
##### Linux
2017-12-05 00:24:14 -08:00
Change directory to BarterDEX and execute the following command to build the Linux app
```shell
2017-12-05 00:24:14 -08:00
cd BarterDEX
2017-11-16 14:30:43 -08:00
electron-packager . --platform=linux --arch=x64 --icon=assets/icons/barterdex/128x128.png --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/win64 --ignore=assets/bin/osx --overwrite
```
change architecture build parameter to ```--arch=x32``` for 32 bit build
2017-08-20 09:13:36 -07:00
##### OSX
2017-12-05 00:24:14 -08:00
Change directory to BarterDEX and execute the following command to build the OSX app
2017-08-20 09:13:36 -07:00
```shell
2017-12-05 00:24:14 -08:00
cd BarterDEX
2017-11-16 14:30:43 -08:00
electron-packager . --platform=darwin --arch=x64 --icon=assets/icons/barterdex/barterdex.icns --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/win64 --ignore=assets/bin/linux64 --overwrite
```
##### Windows
Change directory to iguana and execute the following command to build the Windows app
```shell
dir iguana
2017-11-16 14:30:43 -08:00
electron-packager . --platform=win32 --arch=x64 --icon=assets/icons/barterdex/barterdex.ico --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite
# If generating 32bit desktop package
2017-11-16 14:30:43 -08:00
electron-packager . --platform=win32 --arch=ia32 --icon=assets/icons/barterdex/barterdex.ico --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite
# To build both x64 and x86 desktop package
2017-11-16 14:30:43 -08:00
electron-packager . --platform=win32 --arch=all --icon=assets/icons/barterdex/barterdex.ico --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite
```
change architecture build parameter to ```--arch=x64``` for 64 bit build
## Localization Instructions
BarterDEX follows langauge and country code list localization file names. Please use the following links to get more info on the standard codes for country and language codes:
https://datahub.io/core/language-codes
https://datahub.io/core/country-list
## Troubleshooting
Windows users might need to install required DLL file(s) for `marketmaker.exe`.
You can install this in case you find BaeterDEX GUI keep loading and not ending up to login screen.
Visual C++ Redistributable for Visual Studio 2015
https://www.microsoft.com/en-US/download/details.aspx?id=48145
2017-12-29 23:01:50 -08:00
## License
2017-12-29 23:06:04 -08:00
2017-12-29 23:01:50 -08:00
MIT License                                        
2017-12-29 23:06:04 -08:00
2017-12-29 23:01:50 -08:00
Copyright (c) 2017 Komodo Platform
2017-12-29 23:06:04 -08:00
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The aforementioned copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.    
2017-12-29 23:01:50 -08:00
## Disclaimer
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.