This repository is part of the Ethereum Developer Masterclass: ICO and Token Exchange with Solidity course on Udemy. The Token-Exchange can be tested with MetaMask and the Rinkeby Test-Net under https://tomw1808.github.io/distributed_exchange_truffle_class_3/index.html
The Exchange Smart-Contract has 3 functions:
- Funding: It's possible to deposit and withdraw both tokens of any kind and Ether
- Trading: You can trade any kind of token against ether. Both market orders and limit orders. It's also possible to cancel an order.
- Manangement: It's possible to add new tokens on the fly.
The Exchange is unit tested with Truffle's Test-Framework.
All of this is also shown in the Course!
- Genesis.json file is in general files folder
- Diagrams are written in https://www.draw.io - the files are in general files folder
- Every other folder follows the structure of the course
In order to work with the smart contracts and for the course you need
- the Node Package Manager
- Truffle
- Ethereumjs-TestRPC
- Geth
- MIST
- MetaMask
- The Chome-Browser
- On windows eventually the Git-Bash
- Read "Solidity in Depth" and "Solidity Examples" from the Solidity docs
- Know what is a list and a linked list. A short intro will be given, but our DataStructures use linked lists.
The source-code provided in this Repository shall be licensed under the terms of the
MIT License
Copyright (c) [2017] [Thomas Wiesner]
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 above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Download necessary tools
npm install -g truffle
- Download this repository:
git clone https://github.com/tomw1808/distributed_exchange_truffle_class_3.git
cd "Practical Part 11 - FINAL Project"
- With a running Ethereum Blockchain Node in the background (such as the ethereumjs-testrpc) do
truffle migrate
npm run dev
If you are interested about my work, what I do and where you can get more courses, material and information, checkout my blog: https://vomtom.at