Skip to content

novaprotocolio/dex-v2

Repository files navigation

DEX

DEX is a decentralized exchange implementation that focuses on low-latency and high-throughput.

  • Block time: 1s on normal load, ~2.7s on high load [1]
  • Near instant finality: a transaction is finalized after three block confirmations under normal operation [2]
  • Transaction per second: ~2500 [1]

DEX implements the Dfinity consensus protocol described in their paper. And it implements native on-chain matching engine.

Features

  • Trading tokens
  • Issue new tokens
  • Sending, receiving, freezing and burning tokens

Please see here for how to run the nodes, use the wallet CLI, the detailed steps of reproducing the features, and how to pressure test the system.

You can find the White Paper in the wiki. It has system overview and the plan to solve the scalability problem.

Build

$ docker-compose up -d
$ docker-compose exec dex bash
$ glide install
$ go test ./pkg/...
$ go build ./cmd/node/

API

$ # install echo framework
$ go get -u -f -v github.com/labstack/echo
$ go get -u golang.org/x/crypto/...
$ # run code
$ PORT=8080 go run api/*.go
$ # live reload
$ PORT=8080 make watch-api

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published