An OTC Trading dApp on an Ethereum Parity Blockchain containerized & deployed with Red Hat OpenShift

Photo by Chris Liverani on Unsplash

Over-the-counter (OTC) trading

Photo by Thought Catalog on Unsplash

OTC trading on a blockchain — why?

Private Ethereum with Proof-of-Authority consensus — our choice for OTC trading

Containerize the nodes of the blockchain

Photo by Samuel Zeller on Unsplash

Right — Now, how do we build such an dApp?

Components and their interaction of the OTC trading dApp: Each component is deployed as an OpenShift container

Personas

The smart contract architecture of our dApp

Illustration that shows how asset seller and asset buyer of an OTC trade interact with the smart contracts of the blockchain.

Properties of our dApp to highlight:

Now — do you want to try it out? How to setup and use the dApp yourself!

$ git clone https://github.com/itp-world/blockchain-otc-dapp.git
$ cd blockchain-otc-app/openshift
$ oc login -u developer -p developer <playgroundId>-8443-cykoria05.environments.katacoda.com
<playgroundId>-80-cykoria05.environments.katacoda.com
192.168.64.1.nip.io
$ bash deploy.sh -p otc -d <openshift-wildcard-domain>
http://blockchain-app-client-<projectName>.<playgroundId>-80-cykoria05.environments.katacoda.com
http://blockchain-app-client-<projectName>.192.168.64.1.nip.io

Awesome, deployment done! Now you are ready for demo!

User experience for OTC traders (market maker & taker)

Signup page of the dApp
Page that shows how a blockchain wallet is created/imported; the wallet is maintained on client-side.
Market initializer releases Asset Token for trading by making an offer.
Market initializer assigns Euro Token to another user.
Page that shows how a market maker offers an OTC trade where 250 Asset Tokens are offered for 375 Euro Tokens.
Page that shows the marketplace and how a market taker takes an offer from the marketplace.

Outlook

We’re happy to see your pull requests :)

CEO at CPG Finance Systems GmbH www.cpg.de

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store