Tyche
Tyche is the Greek goddess of chance, fate and fortune
Tyche is a microservice API for shifting between cryptocurrencies
Building
To run Tyche simply clone the repository:
git clone https://github.com/grupokindynos/tyche
Build it or Run it:
go build && ./tyche
go run main.go
Make sure the port is configured under en environment variable PORT=8080
Running flags
-local
Set this flag to run tyche using the testing hestia database. Default is false (production mode).
When using this flag you must be running hestia locally on port 8080.
-port=xxxx
Specifies the running port. Default is 8080
-stop-proc
Set this flag to run tyche without processor.
-no-txs
Set this flag to avoid publishing txs on the blockchain but store them on the database.
WARNING: -local flag must be set in order to use this flag.
-skip-val
Set this flag to skip validations on txs (currently just skipping the minimum amount of confirmations required to process a tx)
WARNING: -local flag must be set in order to use this flag.
-dev
Set this flag to skip service availability checking on hestia. For development and debugging purposes. Meant to enable development when the services are down.
API Reference
Refer to the reference docs.
Testing
Simply run:
go test ./...
Contributing
Pull requests accepted.