Alpha Daemon implementation to execute automated market marking strategies on top of TDEX
In-depth documentation for running tdex-daemon
is available at docs.tdex.network
- Swap protocol
- Trade protocol
- Wallet
- Crawler
- Constant Product Market making
# Enter the project folder and install node dependencies
$ yarn install
# bundle for Linux amd64
$ yarn build-linux
# Build docker image
$ docker build -t truedex/tdex-daemon:latest .
To invoke TDEX trade grpc server from browser do as follows:
- Start tdex-daemon
yarn start
- Download pre-build binary of grpcwebproxy from here
- Start gowebproxy
grpcwebproxy --backend_addr=localhost:9945 --run_tls_server=false --allow_all_origins
You can also start it with docker:
$ docker run --name gwp --network host -t truedex/grpcwebproxy:latest --backend_addr=:9945 --run_tls_server=false --allow_all_origins
Below is a list of commands you will probably find useful for local development.
Runs the project without compiling TypeScript code into plain javascript.
Runs the project in watch mode. Your project will be rebuilt upon changes.
Bundles the package to the dist
folder.
Build the TypeScript project and bundle with Nexe
for Linux amd64 platform
Build the TypeScript project and bundle with Nexe
for Mac OS platform
Try building the project and runs Eslint and Prettier
Runs the test watcher (Jest) in an interactive mode. Requires Nigiri to already be installed.