Prerequisites
- node@^12.x.x
- docker, docker compose
$ git clone https://github.com/zkopru-network/zkopru.git
$ yarn bootstrap
$ yarn develop
By running these commands, it installs dependencies and build packages. Then start local geth node and coordinator inside docker containers.
It also starts coordinator TUI in http://localhost:1234.
- Open http://localhost:1234
- Select
setup menu
, then selectregister as a coordinator
. - Go back to previous menu and select
start auto coordination
. - Select
auction menu
, then selectupdate url
and input127.0.0.1:8888
to target local coordinator process.
clone zkopru wallet repo
$ git clone https://github.com/zkopru-network/wallet.git
setup following README of wallet repo
Change ws url and zkopru contract address to local ones.
wallet repo src/stores/zkopru.js:5L
// const URL = 'wss://goerli.infura.io/ws/v3/5b122dbc87ed4260bf9a2031e8a0e2aa'
// const URL = 'wss://goerli2.zkopru.network'
const URL = 'ws://127.0.0.1:5000'
const ZKOPRU_CONTRACT = '0x970e8f18ebfEa0B08810f33a5A40438b9530FBCF'
- Deploy any ERC20 contract to Local geth node.
- Register deployed ERC20 to zkopru from wallet token library page.
- Deposit ETH and ERC20 in two different accounts for swap. Note that in order to send transaction on zkopru, you need ETH for fee.
clone private exchange repo
$ git clone https://github.com/zkopru-network/private-exchange.git
install dependencies
$ yarn
change zkopru ws url to ws://127.0.0.1:5000
and zkopru contract address to 0x970e8f18ebfEa0B08810f33a5A40438b9530FBCF
start dev server and frontend in two different terminal
$ yarn start:server
$ yarn start # in different terminal