Skip to content

destenson/zcom-cloud-blockchain--oss-token-trader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token Trader - GMO Blockchain Open Source

License

License is here.

Apart from forbidding the use of this software for criminal activity, this license is similar to the MIT License.

GMO Blockchain Open Source Common License document is here.

DEMO

You can check the operation of this sample project on this page.

http://oss.blockchain.z.com/token-trader/

Explanation

Usage Guides

Create Z.com Cloud Blockchain environment

see Setup Development Environment

Install application

git clone --recursive https://github.com/zcom-cloud-blockchain/oss-token-trader.git
cd oss-token-trader/server
npm install

Deploy contracts

  • Attention
    At September 1, 2017, truffle should be used at version 3.4.5.
    (There is a bug in web3.js related with truffle version 3.4.6 or later, and the deployment does not work properly.)
    web3/web3.js#990
cd oss-token-trader/provider
truffle migrate

Set up for Z.com Cloud Blockchain

See Basic Configuration

  • Set CNS address on admin console
    1. Open a file 'provider/build/contracts/ContractNameService.json'

    2. Use 'networks.(network-id).address' as CNS address to register as ABI address on admin console

See Contract Creation Process

  • Set Contract ABIs on admin console
    1. Open following files
    'provider/build/contracts/Demo_v1.json'
    'provider/build/contracts/SwapTrade_v1.json'
    1. Use 'networks.(network-id).address' and 'abi' values to register as Contract ABIs on admin console

Configure for client

Create server/public/js/config.js based on server/public/js/config_template.js. Edit "CNS_ADDRESS" and "TOKEN_TRADER_ADDRESS" which you deployed.

  • Put TOKEN_TRADER_ADDRESS of config

    1. Open following files
    'provider/build/contracts/TokenTrader.json'
    1. Use 'networks.(network-id).address' as TokenTrader address to edit config

Start application

cd oss-token-trader
node server/app.js

About

Open Source Token Exchange Builder Project for Ethereum

Resources

License

Stars

Watchers

Forks

Packages

No packages published