Skip to content

This is a fully distributed exchange with truffle and MetaMask on the Rinkeby-Testnet

Notifications You must be signed in to change notification settings

mfaizan1/distributed_exchange_truffle_class_3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Distributed Token Exchange

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

distributed token exchange splash screen

The Exchange Smart-Contract has 3 functions:

  1. Funding: It's possible to deposit and withdraw both tokens of any kind and Ether
  2. Trading: You can trade any kind of token against ether. Both market orders and limit orders. It's also possible to cancel an order.
  3. 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!

Folder Structure

  • 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

Necessary Software

In order to work with the smart contracts and for the course you need

  1. the Node Package Manager
  2. Truffle
  3. Ethereumjs-TestRPC
  4. Geth
  5. MIST
  6. MetaMask
  7. The Chome-Browser
  8. On windows eventually the Git-Bash

Knowlegde prior this course

  • 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.

License

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.

Just interested in the code?

  1. Download necessary tools
npm install -g truffle
  1. Download this repository:
git clone https://github.com/tomw1808/distributed_exchange_truffle_class_3.git
cd  "Practical Part 11 - FINAL Project"
  1. With a running Ethereum Blockchain Node in the background (such as the ethereumjs-testrpc) do
truffle migrate
npm run dev

About me

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

About

This is a fully distributed exchange with truffle and MetaMask on the Rinkeby-Testnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.9%
  • HTML 11.1%