Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

ExchangeUnion/xud-exchange-integration-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run

Clone this repository then update xud submodule

git submodule update

Make sure you have virtualenv command in your local system.

which virtualenv

If virtualenv is not installed in your system then install it by

pip install virtualenv

Create a python virtual environment. Specify -p with your local python 3 executable name (maybe python3, python3.6, python3.7, etc.)

virtualenv -p python3 --no-site-packages venv

Active your installed virtual environment. You can deactive it by just typing deactive later.

venv/bin/active

Install python dependencies

pip install -r requirements.txt

Compile gRPC protocols

python -m grpc_tools.protoc -I ./xud/proto --python_out=. --grpc_python_out=. ./xud/proto/xudrpc.proto
python -m grpc_tools.protoc -I ./xud/proto --python_out=. ./xud/proto/annotations.proto
python -m grpc_tools.protoc -I ./xud/proto --python_out=. ./xud/proto/google/api/http.proto
python -m grpc_tools.protoc -I ./xud/proto --python_out=. ./xud/proto/google/protobuf/descriptor.proto

Run this example. Notice you need to put xud tls.cert into this example directory.

python engine.py

You can type help for more helps in the running example.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages